Browse Source

qcacld-3.0: Do not change channel BW if channel is 0 in HT info

Do not change channel BW if channel is 0 in HT info, As this will
cause invalid channel and phymode sent to firmware and result into
crash.

Change-Id: Ia629314b9ced299afa5d89092d0a9fc5c7cb6b4c
CRs-Fixed: 2065143
Abhishek Singh 7 years ago
parent
commit
7889a7e84e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      core/mac/src/pe/lim/lim_utils.c

+ 5 - 0
core/mac/src/pe/lim/lim_utils.c

@@ -4328,6 +4328,11 @@ void lim_update_sta_run_time_ht_switch_chnl_params(tpAniSirGlobal pMac,
 		return;
 	}
 
+	if (!pHTInfo->primaryChannel) {
+		pe_debug("Ignore as primary channel is 0 in HT info");
+		return;
+	}
+
 	if (psessionEntry->htSecondaryChannelOffset !=
 	    (uint8_t) pHTInfo->secondaryChannelOffset
 	    || psessionEntry->htRecommendedTxWidthSet !=