Skip to content

Commit 305d511

Browse files
Liam-qkdanieldegrasse
authored andcommitted
modules: hostap: Fix DPP soft AP security type show issue.
[Description] After starting a DPP soft ap, enter 'wifi ap status'. Security is shown as 'UNKNOW'. [Root Cause] 1. Start a DPP soft ap: wifi ap enable -s xxx -c x -p xxx -k 11 The parameter '-k 11' corresponds to zephyr security type 'WIFI_SECURITY_TYPE_DPP'. 2. hapd_config_network() will be called to config a new hostap bss. 3. Filed 'bss->wpa_key_mgmt' is set to WPA_KEY_MGMT_PSK | WPA_KEY_MGMT_DPP. 4. When try to get security type of DPP soft ap, there is no corresponding zephyr security type. [Fix] Add enhance code to convert the security type to zephyr DPP security type. Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
1 parent d0bded3 commit 305d511

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
@@ -421,6 +421,8 @@ enum wifi_security_type wpas_key_mgmt_to_zephyr(bool is_hapd, void *config, int
421421
return WIFI_SECURITY_TYPE_FT_EAP_SHA384;
422422
case WPA_KEY_MGMT_SAE_EXT_KEY:
423423
return WIFI_SECURITY_TYPE_SAE_EXT_KEY;
424+
case WPA_KEY_MGMT_DPP | WPA_KEY_MGMT_PSK:
425+
return WIFI_SECURITY_TYPE_DPP;
424426
default:
425427
return WIFI_SECURITY_TYPE_UNKNOWN;
426428
}

0 commit comments

Comments
 (0)