Merge branch 'feature/compute_ap_scan_num' into 'master'

Add function to return max scan AP number

See merge request sdk/ESP8266_RTOS_SDK!346
This commit is contained in:
Dong Heng
2018-07-30 20:30:38 +08:00
4 changed files with 23 additions and 3 deletions

View File

@ -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

View File

@ -2,7 +2,7 @@ gwen:
crypto: 8943c89
espnow: 8943c89
core: 2f2b0ef
net80211: 7ad7dee
net80211: 09abf27
pp: 06e0988
pwm: 0181338
smartconfig:8d61f0e

Binary file not shown.

View File

@ -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"
@ -50,3 +51,8 @@ void esp_deep_sleep_set_rf_option(uint8_t option)
{
phy_afterwake_set_rfoption(option);
}
size_t __attribute__((weak)) esp_wifi_scan_get_ap_num_max(void)
{
return CONFIG_SCAN_AP_MAX;
}