aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2013-07-08 10:55:49 -0400
committerJohannes Berg <johannes.berg@intel.com>2013-07-16 02:58:01 -0400
commitdcd6eac1f3b5fa1df11dfa99da0cf75b76cfef97 (patch)
tree6bd0f6452332418b8c17e9d4c0358fdb7d9678ef /include/uapi/linux
parentbe29b99a9b51b0338eea3c66a58de53bbd01de24 (diff)
nl80211: add scan width to bss and scan request structs
To allow scanning and working with 5 MHz and 10 MHz BSS, extend the inform bss commands and add wrappers to take 5 and 10 MHz bss into account. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Mathias Kretschmer <mathias.kretschmer@fokus.fraunhofer.de> Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/nl80211.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 5abc54d14d4d..eb68735b3318 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -2808,6 +2808,21 @@ enum nl80211_chan_width {
2808}; 2808};
2809 2809
2810/** 2810/**
2811 * enum nl80211_bss_scan_width - control channel width for a BSS
2812 *
2813 * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute.
2814 *
2815 * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible
2816 * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide
2817 * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide
2818 */
2819enum nl80211_bss_scan_width {
2820 NL80211_BSS_CHAN_WIDTH_20,
2821 NL80211_BSS_CHAN_WIDTH_10,
2822 NL80211_BSS_CHAN_WIDTH_5,
2823};
2824
2825/**
2811 * enum nl80211_bss - netlink attributes for a BSS 2826 * enum nl80211_bss - netlink attributes for a BSS
2812 * 2827 *
2813 * @__NL80211_BSS_INVALID: invalid 2828 * @__NL80211_BSS_INVALID: invalid
@@ -2831,6 +2846,8 @@ enum nl80211_chan_width {
2831 * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information 2846 * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
2832 * elements from a Beacon frame (bin); not present if no Beacon frame has 2847 * elements from a Beacon frame (bin); not present if no Beacon frame has
2833 * yet been received 2848 * yet been received
2849 * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
2850 * (u32, enum nl80211_bss_scan_width)
2834 * @__NL80211_BSS_AFTER_LAST: internal 2851 * @__NL80211_BSS_AFTER_LAST: internal
2835 * @NL80211_BSS_MAX: highest BSS attribute 2852 * @NL80211_BSS_MAX: highest BSS attribute
2836 */ 2853 */
@@ -2847,6 +2864,7 @@ enum nl80211_bss {
2847 NL80211_BSS_STATUS, 2864 NL80211_BSS_STATUS,
2848 NL80211_BSS_SEEN_MS_AGO, 2865 NL80211_BSS_SEEN_MS_AGO,
2849 NL80211_BSS_BEACON_IES, 2866 NL80211_BSS_BEACON_IES,
2867 NL80211_BSS_CHAN_WIDTH,
2850 2868
2851 /* keep last */ 2869 /* keep last */
2852 __NL80211_BSS_AFTER_LAST, 2870 __NL80211_BSS_AFTER_LAST,