mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Correct the 6GHz operation info in HE op IE
Correct the 6G operation info field values in HE operation IE. And replace the legacy api with new 6G support api to calculate channel center frequencies. Change-Id: Icafdd72b386137a6a0c8d0de233d4fbdbd121610 CRs-Fixed: 2557233
This commit is contained in:
parent
80e9ac4563
commit
6056d188b8
3 changed files with 15 additions and 25 deletions
|
|
@ -3220,10 +3220,9 @@ sap_restart:
|
|||
hdd_ap_ctx->sap_context->csa_reason =
|
||||
CSA_REASON_CONCURRENT_STA_CHANGED_CHANNEL;
|
||||
|
||||
wlan_reg_set_channel_params(hdd_ctx->pdev,
|
||||
intf_ch,
|
||||
0,
|
||||
&ch_params);
|
||||
wlan_reg_set_channel_params_for_freq(hdd_ctx->pdev,
|
||||
intf_ch_freq, 0,
|
||||
&ch_params);
|
||||
|
||||
*ch_freq = wlan_chan_to_freq(intf_ch);
|
||||
hdd_info("SAP channel change with CSA/ECSA");
|
||||
|
|
|
|||
|
|
@ -768,15 +768,10 @@ __lim_handle_sme_start_bss_request(struct mac_context *mac_ctx, uint32_t *msg_bu
|
|||
sme_start_bss_req->vht_channel_width,
|
||||
session->htSupportedChannelWidthSet);
|
||||
session->ch_width = chanwidth;
|
||||
if (session->htSupportedChannelWidthSet) {
|
||||
session->ch_center_freq_seg0 =
|
||||
sme_start_bss_req->center_freq_seg0;
|
||||
session->ch_center_freq_seg1 =
|
||||
sme_start_bss_req->center_freq_seg1;
|
||||
} else {
|
||||
session->ch_center_freq_seg0 = 0;
|
||||
session->ch_center_freq_seg1 = 0;
|
||||
}
|
||||
session->ch_center_freq_seg0 =
|
||||
sme_start_bss_req->center_freq_seg0;
|
||||
session->ch_center_freq_seg1 =
|
||||
sme_start_bss_req->center_freq_seg1;
|
||||
}
|
||||
|
||||
pe_debug("vht su tx bformer %d",
|
||||
|
|
|
|||
|
|
@ -6083,19 +6083,15 @@ populate_dot11f_he_operation(struct mac_context *mac_ctx,
|
|||
}
|
||||
} else {
|
||||
he_op->oper_info_6g_present = 1;
|
||||
if (session->ch_width > CH_WIDTH_40MHZ) {
|
||||
he_op->oper_info_6g.info.ch_width = 1;
|
||||
he_op->oper_info_6g.info.center_freq_seg0 =
|
||||
session->ch_center_freq_seg0;
|
||||
if (session->ch_width == CH_WIDTH_80P80MHZ ||
|
||||
session->ch_width == CH_WIDTH_160MHZ)
|
||||
he_op->oper_info_6g.info.center_freq_seg1 =
|
||||
session->ch_center_freq_seg1;
|
||||
else
|
||||
he_op->oper_info_6g.info.center_freq_seg1 = 0;
|
||||
he_op->oper_info_6g.info.ch_width = session->ch_width;
|
||||
he_op->oper_info_6g.info.center_freq_seg0 =
|
||||
session->ch_center_freq_seg0;
|
||||
if (session->ch_width == CH_WIDTH_80P80MHZ ||
|
||||
session->ch_width == CH_WIDTH_160MHZ) {
|
||||
he_op->oper_info_6g.info.center_freq_seg1 =
|
||||
session->ch_center_freq_seg1;
|
||||
he_op->oper_info_6g.info.ch_width = CH_WIDTH_160MHZ;
|
||||
} else {
|
||||
he_op->oper_info_6g.info.ch_width = 0;
|
||||
he_op->oper_info_6g.info.center_freq_seg0 = 0;
|
||||
he_op->oper_info_6g.info.center_freq_seg1 = 0;
|
||||
}
|
||||
he_op->oper_info_6g.info.primary_ch =
|
||||
|
|
|
|||
Loading…
Reference in a new issue