Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx>
---
 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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux