From: Andrei Otcheretianski Date: Wed, 19 Oct 2016 04:47:47 +0000 (+0300) Subject: cfg80211: allow vendor commands to be sent to nan interface X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ea2a2ee8de0501b132cc4454a31bbadbdb5dbbe;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Luca Coelho Signed-off-by: Johannes Berg --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index e48b9c3988d3..fcf5b4f3f555 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -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; }