We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5151a4 commit 5396482Copy full SHA for 5396482
ports/espressif/common-hal/wifi/Radio.c
@@ -258,16 +258,15 @@ mp_obj_t common_hal_wifi_radio_get_stations_ap(wifi_radio_obj_t *self) {
258
if (result != ESP_OK) {
259
return mp_const_none;
260
}
261
-
+
262
esp_netif_pair_mac_ip_t mac_ip_pair[esp_sta_list.num];
263
for (int i = 0; i < esp_sta_list.num; i++) {
264
memcpy(mac_ip_pair[i].mac, esp_sta_list.sta[i].mac, MAC_ADDRESS_LENGTH);
265
mac_ip_pair[i].ip.addr = 0;
266
267
268
result = esp_netif_dhcps_get_clients_by_mac(self->ap_netif, esp_sta_list.num, mac_ip_pair);
269
270
- if (!self->ap_mode || result != ESP_OK) {
+ if (result != ESP_OK) {
271
272
273
0 commit comments