Skip to content

Commit 233b6e8

Browse files
committed
subsys: wifi: fix wifi 11k cannot be set before connection
Support the case that 11k parameter can be set before wifi connection. This field should not be cleared by connection. Fix it by not clear it in wifi_connect api. Signed-off-by: Fengming Ye <[email protected]>
1 parent 80d1d23 commit 233b6e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/net/l2/wifi/wifi_mgmt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ static int wifi_connect(uint64_t mgmt_request, struct net_if *iface,
442442
}
443443

444444
#ifdef CONFIG_WIFI_NM_WPA_SUPPLICANT_ROAMING
445-
memset(&roaming_params, 0x0, sizeof(roaming_params));
445+
memset(roaming_params.neighbor_rep, 0x0, sizeof(roaming_params.neighbor_rep));
446446
roaming_params.is_11r_used = params->ft_used;
447447
#endif
448448

0 commit comments

Comments
 (0)