瀏覽代碼

qcacld-3.0: Modify mode check for 11ACrates

Currently to set11ACRates checking the mode
as 11ac or 11ac_only, for higher modes like
11ax which will support 11ac as well skips the
set11ACRates.

Modify condition to set11ACRates for all 11ac
supported modes.

Change-Id: Ic6bd15afcc08bd308ac3f68f149c608de63ccaba
CRs-Fixed: 3305714
Divyajyothi Goparaju 2 年之前
父節點
當前提交
96f6e5174d
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      core/hdd/src/wlan_hdd_hostapd_wext.c

+ 3 - 2
core/hdd/src/wlan_hdd_hostapd_wext.c

@@ -691,8 +691,9 @@ static __iw_softap_setparam(struct net_device *dev,
 		struct sap_config *config =
 			&adapter->session.ap.sap_config;
 
-		if (config->SapHw_mode != eCSR_DOT11_MODE_11ac &&
-		    config->SapHw_mode != eCSR_DOT11_MODE_11ac_ONLY) {
+		if (config->SapHw_mode < eCSR_DOT11_MODE_11ac ||
+		    config->SapHw_mode == eCSR_DOT11_MODE_11ax_ONLY ||
+		    config->SapHw_mode == eCSR_DOT11_MODE_11be_ONLY) {
 			hdd_err("SET_VHT_RATE: SapHw_mode= 0x%x, ch_freq: %d",
 			       config->SapHw_mode, config->chan_freq);
 			ret = -EIO;