qcacld-3.0: Relocate HDD ini items (1)

Relocate below HDD ini items as per converged infrastructure.
1. CFG_ENABLE_RUNTIME_PM
2. CFG_STA_KEEPALIVE_METHOD_NAME
3. CFG_ENABLE_MCC_ENABLED_NAME
4. CFG_ENABLE_SAP_SUSPEND
5. CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP_NAME
6. CFG_INFORM_BSS_RSSI_RAW_NAME
7. CFG_AP_ENABLE_RANDOM_BSSID_NAME
8. CFG_VC_MODE_BITMAP

Change-Id: I881c87f9ca73804d03af358163c9a043b3193c81
CRs-Fixed: 2357174
This commit is contained in:
Sourav Mohapatra
2018-11-16 11:29:54 +05:30
committed by nshrivas
parent 6463ab4cf0
commit 0dfe5550e0
19 changed files with 423 additions and 267 deletions

View File

@@ -503,6 +503,28 @@
CFG_VALUE_OR_DEFAULT, \
"ITO Repeat Count")
/*
* <ini>
* gEnableDeauthToDisassocMap - Enables deauth to disassoc map
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to set default disassoc map
*
* Related: None
*
* Supported Feature: STA
*
* Usage: External
*
* </ini>
*/
#define CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP CFG_INI_BOOL( \
"gEnableDeauthToDisassocMap", \
0, \
"Enables deauth to disassoc map")
/*
* <ini>
* gEnableDebugLog - Enable/Disable the Connection related logs
@@ -548,6 +570,7 @@
CFG(CFG_ENABLE_CRASH_INJECT) \
CFG(CFG_ENABLE_LPASS_SUPPORT) \
CFG(CFG_ENABLE_SELF_RECOVERY) \
CFG(CFG_ENABLE_DEAUTH_TO_DISASSOC_MAP) \
CFG(CFG_SAP_DOT11MC) \
CFG(CFG_ENABLE_FATAL_EVENT_TRIGGER) \
CFG(CFG_SUB_20_CHANNEL_WIDTH) \

View File

@@ -578,7 +578,31 @@
"GO force 11n for 11ac")
/*
* <ini>
* gEnableApRandomBssid - Create ramdom BSSID
* @Min: 0
* @Max: 1
* @Default: 0
*
* This ini is used to create a random BSSID in SoftAP mode to meet
* the Android requirement.
*
* Related: None.
*
* Supported Feature: SAP
*
* Usage: Internal/External
*
* </ini>
*/
#define CFG_AP_ENABLE_RANDOM_BSSID CFG_INI_BOOL( \
"gEnableApRandomBssid", \
0, \
"Create ramdom BSSID")
#define CFG_SAP_ALL \
CFG(CFG_AP_ENABLE_RANDOM_BSSID) \
CFG(CFG_SSID) \
CFG(CFG_BEACON_INTERVAL) \
CFG(CFG_DTIM_PERIOD) \

View File

@@ -397,6 +397,33 @@
1, \
"Support for AP power constraint")
/*
* <ini>
* gStaKeepAliveMethod - Which keepalive method to use
* @Min: 0
* @Max: 1
* @Default: 1
*
* This ini determines which keepalive method to use for station interfaces
* 1) Use null data packets
* 2) Use gratuitous ARP packets
*
* Related: gStaKeepAlivePeriod, gApKeepAlivePeriod, gGoKeepAlivePeriod
*
* Supported Feature: STA, Keepalive
*
* Usage: External
*
* </ini>
*/
#define CFG_STA_KEEPALIVE_METHOD CFG_INI_INT( \
"gStaKeepAliveMethod", \
MLME_STA_KEEPALIVE_NULL_DATA, \
MLME_STA_KEEPALIVE_COUNT - 1, \
MLME_STA_KEEPALIVE_GRAT_ARP, \
CFG_VALUE_OR_DEFAULT, \
"Which keepalive method to use")
#define CFG_STA_ALL \
CFG(CFG_INFRA_STA_KEEP_ALIVE_PERIOD) \
CFG(CFG_TGT_GTX_USR_CFG) \
@@ -411,6 +438,7 @@
CFG(CFG_FILS_MAX_CHAN_GUARD_TIME) \
CFG(CFG_FORCE_RSNE_OVERRIDE) \
CFG(CFG_SINGLE_TID_RC) \
CFG(CFG_STA_KEEPALIVE_METHOD) \
CFG(CFG_WT_CNF_TIMEOUT) \
CFG(CFG_CURRENT_RSSI) \
CFG(CFG_TX_POWER_CTRL)

View File

@@ -568,6 +568,7 @@ struct wlan_mlme_cfg_sap {
uint8_t sap_pref_chan_location;
bool sap_force_11n_for_11ac;
bool go_force_11n_for_11ac;
bool ap_random_bssid_enable;
};
/**
@@ -935,6 +936,7 @@ struct wlan_mlme_generic {
uint8_t debug_packet_log;
bool enabled_11h;
bool enabled_11d;
bool enable_deauth_to_disassoc_map;
};
/*
@@ -1046,6 +1048,19 @@ struct wlan_mlme_nss_chains {
bool disable_tx_mrc[NSS_CHAINS_BAND_MAX];
};
/**
* enum station_keepalive_method - available keepalive methods for stations
* @MLME_STA_KEEPALIVE_NULL_DATA: null data packet
* @MLME_STA_KEEPALIVE_GRAT_ARP: gratuitous ARP packet
* @MLME_STA_KEEPALIVE_COUNT: number of method options available
*/
enum station_keepalive_method {
MLME_STA_KEEPALIVE_NULL_DATA,
MLME_STA_KEEPALIVE_GRAT_ARP,
/* keep at the end */
MLME_STA_KEEPALIVE_COUNT
};
/**
* struct wlan_mlme_sta_cfg - MLME STA configuration items
* @sta_keep_alive_period: Sends NULL frame to AP period
@@ -1082,6 +1097,7 @@ struct wlan_mlme_sta_cfg {
bool force_rsne_override;
bool single_tid;
bool allow_tpc_from_ap;
enum station_keepalive_method sta_keepalive_method;
};
/**

View File

@@ -2473,6 +2473,17 @@ QDF_STATUS
ucfg_mlme_get_current_mcs_set(struct wlan_objmgr_psoc *psoc, uint8_t *buf,
qdf_size_t *len);
/**
* ucfg_mlme_get_sta_keepalive_method() - Get sta_keepalive_method
* @psoc: pointer to psoc object
* @val: Value to pass to the caller
*
* Return: QDF Status
*/
QDF_STATUS
ucfg_mlme_get_sta_keepalive_method(struct wlan_objmgr_psoc *psoc,
enum station_keepalive_method *val);
/**
* ucfg_mlme_get_wmm_dir_ac_vi() - Get TSPEC direction
* for VI
@@ -3068,4 +3079,30 @@ ucfg_mlme_set_sap_uapsd_flag(struct wlan_objmgr_psoc *psoc, bool value)
return wlan_mlme_set_sap_uapsd_flag(psoc, value);
}
/**
* ucfg_mlme_get_enable_deauth_to_disassoc_map() - Enable deauth_to_disassoc_map
* @psoc: pointer to psoc object
* @value: Value that needs to be set from the caller
*
* UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
QDF_STATUS
ucfg_mlme_get_enable_deauth_to_disassoc_map(struct wlan_objmgr_psoc *psoc,
bool *value);
/**
* ucfg_mlme_get_ap_random_bssid_enable() - Enable random bssid
* @psoc: pointer to psoc object
* @value: Value that needs to be set from the caller
*
* UCFG API to be used by HDD/OSIF callers
*
* Return: QDF Status
*/
QDF_STATUS
ucfg_mlme_get_ap_random_bssid_enable(struct wlan_objmgr_psoc *psoc,
bool *value);
#endif /* _WLAN_MLME_UCFG_API_H_ */