Skip to content

Commit 8a814dd

Browse files
Rex-Chen-NXPkartben
authored andcommitted
drivers: wifi: nxp: fix sap stations list shows empty in open mode
Start ap with open mode, external station connected to sap, wifi ap stations list shows empty, because no 'WLAN_REASON_UAP_CLIENT_CONN' is received, skip add station infomation to station list,so station list shows empty. Fix issue by trigger this event with 'WLAN_REASON_UAP_CLIENT_ASSOC'in open mode. Signed-off-by: Rex Chen <[email protected]>
1 parent 2383a5f commit 8a814dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -284,12 +284,6 @@ int nxp_wifi_wlan_event_callback(enum wlan_event_reason reason, void *data)
284284
s_nxp_wifi_UapActivated = true;
285285
break;
286286
case WLAN_REASON_UAP_CLIENT_ASSOC:
287-
LOG_DBG("WLAN: UAP a Client Associated");
288-
LOG_DBG("Client => ");
289-
print_mac((const char *)data);
290-
LOG_DBG("Associated with Soft AP");
291-
break;
292-
case WLAN_REASON_UAP_CLIENT_CONN:
293287
wlan_get_current_uap_network(&nxp_wlan_uap_network);
294288
#ifdef CONFIG_NXP_WIFI_11AX
295289
if (nxp_wlan_uap_network.dot11ax) {
@@ -312,6 +306,12 @@ int nxp_wifi_wlan_event_callback(enum wlan_event_reason reason, void *data)
312306
ap_sta_info.twt_capable = status.twt_capable;
313307

314308
wifi_mgmt_raise_ap_sta_connected_event(g_uap.netif, &ap_sta_info);
309+
LOG_DBG("WLAN: UAP a Client Associated");
310+
LOG_DBG("Client => ");
311+
print_mac((const char *)data);
312+
LOG_DBG("Associated with Soft AP");
313+
break;
314+
case WLAN_REASON_UAP_CLIENT_CONN:
315315
LOG_DBG("WLAN: UAP a Client Connected");
316316
LOG_DBG("Client => ");
317317
print_mac((const char *)data);

0 commit comments

Comments
 (0)