From 0b95f9ec80627980761890df911cab62b8dc4702 Mon Sep 17 00:00:00 2001 From: Karthik Kantamneni Date: Thu, 21 Nov 2019 13:03:22 +0530 Subject: [PATCH] qcacld-3.0: Allow GET_RING_DATA vendor command without NETDEV dependency Currently GET_RING_DATA vendor command is dependent on NETDEV, as vendor command is wiphy command which is not dependent on NETDEV allow the flush logs command irrespective of NETDEV. Change-Id: I8e0474ca94645685e7f1969ad668692a44f96c23 --- core/hdd/src/wlan_hdd_cfg80211.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 9c3d3523f016..86b3d07baa1c 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -8993,7 +8993,7 @@ static int __wlan_hdd_cfg80211_wifi_logger_get_ring_data(struct wiphy *wiphy, struct nlattr *tb [QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX + 1]; - hdd_enter_dev(wdev->netdev); + hdd_enter(); if (QDF_GLOBAL_FTM_MODE == hdd_get_conparam()) { hdd_err("Command not allowed in FTM mode"); @@ -14337,9 +14337,7 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { { .info.vendor_id = QCA_NL80211_VENDOR_ID, .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA, - .flags = WIPHY_VENDOR_CMD_NEED_WDEV | - WIPHY_VENDOR_CMD_NEED_NETDEV | - WIPHY_VENDOR_CMD_NEED_RUNNING, + .flags = WIPHY_VENDOR_CMD_NEED_WDEV, .doit = wlan_hdd_cfg80211_wifi_logger_get_ring_data }, {