You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N).
679
679
* if CONFIG_SOC_WIFI_HE_SUPPORT and band mode is 2.4G, the default protocol is (WIFI_PROTOCOL_11B|WIFI_PROTOCOL_11G|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_11AX).
680
-
* if CONFIG_SOC_WIFI_HE_SUPPORT_5G and band mode is 5G, the default protocol is (WIFI_PROTOCOL_11A|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_11AC|WIFI_PROTOCOL_11AX).
680
+
* if CONFIG_SOC_WIFI_SUPPORT_5G and band mode is 5G, the default protocol is (WIFI_PROTOCOL_11A|WIFI_PROTOCOL_11N|WIFI_PROTOCOL_11AC|WIFI_PROTOCOL_11AX).
681
681
*
682
682
* @attention 1. When WiFi band mode is 2.4G only, support 802.11b or 802.11bg or 802.11bgn or 802.11bgnax or LR mode
683
683
* @attention 2. When WiFi band mode is 5G only, support 802.11a or 802.11an or 802.11anac or 802.11anacax
* @attention 1. When the WiFi band mode is set to 2.4G only, it operates exclusively on the 2.4GHz channels.
1654
1654
* @attention 2. When the WiFi band mode is set to 5G only, it operates exclusively on the 5GHz channels.
1655
1655
* @attention 3. When the WiFi band mode is set to 2.4G + 5G (WIFI_BAND_MODE_AUTO), it can operate on both the 2.4GHz and 5GHz channels.
1656
-
* @attention 4. WiFi band mode can be set to 5G only or 2.4G + 5G (WIFI_BAND_MODE_AUTO) if CONFIG_SOC_WIFI_HE_SUPPORT_5G is supported.
1657
-
* @attention 5. If CONFIG_SOC_WIFI_HE_SUPPORT_5G is not supported, the API will return ESP_ERR_INVALID_ARG when the band mode is set to either 5G only or 2.4G + 5G (WIFI_BAND_MODE_AUTO).
1656
+
* @attention 4. WiFi band mode can be set to 5G only or 2.4G + 5G (WIFI_BAND_MODE_AUTO) if CONFIG_SOC_WIFI_SUPPORT_5G is supported.
1657
+
* @attention 5. If CONFIG_SOC_WIFI_SUPPORT_5G is not supported, the API will return ESP_ERR_INVALID_ARG when the band mode is set to either 5G only or 2.4G + 5G (WIFI_BAND_MODE_AUTO).
1658
1658
* @attention 6. When a WiFi band mode change triggers a band change, if no channel is set for the current band, a default channel will be assigned: channel 1 for 2.4G band and channel 36 for 5G band.
1659
1659
*
1660
1660
* @param[in] band_mode store the band mode of WiFi
uint8_tschan; /**< start channel of the allowed 2.4GHz WiFi channels */
53
+
uint8_tnchan; /**< total channel number of the allowed 2.4GHz WiFi channels */
54
54
int8_tmax_tx_power; /**< This field is used for getting WiFi maximum transmitting power, call esp_wifi_set_max_tx_power to set the maximum transmitting power. */
55
55
wifi_country_policy_tpolicy; /**< country policy */
56
+
#ifSOC_WIFI_SUPPORT_5G
57
+
uint32_twifi_5g_channel_mask; /**< A bitmask representing the allowed 5GHz WiFi channels.
58
+
Each bit in the mask corresponds to a specific channel as wifi_5g_channel_bit_t shown.
59
+
Bitmask set to 0 indicates 5GHz channels are allowed according to local regulatory rules.
60
+
Please note that configured bitmask takes effect only when policy is manual. */
uint16_tghz_2_channels; /**< Represents 2.4 GHz channels, that bits can be set as wifi_2g_channel_bit_t shown. */
188
+
uint32_tghz_5_channels; /**< Represents 5 GHz channels, that bits can be set as wifi_5g_channel_bit_t shown. */
183
189
} wifi_scan_channel_bitmap_t;
184
190
185
191
/** @brief Parameters for an SSID scan. */
@@ -191,7 +197,9 @@ typedef struct {
191
197
wifi_scan_type_tscan_type; /**< scan type, active or passive */
192
198
wifi_scan_time_tscan_time; /**< scan time per channel */
193
199
uint8_thome_chan_dwell_time; /**< time spent at home channel between scanning consecutive channels. */
194
-
wifi_scan_channel_bitmap_tchannel_bitmap; /**< Channel bitmap for setting specific channels to be scanned. For 2.4ghz channels set ghz_2_channels from BIT(1) to BIT(14) from LSB to MSB order to indicate channels to be scanned. Currently scanning in 5ghz channels is not supported. Please note that the 'channel' parameter above needs to be set to 0 to allow scanning by bitmap. */
200
+
wifi_scan_channel_bitmap_tchannel_bitmap; /**< Channel bitmap for setting specific channels to be scanned.
201
+
Please note that the 'channel' parameter above needs to be set to 0 to allow scanning by bitmap.
202
+
Also, note that only allowed channels configured by wifi_country_t can be scaned. */
0 commit comments