Skip to content

Commit 12babf9

Browse files
nxf58150danieldegrasse
authored andcommitted
net: l2: wifi: Fix roaming fail issue
The NET_EVENT_WIFI_SIGNAL_CHANGE was not added to net mgmt event queue so that no scan was triggered, which caused roaming fail. The event NET_EVENT_WIFI_SIGNAL_CHANGE was dropped because it was not enabled in WIFI_SHELL_MGMT_EVENTS. After adding NET_EVENT_WIFI_SIGNAL_CHANGE, the roaming works as expected. Same issue found on event NET_EVENT_WIFI_NEIGHBOR_REP_COMP for 11k roaming. Add this event to WIFI_SHELL_MGMT_EVENTS, too. Signed-off-by: Hui Bai <hui.bai@nxp.com>
1 parent dba69f3 commit 12babf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

subsys/net/l2/wifi/wifi_shell.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,9 @@ static const char server_key_test[] = {
101101
NET_EVENT_WIFI_AP_ENABLE_RESULT |\
102102
NET_EVENT_WIFI_AP_DISABLE_RESULT |\
103103
NET_EVENT_WIFI_AP_STA_CONNECTED |\
104-
NET_EVENT_WIFI_AP_STA_DISCONNECTED)
104+
NET_EVENT_WIFI_AP_STA_DISCONNECTED|\
105+
NET_EVENT_WIFI_SIGNAL_CHANGE |\
106+
NET_EVENT_WIFI_NEIGHBOR_REP_COMP)
105107

106108
#ifdef CONFIG_WIFI_MGMT_RAW_SCAN_RESULTS_ONLY
107109
#define WIFI_SHELL_SCAN_EVENTS ( \

0 commit comments

Comments
 (0)