This provides an example of a vendor event that is associated with a
single vif and allows user space tools to process it in the context of
that specified vif rather than full wiphy.

Signed-off-by: Jouni Malinen <[email protected]>
---
 drivers/net/wireless/mac80211_hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/mac80211_hwsim.c 
b/drivers/net/wireless/mac80211_hwsim.c
index d2bba4c..580eaab 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -367,7 +367,7 @@ static int mac80211_hwsim_vendor_cmd_test(struct wiphy 
*wiphy,
         *
         * event_idx = 0 (index in mac80211_hwsim_vendor_commands)
         */
-       skb = cfg80211_vendor_event_alloc(wiphy, 100, 0, GFP_KERNEL);
+       skb = cfg80211_vendor_event_alloc_ext(wiphy, 100, 0, GFP_KERNEL, wdev);
        if (skb) {
                /* skb_put() or nla_put() will fill up data within
                 * NL80211_ATTR_VENDOR_DATA.
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to