|
@@ -1281,6 +1281,19 @@ static inline bool ieee80211_vif_is_mesh(struct ieee80211_vif *vif)
|
|
|
*/
|
|
|
struct ieee80211_vif *wdev_to_ieee80211_vif(struct wireless_dev *wdev);
|
|
|
|
|
|
+/**
|
|
|
+ * ieee80211_vif_to_wdev - return a wdev struct from a vif
|
|
|
+ * @vif: the vif to get the wdev for
|
|
|
+ *
|
|
|
+ * This can be used by mac80211 drivers with direct cfg80211 APIs
|
|
|
+ * (like the vendor commands) that needs to get the wdev for a vif.
|
|
|
+ *
|
|
|
+ * Note that this function may return %NULL if the given wdev isn't
|
|
|
+ * associated with a vif that the driver knows about (e.g. monitor
|
|
|
+ * or AP_VLAN interfaces.)
|
|
|
+ */
|
|
|
+struct wireless_dev *ieee80211_vif_to_wdev(struct ieee80211_vif *vif);
|
|
|
+
|
|
|
/**
|
|
|
* enum ieee80211_key_flags - key flags
|
|
|
*
|