summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrunal Soni <ksoni@codeaurora.org>2016-10-21 17:42:08 -0700
committerqcabuildsw <qcabuildsw@localhost>2016-10-24 13:48:56 -0700
commitb0e1e533f0b514cc227839a1ed412340fb2e0254 (patch)
treec1af89ad43623ad154fbb10fac90a37ab2818cf1
parent2d7fb16abc08e5dd348e9e94b2967ede45d2e46f (diff)
qcacld-3.0: Fix to respond to SA query req only in-case of SAP-PMF
As per the PMF offload feature, all STA related SA queries should be handled in firmware and all SAP related SA queries should be handled in host. Current driver is assuming that both are handled in firmware which is not true. Fix the design by checking if session is STA or SAP and take the decision based on that. Change-Id: I1a89e509068ecb85a6c5655dd43e01a39d660b2e CRs-Fixed: 1081177
-rw-r--r--core/mac/src/pe/lim/lim_process_action_frame.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/mac/src/pe/lim/lim_process_action_frame.c b/core/mac/src/pe/lim/lim_process_action_frame.c
index df4b83cd9299..3f5b634c0e15 100644
--- a/core/mac/src/pe/lim/lim_process_action_frame.c
+++ b/core/mac/src/pe/lim/lim_process_action_frame.c
@@ -1546,10 +1546,9 @@ static void __lim_process_sa_query_request_action_frame(tpAniSirGlobal pMac,
return;
/* 11w offload is enabled then firmware should not fwd this frame */
- if (pMac->pmf_offload) {
+ if (LIM_IS_STA_ROLE(psessionEntry) && pMac->pmf_offload) {
lim_log(pMac, LOGE,
- FL("11w offload is enabled, SA Query request is not expected ")
- );
+ FL("11w offload enabled, SA Query req isn't expected"));
return;
}