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
2807 NL80211_CHAN_WIDTH_10,2807 NL80211_CHAN_WIDTH_10,
2808};2808};
2809 2809
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
2810/**2825/**
2811 * enum nl80211_bss - netlink attributes for a BSS2826 * enum nl80211_bss - netlink attributes for a BSS
2812 *2827 *
@@ -2831,6 +2846,8 @@ enum nl80211_chan_width { · 18 unmodified lines
2831 * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information2846 * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
2832 * elements from a Beacon frame (bin); not present if no Beacon frame has2847 * elements from a Beacon frame (bin); not present if no Beacon frame has
2833 * yet been received2848 * 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: internal2851 * @__NL80211_BSS_AFTER_LAST: internal
2835 * @NL80211_BSS_MAX: highest BSS attribute2852 * @NL80211_BSS_MAX: highest BSS attribute
2836 */2853 */
@@ -2847,6 +2864,7 @@ enum nl80211_bss { · 10 unmodified lines
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,

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