qcacld-3.0: Update channel width in Operating Mode IE

Host is always updating channel width as 20MHz while updating the
rx nss value in Operating Mode IE.

Channel width should be updated from session entry.

CRs-Fixed: 2048435
Change-Id: Ib78f52d3ad1be875450a76c20a9332933f50277f
This commit is contained in:
Ganesh Kondabattini 2017-05-16 14:29:32 +05:30 committed by snandini
parent f847f06b60
commit 5e0ac2ab19

View File

@ -6025,6 +6025,14 @@ static void lim_process_nss_update_request(tpAniSirGlobal mac_ctx,
/* populate nss field in the beacon */
session_entry->gLimOperatingMode.present = 1;
session_entry->gLimOperatingMode.rxNSS = nss_update_req_ptr->new_nss;
session_entry->gLimOperatingMode.chanWidth = session_entry->ch_width;
if ((nss_update_req_ptr->new_nss == NSS_1x1_MODE) &&
(session_entry->ch_width > CH_WIDTH_80MHZ))
session_entry->gLimOperatingMode.chanWidth = CH_WIDTH_80MHZ;
pe_debug("ch width %hu", session_entry->gLimOperatingMode.chanWidth);
/* Send nss update request from here */
if (sch_set_fixed_beacon_fields(mac_ctx, session_entry) !=
eSIR_SUCCESS) {