summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManjeet Singh <manjee@codeaurora.org>2017-01-11 16:07:42 +0530
committerqcabuildsw <qcabuildsw@localhost>2017-01-12 04:17:19 -0800
commit0c6e213b67d715883bad1f6af17ab9733014fc4f (patch)
tree27049e8704985d72234ff199852380465be810ff
parent4977a4fd2a0da9e5fbdfb9f7ce01d22704ad3ce9 (diff)
qcacld-3.0: Accept gscan request only if netdev is up
The vendor command QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS coming in netdev down state resulting in crash. Add WIPHY_VENDOR_CMD_NEED_RUNNING flag to reject the vendor command QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS if netdev is down. CRs-Fixed: 1109145 Change-Id: I007341a51ccdd1b5cf5b6e2319c8b71d4f26f9ce
-rw-r--r--core/hdd/src/wlan_hdd_cfg80211.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c
index d9272fa12335..cca82db05554 100644
--- a/core/hdd/src/wlan_hdd_cfg80211.c
+++ b/core/hdd/src/wlan_hdd_cfg80211.c
@@ -8434,7 +8434,8 @@ const struct wiphy_vendor_command hdd_wiphy_vendor_commands[] = {
{
.info.vendor_id = QCA_NL80211_VENDOR_ID,
.info.subcmd = QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS,
- .flags = WIPHY_VENDOR_CMD_NEED_WDEV | WIPHY_VENDOR_CMD_NEED_NETDEV,
+ .flags = WIPHY_VENDOR_CMD_NEED_WDEV |
+ WIPHY_VENDOR_CMD_NEED_NETDEV | WIPHY_VENDOR_CMD_NEED_RUNNING,
.doit = wlan_hdd_cfg80211_extscan_get_valid_channels
},
{