diff --git a/components/esp8266/Kconfig b/components/esp8266/Kconfig index ffe189d9..d2c9655a 100644 --- a/components/esp8266/Kconfig +++ b/components/esp8266/Kconfig @@ -30,6 +30,20 @@ endchoice endmenu +menu WIFI + +config SCAN_AP_MAX + int "Max scan AP number" + range 1 64 + default 32 + help + Function "esp_wifi_scan_get_ap_num" return value will be less than this. It is said that user cannot + scan more than this. + + User can use own function "esp_wifi_scan_get_ap_num_max" to determin how many AP to scan , too. + +endmenu + menu PHY config ESP_PHY_CALIBRATION_AND_DATA_STORAGE diff --git a/components/esp8266/lib/VERSION b/components/esp8266/lib/VERSION index da83e161..5edb2d12 100644 --- a/components/esp8266/lib/VERSION +++ b/components/esp8266/lib/VERSION @@ -2,9 +2,9 @@ gwen: crypto: 8943c89 espnow: 8943c89 core: 2f2b0ef - net80211: 7ad7dee + net80211: 09abf27 pp: 06e0988 pwm: 0181338 smartconfig:8d61f0e wpa: f59f0e0 - wps: f59f0e0 \ No newline at end of file + wps: f59f0e0 diff --git a/components/esp8266/lib/libnet80211.a b/components/esp8266/lib/libnet80211.a index a3313d3c..21133bb4 100644 Binary files a/components/esp8266/lib/libnet80211.a and b/components/esp8266/lib/libnet80211.a differ diff --git a/components/esp8266/source/esp_wifi.c b/components/esp8266/source/esp_wifi.c index 47411e4c..cb684e01 100644 --- a/components/esp8266/source/esp_wifi.c +++ b/components/esp8266/source/esp_wifi.c @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "sdkconfig.h" #include "esp_libc.h" #include "esp_system.h" #include "esp_wifi.h" @@ -49,4 +50,9 @@ esp_err_t esp_wifi_init(const wifi_init_config_t *config) void esp_deep_sleep_set_rf_option(uint8_t option) { phy_afterwake_set_rfoption(option); -} \ No newline at end of file +} + +size_t __attribute__((weak)) esp_wifi_scan_get_ap_num_max(void) +{ + return CONFIG_SCAN_AP_MAX; +}