Просмотр исходного кода

qcacld-3.0: Add OMN IE in assoc req only if CH BW is 20MHz

Host adds OMN IE in assoc request only if the AP advertises
OMN IE and host supports VHT. Adding OMN IE in assoc request
helps to overcome low throughput issue incase of IOT APs where
host supports VHT and 20MHz bandwidth only.
Hence add OMN IE in assoc request when host supports VHT and
20MHz bandwidth only.

Change-Id: I32294b0f10b6750147b835853cde34e384782db9
CRs-Fixed: 2768230
Abhishek Ambure 4 лет назад
Родитель
Сommit
27a435f023
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      core/mac/src/pe/lim/lim_send_management_frames.c

+ 3 - 1
core/mac/src/pe/lim/lim_send_management_frames.c

@@ -2082,7 +2082,9 @@ 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->gLimOperatingMode.present) {
+		if (pe_session->gLimOperatingMode.present &&
+		    pe_session->ch_width == CH_WIDTH_20MHZ &&
+		    frm->VHTCaps.present) {
 			pe_debug("VHT OP mode IE in Assoc Req");
 			populate_dot11f_operating_mode(mac_ctx,
 					&frm->OperatingMode, pe_session);