Commit 0ea2a2ee authored by Andrei Otcheretianski's avatar Andrei Otcheretianski Committed by Johannes Berg

cfg80211: allow vendor commands to be sent to nan interface

Allow vendor commands that require WIPHY_VENDOR_CMD_NEED_RUNNING flag
to be sent to NAN interface.
Signed-off-by: default avatarAndrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 0711d638
...@@ -11258,7 +11258,8 @@ static int nl80211_vendor_cmd(struct sk_buff *skb, struct genl_info *info) ...@@ -11258,7 +11258,8 @@ static int nl80211_vendor_cmd(struct sk_buff *skb, struct genl_info *info)
if (wdev->netdev && if (wdev->netdev &&
!netif_running(wdev->netdev)) !netif_running(wdev->netdev))
return -ENETDOWN; return -ENETDOWN;
if (!wdev->netdev && !wdev->p2p_started) if (!wdev->netdev && !wdev->p2p_started &&
!wdev->nan_started)
return -ENETDOWN; return -ENETDOWN;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment