From: Shreyat Pandey Date: Mon, 16 Sep 2024 09:43:05 +0000 (+0530) Subject: Fix STA's SSID protection capability when AP SME is offloaded to driver X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e22afa48d5fe782df6d2af00cdd42930cd7ac03;p=thirdparty%2Fhostap.git Fix STA's SSID protection capability when AP SME is offloaded to driver 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 --- diff --git a/src/ap/drv_callbacks.c b/src/ap/drv_callbacks.c index ab76a5fc6..ba54fd792 100644 --- a/src/ap/drv_callbacks.c +++ b/src/ap/drv_callbacks.c @@ -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;