diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-06-15 09:30:18 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-09 08:51:47 -0400 |
commit | 71bbc9943883cffaf5d7a7728a4e4c50b3ac44d3 (patch) | |
tree | 9810d365fc57be75ee59cf4883216202ac2c5e09 /net/mac80211/ieee80211_i.h | |
parent | ba22fb5b25db1e18692e2d01f8addb3fea0af813 (diff) |
cfg80211: use wdev in mgmt-tx/ROC APIs
The management frame and remain-on-channel APIs will be
needed in the P2P device abstraction, so move them over
to the new wdev-based APIs. Userspace can still use both
the interface index and wdev identifier for them so it's
backward compatible, but for the P2P Device wdev it will
be able to use the wdev identifier only.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/ieee80211_i.h')
-rw-r--r-- | net/mac80211/ieee80211_i.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index e0423f8c0ce1..8f8535ee5995 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h | |||
@@ -1091,6 +1091,12 @@ IEEE80211_DEV_TO_SUB_IF(struct net_device *dev) | |||
1091 | return netdev_priv(dev); | 1091 | return netdev_priv(dev); |
1092 | } | 1092 | } |
1093 | 1093 | ||
1094 | static inline struct ieee80211_sub_if_data * | ||
1095 | IEEE80211_WDEV_TO_SUB_IF(struct wireless_dev *wdev) | ||
1096 | { | ||
1097 | return container_of(wdev, struct ieee80211_sub_if_data, wdev); | ||
1098 | } | ||
1099 | |||
1094 | /* this struct represents 802.11n's RA/TID combination */ | 1100 | /* this struct represents 802.11n's RA/TID combination */ |
1095 | struct ieee80211_ra_tid { | 1101 | struct ieee80211_ra_tid { |
1096 | u8 ra[ETH_ALEN]; | 1102 | u8 ra[ETH_ALEN]; |