qcacld-3.0: Add support for deauth retry for STA

Add support to retry the deauth frame if the Tx is not success if
user configured the retry count.

Change-Id: Id128b4a70a276ee86270372ff7954e40bde8123c
CRs-Fixed: 2754305
This commit is contained in:
Kiran Kumar Lokere
2020-08-12 17:33:31 -07:00
committed by snandini
parent c4036d58ad
commit 0044d8c41c
6 changed files with 71 additions and 0 deletions

View File

@@ -193,6 +193,31 @@
0, \
"send deauth before connection")
/*
* <ini>
* deauth_retry_cnt- No. of deauth retries if the Tx is failed
* @Min: 0
* @Max: 4
* @Default: 2
*
* This ini is used to set retry deauth if Tx is not success.
*
* Related: None
*
* Supported Feature: STA
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_DEAUTH_RETRY_CNT CFG_INI_UINT( \
"deauth_retry_cnt", \
0, \
4, \
2, \
CFG_VALUE_OR_DEFAULT, \
"Set Deauth retry count")
/*
* <ini>
* gDot11PMode - 802.11p mode
@@ -441,6 +466,7 @@
CFG(CFG_PPS_ENABLE_5G_EBT) \
CFG(CFG_ENABLE_DEAUTH_BEFORE_CONNECTION) \
CFG(CFG_DOT11P_MODE) \
CFG(CFG_DEAUTH_RETRY_CNT) \
CFG(CFG_ENABLE_GO_CTS2SELF_FOR_STA) \
CFG(CFG_QCN_IE_SUPPORT) \
CFG(CFG_STA_MCAST_MCC_REST_TIME) \

View File

@@ -1331,6 +1331,7 @@ enum station_keepalive_method {
* @dot11p_mode: Set 802.11p mode
* @fils_max_chan_guard_time: Set maximum channel guard time
* @current_rssi: Current rssi
* @deauth_retry_cnt: Deauth retry count
* @ignore_peer_erp_info: Ignore peer infrormation
* @sta_prefer_80mhz_over_160mhz: Set Sta preference to connect in 80HZ/160HZ
* @enable_5g_ebt: Set default 5G early beacon termination
@@ -1351,6 +1352,7 @@ struct wlan_mlme_sta_cfg {
enum dot11p_mode dot11p_mode;
uint8_t fils_max_chan_guard_time;
uint8_t current_rssi;
uint8_t deauth_retry_cnt;
bool ignore_peer_erp_info;
bool sta_prefer_80mhz_over_160mhz;
bool enable_5g_ebt;