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

Commit 049f256b authored by Surabhi Vishnoi's avatar Surabhi Vishnoi Committed by Debadutta Muni
Browse files

qcacld-3.0: Optimize the roam latency time

This change optimizes the time to enable the TX queues during
connect/roaming by deferring the oem response to userspace and
roam_auth indication to wpa_supplicant.
Also, ignore tx power stats if the roaming is in progress.

Change-Id: Ic5de5cbe369e92302ad51523082dcb629d53d4ff
CRs-Fixed: 3119070
parent 7e6c2f45
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -3085,12 +3085,6 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
				  sta_ctx->ap_supports_immediate_power_save);
		}

		if (policy_mgr_is_mcc_in_24G(hdd_ctx->psoc)) {
			if (hdd_ctx->miracast_value)
				wlan_hdd_set_mas(adapter,
					hdd_ctx->miracast_value);
		}

		/* Initialize the Linkup event completion variable */
		INIT_COMPLETION(adapter->linkup_event_var);

@@ -3307,6 +3301,12 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
			/* Indicate 'connect' status to user space */
			hdd_send_association_event(dev, roam_info);

			if (policy_mgr_is_mcc_in_24G(hdd_ctx->psoc)) {
				if (hdd_ctx->miracast_value)
					wlan_hdd_set_mas(adapter,
						hdd_ctx->miracast_value);
			}

			if ((roam_info->u.pConnectedProfile->AuthType ==
			     eCSR_AUTH_TYPE_FT_RSN) ||
			    (roam_info->u.pConnectedProfile->AuthType ==
@@ -3493,6 +3493,12 @@ hdd_association_completion_handler(struct hdd_adapter *adapter,
			/* Indicate 'connect' status to user space */
			hdd_send_association_event(dev, roam_info);

			if (policy_mgr_is_mcc_in_24G(hdd_ctx->psoc)) {
				if (hdd_ctx->miracast_value)
					wlan_hdd_set_mas(adapter,
						hdd_ctx->miracast_value);
			}

			/*
			 * wpa supplicant expecting WPA/RSN IE in connect result
			 * in case of reassociation also need to indicate it to
+2 −1
Original line number Diff line number Diff line
@@ -2938,7 +2938,8 @@ static int __wlan_hdd_cfg80211_get_txpower(struct wiphy *wiphy,
	case QDF_STA_MODE:
	case QDF_P2P_CLIENT_MODE:
		sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
		if (sta_ctx->hdd_reassoc_scenario) {
		if (sta_ctx->hdd_reassoc_scenario ||
		    hdd_is_roaming_in_progress(hdd_ctx)) {
			hdd_debug("Roaming is in progress, rej this req");
			return -EINVAL;
		}