瀏覽代碼

qcacld-3.0: Define data structures for new AP requirements

qcacld-2.0 to qcacld-3.0 propagation

Defining data structures for below new requirements.
        - beacon_tx_rate
        - vendor_ie
        - vendor_ie_len
        - vendor_ie_assoc_policy
        - sta_inactivity_timeout
        - tx_pkt_fail_cnt_threshold
        - short_retry_limit
        - long_retry_limit
        - ampdu_size
        - supp_rate_set
        - extended_rate_set

Change-Id: I9d05cd7b8e051c4e9e4912cf866206ae32ec293d
CRs-Fixed: 1020078
(cherry picked from commit 8f57eee853baff54397c68c8cd71aeb50610a56a)
Kondabattini, Ganesh 8 年之前
父節點
當前提交
b72e25cb7f

+ 1 - 0
core/mac/inc/sir_api.h

@@ -687,6 +687,7 @@ typedef struct sSirSmeStartBssReq {
 
 	bool obssEnabled;
 	uint8_t sap_dot11mc;
+	uint8_t beacon_tx_rate;
 
 } tSirSmeStartBssReq, *tpSirSmeStartBssReq;
 

+ 3 - 0
core/mac/src/pe/include/lim_session.h

@@ -480,6 +480,9 @@ typedef struct sPESession       /* Added to Support BT-AMP */
 	tDot11fIEVHTCaps vht_caps;
 	tDot11fIEHTInfo ht_operation;
 	tDot11fIEVHTOperation vht_operation;
+	uint8_t beacon_tx_rate;
+	uint8_t *vendor_ie;
+	uint8_t access_policy;
 } tPESession, *tpPESession;
 
 /*-------------------------------------------------------------------------

+ 1 - 0
core/mac/src/pe/lim/lim_types.h

@@ -197,6 +197,7 @@ typedef struct sLimMlmStartReq {
 	uint8_t ssidHidden;
 	uint8_t wps_state;
 	uint8_t obssProtEnabled;
+	uint8_t beacon_tx_rate;
 } tLimMlmStartReq, *tpLimMlmStartReq;
 
 typedef struct sLimMlmStartCnf {

+ 24 - 0
core/sap/inc/sap_api.h

@@ -496,6 +496,20 @@ struct sap_acs_cfg {
 	uint8_t    vht_seg1_center_ch;
 };
 
+/*
+ * enum vendor_ie_access_policy- access policy
+ * @ACCESS_POLICY_NONE: access policy attribute is not valid
+ * @ACCESS_POLICY_RESPOND_IF_IE_IS_PRESENT: respond to probe req/assoc req
+ *  only if ie is present
+ * @ACCESS_POLICY_DONOT_RESPOND_IF_IE_IS_PRESENT: do not respond to probe req/
+ *  assoc req if ie is present
+*/
+enum vendor_ie_access_policy {
+	ACCESS_POLICY_NONE,
+	ACCESS_POLICY_RESPOND_IF_IE_IS_PRESENT,
+	ACCESS_POLICY_DONOT_RESPOND_IF_IE_IS_PRESENT,
+};
+
 typedef struct sap_Config {
 	tSap_SSIDInfo_t SSIDinfo;
 	eCsrPhyMode SapHw_mode;         /* Wireless Mode */
@@ -555,6 +569,16 @@ typedef struct sap_Config {
 	/* buffer for addn ies comes from hostapd */
 	void *pProbeRespBcnIEsBuffer;
 	uint8_t sap_dot11mc; /* Specify if 11MC is enabled or disabled*/
+	uint8_t beacon_tx_rate;
+	uint8_t *vendor_ie;
+	enum vendor_ie_access_policy vendor_ie_access_policy;
+	uint16_t sta_inactivity_timeout;
+	uint16_t tx_pkt_fail_cnt_threshold;
+	uint8_t short_retry_limit;
+	uint8_t long_retry_limit;
+	uint8_t ampdu_size;
+	tSirMacRateSet supp_rate_set;
+	tSirMacRateSet extended_rate_set;
 } tsap_Config_t;
 
 #ifdef FEATURE_WLAN_AP_AP_ACS_OPTIMIZE

+ 3 - 0
core/sap/src/sap_internal.h

@@ -267,6 +267,9 @@ typedef struct sSapContext {
 	bool is_pre_cac_on;
 	bool pre_cac_complete;
 	uint8_t chan_before_pre_cac;
+	uint8_t beacon_tx_rate;
+	tSirMacRateSet supp_rate_set;
+	tSirMacRateSet extended_rate_set;
 } *ptSapContext;
 
 /*----------------------------------------------------------------------------

+ 3 - 0
core/sme/inc/csr_api.h

@@ -965,6 +965,9 @@ typedef struct tagCsrRoamProfile {
 	/* addIe params */
 	tSirAddIeParams addIeParams;
 	uint8_t sap_dot11mc;
+	uint8_t beacon_tx_rate;
+	tSirMacRateSet supp_rate_set;
+	tSirMacRateSet extended_rate_set;
 } tCsrRoamProfile;
 
 #ifdef FEATURE_WLAN_MCC_TO_SCC_SWITCH

+ 1 - 0
core/sme/inc/csr_internal.h

@@ -359,6 +359,7 @@ typedef struct tagCsrRoamStartBssParams {
 #endif
 	tSirAddIeParams addIeParams;
 	uint8_t sap_dot11mc;
+	uint8_t beacon_tx_rate;
 } tCsrRoamStartBssParams;
 
 typedef struct tagScanCmd {

+ 1 - 0
core/wma/inc/wma.h

@@ -1633,6 +1633,7 @@ struct wma_vdev_start_req {
 	bool is_quarter_rate;
 	uint32_t preferred_tx_streams;
 	uint32_t preferred_rx_streams;
+	uint8_t beacon_tx_rate;
 };
 
 /**

+ 1 - 0
core/wma/inc/wma_if.h

@@ -513,6 +513,7 @@ typedef struct {
 	uint8_t nss;
 	uint8_t nss_2g;
 	uint8_t nss_5g;
+	uint8_t beacon_tx_rate;
 } tAddBssParams, *tpAddBssParams;
 
 /**