mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 19:31:55 +00:00
Some checks failed
Build OpenWrt/uCentral images / build (cig_wf186h) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf186w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf188n) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf189) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cig_wf196) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-a1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (cybertan_eww631-b1) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap102) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap104) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap105) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap111) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_eap112) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (edgecore_oap101e-6e) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_3) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4x_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xe) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi) (push) Has been cancelled
Build OpenWrt/uCentral images / build (hfcl_ion4xi_w) (push) Has been cancelled
Build OpenWrt/uCentral images / build (indio_um-305ax) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sercomm_ap72tip) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630c-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-211g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (sonicfi_rap630w-311g) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-id2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (udaya_a6-od2) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr5018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018) (push) Has been cancelled
Build OpenWrt/uCentral images / build (wallys_dr6018-v4) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax820) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_ax840) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap640) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap650) (push) Has been cancelled
Build OpenWrt/uCentral images / build (yuncore_fap655) (push) Has been cancelled
Build OpenWrt/uCentral images / trigger-testing (push) Has been cancelled
Build OpenWrt/uCentral images / create-x64_vm-ami (push) Has been cancelled
Signed-off-by: John Crispin <john@phrozen.org>
62 lines
2.0 KiB
Diff
62 lines
2.0 KiB
Diff
From 40fb10843b4125101f5341c402ee4602dee19206 Mon Sep 17 00:00:00 2001
|
|
From: Aditya Kumar Singh <quic_adisi@quicinc.com>
|
|
Date: Tue, 10 Oct 2023 15:12:25 +0530
|
|
Subject: [PATCH] hostapd: remove redundant put_freq call in set_ap
|
|
|
|
Currently wpa_driver_nl80211_set_ap() calls nl80211_put_freq_params() two
|
|
times if AP is a MLD AP. It calls one while putting MLO link ID and other
|
|
in the normal flow if frequency info is present. Calling two times is not
|
|
required.
|
|
|
|
Hence, add code changes to call it via the normal flow only and if the AP
|
|
is MLD AP, add MLO link ID as well.
|
|
|
|
Signed-off-by: Aditya Kumar Singh <quic_adisi@quicinc.com>
|
|
---
|
|
src/drivers/driver_nl80211.c | 26 ++++++++++++--------------
|
|
1 file changed, 12 insertions(+), 14 deletions(-)
|
|
|
|
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -5068,20 +5068,6 @@ static int wpa_driver_nl80211_set_ap(voi
|
|
nla_put_u32(msg, NL80211_ATTR_BEACON_TX_MODE, params->beacon_tx_mode)))
|
|
goto fail;
|
|
|
|
- if (params->mld_ap) {
|
|
- wpa_printf(MSG_DEBUG, "nl80211: link_id=%u",
|
|
- params->mld_link_id);
|
|
-
|
|
- if (nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID,
|
|
- params->mld_link_id) ||
|
|
- (params->freq &&
|
|
- nl80211_put_freq_params(msg, params->freq) < 0))
|
|
- goto fail;
|
|
-
|
|
- nl80211_link_set_freq(bss, params->mld_link_id,
|
|
- params->freq->freq);
|
|
- }
|
|
-
|
|
if (params->proberesp && params->proberesp_len) {
|
|
wpa_hexdump(MSG_DEBUG, "nl80211: proberesp (offload)",
|
|
params->proberesp, params->proberesp_len);
|
|
@@ -5307,6 +5293,19 @@ static int wpa_driver_nl80211_set_ap(voi
|
|
if (params->freq && nl80211_put_freq_params(msg, params->freq) < 0)
|
|
goto fail;
|
|
|
|
+ if (params->mld_ap) {
|
|
+ wpa_printf(MSG_DEBUG, "nl80211: link_id=%u",
|
|
+ params->mld_link_id);
|
|
+
|
|
+ if (nla_put_u8(msg, NL80211_ATTR_MLO_LINK_ID,
|
|
+ params->mld_link_id))
|
|
+ goto fail;
|
|
+
|
|
+ if (params->freq)
|
|
+ nl80211_link_set_freq(bss, params->mld_link_id,
|
|
+ params->freq->freq);
|
|
+ }
|
|
+
|
|
if (params->freq && params->freq->he_enabled) {
|
|
struct nlattr *bss_color;
|
|
|