Selaa lähdekoodia

qcacld-3.0: Update scan channel list with HE capability

Update the scan channel list with HE capability information when
the channel list is sent to FW so that FW includes the HE capabilities
IE in the probe request frame during scan.

Change-Id: I1ad3b15e447845ac06d30e92195b5e4ab8a78d9d
CRs-Fixed: 2467024
Kiran Kumar Lokere 5 vuotta sitten
vanhempi
sitoutus
acf277ac9a
3 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  1. 1 0
      core/mac/inc/sir_api.h
  2. 6 0
      core/sme/src/csr/csr_api_roam.c
  3. 3 0
      core/wma/src/wma_scan_roam.c

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

@@ -2582,6 +2582,7 @@ typedef struct sSirUpdateChan {
 	uint8_t ht_en;
 	uint8_t vht_en;
 	uint8_t vht_24_en;
+	bool he_en;
 	tSirUpdateChanParam chanParam[1];
 } tSirUpdateChanList, *tpSirUpdateChanList;
 

+ 6 - 0
core/sme/src/csr/csr_api_roam.c

@@ -1158,6 +1158,12 @@ QDF_STATUS csr_update_channel_list(struct mac_context *mac)
 			 eCSR_CFG_DOT11_MODE_11N_ONLY)) {
 		pChanList->ht_en = true;
 	}
+	if ((mac->roam.configParam.uCfgDot11Mode == eCSR_CFG_DOT11_MODE_AUTO) ||
+	    (mac->roam.configParam.uCfgDot11Mode == eCSR_CFG_DOT11_MODE_11AX) ||
+	    (mac->roam.configParam.uCfgDot11Mode ==
+	     eCSR_CFG_DOT11_MODE_11AX_ONLY))
+		pChanList->he_en = true;
+
 	msg.type = WMA_UPDATE_CHAN_LIST_REQ;
 	msg.reserved = 0;
 	msg.bodyptr = pChanList;

+ 3 - 0
core/wma/src/wma_scan_roam.c

@@ -152,6 +152,9 @@ QDF_STATUS wma_update_channel_list(WMA_HANDLE handle,
 		if (chan_list->ht_en)
 			chan_p->allow_ht = 1;
 
+		if (chan_list->he_en)
+			chan_p->allow_he = 1;
+
 		if (chan_list->chanParam[i].half_rate)
 			chan_p->half_rate = 1;
 		else if (chan_list->chanParam[i].quarter_rate)