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
Dieser Commit ist enthalten in:
Abhishek Singh
2017-06-23 14:58:02 +05:30
committet von snandini
Ursprung d64296923d
Commit 7889a7e84e

Datei anzeigen

@@ -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 !=