Skip to content

Commit f3a2d60

Browse files
committed
Add missing lines from default AP event handler
1 parent 59e224d commit f3a2d60

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/WiFi/src/WiFi.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,10 @@ int arduino::WiFiClass::beginAP(const char* ssid, const char *passphrase, uint8_
7171
}
7272

7373
// Default Event Handler
74+
whd_driver_t whd_driver = ifp->whd_driver;
75+
WHD_IOCTL_LOG_ADD_EVENT(whd_driver, event_header->event_type, event_header->flags, event_header->reason);
76+
7477
if ((event_header->event_type == (whd_event_num_t)WLC_E_LINK) || (event_header->event_type == WLC_E_IF)) {
75-
whd_driver_t whd_driver = ifp->whd_driver;
7678
if (osSemaphoreGetCount(whd_driver->ap_info.whd_wifi_sleep_flag) < 1) {
7779
osStatus_t result = osSemaphoreRelease(whd_driver->ap_info.whd_wifi_sleep_flag);
7880
if (result != osOK) {

0 commit comments

Comments
 (0)