From c045eb360000133d8a2e8cf389aaa1540d255f1d Mon Sep 17 00:00:00 2001 From: yinqingzhao Date: Wed, 25 Mar 2026 19:50:20 +0800 Subject: [PATCH] feat(wifi): support skip whole band when scanning --- components/esp_wifi/include/esp_wifi_types_generic.h | 12 +++++++++--- components/esp_wifi/lib | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/components/esp_wifi/include/esp_wifi_types_generic.h b/components/esp_wifi/include/esp_wifi_types_generic.h index cc98293dc96..502f345de57 100644 --- a/components/esp_wifi/include/esp_wifi_types_generic.h +++ b/components/esp_wifi/include/esp_wifi_types_generic.h @@ -1,5 +1,5 @@ /* - * SPDX-FileCopyrightText: 2015-2025 Espressif Systems (Shanghai) CO LTD + * SPDX-FileCopyrightText: 2015-2026 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ @@ -228,8 +228,14 @@ typedef struct { * @brief Channel bitmap for setting specific channels to be scanned */ typedef struct { - uint16_t ghz_2_channels; /**< Represents 2.4 GHz channels, that bits can be set as wifi_2g_channel_bit_t shown. */ - uint32_t ghz_5_channels; /**< Represents 5 GHz channels, that bits can be set as wifi_5g_channel_bit_t shown. */ + uint16_t ghz_2_channels; /**< Represents 2.4 GHz channels. + bit0: band bypass, 0: scan as bitmap, 1: bypass all channels of 2.4GHz. + bit1-bit14: represents channels can be set as wifi_2g_channel_bit_t shown. + bit15: reserved. */ + uint32_t ghz_5_channels; /**< Represents 5 GHz channels. + bit0: band bypass, 0: scan as bitmap, 1: bypass all channels of 5GHz. + bit1-bit28: represents channels can be set as wifi_5g_channel_bit_t shown. + bit29-bit31: reserved. */ } wifi_scan_channel_bitmap_t; /** diff --git a/components/esp_wifi/lib b/components/esp_wifi/lib index b87cce81803..2225a60daa0 160000 --- a/components/esp_wifi/lib +++ b/components/esp_wifi/lib @@ -1 +1 @@ -Subproject commit b87cce81803b85c3639fb14bac6c24cff6d0fbad +Subproject commit 2225a60daa01cdc304181de9a87f5eb8d3be5e33