diff options
| author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2015-03-12 02:53:24 -0400 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2015-03-16 04:30:30 -0400 |
| commit | dc5a1ad7bd830b7789ba2950342bdecfe4787945 (patch) | |
| tree | 110a5076d8e31c96775cc04ef4e906ad17454a9e /include/net | |
| parent | 45ceeee81ecdd437f7ecac77ae79263486c755e8 (diff) | |
mac80211: allow to get wireless_dev structure from ieee80211_vif
This will allow mac80211 drivers to call cfg80211 APIs with
the right handle.
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/mac80211.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index a7756e45465e..157c0f151766 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
| @@ -1282,6 +1282,19 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif) | |||
| 1282 | struct ieee80211_vif *wdev_to_ieee80211_vif(struct wireless_dev *wdev); | 1282 | struct ieee80211_vif *wdev_to_ieee80211_vif(struct wireless_dev *wdev); |
| 1283 | 1283 | ||
| 1284 | /** | 1284 | /** |
| 1285 | * ieee80211_vif_to_wdev - return a wdev struct from a vif | ||
| 1286 | * @vif: the vif to get the wdev for | ||
| 1287 | * | ||
| 1288 | * This can be used by mac80211 drivers with direct cfg80211 APIs | ||
| 1289 | * (like the vendor commands) that needs to get the wdev for a vif. | ||
| 1290 | * | ||
| 1291 | * Note that this function may return %NULL if the given wdev isn't | ||
| 1292 | * associated with a vif that the driver knows about (e.g. monitor | ||
| 1293 | * or AP_VLAN interfaces.) | ||
| 1294 | */ | ||
| 1295 | struct wireless_dev *ieee80211_vif_to_wdev(struct ieee80211_vif *vif); | ||
| 1296 | |||
| 1297 | /** | ||
| 1285 | * enum ieee80211_key_flags - key flags | 1298 | * enum ieee80211_key_flags - key flags |
| 1286 | * | 1299 | * |
| 1287 | * These flags are used for communication about keys between the driver | 1300 | * These flags are used for communication about keys between the driver |
