Jelajahi Sumber

qcacld-3.0: Process SAE authentication frames in SAP mode

Process SAE authentication frames in SAP mode as well.
These frames will be forwarded to userspace for offloaded
SAE authentication.

Change-Id: Id385cd9394160f2fae1bee7e996fd879e0109235
CRs-Fixed: 2396359
Srinivas Dasari 6 tahun lalu
induk
melakukan
5a88fe833d
1 mengubah file dengan 6 tambahan dan 3 penghapusan
  1. 6 3
      core/mac/src/pe/lim/lim_process_auth_frame.c

+ 6 - 3
core/mac/src/pe/lim/lim_process_auth_frame.c

@@ -1416,9 +1416,12 @@ lim_process_auth_frame(struct mac_context *mac_ctx, uint8_t *rx_pkt_info,
 			pe_err("failed to convert Auth Frame to structure or Auth is not valid");
 			goto free;
 		}
-	} else if ((auth_alg == eSIR_AUTH_TYPE_SAE) &&
-		   (LIM_IS_STA_ROLE(pe_session))) {
-		lim_process_sae_auth_frame(mac_ctx, rx_pkt_info, pe_session);
+	} else if (auth_alg == eSIR_AUTH_TYPE_SAE) {
+		if (LIM_IS_STA_ROLE(pe_session) ||
+		    (LIM_IS_AP_ROLE(pe_session) &&
+		     mac_ctx->mlme_cfg->sap_cfg.sap_sae_enabled))
+			lim_process_sae_auth_frame(mac_ctx, rx_pkt_info,
+						   pe_session);
 		goto free;
 	} else if ((sir_convert_auth_frame2_struct(mac_ctx, body_ptr,
 				frame_len, rx_auth_frame) != QDF_STATUS_SUCCESS)