mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-12-21 11:22:50 +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>
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
From b90098c77b2138c777e047a7b5df74483720b76e Mon Sep 17 00:00:00 2001
|
|
From: Harshitha Prem <quic_hprem@quicinc.com>
|
|
Date: Tue, 20 Dec 2022 23:23:49 +0530
|
|
Subject: [PATCH] wpa_supplicant: optimize single wiphy scan
|
|
|
|
In case of single phy with multiple band scenario,
|
|
mesh ping fails for vdev (say 5G) because mesh key
|
|
is installed in different band (say 6G).
|
|
|
|
This is because, when mesh vap is started scan is
|
|
triggered without the frequency information.
|
|
Hence,on driver side it scans for all bands(say 2G, 5G,
|
|
and 6G). For each scan on particular band a vdev is created
|
|
with same macaddr on the driver which leads to incorrect
|
|
key installation.
|
|
|
|
To handle this, add changes to send all the frequencies
|
|
corresponding to the band being configured by user
|
|
|
|
Signed-off-by: Harshitha Prem <quic_hprem@quicinc.com>
|
|
---
|
|
wpa_supplicant/scan.c | 15 +++++++++++++++
|
|
1 file changed, 15 insertions(+)
|
|
|
|
--- a/wpa_supplicant/scan.c
|
|
+++ b/wpa_supplicant/scan.c
|
|
@@ -555,6 +555,22 @@ static void wpa_supplicant_optimize_freq
|
|
wpa_s->known_wps_freq = 0; /* only do this once */
|
|
}
|
|
#endif /* CONFIG_WPS */
|
|
+ if (params->freqs == NULL && wpa_s->hw.num_modes > 1) {
|
|
+ u8 channel;
|
|
+ enum hostapd_hw_mode hw_mode;
|
|
+ struct wpa_ssid *ssid = wpa_s->conf->ssid;
|
|
+
|
|
+ if (!ssid) {
|
|
+ wpa_dbg(wpa_s, MSG_ERROR, "Cannot optimize for multi band");
|
|
+ return;
|
|
+ }
|
|
+ hw_mode = ieee80211_freq_to_chan(ssid->frequency, &channel);
|
|
+ if (hw_mode == NUM_HOSTAPD_MODES)
|
|
+ return;
|
|
+ wpa_add_scan_freqs_list(wpa_s, hw_mode,
|
|
+ params, is_6ghz_freq(ssid->frequency),
|
|
+ false, false);
|
|
+ }
|
|
}
|
|
|
|
|