Skip to content

Commit f610e38

Browse files
Liam-qkkartben
authored andcommitted
modules: hostap: Fix DPP security mode show issue
[Description] After DUT connects to AP through DPP, enter 'wifi status' to check connection status. Security shows UNKNOWN. [Analysis] 1. DUT supplicant will add a dpp network after receiving GAS response. Assign ssid->key_mgmt as WPA_KEY_MGMT_DPP. 2. Call wpas_key_mgmt_to_zephyr() to convert hostapd/supplicant security type to zephry security type. In this function, convert WPA_KEY_MGMT_DPP to WIFI_SECURITY_TYPE_UNKNOWN. [Fix] 1. Add code to convert WPA_KEY_MGMT_DPP to WIFI_SECURITY_TYPE_DPP. Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
1 parent b76e68e commit f610e38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/hostap/src/supp_api.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,8 @@ enum wifi_security_type wpas_key_mgmt_to_zephyr(bool is_hapd, void *config, int
415415
return WIFI_SECURITY_TYPE_FT_SAE;
416416
case WPA_KEY_MGMT_FT_IEEE8021X:
417417
return WIFI_SECURITY_TYPE_FT_EAP;
418+
case WPA_KEY_MGMT_DPP:
419+
return WIFI_SECURITY_TYPE_DPP;
418420
case WPA_KEY_MGMT_FT_IEEE8021X_SHA384:
419421
return WIFI_SECURITY_TYPE_FT_EAP_SHA384;
420422
case WPA_KEY_MGMT_SAE_EXT_KEY:

0 commit comments

Comments
 (0)