mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 17:47:04 +08:00
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:
@ -30,6 +30,20 @@ endchoice
|
|||||||
|
|
||||||
endmenu
|
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
|
menu PHY
|
||||||
|
|
||||||
config ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
config ESP_PHY_CALIBRATION_AND_DATA_STORAGE
|
||||||
|
@ -2,7 +2,7 @@ gwen:
|
|||||||
crypto: 8943c89
|
crypto: 8943c89
|
||||||
espnow: 8943c89
|
espnow: 8943c89
|
||||||
core: 2f2b0ef
|
core: 2f2b0ef
|
||||||
net80211: 7ad7dee
|
net80211: 09abf27
|
||||||
pp: 06e0988
|
pp: 06e0988
|
||||||
pwm: 0181338
|
pwm: 0181338
|
||||||
smartconfig:8d61f0e
|
smartconfig:8d61f0e
|
||||||
|
Binary file not shown.
@ -12,6 +12,7 @@
|
|||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
#include "sdkconfig.h"
|
||||||
#include "esp_libc.h"
|
#include "esp_libc.h"
|
||||||
#include "esp_system.h"
|
#include "esp_system.h"
|
||||||
#include "esp_wifi.h"
|
#include "esp_wifi.h"
|
||||||
@ -50,3 +51,8 @@ void esp_deep_sleep_set_rf_option(uint8_t option)
|
|||||||
{
|
{
|
||||||
phy_afterwake_set_rfoption(option);
|
phy_afterwake_set_rfoption(option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
size_t __attribute__((weak)) esp_wifi_scan_get_ap_num_max(void)
|
||||||
|
{
|
||||||
|
return CONFIG_SCAN_AP_MAX;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user