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: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
Andrei Otcheretianski 2016-10-19 07:47:47 +03:00 committed by Johannes Berg
parent 0711d63878
commit 0ea2a2ee8d

View File

@ -11258,7 +11258,8 @@ static int nl80211_vendor_cmd(struct sk_buff *skb, struct genl_info *info)
if (wdev->netdev &&
!netif_running(wdev->netdev))
return -ENETDOWN;
if (!wdev->netdev && !wdev->p2p_started)
if (!wdev->netdev && !wdev->p2p_started &&
!wdev->nan_started)
return -ENETDOWN;
}