From af8d90dbc10ac059829334f09d7e7d8de93b0b4d Mon Sep 17 00:00:00 2001 From: ChenJianxing Date: Tue, 17 Mar 2020 21:31:32 +0800 Subject: [PATCH] esp_wifi: fix esp32s2 ap mac address can not find. --- components/esp_common/src/mac_addr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_common/src/mac_addr.c b/components/esp_common/src/mac_addr.c index de7f430344..1cbcf76277 100644 --- a/components/esp_common/src/mac_addr.c +++ b/components/esp_common/src/mac_addr.c @@ -174,6 +174,8 @@ esp_err_t esp_read_mac(uint8_t* mac, esp_mac_type_t type) if(memcmp(mac,mac_begin,6) >= 0 && memcmp(mac_end,mac,6) >=0 ){ mac[3] += 0x02; // contain carry bit mac[4] += 0xd0; + } else { + mac[5] += 1; } #else mac[5] += 1;