esp_wifi: optimization wifi rate

1.support disable 11b rate
2.support config espnow rate
3.fix sta negotiate phymode issue
4.update ftm rate
This commit is contained in:
ChenJianxing 2021-01-29 16:33:12 +08:00 committed by zhangyanjiao
parent 2aa6aa8b88
commit 436c3c289e
2 changed files with 29 additions and 2 deletions

View File

@ -1567,7 +1567,6 @@ ppEnqueueRxq = 0x400016c8;
ppEnqueueTxDone = 0x400016cc;
ppGetTxQFirstAvail_Locked = 0x400016d0;
ppGetTxframe = 0x400016d4;
ppMapTxQueue = 0x400016d8;
ppProcTxSecFrame = 0x400016dc;
ppProcessRxPktHdr = 0x400016e0;
ppProcessTxQ = 0x400016e4;
@ -1602,7 +1601,6 @@ rcampduuprate = 0x40001754;
rcClearCurAMPDUSched = 0x40001758;
rcClearCurSched = 0x4000175c;
rcClearCurStat = 0x40001760;
rcGetSched = 0x40001764;
rcLowerSched = 0x40001768;
rcSetTxAmpduLimit = 0x4000176c;
rcTxUpdatePer = 0x40001770;

View File

@ -1169,6 +1169,35 @@ esp_err_t esp_wifi_set_rssi_threshold(int32_t rssi);
*/
esp_err_t esp_wifi_ftm_initiate_session(wifi_ftm_initiator_cfg_t *cfg);
/**
* @brief Enable or disable 11b rate of specified interface
*
* @attention 1. This API should be called after esp_wifi_init() and before esp_wifi_start().
* @attention 2. Only when really need to disable 11b rate call this API otherwise don't call this.
*
* @param ifx Interface to be configured.
* @param disable true means disable 11b rate while false means enable 11b rate.
*
* @return
* - ESP_OK: succeed
* - others: failed
*/
esp_err_t esp_wifi_config_11b_rate(wifi_interface_t ifx, bool disable);
/**
* @brief Config ESPNOW rate of specified interface
*
* @attention 1. This API should be called after esp_wifi_init() and before esp_wifi_start().
*
* @param ifx Interface to be configured.
* @param rate Only support 1M, 6M and MCS0_LGI
*
* @return
* - ESP_OK: succeed
* - others: failed
*/
esp_err_t esp_wifi_config_espnow_rate(wifi_interface_t ifx, wifi_phy_rate_t rate);
#ifdef __cplusplus
}
#endif