Quellcode durchsuchen

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
Krunal Soni vor 8 Jahren
Ursprung
Commit
b0e1e533f0
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 2 3
      core/mac/src/pe/lim/lim_process_action_frame.c

+ 2 - 3
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;
 	}