From 1107eeeca6d9616d092c830e8340ca2045a3f229 Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Mon, 23 Mar 2020 13:45:40 -0700 Subject: [PATCH] qcacld-3.0: Fix amsdu support in addba for 6G connection AMSDU support is advertised in addba for 2.4GHz HE connection and for 5G connection. Fix the band check to allow amsdu support for 6GHz connection. Change-Id: Ia34c8b5c2944fb9fb9b8b906a602129cad07e2d1 CRs-Fixed: 2645853 --- core/mac/src/pe/lim/lim_send_management_frames.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 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 5f8bf0cee308..970e19a3d2a7 100644 --- a/core/mac/src/pe/lim/lim_send_management_frames.c +++ b/core/mac/src/pe/lim/lim_send_management_frames.c @@ -5000,7 +5000,7 @@ QDF_STATUS lim_send_addba_response_frame(struct mac_context *mac_ctx, if (mac_ctx->is_usr_cfg_amsdu_enabled && ((IS_PE_SESSION_HE_MODE(session) && WLAN_REG_IS_24GHZ_CH_FREQ(session->curr_op_freq)) || - WLAN_REG_IS_5GHZ_CH_FREQ(session->curr_op_freq))) + !WLAN_REG_IS_24GHZ_CH_FREQ(session->curr_op_freq))) frm.addba_param_set.amsdu_supp = amsdu_support; else frm.addba_param_set.amsdu_supp = 0; @@ -5022,9 +5022,10 @@ QDF_STATUS lim_send_addba_response_frame(struct mac_context *mac_ctx, pe_debug("Sending a ADDBA Response from %pM to %pM", session->self_mac_addr, peer_mac); - pe_debug("tid: %d, dialog_token: %d, status: %d, buff_size: %d", - tid, frm.DialogToken.token, frm.Status.status, - frm.addba_param_set.buff_size); + pe_debug("tid %d dialog_token %d status %d buff_size %d amsdu_supp %d", + tid, frm.DialogToken.token, frm.Status.status, + frm.addba_param_set.buff_size, + frm.addba_param_set.amsdu_supp); pe_debug("addba_extn %d he_capable %d no_frag %d he_frag %d", addba_extn_present, lim_is_session_he_capable(session),