Skip to content

Commit 0aacb14

Browse files
committed
take wifi.radio.enabled into account
1 parent 5c42932 commit 0aacb14

File tree

1 file changed

+1
-1
lines changed
  • ports/espressif/common-hal/wifi

1 file changed

+1
-1
lines changed

ports/espressif/common-hal/wifi/Radio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void common_hal_wifi_radio_start_ap(wifi_radio_obj_t *self, uint8_t *ssid, size_
243243
}
244244

245245
bool common_hal_wifi_radio_get_ap_active(wifi_radio_obj_t *self) {
246-
return self->ap_mode;
246+
return self->ap_mode && esp_netif_is_netif_up(self->ap_netif);
247247
}
248248

249249
void common_hal_wifi_radio_stop_ap(wifi_radio_obj_t *self) {

0 commit comments

Comments
 (0)