Record more information of scanned AP

This commit is contained in:
XiaXiaotian 2017-09-19 20:17:25 +08:00
parent d50aca62c3
commit 98dfb8c0b9
2 changed files with 19 additions and 3 deletions

View file

@ -121,6 +121,16 @@ typedef struct {
wifi_scan_time_t scan_time; /**< scan time per channel */ wifi_scan_time_t scan_time; /**< scan time per channel */
} wifi_scan_config_t; } wifi_scan_config_t;
typedef enum {
WIFI_CIPHER_TYPE_NONE = 0, /**< the cipher type is none */
WIFI_CIPHER_TYPE_WEP40, /**< the cipher type is WEP40 */
WIFI_CIPHER_TYPE_WEP104, /**< the cipher type is WEP104 */
WIFI_CIPHER_TYPE_TKIP, /**< the cipher type is TKIP */
WIFI_CIPHER_TYPE_CCMP, /**< the cipher type is CCMP */
WIFI_CIPHER_TYPE_TKIP_CCMP, /**< the cipher type is TKIP and CCMP */
WIFI_CIPHER_TYPE_UNKNOWN, /**< the cipher type is unknown */
} wifi_cipher_type_t;
typedef struct { typedef struct {
uint8_t bssid[6]; /**< MAC address of AP */ uint8_t bssid[6]; /**< MAC address of AP */
uint8_t ssid[33]; /**< SSID of AP */ uint8_t ssid[33]; /**< SSID of AP */
@ -128,8 +138,14 @@ typedef struct {
wifi_second_chan_t second; /**< second channel of AP */ wifi_second_chan_t second; /**< second channel of AP */
int8_t rssi; /**< signal strength of AP */ int8_t rssi; /**< signal strength of AP */
wifi_auth_mode_t authmode; /**< authmode of AP */ wifi_auth_mode_t authmode; /**< authmode of AP */
uint32_t low_rate_enable:1; /**< bit: 0 flag to identify if low rate is enabled or not */ wifi_cipher_type_t pairwise_cipher; /**< pairwise cipher of AP */
uint32_t reserved:31; /**< bit: 1..31 reserved */ wifi_cipher_type_t group_cipher; /**< group cipher of AP */
uint32_t phy_11b:1; /**< bit: 0 flag to identify if 11b mode is enabled or not */
uint32_t phy_11g:1; /**< bit: 1 flag to identify if 11g mode is enabled or not */
uint32_t phy_11n:1; /**< bit: 2 flag to identify if 11n mode is enabled or not */
uint32_t phy_lr:1; /**< bit: 3 flag to identify if low rate is enabled or not */
uint32_t wps:1; /**< bit: 4 flag to identify if WPS is supported or not */
uint32_t reserved:27; /**< bit: 5..31 reserved */
} wifi_ap_record_t; } wifi_ap_record_t;
typedef enum { typedef enum {

@ -1 +1 @@
Subproject commit 1a06dd1671e386d75f98844c454c8a86e5b71c1b Subproject commit c71367fb572b7710ce7950999ec5e67af57a105c