Merge branch 'feat/add_bss_color_support_for_softap' into 'master'

feat(wifi): add bss color support for softap

See merge request espressif/esp-idf!33857
This commit is contained in:
Xu Xiao
2024-10-14 15:44:53 +08:00
6 changed files with 14 additions and 10 deletions

View File

@@ -60,7 +60,7 @@ ieee80211_find_ext_elem = 0x40000bb0;
ieee80211_find_ie = 0x40000bb4;
ieee80211_find_ext_ie = 0x40000bb8;
ieee80211_merge_mbssid_profile = 0x40000bbc;
ieee80211_encap_esfbuf_htc = 0x40000bc0;
/*ieee80211_encap_esfbuf_htc = 0x40000bc0;*/
/*wifi_get_macaddr = 0x40000bc4;*/
/*wifi_rf_phy_disable = 0x40000bc8;*/
/*wifi_rf_phy_enable = 0x40000bcc;*/

View File

@@ -27,14 +27,14 @@ esf_buf_recycle = 0x40000bfc;
GetAccess = 0x40000c00;
hal_mac_is_low_rate_enabled = 0x40000c04;
hal_mac_tx_get_blockack = 0x40000c08;
hal_mac_tx_set_ppdu = 0x40000c0c;
/*hal_mac_tx_set_ppdu = 0x40000c0c;*/
hal_mac_tx_clr_mplen = 0x40000c10;
hal_mac_get_txq_state = 0x40000c14;
hal_mac_clr_txq_state = 0x40000c18;
hal_mac_get_txq_complete = 0x40000c1c;
/*hal_mac_deinit_twt_tx = 0x40000c20;*/
hal_mac_is_dma_enable = 0x40000c24;
hal_he_get_bss_color = 0x40000c28;
/*hal_he_get_bss_color = 0x40000c28;*/
hal_he_set_ersu = 0x40000c2c;
hal_he_get_mplen_addr_start = 0x40000c30;
hal_he_get_mplen_addr_end = 0x40000c34;

View File

@@ -60,7 +60,7 @@ ieee80211_find_ext_elem = 0x40000b18;
ieee80211_find_ie = 0x40000b1c;
ieee80211_find_ext_ie = 0x40000b20;
ieee80211_merge_mbssid_profile = 0x40000b24;
ieee80211_encap_esfbuf_htc = 0x40000b28;
/*ieee80211_encap_esfbuf_htc = 0x40000b28;*/
wifi_get_macaddr = 0x40000b2c;
wifi_rf_phy_disable = 0x40000b30;
wifi_rf_phy_enable = 0x40000b34;

View File

@@ -27,14 +27,14 @@ esf_buf_recycle = 0x40000b64;
GetAccess = 0x40000b68;
hal_mac_is_low_rate_enabled = 0x40000b6c;
hal_mac_tx_get_blockack = 0x40000b70;
hal_mac_tx_set_ppdu = 0x40000b74;
/*hal_mac_tx_set_ppdu = 0x40000b74;*/
hal_mac_tx_clr_mplen = 0x40000b78;
hal_mac_get_txq_state = 0x40000b7c;
hal_mac_clr_txq_state = 0x40000b80;
hal_mac_get_txq_complete = 0x40000b84;
hal_mac_deinit_twt_tx = 0x40000b88;
hal_mac_is_dma_enable = 0x40000b8c;
hal_he_get_bss_color = 0x40000b90;
/*hal_he_get_bss_color = 0x40000b90;*/
hal_he_set_ersu = 0x40000b94;
hal_he_get_mplen_addr_start = 0x40000b98;
hal_he_get_mplen_addr_end = 0x40000b9c;

View File

@@ -9,6 +9,7 @@
#include <stdint.h>
#include <stdbool.h>
#include "esp_err.h"
#include "esp_wifi_types.h"
#include "esp_wifi_he_types.h"
#ifdef __cplusplus
@@ -219,15 +220,18 @@ esp_err_t esp_wifi_sta_twt_config(wifi_twt_config_t *config);
/**
* @brief Enable bss color collision detection.
*
* @param[in] enable If true, when the station detects a BSS color collision, it will report the BSS color collision event to the access point (AP).
* @attention Currently, only STA BSS color collision detection is supported.
*
* @param ifx interface to be configured
* @param enable If true, when the STA detects a BSS color collision, it will report the BSS color collision event to the access point (AP).
*
* @return
* - ESP_OK: succeed
* - ESP_ERR_WIFI_IF: Invalid interface
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
* - ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
* - ESP_ERR_NOT_SUPPORTED: This API is not supported in AP mode yet
*/
esp_err_t esp_wifi_sta_enable_bsscolor_collision_detection(bool enable);
esp_err_t esp_wifi_enable_bsscolor_collision_detection(wifi_interface_t ifx, bool enable);
#ifdef __cplusplus
}