diff options
author | David S. Miller <davem@davemloft.net> | 2008-05-26 02:26:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-05-26 02:26:10 -0400 |
commit | 43154d08d6bb5c69aa0d0e3448fb348b4cd84e91 (patch) | |
tree | 176edb26aad2d33e8be36530b66b19d0603c4b1d /include/net/mac80211.h | |
parent | 03194379a77b02df3404ec4848a50c6784e9a8a5 (diff) | |
parent | 289c79a4bd350e8a25065102563ad1a183d1b402 (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/cpmac.c
net/mac80211/mlme.c
Diffstat (limited to 'include/net/mac80211.h')
-rw-r--r-- | include/net/mac80211.h | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 909956c97c44..2f9853997992 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h | |||
@@ -1602,13 +1602,16 @@ void ieee80211_wake_queues(struct ieee80211_hw *hw); | |||
1602 | void ieee80211_scan_completed(struct ieee80211_hw *hw); | 1602 | void 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 | */ |
1614 | void ieee80211_iterate_active_interfaces(struct ieee80211_hw *hw, | 1617 | void 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 | */ | ||
1634 | void 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 |