aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2014-02-20 15:02:02 -0500
committerJohn W. Linville <linville@tuxdriver.com>2014-02-20 15:02:02 -0500
commit88daf80dcca19ff995cc263592426f734a9702f3 (patch)
tree7a52e25df74e52d00c3821032e719244e8a5526f /include/uapi
parent010d3c3989706d800ae72253773fa6537cc9f74c (diff)
parent35582ad9d342025653aaf28ed321bf5352488d7f (diff)
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/nl80211.h52
1 files changed, 47 insertions, 5 deletions
diff --git a/include/uapi/linux/nl80211.h b/include/uapi/linux/nl80211.h
index 91054fd660e0..a12e6cae5132 100644
--- a/include/uapi/linux/nl80211.h
+++ b/include/uapi/linux/nl80211.h
@@ -418,8 +418,18 @@
418 * %NL80211_ATTR_SSID attribute, and can optionally specify the association 418 * %NL80211_ATTR_SSID attribute, and can optionally specify the association
419 * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP, 419 * IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP,
420 * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT, 420 * %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT,
421 * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and 421 * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
422 * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT. 422 * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and
423 * %NL80211_ATTR_WIPHY_FREQ_HINT.
424 * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
425 * restrictions on BSS selection, i.e., they effectively prevent roaming
426 * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT
427 * can be included to provide a recommendation of the initial BSS while
428 * allowing the driver to roam to other BSSes within the ESS and also to
429 * ignore this recommendation if the indicated BSS is not ideal. Only one
430 * set of BSSID,frequency parameters is used (i.e., either the enforcing
431 * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict
432 * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT).
423 * Background scan period can optionally be 433 * Background scan period can optionally be
424 * specified in %NL80211_ATTR_BG_SCAN_PERIOD, 434 * specified in %NL80211_ATTR_BG_SCAN_PERIOD,
425 * if not specified default background scan configuration 435 * if not specified default background scan configuration
@@ -1555,6 +1565,16 @@ enum nl80211_commands {
1555 * data is in the format defined for the payload of the QoS Map Set element 1565 * data is in the format defined for the payload of the QoS Map Set element
1556 * in IEEE Std 802.11-2012, 8.4.2.97. 1566 * in IEEE Std 802.11-2012, 8.4.2.97.
1557 * 1567 *
1568 * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
1569 * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
1570 *
1571 * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
1572 * associated stations are supported in AP mode (including P2P GO); u32.
1573 * Since drivers may not have a fixed limit on the maximum number (e.g.,
1574 * other concurrent operations may affect this), drivers are allowed to
1575 * advertise values that cannot always be met. In such cases, an attempt
1576 * to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
1577 *
1558 * @NL80211_ATTR_MAX: highest attribute number currently defined 1578 * @NL80211_ATTR_MAX: highest attribute number currently defined
1559 * @__NL80211_ATTR_AFTER_LAST: internal use 1579 * @__NL80211_ATTR_AFTER_LAST: internal use
1560 */ 1580 */
@@ -1883,6 +1903,11 @@ enum nl80211_attrs {
1883 1903
1884 NL80211_ATTR_QOS_MAP, 1904 NL80211_ATTR_QOS_MAP,
1885 1905
1906 NL80211_ATTR_MAC_HINT,
1907 NL80211_ATTR_WIPHY_FREQ_HINT,
1908
1909 NL80211_ATTR_MAX_AP_ASSOC_STA,
1910
1886 /* add attributes here, update the policy in nl80211.c */ 1911 /* add attributes here, update the policy in nl80211.c */
1887 1912
1888 __NL80211_ATTR_AFTER_LAST, 1913 __NL80211_ATTR_AFTER_LAST,
@@ -2412,7 +2437,10 @@ enum nl80211_reg_type {
2412 * in KHz. This is not a center a frequency but an actual regulatory 2437 * in KHz. This is not a center a frequency but an actual regulatory
2413 * band edge. 2438 * band edge.
2414 * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this 2439 * @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
2415 * frequency range, in KHz. 2440 * frequency range, in KHz. If not present or 0, maximum available
2441 * bandwidth should be calculated base on contiguous rules and wider
2442 * channels will be allowed to cross multiple contiguous/overlapping
2443 * frequency ranges.
2416 * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain 2444 * @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
2417 * for a given frequency range. The value is in mBi (100 * dBi). 2445 * for a given frequency range. The value is in mBi (100 * dBi).
2418 * If you don't have one then don't send this. 2446 * If you don't have one then don't send this.
@@ -2442,9 +2470,15 @@ enum nl80211_reg_rule_attr {
2442 * enum nl80211_sched_scan_match_attr - scheduled scan match attributes 2470 * enum nl80211_sched_scan_match_attr - scheduled scan match attributes
2443 * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved 2471 * @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
2444 * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching, 2472 * @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
2445 * only report BSS with matching SSID. 2473 * only report BSS with matching SSID.
2446 * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a 2474 * @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
2447 * BSS in scan results. Filtering is turned off if not specified. 2475 * BSS in scan results. Filtering is turned off if not specified. Note that
2476 * if this attribute is in a match set of its own, then it is treated as
2477 * the default value for all matchsets with an SSID, rather than being a
2478 * matchset of its own without an RSSI filter. This is due to problems with
2479 * how this API was implemented in the past. Also, due to the same problem,
2480 * the only way to create a matchset with only an RSSI filter (with this
2481 * attribute) is if there's only a single matchset with the RSSI attribute.
2448 * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter 2482 * @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
2449 * attribute number currently defined 2483 * attribute number currently defined
2450 * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use 2484 * @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
@@ -3131,6 +3165,7 @@ enum nl80211_key_attributes {
3131 * in an array of MCS numbers. 3165 * in an array of MCS numbers.
3132 * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection, 3166 * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
3133 * see &struct nl80211_txrate_vht 3167 * see &struct nl80211_txrate_vht
3168 * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi
3134 * @__NL80211_TXRATE_AFTER_LAST: internal 3169 * @__NL80211_TXRATE_AFTER_LAST: internal
3135 * @NL80211_TXRATE_MAX: highest TX rate attribute 3170 * @NL80211_TXRATE_MAX: highest TX rate attribute
3136 */ 3171 */
@@ -3139,6 +3174,7 @@ enum nl80211_tx_rate_attributes {
3139 NL80211_TXRATE_LEGACY, 3174 NL80211_TXRATE_LEGACY,
3140 NL80211_TXRATE_HT, 3175 NL80211_TXRATE_HT,
3141 NL80211_TXRATE_VHT, 3176 NL80211_TXRATE_VHT,
3177 NL80211_TXRATE_GI,
3142 3178
3143 /* keep last */ 3179 /* keep last */
3144 __NL80211_TXRATE_AFTER_LAST, 3180 __NL80211_TXRATE_AFTER_LAST,
@@ -3156,6 +3192,12 @@ struct nl80211_txrate_vht {
3156 __u16 mcs[NL80211_VHT_NSS_MAX]; 3192 __u16 mcs[NL80211_VHT_NSS_MAX];
3157}; 3193};
3158 3194
3195enum nl80211_txrate_gi {
3196 NL80211_TXRATE_DEFAULT_GI,
3197 NL80211_TXRATE_FORCE_SGI,
3198 NL80211_TXRATE_FORCE_LGI,
3199};
3200
3159/** 3201/**
3160 * enum nl80211_band - Frequency band 3202 * enum nl80211_band - Frequency band
3161 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band 3203 * @NL80211_BAND_2GHZ: 2.4 GHz ISM band