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

Commit c9e03109 authored by Lin Bai's avatar Lin Bai Committed by Gerrit - the friendly Code Review server
Browse files

qcacld-3.0: Disable STA power save before initiating disconnection

Target side STA PS module will only stop when WMI_VDEV_STOP
received, and QoS-null frame is possible to be sent in
the window from DEAUTH TX to WMI_VDEV_STOP.

Disable STA power save before disconnecting process,
to avoid QoS-null in such window.

Change-Id: I3f33fc7ab81f70c22218cd3cc5a4ba934c6bccae
parent 77c9691f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -21538,6 +21538,11 @@ int wlan_hdd_disconnect(struct hdd_adapter *adapter, u16 reason,
	wlan_hdd_netif_queue_control(adapter,
		WLAN_STOP_ALL_NETIF_QUEUE_N_CARRIER, WLAN_CONTROL_PATH);
	/* Disable STA power-save mode */
	if ((adapter->device_mode == QDF_STA_MODE) &&
	    wlan_hdd_set_powersave(adapter, false, 0))
		hdd_debug("Not disable PS for STA");
	ret = wlan_hdd_wait_for_disconnect(mac_handle, adapter, reason,
					   mac_reason);