mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-08-06 15:15:15 +08:00
feat(wifi): Add country code API
internal: a6313782
This commit is contained in:
20
VERSION
20
VERSION
@ -1,14 +1,14 @@
|
|||||||
gwen:
|
gwen:
|
||||||
crypto: 52dbf63
|
crypto: 9ec59b5
|
||||||
espnow: 52dbf63
|
espnow: 9ec59b5
|
||||||
main: 02199b2
|
main: 9ec59b5
|
||||||
minic: 52dbf63
|
minic: 9ec59b5
|
||||||
net80211: 02199b2
|
net80211: 9ec59b5
|
||||||
pp: 94fab61
|
pp: 9ec59b5
|
||||||
pwm: 52dbf63
|
pwm: 9ec59b5
|
||||||
smartconfig:016fc33
|
smartconfig:9ec59b5
|
||||||
wpa: bac4751
|
wpa: 9ec59b5
|
||||||
wps: 52dbf63
|
wps: 9ec59b5
|
||||||
|
|
||||||
gitlab:
|
gitlab:
|
||||||
espconn: 3a998034
|
espconn: 3a998034
|
||||||
|
@ -65,6 +65,18 @@ typedef enum {
|
|||||||
AUTH_MAX
|
AUTH_MAX
|
||||||
} AUTH_MODE;
|
} AUTH_MODE;
|
||||||
|
|
||||||
|
typedef enum {
|
||||||
|
WIFI_COUNTRY_POLICY_AUTO, /**< Country policy is auto, use the country info of AP to which the station is connected */
|
||||||
|
WIFI_COUNTRY_POLICY_MANUAL, /**< Country policy is manual, always use the configured country info */
|
||||||
|
} WIFI_COUNTRY_POLICY;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
char cc[3]; /**< country code string */
|
||||||
|
uint8_t schan; /**< start channel */
|
||||||
|
uint8_t nchan; /**< total channel number */
|
||||||
|
uint8_t policy; /**< country policy */
|
||||||
|
} wifi_country_t;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Get the current operating mode of the WiFi.
|
* @brief Get the current operating mode of the WiFi.
|
||||||
*
|
*
|
||||||
|
BIN
lib/libcrypto.a
BIN
lib/libcrypto.a
Binary file not shown.
BIN
lib/libespnow.a
BIN
lib/libespnow.a
Binary file not shown.
BIN
lib/libmain.a
BIN
lib/libmain.a
Binary file not shown.
BIN
lib/libminic.a
BIN
lib/libminic.a
Binary file not shown.
Binary file not shown.
BIN
lib/libpp.a
BIN
lib/libpp.a
Binary file not shown.
BIN
lib/libpwm.a
BIN
lib/libpwm.a
Binary file not shown.
Binary file not shown.
BIN
lib/libwpa.a
BIN
lib/libwpa.a
Binary file not shown.
BIN
lib/libwps.a
BIN
lib/libwps.a
Binary file not shown.
Reference in New Issue
Block a user