Browse Source

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 năm trước cách đây
mục cha
commit
96f6e5174d
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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;