diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-07-06 21:56:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-10 15:02:31 -0400 |
commit | cb0b4beb93d14429bf0c50fc1ab8e26348dca880 (patch) | |
tree | 2bdb9aa1f2b3e7e2fdd9425da5ab6aa062134aa5 /include/net/cfg80211.h | |
parent | c238c8ac63f2d33ea5e7c0b9e9e0ccd8ae9a34e4 (diff) |
cfg80211: mlme API must be able to sleep
After the mac80211 mlme cleanup, we can require that
the MLME functions in cfg80211 can sleep. This will
simplify future work in cfg80211 a lot.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index fe49833242d7..60c1f11da45f 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1721,70 +1721,68 @@ void cfg80211_unlink_bss(struct wiphy *wiphy, struct cfg80211_bss *bss); | |||
1721 | * @dev: network device | 1721 | * @dev: network device |
1722 | * @buf: authentication frame (header + body) | 1722 | * @buf: authentication frame (header + body) |
1723 | * @len: length of the frame data | 1723 | * @len: length of the frame data |
1724 | * @gfp: allocation flags | ||
1725 | * | 1724 | * |
1726 | * This function is called whenever an authentication has been processed in | 1725 | * This function is called whenever an authentication has been processed in |
1727 | * station mode. The driver is required to call either this function or | 1726 | * station mode. The driver is required to call either this function or |
1728 | * cfg80211_send_auth_timeout() to indicate the result of cfg80211_ops::auth() | 1727 | * cfg80211_send_auth_timeout() to indicate the result of cfg80211_ops::auth() |
1729 | * call. | 1728 | * call. This function may sleep. |
1730 | */ | 1729 | */ |
1731 | void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len, gfp_t gfp); | 1730 | void cfg80211_send_rx_auth(struct net_device *dev, const u8 *buf, size_t len); |
1732 | 1731 | ||
1733 | /** | 1732 | /** |
1734 | * cfg80211_send_auth_timeout - notification of timed out authentication | 1733 | * cfg80211_send_auth_timeout - notification of timed out authentication |
1735 | * @dev: network device | 1734 | * @dev: network device |
1736 | * @addr: The MAC address of the device with which the authentication timed out | 1735 | * @addr: The MAC address of the device with which the authentication timed out |
1737 | * @gfp: allocation flags | 1736 | * |
1737 | * This function may sleep. | ||
1738 | */ | 1738 | */ |
1739 | void cfg80211_send_auth_timeout(struct net_device *dev, const u8 *addr, gfp_t gfp); | 1739 | void cfg80211_send_auth_timeout(struct net_device *dev, const u8 *addr); |
1740 | 1740 | ||
1741 | /** | 1741 | /** |
1742 | * cfg80211_send_rx_assoc - notification of processed association | 1742 | * cfg80211_send_rx_assoc - notification of processed association |
1743 | * @dev: network device | 1743 | * @dev: network device |
1744 | * @buf: (re)association response frame (header + body) | 1744 | * @buf: (re)association response frame (header + body) |
1745 | * @len: length of the frame data | 1745 | * @len: length of the frame data |
1746 | * @gfp: allocation flags | ||
1747 | * | 1746 | * |
1748 | * This function is called whenever a (re)association response has been | 1747 | * This function is called whenever a (re)association response has been |
1749 | * processed in station mode. The driver is required to call either this | 1748 | * processed in station mode. The driver is required to call either this |
1750 | * function or cfg80211_send_assoc_timeout() to indicate the result of | 1749 | * function or cfg80211_send_assoc_timeout() to indicate the result of |
1751 | * cfg80211_ops::assoc() call. | 1750 | * cfg80211_ops::assoc() call. This function may sleep. |
1752 | */ | 1751 | */ |
1753 | void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len, gfp_t gfp); | 1752 | void cfg80211_send_rx_assoc(struct net_device *dev, const u8 *buf, size_t len); |
1754 | 1753 | ||
1755 | /** | 1754 | /** |
1756 | * cfg80211_send_assoc_timeout - notification of timed out association | 1755 | * cfg80211_send_assoc_timeout - notification of timed out association |
1757 | * @dev: network device | 1756 | * @dev: network device |
1758 | * @addr: The MAC address of the device with which the association timed out | 1757 | * @addr: The MAC address of the device with which the association timed out |
1759 | * @gfp: allocation flags | 1758 | * |
1759 | * This function may sleep. | ||
1760 | */ | 1760 | */ |
1761 | void cfg80211_send_assoc_timeout(struct net_device *dev, const u8 *addr, gfp_t gfp); | 1761 | void cfg80211_send_assoc_timeout(struct net_device *dev, const u8 *addr); |
1762 | 1762 | ||
1763 | /** | 1763 | /** |
1764 | * cfg80211_send_deauth - notification of processed deauthentication | 1764 | * cfg80211_send_deauth - notification of processed deauthentication |
1765 | * @dev: network device | 1765 | * @dev: network device |
1766 | * @buf: deauthentication frame (header + body) | 1766 | * @buf: deauthentication frame (header + body) |
1767 | * @len: length of the frame data | 1767 | * @len: length of the frame data |
1768 | * @gfp: allocation flags | ||
1769 | * | 1768 | * |
1770 | * This function is called whenever deauthentication has been processed in | 1769 | * This function is called whenever deauthentication has been processed in |
1771 | * station mode. This includes both received deauthentication frames and | 1770 | * station mode. This includes both received deauthentication frames and |
1772 | * locally generated ones. | 1771 | * locally generated ones. This function may sleep. |
1773 | */ | 1772 | */ |
1774 | void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len, gfp_t gfp); | 1773 | void cfg80211_send_deauth(struct net_device *dev, const u8 *buf, size_t len); |
1775 | 1774 | ||
1776 | /** | 1775 | /** |
1777 | * cfg80211_send_disassoc - notification of processed disassociation | 1776 | * cfg80211_send_disassoc - notification of processed disassociation |
1778 | * @dev: network device | 1777 | * @dev: network device |
1779 | * @buf: disassociation response frame (header + body) | 1778 | * @buf: disassociation response frame (header + body) |
1780 | * @len: length of the frame data | 1779 | * @len: length of the frame data |
1781 | * @gfp: allocation flags | ||
1782 | * | 1780 | * |
1783 | * This function is called whenever disassociation has been processed in | 1781 | * This function is called whenever disassociation has been processed in |
1784 | * station mode. This includes both received disassociation frames and locally | 1782 | * station mode. This includes both received disassociation frames and locally |
1785 | * generated ones. | 1783 | * generated ones. This function may sleep. |
1786 | */ | 1784 | */ |
1787 | void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len, gfp_t gfp); | 1785 | void cfg80211_send_disassoc(struct net_device *dev, const u8 *buf, size_t len); |
1788 | 1786 | ||
1789 | /** | 1787 | /** |
1790 | * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP) | 1788 | * cfg80211_michael_mic_failure - notification of Michael MIC failure (TKIP) |