Selaa lähdekoodia

qcacld-3.0: Ignore update of HT info for Invalid channel

Currently, driver updates lim global structure, if channel switch
parameters in the beacon/probe rsp have changed. And sends an
indication to HAL with the updated HT parameters. In case if
channel pHTInfo->primaryChannel obtained from a beacon or probe
response is invalid, driver still allows fw to switch to an
invalid channel results assert in fw.

Fix is to ignore HT channel switch parameters updates if an
invalid channel present in beacon or probe response.

Change-Id: I92d9d0917077300f719068e1e0e5cfc282010dba
CRs-Fixed: 2414170
Abhinav Kumar 6 vuotta sitten
vanhempi
sitoutus
667b6b48ea
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      core/mac/src/pe/lim/lim_utils.c

+ 3 - 2
core/mac/src/pe/lim/lim_utils.c

@@ -4010,8 +4010,9 @@ void lim_update_sta_run_time_ht_switch_chnl_params(struct mac_context *mac,
 		return;
 	}
 
-	if (!pHTInfo->primaryChannel) {
-		pe_debug("Ignore as primary channel is 0 in HT info");
+	if (wlan_reg_get_chan_enum(pHTInfo->primaryChannel) ==
+	    INVALID_CHANNEL) {
+		pe_debug("Ignore Invalid channel in HT info");
 		return;
 	}