diff mbox series

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

Message ID 93a971b741d4f1f00043a1ccd8617a5b6cf9d8ae.1703223587.git.vinayak.yadawad@broadcom.com
State Accepted
Headers show
Series [1/1] hostapd: Add all PSK security type support for AP in case of PSK offload | expand

Commit Message

Vinayak Yadawad Dec. 22, 2023, 5:45 a.m. UTC
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@broadcom.com>
---
 src/drivers/driver_nl80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jouni Malinen Dec. 23, 2023, 10:41 a.m. UTC | #1
On Fri, Dec 22, 2023 at 11:15:40AM +0530, Vinayak Yadawad wrote:
> 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.

Thanks, applied.
diff mbox series

Patch

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))