소스 검색

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;