cfg80211: Allow NL80211_ATTR_IFINDEX to be added to vendor events
authorAhmad Kholaif <akholaif@qca.qualcomm.com>
Thu, 26 Feb 2015 13:26:53 +0000 (15:26 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Mar 2015 14:56:05 +0000 (15:56 +0100)
commit6c09e791b21309a1ad71f9702b766dae12a3cb0a
treefe12e02d50c8f754bae60cfc0a4d8f55f724c9dd
parentffc1199122d83d60ad99f9c55df32feb650b7bff
cfg80211: Allow NL80211_ATTR_IFINDEX to be added to vendor events

This modifies cfg80211_vendor_event_alloc() with an additional argument
struct wireless_dev *wdev. __cfg80211_alloc_event_skb() is modified to
take in *wdev argument, if wdev != NULL, both the NL80211_ATTR_IFINDEX
and wdev identifier are added to the vendor event.

These changes make it easier for drivers to add ifindex indication in
vendor events cleanly.

This also updates all existing users of cfg80211_vendor_event_alloc()
and __cfg80211_alloc_event_skb() in the kernel tree.

Signed-off-by: Ahmad Kholaif <akholaif@qca.qualcomm.com>
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/ti/wl18xx/event.c
include/net/cfg80211.h
net/wireless/nl80211.c