Browse Source

qcacld-3.0: Don't validate sessionId while processing del virtual iface

Del virtual interface is not processed while un-initializing SAP
as validate session-id fails, because sessionId is invalidated
in case of SAP during the stop ap leading to improper cleanup
during the sap close.

Also, del virtual iface can come even when the interface  is down.
Hence, don't validate the sessiodId while processing del virtual
iface.

Change-Id: Ic1d365e09e0d280fa5d4a1543a594a08a652a717
CRs-Fixed: 1086647
Hanumanth Reddy Pothula 8 years ago
parent
commit
623f1aa775
1 changed files with 0 additions and 5 deletions
  1. 0 5
      core/hdd/src/wlan_hdd_p2p.c

+ 0 - 5
core/hdd/src/wlan_hdd_p2p.c

@@ -2192,11 +2192,6 @@ int __wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev)
 		return -EINVAL;
 	}
 
-	if (wlan_hdd_validate_session_id(pVirtAdapter->sessionId)) {
-		hdd_err("invalid session id: %d", pVirtAdapter->sessionId);
-		return -EINVAL;
-	}
-
 	MTRACE(qdf_trace(QDF_MODULE_ID_HDD,
 			 TRACE_CODE_HDD_DEL_VIRTUAL_INTF,
 			 pVirtAdapter->sessionId, pVirtAdapter->device_mode));