diff options
author | Arik Nemtsov <arik@wizery.com> | 2011-11-10 04:28:55 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-11 12:32:51 -0500 |
commit | 87bbbe22f84b91d0bcd3a7fc638e4f5e8224cc4e (patch) | |
tree | ef61839cade89a6c47c96c3447d0d4c12f913c41 /include/net/cfg80211.h | |
parent | d64d373ffed925f29c3e68a8d6f45677a622054e (diff) |
nl80211: Add probe response offload attribute
Notify user-space about probe-response offloading support in the driver.
A wiphy flag is used to indicate support and a bitmap of protocols
determines which protocols are supported.
Signed-off-by: Guy Eilam <guy@wizery.com>
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include/net/cfg80211.h')
-rw-r--r-- | include/net/cfg80211.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 50e3608f5656..093f538f65d6 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1694,6 +1694,8 @@ struct cfg80211_ops { | |||
1694 | * @WIPHY_FLAG_REPORTS_OBSS: the device will report beacons from other BSSes | 1694 | * @WIPHY_FLAG_REPORTS_OBSS: the device will report beacons from other BSSes |
1695 | * when there are virtual interfaces in AP mode by calling | 1695 | * when there are virtual interfaces in AP mode by calling |
1696 | * cfg80211_report_obss_beacon(). | 1696 | * cfg80211_report_obss_beacon(). |
1697 | * @WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD: When operating as an AP, the device | ||
1698 | * responds to probe-requests in hardware. | ||
1697 | */ | 1699 | */ |
1698 | enum wiphy_flags { | 1700 | enum wiphy_flags { |
1699 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), | 1701 | WIPHY_FLAG_CUSTOM_REGULATORY = BIT(0), |
@@ -1714,6 +1716,7 @@ enum wiphy_flags { | |||
1714 | WIPHY_FLAG_TDLS_EXTERNAL_SETUP = BIT(16), | 1716 | WIPHY_FLAG_TDLS_EXTERNAL_SETUP = BIT(16), |
1715 | WIPHY_FLAG_HAVE_AP_SME = BIT(17), | 1717 | WIPHY_FLAG_HAVE_AP_SME = BIT(17), |
1716 | WIPHY_FLAG_REPORTS_OBSS = BIT(18), | 1718 | WIPHY_FLAG_REPORTS_OBSS = BIT(18), |
1719 | WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD = BIT(19), | ||
1717 | }; | 1720 | }; |
1718 | 1721 | ||
1719 | /** | 1722 | /** |
@@ -1982,6 +1985,13 @@ struct wiphy { | |||
1982 | u32 available_antennas_tx; | 1985 | u32 available_antennas_tx; |
1983 | u32 available_antennas_rx; | 1986 | u32 available_antennas_rx; |
1984 | 1987 | ||
1988 | /* | ||
1989 | * Bitmap of supported protocols for probe response offloading | ||
1990 | * see &enum nl80211_probe_resp_offload_support_attr. Only valid | ||
1991 | * when the wiphy flag @WIPHY_FLAG_AP_PROBE_RESP_OFFLOAD is set. | ||
1992 | */ | ||
1993 | u32 probe_resp_offload; | ||
1994 | |||
1985 | /* If multiple wiphys are registered and you're handed e.g. | 1995 | /* If multiple wiphys are registered and you're handed e.g. |
1986 | * a regular netdev with assigned ieee80211_ptr, you won't | 1996 | * a regular netdev with assigned ieee80211_ptr, you won't |
1987 | * know whether it points to a wiphy your driver has registered | 1997 | * know whether it points to a wiphy your driver has registered |