History

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.

Simon Wunderlich committed 13 years ago

Commit dcd6eac1 parent be29b995 files · +97 −19Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/nl80211.h+18−0
@@ -2807,6 +2807,21 @@ enum nl80211_chan_width { · 2806 unmodified lines
28072807 NL80211_CHAN_WIDTH_10,
28082808 };
28092809
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+ */
2819+enum nl80211_bss_scan_width {
2820+ NL80211_BSS_CHAN_WIDTH_20,
2821+ NL80211_BSS_CHAN_WIDTH_10,
2822+ NL80211_BSS_CHAN_WIDTH_5,
2823+};
2824+
28102825 /**
28112826 * enum nl80211_bss - netlink attributes for a BSS
28122827 *
@@ -2831,6 +2846,8 @@ enum nl80211_chan_width { · 18 unmodified lines
28312846 * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
28322847 * elements from a Beacon frame (bin); not present if no Beacon frame has
28332848 * yet been received
2849+ * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
2850+ * (u32, enum nl80211_bss_scan_width)
28342851 * @__NL80211_BSS_AFTER_LAST: internal
28352852 * @NL80211_BSS_MAX: highest BSS attribute
28362853 */
@@ -2847,6 +2864,7 @@ enum nl80211_bss { · 10 unmodified lines
28472864 NL80211_BSS_STATUS,
28482865 NL80211_BSS_SEEN_MS_AGO,
28492866 NL80211_BSS_BEACON_IES,
2867+ NL80211_BSS_CHAN_WIDTH,
28502868
28512869 /* keep last */
28522870 __NL80211_BSS_AFTER_LAST,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t