diff options
Diffstat (limited to 'net/mac80211/util.c')
| -rw-r--r-- | net/mac80211/util.c | 13 | 
1 files changed, 13 insertions, 0 deletions
| diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0e4e1956bcea..f71b042a5c8b 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -862,6 +862,19 @@ static void __iterate_stations(struct ieee80211_local *local,  	}  } +void ieee80211_iterate_stations(struct ieee80211_hw *hw, +				void (*iterator)(void *data, +						 struct ieee80211_sta *sta), +				void *data) +{ +	struct ieee80211_local *local = hw_to_local(hw); + +	mutex_lock(&local->sta_mtx); +	__iterate_stations(local, iterator, data); +	mutex_unlock(&local->sta_mtx); +} +EXPORT_SYMBOL_GPL(ieee80211_iterate_stations); +  void ieee80211_iterate_stations_atomic(struct ieee80211_hw *hw,  			void (*iterator)(void *data,  					 struct ieee80211_sta *sta), |