From 68d715d646f637fd5e39ed4a39e1e7edb29e58df Mon Sep 17 00:00:00 2001 From: gaolez Date: Tue, 10 Jul 2018 11:17:02 +0800 Subject: qcacld-2.0: Set protected bit for ECSA action frame If all the STA connected to AP support ecsa, wlan driver will call lim_send_extended_chan_switch_action_frame to send action frame, but this function missing limSetProtectedBit when 11w enable, this violate spec, so generate a fix for this issue. Change-Id: I80f111f21015c98ee0abdafe76ea42c3e79163ac CRs-Fixed: 2275626 --- CORE/MAC/src/pe/lim/limSendManagementFrames.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CORE/MAC/src/pe/lim/limSendManagementFrames.c b/CORE/MAC/src/pe/lim/limSendManagementFrames.c index ebba5232da73..d367e1a71be0 100644 --- a/CORE/MAC/src/pe/lim/limSendManagementFrames.c +++ b/CORE/MAC/src/pe/lim/limSendManagementFrames.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011-2017 The Linux Foundation. All rights reserved. + * Copyright (c) 2011-2018 The Linux Foundation. All rights reserved. * * Previously licensed under the ISC license by Qualcomm Atheros, Inc. * @@ -4710,6 +4710,10 @@ lim_send_extended_chan_switch_action_frame(tpAniSirGlobal mac_ctx, return eSIR_FAILURE; } +#ifdef WLAN_FEATURE_11W + limSetProtectedBit(mac_ctx, session_entry, peer, mac_hdr); +#endif + status = dot11fPackext_channel_switch_action_frame( mac_ctx, &frm, frame + sizeof(tSirMacMgmtHdr), n_payload, &n_payload); if (DOT11F_FAILED(status)) { -- cgit v1.2.3