mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 13:44:26 -04:00
qcacld-3.0: Use primary channel in OCI
Primary channel should be used in OCI. Change-Id: I1e92efd5b0348f58bc951dc459e08091737ced9f CRs-Fixed: 2806607
This commit is contained in:
parent
38bcc40811
commit
29544d3eb7
1 changed files with 6 additions and 5 deletions
|
|
@ -5095,13 +5095,14 @@ lim_fill_oci_params(struct mac_context *mac, struct pe_session *session,
|
|||
tDot11fIEoci *oci)
|
||||
{
|
||||
uint8_t country_code[CDS_COUNTRY_CODE_LEN + 1];
|
||||
uint8_t prim_ch_num = wlan_reg_freq_to_chan(mac->pdev,
|
||||
session->curr_op_freq);
|
||||
|
||||
wlan_reg_read_current_country(mac->psoc, country_code);
|
||||
oci->op_class = wlan_reg_dmn_get_opclass_from_channel(
|
||||
country_code,
|
||||
wlan_reg_freq_to_chan(mac->pdev, session->curr_op_freq),
|
||||
session->ch_width);
|
||||
oci->prim_ch_num = session->ch_center_freq_seg0;
|
||||
oci->op_class = wlan_reg_dmn_get_opclass_from_channel(country_code,
|
||||
prim_ch_num,
|
||||
session->ch_width);
|
||||
oci->prim_ch_num = prim_ch_num;
|
||||
oci->freq_seg_1_ch_num = session->ch_center_freq_seg1;
|
||||
oci->present = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue