qcacld-3.0: Code refine for 4 ini items
1) Refine the documentation text of 4 ini items: gStaKeepAlivePeriod gApKeepAlivePeriod gChannelBondingMode5GHz gChannelBondingMode24GHz 2) Fix a discrepancy which happens when ini cfg values are converted from those defined in enum eIniChanBondState to the corresponding values in enum ePhyChanBondState. 3) Use the related APIs to setup channel bonding modes instead of directly assigning values. 4) Remove the redundant inclusion of the following two header files in csr_api_roam.c: cfg_ucfg_api.h wlan_mlme_api.h Change-Id: I43c1e5a05bbb34952a5c7bdbde734f4014592c12 CRs-Fixed: 2416991
This commit is contained in:
parent
361e1786c6
commit
442b9f2ccb
@ -167,6 +167,18 @@
|
||||
*
|
||||
* This ini is used to set default channel bonding mode 24GHZ
|
||||
*
|
||||
* 0 - 20MHz IF bandwidth centered on IF carrier
|
||||
* 1 - 40MHz IF bandwidth with lower 20MHz supporting the primary channel
|
||||
* 2 - reserved
|
||||
* 3 - 40MHz IF bandwidth with higher 20MHz supporting the primary channel
|
||||
* 4 - 20/40MHZ offset LOW 40/80MHZ offset CENTERED
|
||||
* 5 - 20/40MHZ offset CENTERED 40/80MHZ offset CENTERED
|
||||
* 6 - 20/40MHZ offset HIGH 40/80MHZ offset CENTERED
|
||||
* 7 - 20/40MHZ offset LOW 40/80MHZ offset LOW
|
||||
* 8 - 20/40MHZ offset HIGH 40/80MHZ offset LOW
|
||||
* 9 - 20/40MHZ offset LOW 40/80MHZ offset HIGH
|
||||
* 10 - 20/40MHZ offset-HIGH 40/80MHZ offset HIGH
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: STA
|
||||
@ -192,6 +204,8 @@
|
||||
*
|
||||
* This ini is used to set default channel bonding mode 5GHZ
|
||||
*
|
||||
* Values of 0 - 10 have the same meanings as for gChannelBondingMode24GHz.
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
* Supported Feature: STA
|
||||
|
@ -25,13 +25,15 @@
|
||||
|
||||
/*
|
||||
* <ini>
|
||||
* gStaKeepAlivePeriod - Sends NULL frame to AP periodically in
|
||||
* seconds to notify STA's existence
|
||||
* gStaKeepAlivePeriod - STA keep alive period
|
||||
*
|
||||
*
|
||||
* @Min: 0
|
||||
* @Max: 1000
|
||||
* @Default: 60
|
||||
*
|
||||
* This ini is used to send default NULL frame to AP
|
||||
* This ini is used to control how frequently STA should send NULL frames to AP
|
||||
* (period in seconds) to notify AP of its existence.
|
||||
*
|
||||
* Related: None
|
||||
*
|
||||
|
@ -219,7 +219,7 @@
|
||||
* @Max: 65535
|
||||
* @Default: 20
|
||||
*
|
||||
* This ini is used to set keep alive period of AP
|
||||
* This ini is used to set keep alive period(in seconds) of AP
|
||||
*
|
||||
* Related: None.
|
||||
*
|
||||
|
@ -161,16 +161,16 @@ typedef enum {
|
||||
|
||||
typedef enum {
|
||||
eCSR_INI_SINGLE_CHANNEL_CENTERED = 0,
|
||||
eCSR_INI_DOUBLE_CHANNEL_HIGH_PRIMARY,
|
||||
eCSR_INI_DOUBLE_CHANNEL_LOW_PRIMARY,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH,
|
||||
eCSR_INI_CHANNEL_BONDING_STATE_MAX
|
||||
eCSR_INI_DOUBLE_CHANNEL_LOW_PRIMARY = 1,
|
||||
eCSR_INI_DOUBLE_CHANNEL_HIGH_PRIMARY = 3,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_CENTERED = 4,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_CENTERED_40MHZ_CENTERED = 5,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_CENTERED = 6,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_LOW = 7,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_LOW = 8,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_LOW_40MHZ_HIGH = 9,
|
||||
eCSR_INI_QUADRUPLE_CHANNEL_20MHZ_HIGH_40MHZ_HIGH = 10,
|
||||
eCSR_INI_CHANNEL_BONDING_STATE_MAX = 11
|
||||
} eIniChanBondState;
|
||||
|
||||
#define CSR_RSN_PMKID_SIZE 16
|
||||
|
@ -55,10 +55,9 @@
|
||||
#include <wlan_action_oui_public_struct.h>
|
||||
#include <wlan_action_oui_ucfg_api.h>
|
||||
#include "wlan_mlme_api.h"
|
||||
#include "wlan_mlme_ucfg_api.h"
|
||||
#include <wlan_utility.h>
|
||||
#include "cfg_mlme.h"
|
||||
#include "cfg_ucfg_api.h"
|
||||
#include "wlan_mlme_api.h"
|
||||
#include "wlan_mlme_public_struct.h"
|
||||
#include <wlan_crypto_global_api.h>
|
||||
#include "wlan_qct_sys.h"
|
||||
@ -1333,12 +1332,14 @@ void csr_set_global_cfgs(struct mac_context *mac)
|
||||
*/
|
||||
if (cfg_in_range(CFG_CHANNEL_BONDING_MODE_5GHZ,
|
||||
mac->roam.configParam.channelBondingMode5GHz))
|
||||
mac->mlme_cfg->feature_flags.channel_bonding_mode_5ghz =
|
||||
mac->roam.configParam.channelBondingMode5GHz;
|
||||
ucfg_mlme_set_channel_bonding_5ghz(mac->psoc,
|
||||
mac->roam.configParam.
|
||||
channelBondingMode5GHz);
|
||||
if (cfg_in_range(CFG_CHANNEL_BONDING_MODE_24GHZ,
|
||||
mac->roam.configParam.channelBondingMode24GHz))
|
||||
mac->mlme_cfg->feature_flags.channel_bonding_mode_24ghz =
|
||||
mac->roam.configParam.channelBondingMode24GHz;
|
||||
ucfg_mlme_set_channel_bonding_24ghz(mac->psoc,
|
||||
mac->roam.configParam.
|
||||
channelBondingMode24GHz);
|
||||
|
||||
if (cfg_in_range(CFG_HEART_BEAT_THRESHOLD,
|
||||
mac->roam.configParam.HeartbeatThresh24))
|
||||
|
Loading…
Reference in New Issue
Block a user