Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b2dc8a4 authored by Srinivas Dasari's avatar Srinivas Dasari
Browse files

qcacld-3.0: Enable SAE authentication for P2P

Enable SAE authentication for P2P. This allows to process and
forward the SAE auth frames to userspace in P2P_CLI and
P2P_GO modes.

Change-Id: I210f6b3db4d4d0a39f1dcb7f136ec9ac7e4c34c4
CRs-Fixed: 2933379
parent ff0aa70e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -534,6 +534,7 @@ static const struct ieee80211_txrx_stypes
	[NL80211_IFTYPE_P2P_CLIENT] = {
		.tx = 0xffff,
		.rx = BIT(SIR_MAC_MGMT_ACTION) |
		      BIT(SIR_MAC_MGMT_AUTH) |
		      BIT(SIR_MAC_MGMT_PROBE_REQ),
	},
	[NL80211_IFTYPE_P2P_GO] = {
+3 −1
Original line number Diff line number Diff line
@@ -207,7 +207,9 @@ static void lim_process_sae_msg(struct mac_context *mac, struct sir_sae_msg *bod
	}

	if (session->opmode != QDF_STA_MODE &&
	    session->opmode != QDF_SAP_MODE) {
	    session->opmode != QDF_SAP_MODE &&
	    session->opmode != QDF_P2P_GO_MODE &&
	    session->opmode != QDF_P2P_CLIENT_MODE) {
		pe_err("SAE:Not supported in this mode %d",
				session->opmode);
		return;
+2 −1
Original line number Diff line number Diff line
@@ -15438,7 +15438,8 @@ QDF_STATUS sme_handle_sae_msg(mac_handle_t mac_handle,
	 * is meant for roaming.
	 */
	if ((csr_session->pCurRoamProfile &&
	     csr_session->pCurRoamProfile->csrPersona == QDF_SAP_MODE) ||
	     (csr_session->pCurRoamProfile->csrPersona == QDF_SAP_MODE ||
	      csr_session->pCurRoamProfile->csrPersona == QDF_P2P_GO_MODE)) ||
	    !CSR_IS_ROAM_JOINED(mac, session_id)) {
		sae_msg = qdf_mem_malloc(sizeof(*sae_msg));
		if (!sae_msg) {