Explorar o código

qcacld-3.0: Cancel host roaming during del session

-Disconnect triggered due to deauth from peer, at
 the Same instance supplicant also triggered change iface
 which initiated stop adapter.
-Disconnect triggered host based lost link scan and .
 Stop adapter triggered vdev delete.
-VDEV delete is sent before Scan request which triggered
assert at firmware.

Cancel all the host based roaming scans as part of sme
close session handling.

Change-Id: I350b840264751615779bc20dad96723c8bf41b76
CRs-Fixed: 1107525
Sandeep Puligilla %!s(int64=8) %!d(string=hai) anos
pai
achega
4d976b6d07
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      core/sme/src/csr/csr_api_roam.c

+ 3 - 1
core/sme/src/csr/csr_api_roam.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -15791,6 +15791,8 @@ QDF_STATUS csr_roam_close_session(tpAniSirGlobal pMac, uint32_t sessionId,
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	if (CSR_IS_SESSION_VALID(pMac, sessionId)) {
 		tCsrRoamSession *pSession = CSR_GET_SESSION(pMac, sessionId);
+		/* Vdev going down stop roaming */
+		pSession->fCancelRoaming = true;
 		if (fSync) {
 			csr_cleanup_session(pMac, sessionId);
 		} else {