net: wireless: Add NL80211_FLAG_NEED_WIPHY flag to vendor command
authorDmitry Shmidt <dimitrysh@google.com>
Tue, 24 Jun 2014 20:19:46 +0000 (13:19 -0700)
committerDmitry Shmidt <dimitrysh@google.com>
Tue, 24 Jun 2014 20:20:40 +0000 (13:20 -0700)
Change-Id: I52ee3bc8a422c2a4c57cccccccd6ba3e721b4c01
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
net/wireless/nl80211.c

index ddb993fb0d38038336210787c010b9813e4dfea6..150a38fc346e8b1f60739a7a370f4e7bd3ae5f32 100644 (file)
@@ -9153,7 +9153,8 @@ static struct genl_ops nl80211_ops[] = {
                .doit = nl80211_vendor_cmd,
                .policy = nl80211_policy,
                .flags = GENL_ADMIN_PERM,
-               .internal_flags = NL80211_FLAG_NEED_RTNL,
+               .internal_flags = NL80211_FLAG_NEED_WIPHY |
+                                 NL80211_FLAG_NEED_RTNL,
        },
 };