diff mbox

[2/2] mac80211_hwsim: Add ifindex to the example vendor event

Message ID 1424442925-10778-2-git-send-email-jouni@qca.qualcomm.com (mailing list archive)
State Changes Requested
Delegated to: Johannes Berg
Headers show

Commit Message

Jouni Malinen Feb. 20, 2015, 2:35 p.m. UTC
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 <jouni@qca.qualcomm.com>
---
 drivers/net/wireless/mac80211_hwsim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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.