]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix STA's SSID protection capability when AP SME is offloaded to driver
authorShreyat Pandey <quic_shrepand@quicinc.com>
Mon, 16 Sep 2024 09:43:05 +0000 (15:13 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 19 Sep 2024 09:54:34 +0000 (12:54 +0300)
Correctly set STA's SSID protection capability to STA's wpa_sm for AP
SME offload to the driver case when processing association events.

Signed-off-by: Shreyat Pandey <quic_shrepand@quicinc.com>
src/ap/drv_callbacks.c

index ab76a5fc62c5fb1838b68676ff233c3d11a2b6be..ba54fd7924559ba775185ff9cd59febf1093ef08 100644 (file)
@@ -678,6 +678,13 @@ int hostapd_notif_assoc(struct hostapd_data *hapd, const u8 *addr,
                        goto fail;
                }
 #endif /* CONFIG_SAE */
+
+               wpa_auth_set_ssid_protection(
+                       sta->wpa_sm,
+                       hapd->conf->ssid_protection &&
+                       ieee802_11_rsnx_capab_len(
+                               elems.rsnxe, elems.rsnxe_len,
+                               WLAN_RSNX_CAPAB_SSID_PROTECTION));
        } else if (hapd->conf->wps_state) {
 #ifdef CONFIG_WPS
                struct wpabuf *wps;