[PATCH 1/1] hostapd: Add all PSK security type support for AP in case of PSK offload

Vinayak Yadawad vinayak.yadawad at broadcom.com
Thu Dec 21 21:45:40 PST 2023


In the current change we add support for all PSK security types
for AP bring up, in PSK offload cases by allowing PSK plumb during
the AP start.

Signed-off-by: Vinayak Yadawad <vinayak.yadawad at broadcom.com>
---
 src/drivers/driver_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
index dbe092adf..10fa31ebc 100644
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -5123,7 +5123,7 @@ static int wpa_driver_nl80211_set_ap(void *priv,
 			 suites))
 		goto fail;
 
-	if ((params->key_mgmt_suites & WPA_KEY_MGMT_PSK) &&
+	if (wpa_key_mgmt_wpa_psk_no_sae(params->key_mgmt_suites) &&
 	    (drv->capa.flags2 & WPA_DRIVER_FLAGS2_4WAY_HANDSHAKE_AP_PSK) &&
 	    params->psk_len &&
 	    nla_put(msg, NL80211_ATTR_PMK, params->psk_len, params->psk))
-- 
2.32.0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4218 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.infradead.org/pipermail/hostap/attachments/20231222/5136e31b/attachment.p7s>


More information about the Hostap mailing list