From 7acaaabcb96155b5deb53360a24cc86691105a0a Mon Sep 17 00:00:00 2001 From: Hanumanth Reddy Pothula Date: Mon, 7 Nov 2016 18:40:32 +0530 Subject: 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 --- core/hdd/src/wlan_hdd_p2p.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_p2p.c b/core/hdd/src/wlan_hdd_p2p.c index ed54273ca7d9..8d44039ed073 100644 --- a/core/hdd/src/wlan_hdd_p2p.c +++ b/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)); -- cgit v1.2.3