qcacld-3.0: Correctly set channelBondingMode5GHz

In wlan_hdd_update_phymode() when the curr_band is set to BAND_5G the
channelBondingMode5GHz is not correctly set. Fix the logic which
currently has duplicated test for BAND_2G to test for both BAND_2G and
BAND_5G.

Change-Id: I70ed07d12ae891374e511905213ef7fcc7a7f1f1
CRs-Fixed: 2232919
This commit is contained in:
Jeff Johnson 2018-04-28 17:20:56 -07:00 • committed by nshrivas
commit 3d72577fe2

View file

@ -4072,7 +4072,7 @@ int wlan_hdd_update_phymode(struct net_device *net, tHalHandle hal,
phddctx->config->Is11hSupportEnabled;
if (curr_band == BAND_2G)
sme_config->csrConfig.channelBondingMode24GHz = chwidth;
else if (curr_band == BAND_2G)
else if (curr_band == BAND_5G)
sme_config->csrConfig.channelBondingMode5GHz = chwidth;
else {
sme_config->csrConfig.channelBondingMode24GHz = chwidth;