Pārlūkot izejas kodu

qcacld-3.0: Update the ini params according to the BDF setting

Currently the driver just start the vdev according to the ini
params, without consdering the tx, rx chainmask supported by the
FW per band, per mac, which can lead to connection in 2x2, even
though FW is not capable of 2 antennas on a particular band.

Fix is to intersect both the tx, rx chainmask for both bands,
and change the ini to minimum of the nss supported by ini, and
the BDF setting of the chains.

Change-Id: Ib0e9bac19959bbcf9bade7dbd78674be4099a23d
CRs-Fixed: 2414103
gaurank kathpalia 6 gadi atpakaļ
vecāks
revīzija
32dd2d18c6
1 mainītis faili ar 14 papildinājumiem un 0 dzēšanām
  1. 14 0
      mlme/dispatcher/inc/wlan_mlme_public_struct.h

+ 14 - 0
mlme/dispatcher/inc/wlan_mlme_public_struct.h

@@ -834,6 +834,20 @@ struct wlan_mlme_he_caps {
 };
 #endif
 
+/**
+ * struct wlan_mlme_chain_cfg - Chain info related structure
+ * @max_tx_chains_2g: max tx chains supported in 2.4ghz band
+ * @max_rx_chains_2g: max rx chains supported in 2.4ghz band
+ * @max_tx_chains_5g: max tx chains supported in 5ghz band
+ * @max_rx_chains_5g: max rx chains supported in 5ghz band
+ */
+struct wlan_mlme_chain_cfg {
+	uint8_t max_tx_chains_2g;
+	uint8_t max_rx_chains_2g;
+	uint8_t max_tx_chains_5g;
+	uint8_t max_rx_chains_5g;
+};
+
 /**
  * struct wlan_mlme_rates - RATES related config items
  * @cfpPeriod: cfp period info