* @return ESP_OK : succeed
* @return others : fail
*/
-esp_err_t esp_wifi_get_ap_num(uint16_t *number);
+esp_err_t esp_wifi_scan_get_ap_num(uint16_t *number);
/**
* @brief Get AP list found in last scan
*
- * @param uint16_t *number : as input param, it stores max AP number ap_list can hold, as output param, it store
+ * @param uint16_t *number : as input param, it stores max AP number ap_records can hold, as output param, it store
the actual AP number this API returns
- * @param wifi_ap_list_t *ap_list : a list to hold the found APs
+ * @param wifi_ap_record_t *ap_records: an wifi_ap_record_t array to hold the found APs
*
* @return ESP_OK : succeed
* @return others : fail
*/
-esp_err_t esp_wifi_get_ap_list(uint16_t *number, wifi_ap_list_t *ap_list);
+esp_err_t esp_wifi_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_records);
/**
* @brief Set current power save type
*
* @attention SSC only API
*
- * @param wifi_sta_list_t *sta: sta list
+ * @param wifi_sta_list_t *sta: station list
*
* @return ESP_OK : succeed
* @return others : fail
wifi_second_chan_t second; /**< second channel of AP */
int8_t rssi; /**< signal strength of AP */
wifi_auth_mode_t authmode; /**< authmode of AP */
-} wifi_ap_list_t;
+} wifi_ap_record_t;
typedef enum {
WIFI_PS_NONE, /**< No power save */
uint8_t mac[6]; /**< mac address of sta that associated with ESP32 soft-AP */
}wifi_sta_info_t;
-#define ESP_WIFI_MAX_CONN_NUM 8 /**< max number of sta the eSP32 soft-AP can connect */
+#define ESP_WIFI_MAX_CONN_NUM (8+2) /**< max number of sta the eSP32 soft-AP can connect */
typedef struct {
- wifi_sta_info_t sta[ESP_WIFI_MAX_CONN_NUM+2]; /**< sta list */
- uint8_t num; /**< number of sta that associated with ESP32 soft-AP */
+ wifi_sta_info_t sta[ESP_WIFI_MAX_CONN_NUM]; /**< station list */
+ uint8_t num; /**< number of station that associated with ESP32 soft-AP */
}wifi_sta_list_t;
typedef enum {
/**
* @brief Get the station information list
*
- * @param[in] wifi_sta_list_t *wifi_sta_list: sta list info
- * @param[out] tcpip_adapter_sta_list_t *tcpip_sta_list: sta list info
+ * @param[in] wifi_sta_list_t *wifi_sta_list: station list info
+ * @param[out] tcpip_adapter_sta_list_t *tcpip_sta_list: station list info
*
* @return ESP_OK
* ESP_ERR_TCPIP_ADAPTER_NO_MEM