History

Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem

John W. Linville committed 13 years ago

Commit 79d38f72 parents 03f52a0 0751f86289 files · +27506 −8374Browse files

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

Unified · Split

include/uapi/linux/nl80211.h+95−18
@@ -118,8 +118,9 @@ · 117 unmodified lines
118118 * to get a list of all present wiphys.
119119 * @NL80211_CMD_SET_WIPHY: set wiphy parameters, needs %NL80211_ATTR_WIPHY or
120120 * %NL80211_ATTR_IFINDEX; can be used to set %NL80211_ATTR_WIPHY_NAME,
121− * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ,
122− * %NL80211_ATTR_WIPHY_CHANNEL_TYPE, %NL80211_ATTR_WIPHY_RETRY_SHORT,
121+ * %NL80211_ATTR_WIPHY_TXQ_PARAMS, %NL80211_ATTR_WIPHY_FREQ (and the
122+ * attributes determining the channel width; this is used for setting
123+ * monitor mode channel), %NL80211_ATTR_WIPHY_RETRY_SHORT,
123124 * %NL80211_ATTR_WIPHY_RETRY_LONG, %NL80211_ATTR_WIPHY_FRAG_THRESHOLD,
124125 * and/or %NL80211_ATTR_WIPHY_RTS_THRESHOLD.
125126 * However, for setting the channel, see %NL80211_CMD_SET_CHANNEL
@@ -171,7 +172,7 @@ · 45 unmodified lines
171172 * %NL80211_ATTR_AKM_SUITES, %NL80211_ATTR_PRIVACY,
172173 * %NL80211_ATTR_AUTH_TYPE and %NL80211_ATTR_INACTIVITY_TIMEOUT.
173174 * The channel to use can be set on the interface or be given using the
174− * %NL80211_ATTR_WIPHY_FREQ and %NL80211_ATTR_WIPHY_CHANNEL_TYPE attrs.
175+ * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel width.
175176 * @NL80211_CMD_NEW_BEACON: old alias for %NL80211_CMD_START_AP
176177 * @NL80211_CMD_STOP_AP: Stop AP operation on the given interface
177178 * @NL80211_CMD_DEL_BEACON: old alias for %NL80211_CMD_STOP_AP
@@ -401,8 +402,7 @@ · 223 unmodified lines
401402 * a response while being associated to an AP on another channel.
402403 * %NL80211_ATTR_IFINDEX is used to specify which interface (and thus
403404 * radio) is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the
404− * frequency for the operation and %NL80211_ATTR_WIPHY_CHANNEL_TYPE may be
405− * optionally used to specify additional channel parameters.
405+ * frequency for the operation.
406406 * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds
407407 * to remain on the channel. This command is also used as an event to
408408 * notify when the requested duration starts (it may take a while for the
@@ -440,12 +440,11 @@ · 31 unmodified lines
440440 * as an event indicating reception of a frame that was not processed in
441441 * kernel code, but is for us (i.e., which may need to be processed in a
442442 * user space application). %NL80211_ATTR_FRAME is used to specify the
443− * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ (and
444− * optionally %NL80211_ATTR_WIPHY_CHANNEL_TYPE) is used to indicate on
445− * which channel the frame is to be transmitted or was received. If this
446− * channel is not the current channel (remain-on-channel or the
447− * operational channel) the device will switch to the given channel and
448− * transmit the frame, optionally waiting for a response for the time
443+ * frame contents (including header). %NL80211_ATTR_WIPHY_FREQ is used
444+ * to indicate on which channel the frame is to be transmitted or was
445+ * received. If this channel is not the current channel (remain-on-channel
446+ * or the operational channel) the device will switch to the given channel
447+ * and transmit the frame, optionally waiting for a response for the time
449448 * specified using %NL80211_ATTR_DURATION. When called, this operation
450449 * returns a cookie (%NL80211_ATTR_COOKIE) that will be included with the
451450 * TX status event pertaining to the TX request.
@@ -473,8 +472,8 @@ · 21 unmodified lines
473472 * command is used as an event to indicate the that a trigger level was
474473 * reached.
475474 * @NL80211_CMD_SET_CHANNEL: Set the channel (using %NL80211_ATTR_WIPHY_FREQ
476− * and %NL80211_ATTR_WIPHY_CHANNEL_TYPE) the given interface (identifed
477− * by %NL80211_ATTR_IFINDEX) shall operate on.
475+ * and the attributes determining channel width) the given interface
476+ * (identifed by %NL80211_ATTR_IFINDEX) shall operate on.
478477 * In case multiple channels are supported by the device, the mechanism
479478 * with which it switches channels is implementation-defined.
480479 * When a monitor interface is given, it can only switch channel while
@@ -526,6 +525,12 @@ · 45 unmodified lines
526525 * of PMKSA caching dandidates.
527526 *
528527 * @NL80211_CMD_TDLS_OPER: Perform a high-level TDLS command (e.g. link setup).
528+ * In addition, this can be used as an event to request userspace to take
529+ * actions on TDLS links (set up a new link or tear down an existing one).
530+ * In such events, %NL80211_ATTR_TDLS_OPERATION indicates the requested
531+ * operation, %NL80211_ATTR_MAC contains the peer MAC address, and
532+ * %NL80211_ATTR_REASON_CODE the reason code to be used (only with
533+ * %NL80211_TDLS_TEARDOWN).
529534 * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame.
530535 *
531536 * @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP
@@ -562,8 +567,8 @@ · 30 unmodified lines
562567 *
563568 * @NL80211_CMD_CH_SWITCH_NOTIFY: An AP or GO may decide to switch channels
564569 * independently of the userspace SME, send this event indicating
565− * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ with
566− * %NL80211_ATTR_WIPHY_CHANNEL_TYPE.
570+ * %NL80211_ATTR_IFINDEX is now on %NL80211_ATTR_WIPHY_FREQ and the
571+ * attributes determining channel width.
567572 *
568573 * @NL80211_CMD_START_P2P_DEVICE: Start the given P2P Device, identified by
569574 * its %NL80211_ATTR_WDEV identifier. It must have been created with
@@ -578,6 +583,9 @@ · 8 unmodified lines
578583 * station, due to particular reason. %NL80211_ATTR_CONN_FAILED_REASON
579584 * is used for this.
580585 *
586+ * @NL80211_CMD_SET_MCAST_RATE: Change the rate used to send multicast frames
587+ * for IBSS or MESH vif.
588+ *
581589 * @NL80211_CMD_MAX: highest used command number
582590 * @__NL80211_CMD_AFTER_LAST: internal use
583591 */
@@ -726,6 +734,8 @@ enum nl80211_commands { · 142 unmodified lines
726734
727735 NL80211_CMD_CONN_FAILED,
728736
737+ NL80211_CMD_SET_MCAST_RATE,
738+
729739 /* add new commands above here */
730740
731741 /* used to define NL80211_CMD_MAX below */
@@ -762,14 +772,26 @@ enum nl80211_commands { · 30 unmodified lines
762772 * /sys/class/ieee80211/<phyname>/index
763773 * @NL80211_ATTR_WIPHY_NAME: wiphy name (used for renaming)
764774 * @NL80211_ATTR_WIPHY_TXQ_PARAMS: a nested array of TX queue parameters
765− * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz
775+ * @NL80211_ATTR_WIPHY_FREQ: frequency of the selected channel in MHz,
776+ * defines the channel together with the (deprecated)
777+ * %NL80211_ATTR_WIPHY_CHANNEL_TYPE attribute or the attributes
778+ * %NL80211_ATTR_CHANNEL_WIDTH and if needed %NL80211_ATTR_CENTER_FREQ1
779+ * and %NL80211_ATTR_CENTER_FREQ2
780+ * @NL80211_ATTR_CHANNEL_WIDTH: u32 attribute containing one of the values
781+ * of &enum nl80211_chan_width, describing the channel width. See the
782+ * documentation of the enum for more information.
783+ * @NL80211_ATTR_CENTER_FREQ1: Center frequency of the first part of the
784+ * channel, used for anything but 20 MHz bandwidth
785+ * @NL80211_ATTR_CENTER_FREQ2: Center frequency of the second part of the
786+ * channel, used only for 80+80 MHz bandwidth
766787 * @NL80211_ATTR_WIPHY_CHANNEL_TYPE: included with NL80211_ATTR_WIPHY_FREQ
767− * if HT20 or HT40 are allowed (i.e., 802.11n disabled if not included):
788+ * if HT20 or HT40 are to be used (i.e., HT disabled if not included):
768789 * NL80211_CHAN_NO_HT = HT not allowed (i.e., same as not including
769790 * this attribute)
770791 * NL80211_CHAN_HT20 = HT20 only
771792 * NL80211_CHAN_HT40MINUS = secondary channel is below the primary channel
772793 * NL80211_CHAN_HT40PLUS = secondary channel is above the primary channel
794+ * This attribute is now deprecated.
773795 * @NL80211_ATTR_WIPHY_RETRY_SHORT: TX retry limit for frames whose length is
774796 * less than or equal to the RTS threshold; allowed range: 1..255;
775797 * dot11ShortRetryLimit; u8
@@ -1544,6 +1566,10 @@ enum nl80211_attrs { · 768 unmodified lines
15441566
15451567 NL80211_ATTR_SCAN_FLAGS,
15461568
1569+ NL80211_ATTR_CHANNEL_WIDTH,
1570+ NL80211_ATTR_CENTER_FREQ1,
1571+ NL80211_ATTR_CENTER_FREQ2,
1572+
15471573 /* add attributes here, update the policy in nl80211.c */
15481574
15491575 __NL80211_ATTR_AFTER_LAST,
@@ -1708,10 +1734,15 @@ struct nl80211_sta_flag_update { · 158 unmodified lines
17081734 * @__NL80211_RATE_INFO_INVALID: attribute number 0 is reserved
17091735 * @NL80211_RATE_INFO_BITRATE: total bitrate (u16, 100kbit/s)
17101736 * @NL80211_RATE_INFO_MCS: mcs index for 802.11n (u8)
1711− * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 Mhz dualchannel bitrate
1737+ * @NL80211_RATE_INFO_40_MHZ_WIDTH: 40 MHz dualchannel bitrate
17121738 * @NL80211_RATE_INFO_SHORT_GI: 400ns guard interval
17131739 * @NL80211_RATE_INFO_BITRATE32: total bitrate (u32, 100kbit/s)
17141740 * @NL80211_RATE_INFO_MAX: highest rate_info number currently defined
1741+ * @NL80211_RATE_INFO_VHT_MCS: MCS index for VHT (u8)
1742+ * @NL80211_RATE_INFO_VHT_NSS: number of streams in VHT (u8)
1743+ * @NL80211_RATE_INFO_80_MHZ_WIDTH: 80 MHz VHT rate
1744+ * @NL80211_RATE_INFO_80P80_MHZ_WIDTH: 80+80 MHz VHT rate
1745+ * @NL80211_RATE_INFO_160_MHZ_WIDTH: 160 MHz VHT rate
17151746 * @__NL80211_RATE_INFO_AFTER_LAST: internal use
17161747 */
17171748 enum nl80211_rate_info {
@@ -1721,6 +1752,11 @@ enum nl80211_rate_info { · 3 unmodified lines
17211752 NL80211_RATE_INFO_40_MHZ_WIDTH,
17221753 NL80211_RATE_INFO_SHORT_GI,
17231754 NL80211_RATE_INFO_BITRATE32,
1755+ NL80211_RATE_INFO_VHT_MCS,
1756+ NL80211_RATE_INFO_VHT_NSS,
1757+ NL80211_RATE_INFO_80_MHZ_WIDTH,
1758+ NL80211_RATE_INFO_80P80_MHZ_WIDTH,
1759+ NL80211_RATE_INFO_160_MHZ_WIDTH,
17241760
17251761 /* keep last */
17261762 __NL80211_RATE_INFO_AFTER_LAST,
@@ -2429,6 +2465,15 @@ enum nl80211_ac { · 702 unmodified lines
24292465 #define NL80211_TXQ_Q_BE NL80211_AC_BE
24302466 #define NL80211_TXQ_Q_BK NL80211_AC_BK
24312467
2468+/**
2469+ * enum nl80211_channel_type - channel type
2470+ * @NL80211_CHAN_NO_HT: 20 MHz, non-HT channel
2471+ * @NL80211_CHAN_HT20: 20 MHz HT channel
2472+ * @NL80211_CHAN_HT40MINUS: HT40 channel, secondary channel
2473+ * below the control channel
2474+ * @NL80211_CHAN_HT40PLUS: HT40 channel, secondary channel
2475+ * above the control channel
2476+ */
24322477 enum nl80211_channel_type {
24332478 NL80211_CHAN_NO_HT,
24342479 NL80211_CHAN_HT20,
@@ -2436,6 +2481,32 @@ enum nl80211_channel_type { · 1 unmodified line
24362481 NL80211_CHAN_HT40PLUS
24372482 };
24382483
2484+/**
2485+ * enum nl80211_chan_width - channel width definitions
2486+ *
2487+ * These values are used with the %NL80211_ATTR_CHANNEL_WIDTH
2488+ * attribute.
2489+ *
2490+ * @NL80211_CHAN_WIDTH_20_NOHT: 20 MHz, non-HT channel
2491+ * @NL80211_CHAN_WIDTH_20: 20 MHz HT channel
2492+ * @NL80211_CHAN_WIDTH_40: 40 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
2493+ * attribute must be provided as well
2494+ * @NL80211_CHAN_WIDTH_80: 80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
2495+ * attribute must be provided as well
2496+ * @NL80211_CHAN_WIDTH_80P80: 80+80 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
2497+ * and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well
2498+ * @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
2499+ * attribute must be provided as well
2500+ */
2501+enum nl80211_chan_width {
2502+ NL80211_CHAN_WIDTH_20_NOHT,
2503+ NL80211_CHAN_WIDTH_20,
2504+ NL80211_CHAN_WIDTH_40,
2505+ NL80211_CHAN_WIDTH_80,
2506+ NL80211_CHAN_WIDTH_80P80,
2507+ NL80211_CHAN_WIDTH_160,
2508+};
2509+
24392510 /**
24402511 * enum nl80211_bss - netlink attributes for a BSS
24412512 *
@@ -3051,6 +3122,10 @@ enum nl80211_ap_sme_features { · 609 unmodified lines
30513122 * @NL80211_FEATURE_LOW_PRIORITY_SCAN: This driver supports low priority scan
30523123 * @NL80211_FEATURE_SCAN_FLUSH: Scan flush is supported
30533124 * @NL80211_FEATURE_AP_SCAN: Support scanning using an AP vif
3125+ * @NL80211_FEATURE_VIF_TXPOWER: The driver supports per-vif TX power setting
3126+ * @NL80211_FEATURE_NEED_OBSS_SCAN: The driver expects userspace to perform
3127+ * OBSS scans and generate 20/40 BSS coex reports. This flag is used only
3128+ * for drivers implementing the CONNECT API, for AUTH/ASSOC it is implied.
30543129 */
30553130 enum nl80211_feature_flags {
30563131 NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
@@ -3062,6 +3137,8 @@ enum nl80211_feature_flags { · 5 unmodified lines
30623137 NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6,
30633138 NL80211_FEATURE_SCAN_FLUSH = 1 << 7,
30643139 NL80211_FEATURE_AP_SCAN = 1 << 8,
3140+ NL80211_FEATURE_VIF_TXPOWER = 1 << 9,
3141+ NL80211_FEATURE_NEED_OBSS_SCAN = 1 << 10,
30653142 };
30663143
30673144 /**

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