From af6dbcdfe2381d127ae307ac6858b71f7dccae69 Mon Sep 17 00:00:00 2001 From: Sai Pavan Akhil Remella Date: Fri, 2 Jun 2023 11:12:21 +0530 Subject: [PATCH] qcacld-3.0: Remove interface up dependency for usable channels Currently for QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command STA interface should be UP and running. During STA/SAP concurrency when STA is disabled SAP cannot get the usable channels from driver since STA iface is brought down by Wifi HAL. These changes remove interface running dependency for get usable channels vendor command. Change-Id: I3760adda2ce258f428f2b803112ab25503e97b60 CRs-Fixed: 3517894 --- core/hdd/src/wlan_hdd_cfg80211.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index e7ec3a87528c..3c5cd5e6ad03 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -16742,8 +16742,7 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = { .info.vendor_id = QCA_NL80211_VENDOR_ID, .info.subcmd = QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS, .flags = WIPHY_VENDOR_CMD_NEED_WDEV | - WIPHY_VENDOR_CMD_NEED_NETDEV | - WIPHY_VENDOR_CMD_NEED_RUNNING, + WIPHY_VENDOR_CMD_NEED_NETDEV, .doit = wlan_hdd_cfg80211_get_usable_channel, vendor_command_policy(get_usable_channel_policy, QCA_WLAN_VENDOR_ATTR_MAX)