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

Commit 20a216bf authored by Vevek Venkatesan's avatar Vevek Venkatesan
Browse files

qcacld-3.0: send IPA STA_CONNECT evt before set is_authenticated

Currently sending IPA STA_CONNECT evt after setting the flag
is_authenticated to true, which causes STA_CONNECT evt not sent
always, this is a propagation error as its implementation is
different than mainline, so moving it ahead.

Change-Id: I5073bae0a1a6048de2b6da44cda92c0a7259d98a
CRs-Fixed: 2983093
parent ac704e4f
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -2654,6 +2654,15 @@ static int hdd_change_sta_state_authenticated(struct hdd_adapter *adapter,

	mac_addr = hddstactx->conn_info.bssid.bytes;

	if (ucfg_ipa_is_enabled() && !hddstactx->conn_info.is_authenticated &&
	    adapter->device_mode == QDF_STA_MODE &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_NONE &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_OPEN_SYSTEM &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_SHARED_KEY)
		ucfg_ipa_wlan_evt(adapter->hdd_ctx->pdev, adapter->dev,
				  adapter->device_mode, adapter->vdev_id,
				  WLAN_IPA_STA_CONNECT, mac_addr);

	hdd_debug("Changing Peer state to AUTHENTICATED for Sta = "
		  QDF_MAC_ADDR_FMT, QDF_MAC_ADDR_REF(mac_addr));

@@ -2673,15 +2682,6 @@ static int hdd_change_sta_state_authenticated(struct hdd_adapter *adapter,
					    timeout);
	}

	if (ucfg_ipa_is_enabled() && !hddstactx->conn_info.is_authenticated &&
	    adapter->device_mode == QDF_STA_MODE &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_NONE &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_OPEN_SYSTEM &&
	    hddstactx->conn_info.auth_type != eCSR_AUTH_TYPE_SHARED_KEY)
		ucfg_ipa_wlan_evt(adapter->hdd_ctx->pdev, adapter->dev,
				  adapter->device_mode, adapter->vdev_id,
				  WLAN_IPA_STA_CONNECT, mac_addr);

	return qdf_status_to_os_return(status);
}