]> err.no Git - linux-2.6/blobdiff - include/net/mac80211.h
[NET] proto: Use pcounters for the inuse field
[linux-2.6] / include / net / mac80211.h
index 17b60391fcd66c7ba94ff14b44c0139881412b8b..1470e1b886f09e865b9576bc2628f5e428549ea4 100644 (file)
@@ -1406,4 +1406,20 @@ void ieee80211_wake_queues(struct ieee80211_hw *hw);
  */
 void ieee80211_scan_completed(struct ieee80211_hw *hw);
 
+/**
+ * ieee80211_iterate_active_interfaces - iterate active interfaces
+ *
+ * This function iterates over the interfaces associated with a given
+ * hardware that are currently active and calls the callback for them.
+ * Must be called under RTNL.
+ *
+ * @hw: the hardware struct of which the interfaces should be iterated over
+ * @iterator: the iterator function to call
+ * @data: first argument of the iterator function
+ */
+void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw,
+                                        void (*iterator)(void *data, u8 *mac,
+                                                         int if_id),
+                                        void *data);
+
 #endif /* MAC80211_H */