mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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
This commit is contained in:
parent
91b7bb8a20
commit
3abd7300a5
1 changed files with 2 additions and 1 deletions
|
|
@ -10518,7 +10518,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
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue