From 4f81aead6139072ad8de7ac7fa8fe54cb0681f30 Mon Sep 17 00:00:00 2001 From: Abhishek Ambure Date: Thu, 26 Mar 2020 18:34:34 +0530 Subject: [PATCH] qcacld-3.0: Add OMN IE in assoc request if VHT op mode present If DUT connects to an AP in VHT mode with 40/80Mhz bandwidth in 5Ghz band and then if user changes the country code(EC) where only 20Mhz bandwidth present in 5ghz, then after association AP may ignore DUT's support for only 20Mhz and keeps transmitting data in 40/80Mhz. As DUT doesn't support these bandwidth, DUT doesn't ack the data packets with higher received higher bandwidth. Thus DUT's RX throughout degrades. This is an IOT issue where AP expects OMN IE with channel width set to 20mhz . As DUT is not sending OMN IE low throughput issue is observed Hence host adds OMN ie in the association request only if the AP to which DUT associates advertises OMN IE and DUT supports VHT. Change-Id: Ie59323c4c7dc4e4abc332e7204768b6a560d22d1 CRs-Fixed: 2650234 --- core/mac/src/pe/lim/lim_send_management_frames.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/mac/src/pe/lim/lim_send_management_frames.c b/core/mac/src/pe/lim/lim_send_management_frames.c index 75e347016a..87f2ee95bb 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -2058,9 +2058,8 @@ lim_send_assoc_req_mgmt_frame(struct mac_context *mac_ctx, pe_debug("Populate VHT IEs in Assoc Request"); populate_dot11f_vht_caps(mac_ctx, pe_session, &frm->VHTCaps); vht_enabled = true; - if (pe_session->enableHtSmps && - !pe_session->supported_nss_1x1) { - pe_err("VHT OP mode IE in Assoc Req"); + if (pe_session->gLimOperatingMode.present) { + pe_debug("VHT OP mode IE in Assoc Req"); populate_dot11f_operating_mode(mac_ctx, &frm->OperatingMode, pe_session); }