From 074fdebe64ef15786db0b32158b9c65db5c17ae6 Mon Sep 17 00:00:00 2001 From: Pankaj Singh Date: Thu, 6 Feb 2020 11:37:28 +0530 Subject: [PATCH] qcacld-3.0: Remove wext handler on mon mode adapter deinit Wext handlers are not getting deregistered during the interface down of monitor mode. So. After the idle shutdown also the user can issue ioctls which can lead to system instability. Fix is to remove the wext handler as part of adapter deinit. change-ID: I49ab4b0cfa0125b253bc097f180226f2095d5df1 CRs-Fixed: 2615138 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 5113b36d3f14..847682086071 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -4982,6 +4982,7 @@ void hdd_deinit_adapter(struct hdd_context *hdd_ctx, switch (adapter->device_mode) { case QDF_STA_MODE: case QDF_P2P_CLIENT_MODE: + case QDF_MONITOR_MODE: case QDF_P2P_DEVICE_MODE: case QDF_IBSS_MODE: case QDF_NDI_MODE: