qcacmn: set center freq segment0 for channel params in 2g HT20 mode

In the routine sap_ch_params_to_bonding_channels, the channels is set
invalid value 0 if center freq segment0 for channel params is 0.

ch_params->center_freq_seg0 should be set for 2g HT20 mode.

Change-Id: I063f1341da5a4934c97dec4bcda9367101de7cc5
CRs-Fixed: 2179368
This commit is contained in:
bings
2018-01-26 17:12:15 +08:00
committed by snandini
parent b004c6d432
commit 6c40b760d5

View File

@@ -1257,8 +1257,10 @@ static void reg_set_2g_channel_params(struct wlan_objmgr_pdev *pdev,
HIGH_PRIMARY_CH; HIGH_PRIMARY_CH;
ch_params->center_freq_seg0 = ch_params->center_freq_seg0 =
(oper_ch + sec_ch_2g)/2; (oper_ch + sec_ch_2g)/2;
} else } else {
ch_params->sec_ch_offset = NO_SEC_CH; ch_params->sec_ch_offset = NO_SEC_CH;
ch_params->center_freq_seg0 = oper_ch;
}
break; break;
} }