SME: Add support for handling authentication with MLD
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
On 12/6/2022 5:46 PM, Andrei Otcheretianski wrote:
...
wpa_supplicant/events.c
Quoted 13 lines
wpa_supplicant/events.c +7
-0+static bool wpas_ml_element (struct wpa_supplicant *wpa_s,struct wpa_bss *bss) +{ + +if (neigh_bss) { +if (wpa_scan_res_match (wpa_s,0 , neigh_bss, + wpa_s->current_ssid, +1 ,0 )) {
If wpa_scan_res_match() fail, then the neigh_bss will be dropped, and the neigh link will NOT connect, then N link reduced to N-1 link.
for example, the bssid failed connect for last time, it will be ignored for 10 seconds:
Feb 13 17:42:20 cst-Celadon-RN wpa_supplicant[967]: Added BSSID 00:03:7f:01:59:50 into ignore list, ignoring for 10 seconds Feb 13 17:42:20 cst-Celadon-RN wpa_supplicant[967]: BSSID 00:03:7f:01:59:50 ignore list count incremented to 2, ignoring for 10 seconds Feb 13 17:42:21 cst-Celadon-RN wpa_supplicant[967]: wlan0: skip - BSSID ignored (count=2 limit=0)
Quoted 15 lines
wpa_supplicant/events.c +15
-0+ wpa_s->valid_links |=BIT (link_id); +os_memcpy (wpa_s->links[link_id].bssid, + ap_info->data +1 ,ETH_ALEN ); + wpa_s->links[link_id].freq = + neigh_bss->freq; + }else { +wpa_printf (MSG_DEBUG , +"MLD: neighbor doesn't match current SSID - skip link" ); + } + }else { +wpa_printf (MSG_DEBUG , +"MLD: neighbor not found in scan" ); + } + } +
...
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
On 12/6/2022 5:46 PM, Andrei Otcheretianski wrote:
...
Quoted 5 lines
wpa_supplicant/sme.c +0
-0
wpa_supplicant/sme.c static void sme_auth_handle_rrm(struct wpa_supplicant *wpa_s,
Quoted 9 lines
wpa_supplicant/sme.c +5
-0@@ -367,6 +367,194 @@ static void sme_auth_handle_rrm(struct wpa_supplicant *wpa_s, } +static bool wpas_ml_element (struct wpa_supplicant *wpa_s,struct wpa_bss *bss) + if (neigh_bss) { +if (wpa_scan_res_match (wpa_s,0 , neigh_bss, + wpa_s->current_ssid, +1 ,0 )) {
If wpa_scan_res_match() fail, then the neigh_bss will be dropped, and the neigh link will NOT connect, then N link reduced to N-1 link.
for example, the bssid failed connect for last time, it will be ignored for 10 seconds:
Feb 13 17:42:20 cst-Celadon-RN wpa_supplicant[967]: Added BSSID 00:03:7f:01:59:50 into ignore list, ignoring for 10 seconds Feb 13 17:42:20 cst-Celadon-RN wpa_supplicant[967]: BSSID 00:03:7f:01:59:50 ignore list count incremented to 2, ignoring for 10 seconds Feb 13 17:42:21 cst-Celadon-RN wpa_supplicant[967]: wlan0: skip - BSSID ignored (count=2 limit=0)
Quoted 14 lines
wpa_supplicant/sme.c +14
-0+ wpa_s->valid_links |=BIT (link_id); +os_memcpy (wpa_s->links[link_id].bssid, + ap_info->data +1 ,ETH_ALEN ); + wpa_s->links[link_id].freq = + neigh_bss->freq; + }else { +wpa_printf (MSG_DEBUG , +"MLD: neighbor doesn't match current SSID - skip link" ); + } + }else { +wpa_printf (MSG_DEBUG , +"MLD: neighbor not found in scan" ); + } + }
...
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k
On 12/6/2022 5:46 PM, Andrei Otcheretianski wrote:
...
Quoted 10 lines
wpa_supplicant/sme.c +2
-0@@ -367,6 +367,194 @@ static void sme_auth_handle_rrm(struct wpa_supplicant *wpa_s, } +static bool wpas_ml_element (struct wpa_supplicant *wpa_s,struct wpa_bss *bss) +{
...
wpa_supplicant/sme.c
Quoted 3 lines
wpa_supplicant/sme.c +3
-0+ }else { +struct wpa_bss *neigh_bss = +wpa_bss_get_bssid (wpa_s, ap_info->data +1 );
changed to use wpa_bss_get_bssid_latest() should be better here?
Quoted 4 lines
wpa_supplicant/sme.c +4
-0+u8 link_id = *(data +1 ) &0xF ; + +if (neigh_bss) { + if (wpa_scan_res_match(wpa_s, 0, neigh_bss,
...
Signature · 3 lines
ath11k mailing list [email protected] http://lists.infradead.org/mailman/listinfo/ath11k