mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
fix(wifi): modify bandwidth in wifi_ap_record_t
This commit is contained in:
parent
295f1576e1
commit
504a248ba1
@ -269,6 +269,19 @@ typedef enum {
|
||||
WIFI_CIPHER_TYPE_UNKNOWN, /**< The cipher type is unknown */
|
||||
} wifi_cipher_type_t;
|
||||
|
||||
/**
|
||||
* @brief Wi-Fi bandwidth type
|
||||
*/
|
||||
typedef enum {
|
||||
WIFI_BW_HT20 = 1, /**< Bandwidth is HT20 */
|
||||
WIFI_BW20 = WIFI_BW_HT20, /**< Bandwidth is 20 MHz */
|
||||
WIFI_BW_HT40 = 2, /**< Bandwidth is HT40 */
|
||||
WIFI_BW40 = WIFI_BW_HT40, /**< Bandwidth is 40 MHz */
|
||||
WIFI_BW80 = 3, /**< Bandwidth is 80 MHz */
|
||||
WIFI_BW160 = 4, /**< Bandwidth is 160 MHz */
|
||||
WIFI_BW80_BW80 = 5, /**< Bandwidth is 80 + 80 MHz */
|
||||
} wifi_bandwidth_t;
|
||||
|
||||
/**
|
||||
* @brief Wi-Fi antenna
|
||||
*/
|
||||
@ -314,9 +327,7 @@ typedef struct {
|
||||
uint32_t reserved: 22; /**< Bit: 10..31 reserved */
|
||||
wifi_country_t country; /**< Country information of AP */
|
||||
wifi_he_ap_info_t he_ap; /**< HE AP info */
|
||||
uint8_t bandwidth; /**< For either 20 MHz or 40 MHz operation, the channel width field is set to 0.
|
||||
For AP 80 MHz, this value is set to 1. For AP 160 MHz, this value is set to 2.
|
||||
For AP 80 + 80 MHz, this value is set to 3.*/
|
||||
wifi_bandwidth_t bandwidth; /**< Bandwidth of AP */
|
||||
uint8_t vht_ch_freq1; /**< This fields are used only AP bandwidth is 80 and 160 MHz, to transmit the center channel
|
||||
frequency of the BSS. For AP bandwidth is 80 + 80 MHz, it is the center channel frequency
|
||||
of the lower frequency segment.*/
|
||||
@ -458,19 +469,6 @@ typedef struct {
|
||||
uint16_t ghz_5g; /**< Represents 5 GHz protocol, support 802.11a or 802.11n or 802.11ac or 802.11ax */
|
||||
} wifi_protocols_t;
|
||||
|
||||
/**
|
||||
* @brief Wi-Fi bandwidth type
|
||||
*/
|
||||
typedef enum {
|
||||
WIFI_BW_HT20 = 1, /**< Bandwidth is HT20 */
|
||||
WIFI_BW20 = WIFI_BW_HT20, /**< Bandwidth is 20 MHz */
|
||||
WIFI_BW_HT40 = 2, /**< Bandwidth is HT40 */
|
||||
WIFI_BW40 = WIFI_BW_HT40, /**< Bandwidth is 40 MHz */
|
||||
WIFI_BW80 = 3, /**< Bandwidth is 80 MHz */
|
||||
WIFI_BW160 = 4, /**< Bandwidth is 160 MHz */
|
||||
WIFI_BW80_BW80 = 5, /**< Bandwidth is 80 + 80 MHz */
|
||||
} wifi_bandwidth_t;
|
||||
|
||||
/**
|
||||
* @brief Description of a Wi-Fi band bandwidths
|
||||
*/
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 110a486f374d2d0e5c417bd0c7df86ce9a1a664b
|
||||
Subproject commit a663beed1a9ef3a316e8502268c14e053db108e1
|
Loading…
x
Reference in New Issue
Block a user