Skip to content

Commit 3b2b513

Browse files
Liam-qkjhedberg
authored andcommitted
drivers: wifi: nxp: Raise Wi-Fi mgmt events for soft AP start/stop.
Enhanced the shim driver to raise Wi-Fi management events when starting or stopping SoftAP, specifically in cases where CONFIG_WIFI_NM_HOSTAPD_AP is disabled. Signed-off-by: Qiankun Li <qiankun.li@nxp.com>
1 parent 2b52c91 commit 3b2b513

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/wifi/nxp/nxp_wifi_drv.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ int nxp_wifi_wlan_event_callback(enum wlan_event_reason reason, void *data)
286286

287287
LOG_DBG("DHCP Server started successfully");
288288
s_nxp_wifi_UapActivated = true;
289+
#ifndef CONFIG_WIFI_NM_HOSTAPD_AP
290+
wifi_mgmt_raise_ap_enable_result_event(g_uap.netif, WIFI_STATUS_AP_SUCCESS);
291+
#endif
289292
break;
290293
case WLAN_REASON_UAP_CLIENT_ASSOC:
291294
sta_node *con_sta_info = (sta_node *)data;
@@ -362,6 +365,9 @@ int nxp_wifi_wlan_event_callback(enum wlan_event_reason reason, void *data)
362365
net_dhcpv4_server_stop(g_uap.netif);
363366
LOG_DBG("DHCP Server stopped successfully");
364367
s_nxp_wifi_UapActivated = false;
368+
#ifndef CONFIG_WIFI_NM_HOSTAPD_AP
369+
wifi_mgmt_raise_ap_disable_result_event(g_uap.netif, WIFI_STATUS_AP_SUCCESS);
370+
#endif
365371
break;
366372
#endif
367373
case WLAN_REASON_PS_ENTER:

0 commit comments

Comments
 (0)