aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 909956c97c4..2f985399799 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1602,13 +1602,16 @@ void ieee80211_wake_queues(struct ieee80211_hw *hw);
1602void ieee80211_scan_completed(struct ieee80211_hw *hw); 1602void ieee80211_scan_completed(struct ieee80211_hw *hw);
1603 1603
1604/** 1604/**
1605 * ieee80211_iterate_active_interfaces - iterate active interfaces 1605 * ieee80211_iterate_active_interfaces- iterate active interfaces
1606 * 1606 *
1607 * This function iterates over the interfaces associated with a given 1607 * This function iterates over the interfaces associated with a given
1608 * hardware that are currently active and calls the callback for them. 1608 * hardware that are currently active and calls the callback for them.
1609 * This function allows the iterator function to sleep, when the iterator
1610 * function is atomic @ieee80211_iterate_active_interfaces_atomic can
1611 * be used.
1609 * 1612 *
1610 * @hw: the hardware struct of which the interfaces should be iterated over 1613 * @hw: the hardware struct of which the interfaces should be iterated over
1611 * @iterator: the iterator function to call, cannot sleep 1614 * @iterator: the iterator function to call
1612 * @data: first argument of the iterator function 1615 * @data: first argument of the iterator function
1613 */ 1616 */
1614void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw, 1617void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw,
@@ -1617,6 +1620,24 @@ void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw,
1617 void *data); 1620 void *data);
1618 1621
1619/** 1622/**
1623 * ieee80211_iterate_active_interfaces_atomic - iterate active interfaces
1624 *
1625 * This function iterates over the interfaces associated with a given
1626 * hardware that are currently active and calls the callback for them.
1627 * This function requires the iterator callback function to be atomic,
1628 * if that is not desired, use @ieee80211_iterate_active_interfaces instead.
1629 *
1630 * @hw: the hardware struct of which the interfaces should be iterated over
1631 * @iterator: the iterator function to call, cannot sleep
1632 * @data: first argument of the iterator function
1633 */
1634void ieee80211_iterate_active_interfaces_atomic(struct ieee80211_hw *hw,
1635 void (*iterator)(void *data,
1636 u8 *mac,
1637 struct ieee80211_vif *vif),
1638 void *data);
1639
1640/**
1620 * ieee80211_start_tx_ba_session - Start a tx Block Ack session. 1641 * ieee80211_start_tx_ba_session - Start a tx Block Ack session.
1621 * @hw: pointer as obtained from ieee80211_alloc_hw(). 1642 * @hw: pointer as obtained from ieee80211_alloc_hw().
1622 * @ra: receiver address of the BA session recipient 1643 * @ra: receiver address of the BA session recipient