summaryrefslogtreecommitdiff
path: root/core/mac/src
diff options
context:
space:
mode:
authorgaolez <gaolez@codeaurora.org>2018-08-16 15:43:31 +0800
committernshrivas <nshrivas@codeaurora.org>2018-09-17 03:36:13 -0700
commit4fcaa3ea7ae5fce92fea465e39b224adb681a6e3 (patch)
tree6e03b06102b5b7469baa95e4e6bc878afbcb14b8 /core/mac/src
parentc374029c07b7abb1dbbd306d44fbb7fbb959a9b4 (diff)
qcacld-3.0: Set protected bit for ECSA action frame
qcacld-2.0 to qcacld-3.0 propagation 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
Diffstat (limited to 'core/mac/src')
-rw-r--r--core/mac/src/pe/lim/lim_send_management_frames.c2
-rw-r--r--core/mac/src/pe/lim/lim_utils.h8
2 files changed, 6 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 abfaeb83ee09..970012ddaf73 100644
--- a/core/mac/src/pe/lim/lim_send_management_frames.c
+++ b/core/mac/src/pe/lim/lim_send_management_frames.c
@@ -3556,6 +3556,8 @@ lim_send_extended_chan_switch_action_frame(tpAniSirGlobal mac_ctx,
(uint8_t *) session_entry->bssId,
sizeof(tSirMacAddr));
+ lim_set_protected_bit(mac_ctx, session_entry, peer, mac_hdr);
+
status = dot11f_pack_ext_channel_switch_action_frame(mac_ctx, &frm,
frame + sizeof(tSirMacMgmtHdr), n_payload, &n_payload);
if (DOT11F_FAILED(status)) {
diff --git a/core/mac/src/pe/lim/lim_utils.h b/core/mac/src/pe/lim/lim_utils.h
index ae8b389ec259..2a6b5a633850 100644
--- a/core/mac/src/pe/lim/lim_utils.h
+++ b/core/mac/src/pe/lim/lim_utils.h
@@ -609,14 +609,14 @@ bool lim_check_disassoc_deauth_ack_pending(tpAniSirGlobal pMac,
#ifdef WLAN_FEATURE_11W
void lim_pmf_sa_query_timer_handler(void *pMacGlobal, uint32_t param);
-#endif
-
void lim_set_protected_bit(tpAniSirGlobal pMac,
tpPESession psessionEntry,
tSirMacAddr peer, tpSirMacMgmtHdr pMacHdr);
-
-#ifdef WLAN_FEATURE_11W
void lim_pmf_comeback_timer_callback(void *context);
+#else
+static inline void lim_set_protected_bit(tpAniSirGlobal pMac,
+ tpPESession psessionEntry,
+ tSirMacAddr peer, tpSirMacMgmtHdr pMacHdr) {}
#endif /* WLAN_FEATURE_11W */
void lim_set_ht_caps(tpAniSirGlobal p_mac,