848 lines
35 KiB
Diff
848 lines
35 KiB
Diff
diff --git a/src/drivers/driver_nl80211.c b/src/drivers/driver_nl80211.c
|
|
index ebf717a..6875e1b 100644
|
|
--- a/src/drivers/driver_nl80211.c
|
|
+++ b/src/drivers/driver_nl80211.c
|
|
@@ -5584,10 +5584,8 @@ static void phy_info_freq(struct hostapd_hw_modes *mode,
|
|
|
|
if (tb_freq[NL80211_FREQUENCY_ATTR_DISABLED])
|
|
chan->flag |= HOSTAPD_CHAN_DISABLED;
|
|
- if (tb_freq[NL80211_FREQUENCY_ATTR_PASSIVE_SCAN])
|
|
- chan->flag |= HOSTAPD_CHAN_PASSIVE_SCAN;
|
|
- if (tb_freq[NL80211_FREQUENCY_ATTR_NO_IBSS])
|
|
- chan->flag |= HOSTAPD_CHAN_NO_IBSS;
|
|
+ if (tb_freq[NL80211_FREQUENCY_ATTR_NO_IR])
|
|
+ chan->flag |= HOSTAPD_CHAN_PASSIVE_SCAN | HOSTAPD_CHAN_NO_IBSS;
|
|
if (tb_freq[NL80211_FREQUENCY_ATTR_RADAR])
|
|
chan->flag |= HOSTAPD_CHAN_RADAR;
|
|
|
|
@@ -5620,8 +5618,7 @@ static int phy_info_freqs(struct phy_info_arg *phy_info,
|
|
static struct nla_policy freq_policy[NL80211_FREQUENCY_ATTR_MAX + 1] = {
|
|
[NL80211_FREQUENCY_ATTR_FREQ] = { .type = NLA_U32 },
|
|
[NL80211_FREQUENCY_ATTR_DISABLED] = { .type = NLA_FLAG },
|
|
- [NL80211_FREQUENCY_ATTR_PASSIVE_SCAN] = { .type = NLA_FLAG },
|
|
- [NL80211_FREQUENCY_ATTR_NO_IBSS] = { .type = NLA_FLAG },
|
|
+ [NL80211_FREQUENCY_ATTR_NO_IR] = { .type = NLA_FLAG },
|
|
[NL80211_FREQUENCY_ATTR_RADAR] = { .type = NLA_FLAG },
|
|
[NL80211_FREQUENCY_ATTR_MAX_TX_POWER] = { .type = NLA_U32 },
|
|
[NL80211_FREQUENCY_ATTR_DFS_STATE] = { .type = NLA_U32 },
|
|
diff --git a/src/drivers/nl80211_copy.h b/src/drivers/nl80211_copy.h
|
|
index 32b060e..3f77887 100644
|
|
--- a/src/drivers/nl80211_copy.h
|
|
+++ b/src/drivers/nl80211_copy.h
|
|
@@ -126,6 +126,31 @@
|
|
*/
|
|
|
|
/**
|
|
+ * DOC: packet coalesce support
|
|
+ *
|
|
+ * In most cases, host that receives IPv4 and IPv6 multicast/broadcast
|
|
+ * packets does not do anything with these packets. Therefore the
|
|
+ * reception of these unwanted packets causes unnecessary processing
|
|
+ * and power consumption.
|
|
+ *
|
|
+ * Packet coalesce feature helps to reduce number of received interrupts
|
|
+ * to host by buffering these packets in firmware/hardware for some
|
|
+ * predefined time. Received interrupt will be generated when one of the
|
|
+ * following events occur.
|
|
+ * a) Expiration of hardware timer whose expiration time is set to maximum
|
|
+ * coalescing delay of matching coalesce rule.
|
|
+ * b) Coalescing buffer in hardware reaches it's limit.
|
|
+ * c) Packet doesn't match any of the configured coalesce rules.
|
|
+ *
|
|
+ * User needs to configure following parameters for creating a coalesce
|
|
+ * rule.
|
|
+ * a) Maximum coalescing delay
|
|
+ * b) List of packet patterns which needs to be matched
|
|
+ * c) Condition for coalescence. pattern 'match' or 'no match'
|
|
+ * Multiple such rules can be created.
|
|
+ */
|
|
+
|
|
+/**
|
|
* enum nl80211_commands - supported nl80211 commands
|
|
*
|
|
* @NL80211_CMD_UNSPEC: unspecified command to catch errors
|
|
@@ -278,8 +303,9 @@
|
|
* passed, all channels allowed for the current regulatory domain
|
|
* are used. Extra IEs can also be passed from the userspace by
|
|
* using the %NL80211_ATTR_IE attribute.
|
|
- * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT
|
|
- * if scheduled scan is not running.
|
|
+ * @NL80211_CMD_STOP_SCHED_SCAN: stop a scheduled scan. Returns -ENOENT if
|
|
+ * scheduled scan is not running. The caller may assume that as soon
|
|
+ * as the call returns, it is safe to start a new scheduled scan again.
|
|
* @NL80211_CMD_SCHED_SCAN_RESULTS: indicates that there are scheduled scan
|
|
* results available.
|
|
* @NL80211_CMD_SCHED_SCAN_STOPPED: indicates that the scheduled scan has
|
|
@@ -393,8 +419,18 @@
|
|
* %NL80211_ATTR_SSID attribute, and can optionally specify the association
|
|
* IEs in %NL80211_ATTR_IE, %NL80211_ATTR_AUTH_TYPE, %NL80211_ATTR_USE_MFP,
|
|
* %NL80211_ATTR_MAC, %NL80211_ATTR_WIPHY_FREQ, %NL80211_ATTR_CONTROL_PORT,
|
|
- * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE and
|
|
- * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT.
|
|
+ * %NL80211_ATTR_CONTROL_PORT_ETHERTYPE,
|
|
+ * %NL80211_ATTR_CONTROL_PORT_NO_ENCRYPT, %NL80211_ATTR_MAC_HINT, and
|
|
+ * %NL80211_ATTR_WIPHY_FREQ_HINT.
|
|
+ * If included, %NL80211_ATTR_MAC and %NL80211_ATTR_WIPHY_FREQ are
|
|
+ * restrictions on BSS selection, i.e., they effectively prevent roaming
|
|
+ * within the ESS. %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT
|
|
+ * can be included to provide a recommendation of the initial BSS while
|
|
+ * allowing the driver to roam to other BSSes within the ESS and also to
|
|
+ * ignore this recommendation if the indicated BSS is not ideal. Only one
|
|
+ * set of BSSID,frequency parameters is used (i.e., either the enforcing
|
|
+ * %NL80211_ATTR_MAC,%NL80211_ATTR_WIPHY_FREQ or the less strict
|
|
+ * %NL80211_ATTR_MAC_HINT and %NL80211_ATTR_WIPHY_FREQ_HINT).
|
|
* Background scan period can optionally be
|
|
* specified in %NL80211_ATTR_BG_SCAN_PERIOD,
|
|
* if not specified default background scan configuration
|
|
@@ -556,7 +592,14 @@
|
|
* operation, %NL80211_ATTR_MAC contains the peer MAC address, and
|
|
* %NL80211_ATTR_REASON_CODE the reason code to be used (only with
|
|
* %NL80211_TDLS_TEARDOWN).
|
|
- * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame.
|
|
+ * @NL80211_CMD_TDLS_MGMT: Send a TDLS management frame. The
|
|
+ * %NL80211_ATTR_TDLS_ACTION attribute determines the type of frame to be
|
|
+ * sent. Public Action codes (802.11-2012 8.1.5.1) will be sent as
|
|
+ * 802.11 management frames, while TDLS action codes (802.11-2012
|
|
+ * 8.5.13.1) will be encapsulated and sent as data frames. The currently
|
|
+ * supported Public Action code is %WLAN_PUB_ACTION_TDLS_DISCOVER_RES
|
|
+ * and the currently supported TDLS actions codes are given in
|
|
+ * &enum ieee80211_tdls_actioncode.
|
|
*
|
|
* @NL80211_CMD_UNEXPECTED_FRAME: Used by an application controlling an AP
|
|
* (or GO) interface (i.e. hostapd) to ask for unexpected frames to
|
|
@@ -648,6 +691,28 @@
|
|
* @NL80211_CMD_CRIT_PROTOCOL_STOP: Indicates the connection reliability can
|
|
* return back to normal.
|
|
*
|
|
+ * @NL80211_CMD_VENDOR: Vendor-specified command/event. The command is specified
|
|
+ * by the %NL80211_ATTR_VENDOR_ID attribute and a sub-command in
|
|
+ * %NL80211_ATTR_VENDOR_SUBCMD. Parameter(s) can be transported in
|
|
+ * %NL80211_ATTR_VENDOR_DATA.
|
|
+ * For feature advertisement, the %NL80211_ATTR_VENDOR_DATA attribute is
|
|
+ * used in the wiphy data as a nested attribute containing descriptions
|
|
+ * (&struct nl80211_vendor_cmd_info) of the supported vendor commands.
|
|
+ * This may also be sent as an event with the same attributes.
|
|
+ *
|
|
+ * @NL80211_CMD_GET_COALESCE: Get currently supported coalesce rules.
|
|
+ * @NL80211_CMD_SET_COALESCE: Configure coalesce rules or clear existing rules.
|
|
+ *
|
|
+ * @NL80211_CMD_CHANNEL_SWITCH: Perform a channel switch by announcing the
|
|
+ * the new channel information (Channel Switch Announcement - CSA)
|
|
+ * in the beacon for some time (as defined in the
|
|
+ * %NL80211_ATTR_CH_SWITCH_COUNT parameter) and then change to the
|
|
+ * new channel. Userspace provides the new channel information (using
|
|
+ * %NL80211_ATTR_WIPHY_FREQ and the attributes determining channel
|
|
+ * width). %NL80211_ATTR_CH_SWITCH_BLOCK_TX may be supplied to inform
|
|
+ * other station that transmission must be blocked until the channel
|
|
+ * switch is complete.
|
|
+ *
|
|
* @NL80211_CMD_MAX: highest used command number
|
|
* @__NL80211_CMD_AFTER_LAST: internal use
|
|
*/
|
|
@@ -810,6 +875,13 @@ enum nl80211_commands {
|
|
NL80211_CMD_CRIT_PROTOCOL_START,
|
|
NL80211_CMD_CRIT_PROTOCOL_STOP,
|
|
|
|
+ NL80211_CMD_VENDOR,
|
|
+
|
|
+ NL80211_CMD_GET_COALESCE,
|
|
+ NL80211_CMD_SET_COALESCE,
|
|
+
|
|
+ NL80211_CMD_CHANNEL_SWITCH,
|
|
+
|
|
/* add new commands above here */
|
|
|
|
/* used to define NL80211_CMD_MAX below */
|
|
@@ -945,7 +1017,7 @@ enum nl80211_commands {
|
|
* to query the CRDA to retrieve one regulatory domain. This attribute can
|
|
* also be used by userspace to query the kernel for the currently set
|
|
* regulatory domain. We chose an alpha2 as that is also used by the
|
|
- * IEEE-802.11d country information element to identify a country.
|
|
+ * IEEE-802.11 country information element to identify a country.
|
|
* Users can also simply ask the wireless core to set regulatory domain
|
|
* to a specific alpha2.
|
|
* @NL80211_ATTR_REG_RULES: a nested array of regulatory domain regulatory
|
|
@@ -1436,6 +1508,67 @@ enum nl80211_commands {
|
|
* allowed to be used with the first @NL80211_CMD_SET_STATION command to
|
|
* update a TDLS peer STA entry.
|
|
*
|
|
+ * @NL80211_ATTR_SUPPORT_5_MHZ: A flag indicating that the device supports
|
|
+ * 5 MHz channel bandwidth.
|
|
+ * @NL80211_ATTR_SUPPORT_10_MHZ: A flag indicating that the device supports
|
|
+ * 10 MHz channel bandwidth.
|
|
+ *
|
|
+ * @NL80211_ATTR_OPMODE_NOTIF: Operating mode field from Operating Mode
|
|
+ * Notification Element based on association request when used with
|
|
+ * %NL80211_CMD_NEW_STATION; u8 attribute.
|
|
+ *
|
|
+ * @NL80211_ATTR_VENDOR_ID: The vendor ID, either a 24-bit OUI or, if
|
|
+ * %NL80211_VENDOR_ID_IS_LINUX is set, a special Linux ID (not used yet)
|
|
+ * @NL80211_ATTR_VENDOR_SUBCMD: vendor sub-command
|
|
+ * @NL80211_ATTR_VENDOR_DATA: data for the vendor command, if any; this
|
|
+ * attribute is also used for vendor command feature advertisement
|
|
+ *
|
|
+ * @NL80211_ATTR_MAC_HINT: MAC address recommendation as initial BSS
|
|
+ * @NL80211_ATTR_WIPHY_FREQ_HINT: frequency of the recommended initial BSS
|
|
+ *
|
|
+ * @NL80211_ATTR_MAX_AP_ASSOC_STA: Device attribute that indicates how many
|
|
+ * associated stations are supported in AP mode (including P2P GO); u32.
|
|
+ * Since drivers may not have a fixed limit on the maximum number (e.g.,
|
|
+ * other concurrent operations may affect this), drivers are allowed to
|
|
+ * advertise values that cannot always be met. In such cases, an attempt
|
|
+ * to add a new station entry with @NL80211_CMD_NEW_STATION may fail.
|
|
+ *
|
|
+ * @NL80211_ATTR_TDLS_PEER_CAPABILITY: flags for TDLS peer capabilities, u32.
|
|
+ * As specified in the &enum nl80211_tdls_peer_capability.
|
|
+ *
|
|
+ * @NL80211_ATTR_COALESCE_RULE: Coalesce rule information.
|
|
+ *
|
|
+ * @NL80211_ATTR_CH_SWITCH_COUNT: u32 attribute specifying the number of TBTT's
|
|
+ * until the channel switch event.
|
|
+ * @NL80211_ATTR_CH_SWITCH_BLOCK_TX: flag attribute specifying that transmission
|
|
+ * must be blocked on the current channel (before the channel switch
|
|
+ * operation).
|
|
+ * @NL80211_ATTR_CSA_IES: Nested set of attributes containing the IE information
|
|
+ * for the time while performing a channel switch.
|
|
+ * @NL80211_ATTR_CSA_C_OFF_BEACON: Offset of the channel switch counter
|
|
+ * field in the beacons tail (%NL80211_ATTR_BEACON_TAIL).
|
|
+ * @NL80211_ATTR_CSA_C_OFF_PRESP: Offset of the channel switch counter
|
|
+ * field in the probe response (%NL80211_ATTR_PROBE_RESP).
|
|
+ *
|
|
+ * @NL80211_ATTR_RXMGMT_FLAGS: flags for nl80211_send_mgmt(), u32.
|
|
+ * As specified in the &enum nl80211_rxmgmt_flags.
|
|
+ *
|
|
+ * @NL80211_ATTR_STA_SUPPORTED_CHANNELS: array of supported channels.
|
|
+ *
|
|
+ * @NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES: array of supported
|
|
+ * supported operating classes.
|
|
+ *
|
|
+ * @NL80211_ATTR_HANDLE_DFS: A flag indicating whether user space
|
|
+ * controls DFS operation in IBSS mode. If the flag is included in
|
|
+ * %NL80211_CMD_JOIN_IBSS request, the driver will allow use of DFS
|
|
+ * channels and reports radar events to userspace. Userspace is required
|
|
+ * to react to radar events, e.g. initiate a channel switch or leave the
|
|
+ * IBSS network.
|
|
+ *
|
|
+ * @NL80211_ATTR_IFACE_SOCKET_OWNER: flag attribute, if set during interface
|
|
+ * creation then the new interface will be owned by the netlink socket
|
|
+ * that created it and will be destroyed when the socket is closed
|
|
+ *
|
|
* @NL80211_ATTR_MAX: highest attribute number currently defined
|
|
* @__NL80211_ATTR_AFTER_LAST: internal use
|
|
*/
|
|
@@ -1736,6 +1869,40 @@ enum nl80211_attrs {
|
|
|
|
NL80211_ATTR_PEER_AID,
|
|
|
|
+ NL80211_ATTR_SUPPORT_5_MHZ,
|
|
+ NL80211_ATTR_SUPPORT_10_MHZ,
|
|
+
|
|
+ NL80211_ATTR_OPMODE_NOTIF,
|
|
+
|
|
+ NL80211_ATTR_VENDOR_ID,
|
|
+ NL80211_ATTR_VENDOR_SUBCMD,
|
|
+ NL80211_ATTR_VENDOR_DATA,
|
|
+
|
|
+ NL80211_ATTR_MAC_HINT,
|
|
+ NL80211_ATTR_WIPHY_FREQ_HINT,
|
|
+
|
|
+ NL80211_ATTR_MAX_AP_ASSOC_STA,
|
|
+
|
|
+ NL80211_ATTR_TDLS_PEER_CAPABILITY,
|
|
+
|
|
+ NL80211_ATTR_COALESCE_RULE,
|
|
+
|
|
+ NL80211_ATTR_CH_SWITCH_COUNT,
|
|
+ NL80211_ATTR_CH_SWITCH_BLOCK_TX,
|
|
+ NL80211_ATTR_CSA_IES,
|
|
+ NL80211_ATTR_CSA_C_OFF_BEACON,
|
|
+ NL80211_ATTR_CSA_C_OFF_PRESP,
|
|
+
|
|
+ NL80211_ATTR_RXMGMT_FLAGS,
|
|
+
|
|
+ NL80211_ATTR_STA_SUPPORTED_CHANNELS,
|
|
+
|
|
+ NL80211_ATTR_STA_SUPPORTED_OPER_CLASSES,
|
|
+
|
|
+ NL80211_ATTR_HANDLE_DFS,
|
|
+
|
|
+ NL80211_ATTR_IFACE_SOCKET_OWNER,
|
|
+
|
|
/* add attributes here, update the policy in nl80211.c */
|
|
|
|
__NL80211_ATTR_AFTER_LAST,
|
|
@@ -2136,10 +2303,9 @@ enum nl80211_band_attr {
|
|
* @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz
|
|
* @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current
|
|
* regulatory domain.
|
|
- * @NL80211_FREQUENCY_ATTR_PASSIVE_SCAN: Only passive scanning is
|
|
- * permitted on this channel in current regulatory domain.
|
|
- * @NL80211_FREQUENCY_ATTR_NO_IBSS: IBSS networks are not permitted
|
|
- * on this channel in current regulatory domain.
|
|
+ * @NL80211_FREQUENCY_ATTR_NO_IR: no mechanisms that initiate radiation
|
|
+ * are permitted on this channel, this includes sending probe
|
|
+ * requests, or modes of operation that require beaconing.
|
|
* @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory
|
|
* on this channel in current regulatory domain.
|
|
* @NL80211_FREQUENCY_ATTR_MAX_TX_POWER: Maximum transmission power in mBm
|
|
@@ -2158,16 +2324,42 @@ enum nl80211_band_attr {
|
|
* @NL80211_FREQUENCY_ATTR_NO_160MHZ: any 160 MHz (but not 80+80) channel
|
|
* using this channel as the primary or any of the secondary channels
|
|
* isn't possible
|
|
+ * @NL80211_FREQUENCY_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
|
|
+ * @NL80211_FREQUENCY_ATTR_INDOOR_ONLY: Only indoor use is permitted on this
|
|
+ * channel. A channel that has the INDOOR_ONLY attribute can only be
|
|
+ * used when there is a clear assessment that the device is operating in
|
|
+ * an indoor surroundings, i.e., it is connected to AC power (and not
|
|
+ * through portable DC inverters) or is under the control of a master
|
|
+ * that is acting as an AP and is connected to AC power.
|
|
+ * @NL80211_FREQUENCY_ATTR_GO_CONCURRENT: GO operation is allowed on this
|
|
+ * channel if it's connected concurrently to a BSS on the same channel on
|
|
+ * the 2 GHz band or to a channel in the same UNII band (on the 5 GHz
|
|
+ * band), and IEEE80211_CHAN_RADAR is not set. Instantiating a GO on a
|
|
+ * channel that has the GO_CONCURRENT attribute set can be done when there
|
|
+ * is a clear assessment that the device is operating under the guidance of
|
|
+ * an authorized master, i.e., setting up a GO while the device is also
|
|
+ * connected to an AP with DFS and radar detection on the UNII band (it is
|
|
+ * up to user-space, i.e., wpa_supplicant to perform the required
|
|
+ * verifications)
|
|
+ * @NL80211_FREQUENCY_ATTR_NO_20MHZ: 20 MHz operation is not allowed
|
|
+ * on this channel in current regulatory domain.
|
|
+ * @NL80211_FREQUENCY_ATTR_NO_10MHZ: 10 MHz operation is not allowed
|
|
+ * on this channel in current regulatory domain.
|
|
* @NL80211_FREQUENCY_ATTR_MAX: highest frequency attribute number
|
|
* currently defined
|
|
* @__NL80211_FREQUENCY_ATTR_AFTER_LAST: internal use
|
|
+ *
|
|
+ * See https://apps.fcc.gov/eas/comments/GetPublishedDocument.html?id=327&tn=528122
|
|
+ * for more information on the FCC description of the relaxations allowed
|
|
+ * by NL80211_FREQUENCY_ATTR_INDOOR_ONLY and
|
|
+ * NL80211_FREQUENCY_ATTR_GO_CONCURRENT.
|
|
*/
|
|
enum nl80211_frequency_attr {
|
|
__NL80211_FREQUENCY_ATTR_INVALID,
|
|
NL80211_FREQUENCY_ATTR_FREQ,
|
|
NL80211_FREQUENCY_ATTR_DISABLED,
|
|
- NL80211_FREQUENCY_ATTR_PASSIVE_SCAN,
|
|
- NL80211_FREQUENCY_ATTR_NO_IBSS,
|
|
+ NL80211_FREQUENCY_ATTR_NO_IR,
|
|
+ __NL80211_FREQUENCY_ATTR_NO_IBSS,
|
|
NL80211_FREQUENCY_ATTR_RADAR,
|
|
NL80211_FREQUENCY_ATTR_MAX_TX_POWER,
|
|
NL80211_FREQUENCY_ATTR_DFS_STATE,
|
|
@@ -2176,6 +2368,11 @@ enum nl80211_frequency_attr {
|
|
NL80211_FREQUENCY_ATTR_NO_HT40_PLUS,
|
|
NL80211_FREQUENCY_ATTR_NO_80MHZ,
|
|
NL80211_FREQUENCY_ATTR_NO_160MHZ,
|
|
+ NL80211_FREQUENCY_ATTR_DFS_CAC_TIME,
|
|
+ NL80211_FREQUENCY_ATTR_INDOOR_ONLY,
|
|
+ NL80211_FREQUENCY_ATTR_GO_CONCURRENT,
|
|
+ NL80211_FREQUENCY_ATTR_NO_20MHZ,
|
|
+ NL80211_FREQUENCY_ATTR_NO_10MHZ,
|
|
|
|
/* keep last */
|
|
__NL80211_FREQUENCY_ATTR_AFTER_LAST,
|
|
@@ -2183,6 +2380,9 @@ enum nl80211_frequency_attr {
|
|
};
|
|
|
|
#define NL80211_FREQUENCY_ATTR_MAX_TX_POWER NL80211_FREQUENCY_ATTR_MAX_TX_POWER
|
|
+#define NL80211_FREQUENCY_ATTR_PASSIVE_SCAN NL80211_FREQUENCY_ATTR_NO_IR
|
|
+#define NL80211_FREQUENCY_ATTR_NO_IBSS NL80211_FREQUENCY_ATTR_NO_IR
|
|
+#define NL80211_FREQUENCY_ATTR_NO_IR NL80211_FREQUENCY_ATTR_NO_IR
|
|
|
|
/**
|
|
* enum nl80211_bitrate_attr - bitrate attributes
|
|
@@ -2263,12 +2463,14 @@ enum nl80211_reg_type {
|
|
* in KHz. This is not a center a frequency but an actual regulatory
|
|
* band edge.
|
|
* @NL80211_ATTR_FREQ_RANGE_MAX_BW: maximum allowed bandwidth for this
|
|
- * frequency range, in KHz.
|
|
+ * frequency range, in KHz.
|
|
* @NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN: the maximum allowed antenna gain
|
|
* for a given frequency range. The value is in mBi (100 * dBi).
|
|
* If you don't have one then don't send this.
|
|
* @NL80211_ATTR_POWER_RULE_MAX_EIRP: the maximum allowed EIRP for
|
|
* a given frequency range. The value is in mBm (100 * dBm).
|
|
+ * @NL80211_ATTR_DFS_CAC_TIME: DFS CAC time in milliseconds.
|
|
+ * If not present or 0 default CAC time will be used.
|
|
* @NL80211_REG_RULE_ATTR_MAX: highest regulatory rule attribute number
|
|
* currently defined
|
|
* @__NL80211_REG_RULE_ATTR_AFTER_LAST: internal use
|
|
@@ -2284,6 +2486,8 @@ enum nl80211_reg_rule_attr {
|
|
NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN,
|
|
NL80211_ATTR_POWER_RULE_MAX_EIRP,
|
|
|
|
+ NL80211_ATTR_DFS_CAC_TIME,
|
|
+
|
|
/* keep last */
|
|
__NL80211_REG_RULE_ATTR_AFTER_LAST,
|
|
NL80211_REG_RULE_ATTR_MAX = __NL80211_REG_RULE_ATTR_AFTER_LAST - 1
|
|
@@ -2293,9 +2497,15 @@ enum nl80211_reg_rule_attr {
|
|
* enum nl80211_sched_scan_match_attr - scheduled scan match attributes
|
|
* @__NL80211_SCHED_SCAN_MATCH_ATTR_INVALID: attribute number 0 is reserved
|
|
* @NL80211_SCHED_SCAN_MATCH_ATTR_SSID: SSID to be used for matching,
|
|
- * only report BSS with matching SSID.
|
|
+ * only report BSS with matching SSID.
|
|
* @NL80211_SCHED_SCAN_MATCH_ATTR_RSSI: RSSI threshold (in dBm) for reporting a
|
|
- * BSS in scan results. Filtering is turned off if not specified.
|
|
+ * BSS in scan results. Filtering is turned off if not specified. Note that
|
|
+ * if this attribute is in a match set of its own, then it is treated as
|
|
+ * the default value for all matchsets with an SSID, rather than being a
|
|
+ * matchset of its own without an RSSI filter. This is due to problems with
|
|
+ * how this API was implemented in the past. Also, due to the same problem,
|
|
+ * the only way to create a matchset with only an RSSI filter (with this
|
|
+ * attribute) is if there's only a single matchset with the RSSI attribute.
|
|
* @NL80211_SCHED_SCAN_MATCH_ATTR_MAX: highest scheduled scan filter
|
|
* attribute number currently defined
|
|
* @__NL80211_SCHED_SCAN_MATCH_ATTR_AFTER_LAST: internal use
|
|
@@ -2325,8 +2535,12 @@ enum nl80211_sched_scan_match_attr {
|
|
* @NL80211_RRF_DFS: DFS support is required to be used
|
|
* @NL80211_RRF_PTP_ONLY: this is only for Point To Point links
|
|
* @NL80211_RRF_PTMP_ONLY: this is only for Point To Multi Point links
|
|
- * @NL80211_RRF_PASSIVE_SCAN: passive scan is required
|
|
- * @NL80211_RRF_NO_IBSS: no IBSS is allowed
|
|
+ * @NL80211_RRF_NO_IR: no mechanisms that initiate radiation are allowed,
|
|
+ * this includes probe requests or modes of operation that require
|
|
+ * beaconing.
|
|
+ * @NL80211_RRF_AUTO_BW: maximum available bandwidth should be calculated
|
|
+ * base on contiguous rules and wider channels will be allowed to cross
|
|
+ * multiple contiguous/overlapping frequency ranges.
|
|
*/
|
|
enum nl80211_reg_rule_flags {
|
|
NL80211_RRF_NO_OFDM = 1<<0,
|
|
@@ -2336,10 +2550,18 @@ enum nl80211_reg_rule_flags {
|
|
NL80211_RRF_DFS = 1<<4,
|
|
NL80211_RRF_PTP_ONLY = 1<<5,
|
|
NL80211_RRF_PTMP_ONLY = 1<<6,
|
|
- NL80211_RRF_PASSIVE_SCAN = 1<<7,
|
|
- NL80211_RRF_NO_IBSS = 1<<8,
|
|
+ NL80211_RRF_NO_IR = 1<<7,
|
|
+ __NL80211_RRF_NO_IBSS = 1<<8,
|
|
+ NL80211_RRF_AUTO_BW = 1<<11,
|
|
};
|
|
|
|
+#define NL80211_RRF_PASSIVE_SCAN NL80211_RRF_NO_IR
|
|
+#define NL80211_RRF_NO_IBSS NL80211_RRF_NO_IR
|
|
+#define NL80211_RRF_NO_IR NL80211_RRF_NO_IR
|
|
+
|
|
+/* For backport compatibility with older userspace */
|
|
+#define NL80211_RRF_NO_IR_ALL (NL80211_RRF_NO_IR | __NL80211_RRF_NO_IBSS)
|
|
+
|
|
/**
|
|
* enum nl80211_dfs_regions - regulatory DFS regions
|
|
*
|
|
@@ -2369,10 +2591,13 @@ enum nl80211_dfs_regions {
|
|
* present has been registered with the wireless core that
|
|
* has listed NL80211_FEATURE_CELL_BASE_REG_HINTS as a
|
|
* supported feature.
|
|
+ * @NL80211_USER_REG_HINT_INDOOR: a user sent an hint indicating that the
|
|
+ * platform is operating in an indoor environment.
|
|
*/
|
|
enum nl80211_user_reg_hint_type {
|
|
NL80211_USER_REG_HINT_USER = 0,
|
|
NL80211_USER_REG_HINT_CELL_BASE = 1,
|
|
+ NL80211_USER_REG_HINT_INDOOR = 2,
|
|
};
|
|
|
|
/**
|
|
@@ -2428,6 +2653,8 @@ enum nl80211_survey_info {
|
|
* @NL80211_MNTR_FLAG_OTHER_BSS: disable BSSID filtering
|
|
* @NL80211_MNTR_FLAG_COOK_FRAMES: report frames after processing.
|
|
* overrides all other flags.
|
|
+ * @NL80211_MNTR_FLAG_ACTIVE: use the configured MAC address
|
|
+ * and ACK incoming unicast packets.
|
|
*
|
|
* @__NL80211_MNTR_FLAG_AFTER_LAST: internal use
|
|
* @NL80211_MNTR_FLAG_MAX: highest possible monitor flag
|
|
@@ -2439,6 +2666,7 @@ enum nl80211_mntr_flags {
|
|
NL80211_MNTR_FLAG_CONTROL,
|
|
NL80211_MNTR_FLAG_OTHER_BSS,
|
|
NL80211_MNTR_FLAG_COOK_FRAMES,
|
|
+ NL80211_MNTR_FLAG_ACTIVE,
|
|
|
|
/* keep last */
|
|
__NL80211_MNTR_FLAG_AFTER_LAST,
|
|
@@ -2574,6 +2802,10 @@ enum nl80211_mesh_power_mode {
|
|
*
|
|
* @NL80211_MESHCONF_AWAKE_WINDOW: awake window duration (in TUs)
|
|
*
|
|
+ * @NL80211_MESHCONF_PLINK_TIMEOUT: If no tx activity is seen from a STA we've
|
|
+ * established peering with for longer than this time (in seconds), then
|
|
+ * remove it from the STA's list of peers. Default is 30 minutes.
|
|
+ *
|
|
* @__NL80211_MESHCONF_ATTR_AFTER_LAST: internal use
|
|
*/
|
|
enum nl80211_meshconf_params {
|
|
@@ -2605,6 +2837,7 @@ enum nl80211_meshconf_params {
|
|
NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL,
|
|
NL80211_MESHCONF_POWER_MODE,
|
|
NL80211_MESHCONF_AWAKE_WINDOW,
|
|
+ NL80211_MESHCONF_PLINK_TIMEOUT,
|
|
|
|
/* keep last */
|
|
__NL80211_MESHCONF_ATTR_AFTER_LAST,
|
|
@@ -2750,6 +2983,8 @@ enum nl80211_channel_type {
|
|
* and %NL80211_ATTR_CENTER_FREQ2 attributes must be provided as well
|
|
* @NL80211_CHAN_WIDTH_160: 160 MHz channel, the %NL80211_ATTR_CENTER_FREQ1
|
|
* attribute must be provided as well
|
|
+ * @NL80211_CHAN_WIDTH_5: 5 MHz OFDM channel
|
|
+ * @NL80211_CHAN_WIDTH_10: 10 MHz OFDM channel
|
|
*/
|
|
enum nl80211_chan_width {
|
|
NL80211_CHAN_WIDTH_20_NOHT,
|
|
@@ -2758,6 +2993,23 @@ enum nl80211_chan_width {
|
|
NL80211_CHAN_WIDTH_80,
|
|
NL80211_CHAN_WIDTH_80P80,
|
|
NL80211_CHAN_WIDTH_160,
|
|
+ NL80211_CHAN_WIDTH_5,
|
|
+ NL80211_CHAN_WIDTH_10,
|
|
+};
|
|
+
|
|
+/**
|
|
+ * enum nl80211_bss_scan_width - control channel width for a BSS
|
|
+ *
|
|
+ * These values are used with the %NL80211_BSS_CHAN_WIDTH attribute.
|
|
+ *
|
|
+ * @NL80211_BSS_CHAN_WIDTH_20: control channel is 20 MHz wide or compatible
|
|
+ * @NL80211_BSS_CHAN_WIDTH_10: control channel is 10 MHz wide
|
|
+ * @NL80211_BSS_CHAN_WIDTH_5: control channel is 5 MHz wide
|
|
+ */
|
|
+enum nl80211_bss_scan_width {
|
|
+ NL80211_BSS_CHAN_WIDTH_20,
|
|
+ NL80211_BSS_CHAN_WIDTH_10,
|
|
+ NL80211_BSS_CHAN_WIDTH_5,
|
|
};
|
|
|
|
/**
|
|
@@ -2784,6 +3036,8 @@ enum nl80211_chan_width {
|
|
* @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
|
|
* elements from a Beacon frame (bin); not present if no Beacon frame has
|
|
* yet been received
|
|
+ * @NL80211_BSS_CHAN_WIDTH: channel width of the control channel
|
|
+ * (u32, enum nl80211_bss_scan_width)
|
|
* @__NL80211_BSS_AFTER_LAST: internal
|
|
* @NL80211_BSS_MAX: highest BSS attribute
|
|
*/
|
|
@@ -2800,6 +3054,7 @@ enum nl80211_bss {
|
|
NL80211_BSS_STATUS,
|
|
NL80211_BSS_SEEN_MS_AGO,
|
|
NL80211_BSS_BEACON_IES,
|
|
+ NL80211_BSS_CHAN_WIDTH,
|
|
|
|
/* keep last */
|
|
__NL80211_BSS_AFTER_LAST,
|
|
@@ -2940,21 +3195,43 @@ enum nl80211_key_attributes {
|
|
* in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with
|
|
* 1 = 500 kbps) but without the IE length restriction (at most
|
|
* %NL80211_MAX_SUPP_RATES in a single array).
|
|
- * @NL80211_TXRATE_MCS: HT (MCS) rates allowed for TX rate selection
|
|
+ * @NL80211_TXRATE_HT: HT (MCS) rates allowed for TX rate selection
|
|
* in an array of MCS numbers.
|
|
+ * @NL80211_TXRATE_VHT: VHT rates allowed for TX rate selection,
|
|
+ * see &struct nl80211_txrate_vht
|
|
+ * @NL80211_TXRATE_GI: configure GI, see &enum nl80211_txrate_gi
|
|
* @__NL80211_TXRATE_AFTER_LAST: internal
|
|
* @NL80211_TXRATE_MAX: highest TX rate attribute
|
|
*/
|
|
enum nl80211_tx_rate_attributes {
|
|
__NL80211_TXRATE_INVALID,
|
|
NL80211_TXRATE_LEGACY,
|
|
- NL80211_TXRATE_MCS,
|
|
+ NL80211_TXRATE_HT,
|
|
+ NL80211_TXRATE_VHT,
|
|
+ NL80211_TXRATE_GI,
|
|
|
|
/* keep last */
|
|
__NL80211_TXRATE_AFTER_LAST,
|
|
NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
|
|
};
|
|
|
|
+#define NL80211_TXRATE_MCS NL80211_TXRATE_HT
|
|
+#define NL80211_VHT_NSS_MAX 8
|
|
+
|
|
+/**
|
|
+ * struct nl80211_txrate_vht - VHT MCS/NSS txrate bitmap
|
|
+ * @mcs: MCS bitmap table for each NSS (array index 0 for 1 stream, etc.)
|
|
+ */
|
|
+struct nl80211_txrate_vht {
|
|
+ __u16 mcs[NL80211_VHT_NSS_MAX];
|
|
+};
|
|
+
|
|
+enum nl80211_txrate_gi {
|
|
+ NL80211_TXRATE_DEFAULT_GI,
|
|
+ NL80211_TXRATE_FORCE_SGI,
|
|
+ NL80211_TXRATE_FORCE_LGI,
|
|
+};
|
|
+
|
|
/**
|
|
* enum nl80211_band - Frequency band
|
|
* @NL80211_BAND_2GHZ: 2.4 GHz ISM band
|
|
@@ -3048,11 +3325,11 @@ enum nl80211_tx_power_setting {
|
|
};
|
|
|
|
/**
|
|
- * enum nl80211_wowlan_packet_pattern_attr - WoWLAN packet pattern attribute
|
|
- * @__NL80211_WOWLAN_PKTPAT_INVALID: invalid number for nested attribute
|
|
- * @NL80211_WOWLAN_PKTPAT_PATTERN: the pattern, values where the mask has
|
|
+ * enum nl80211_packet_pattern_attr - packet pattern attribute
|
|
+ * @__NL80211_PKTPAT_INVALID: invalid number for nested attribute
|
|
+ * @NL80211_PKTPAT_PATTERN: the pattern, values where the mask has
|
|
* a zero bit are ignored
|
|
- * @NL80211_WOWLAN_PKTPAT_MASK: pattern mask, must be long enough to have
|
|
+ * @NL80211_PKTPAT_MASK: pattern mask, must be long enough to have
|
|
* a bit for each byte in the pattern. The lowest-order bit corresponds
|
|
* to the first byte of the pattern, but the bytes of the pattern are
|
|
* in a little-endian-like format, i.e. the 9th byte of the pattern
|
|
@@ -3063,39 +3340,50 @@ enum nl80211_tx_power_setting {
|
|
* Note that the pattern matching is done as though frames were not
|
|
* 802.11 frames but 802.3 frames, i.e. the frame is fully unpacked
|
|
* first (including SNAP header unpacking) and then matched.
|
|
- * @NL80211_WOWLAN_PKTPAT_OFFSET: packet offset, pattern is matched after
|
|
+ * @NL80211_PKTPAT_OFFSET: packet offset, pattern is matched after
|
|
* these fixed number of bytes of received packet
|
|
- * @NUM_NL80211_WOWLAN_PKTPAT: number of attributes
|
|
- * @MAX_NL80211_WOWLAN_PKTPAT: max attribute number
|
|
+ * @NUM_NL80211_PKTPAT: number of attributes
|
|
+ * @MAX_NL80211_PKTPAT: max attribute number
|
|
*/
|
|
-enum nl80211_wowlan_packet_pattern_attr {
|
|
- __NL80211_WOWLAN_PKTPAT_INVALID,
|
|
- NL80211_WOWLAN_PKTPAT_MASK,
|
|
- NL80211_WOWLAN_PKTPAT_PATTERN,
|
|
- NL80211_WOWLAN_PKTPAT_OFFSET,
|
|
-
|
|
- NUM_NL80211_WOWLAN_PKTPAT,
|
|
- MAX_NL80211_WOWLAN_PKTPAT = NUM_NL80211_WOWLAN_PKTPAT - 1,
|
|
+enum nl80211_packet_pattern_attr {
|
|
+ __NL80211_PKTPAT_INVALID,
|
|
+ NL80211_PKTPAT_MASK,
|
|
+ NL80211_PKTPAT_PATTERN,
|
|
+ NL80211_PKTPAT_OFFSET,
|
|
+
|
|
+ NUM_NL80211_PKTPAT,
|
|
+ MAX_NL80211_PKTPAT = NUM_NL80211_PKTPAT - 1,
|
|
};
|
|
|
|
/**
|
|
- * struct nl80211_wowlan_pattern_support - pattern support information
|
|
+ * struct nl80211_pattern_support - packet pattern support information
|
|
* @max_patterns: maximum number of patterns supported
|
|
* @min_pattern_len: minimum length of each pattern
|
|
* @max_pattern_len: maximum length of each pattern
|
|
* @max_pkt_offset: maximum Rx packet offset
|
|
*
|
|
* This struct is carried in %NL80211_WOWLAN_TRIG_PKT_PATTERN when
|
|
- * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED in the
|
|
- * capability information given by the kernel to userspace.
|
|
+ * that is part of %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED or in
|
|
+ * %NL80211_ATTR_COALESCE_RULE_PKT_PATTERN when that is part of
|
|
+ * %NL80211_ATTR_COALESCE_RULE in the capability information given
|
|
+ * by the kernel to userspace.
|
|
*/
|
|
-struct nl80211_wowlan_pattern_support {
|
|
+struct nl80211_pattern_support {
|
|
__u32 max_patterns;
|
|
__u32 min_pattern_len;
|
|
__u32 max_pattern_len;
|
|
__u32 max_pkt_offset;
|
|
} __attribute__((packed));
|
|
|
|
+/* only for backward compatibility */
|
|
+#define __NL80211_WOWLAN_PKTPAT_INVALID __NL80211_PKTPAT_INVALID
|
|
+#define NL80211_WOWLAN_PKTPAT_MASK NL80211_PKTPAT_MASK
|
|
+#define NL80211_WOWLAN_PKTPAT_PATTERN NL80211_PKTPAT_PATTERN
|
|
+#define NL80211_WOWLAN_PKTPAT_OFFSET NL80211_PKTPAT_OFFSET
|
|
+#define NUM_NL80211_WOWLAN_PKTPAT NUM_NL80211_PKTPAT
|
|
+#define MAX_NL80211_WOWLAN_PKTPAT MAX_NL80211_PKTPAT
|
|
+#define nl80211_wowlan_pattern_support nl80211_pattern_support
|
|
+
|
|
/**
|
|
* enum nl80211_wowlan_triggers - WoWLAN trigger definitions
|
|
* @__NL80211_WOWLAN_TRIG_INVALID: invalid number for nested attributes
|
|
@@ -3115,7 +3403,7 @@ struct nl80211_wowlan_pattern_support {
|
|
* pattern matching is done after the packet is converted to the MSDU.
|
|
*
|
|
* In %NL80211_ATTR_WOWLAN_TRIGGERS_SUPPORTED, it is a binary attribute
|
|
- * carrying a &struct nl80211_wowlan_pattern_support.
|
|
+ * carrying a &struct nl80211_pattern_support.
|
|
*
|
|
* When reporting wakeup. it is a u32 attribute containing the 0-based
|
|
* index of the pattern that caused the wakeup, in the patterns passed
|
|
@@ -3272,7 +3560,7 @@ struct nl80211_wowlan_tcp_data_token_feature {
|
|
* @NL80211_WOWLAN_TCP_WAKE_PAYLOAD: wake packet payload, for advertising a
|
|
* u32 attribute holding the maximum length
|
|
* @NL80211_WOWLAN_TCP_WAKE_MASK: Wake packet payload mask, not used for
|
|
- * feature advertising. The mask works like @NL80211_WOWLAN_PKTPAT_MASK
|
|
+ * feature advertising. The mask works like @NL80211_PKTPAT_MASK
|
|
* but on the TCP payload only.
|
|
* @NUM_NL80211_WOWLAN_TCP: number of TCP attributes
|
|
* @MAX_NL80211_WOWLAN_TCP: highest attribute number
|
|
@@ -3297,6 +3585,55 @@ enum nl80211_wowlan_tcp_attrs {
|
|
};
|
|
|
|
/**
|
|
+ * struct nl80211_coalesce_rule_support - coalesce rule support information
|
|
+ * @max_rules: maximum number of rules supported
|
|
+ * @pat: packet pattern support information
|
|
+ * @max_delay: maximum supported coalescing delay in msecs
|
|
+ *
|
|
+ * This struct is carried in %NL80211_ATTR_COALESCE_RULE in the
|
|
+ * capability information given by the kernel to userspace.
|
|
+ */
|
|
+struct nl80211_coalesce_rule_support {
|
|
+ __u32 max_rules;
|
|
+ struct nl80211_pattern_support pat;
|
|
+ __u32 max_delay;
|
|
+} __attribute__((packed));
|
|
+
|
|
+/**
|
|
+ * enum nl80211_attr_coalesce_rule - coalesce rule attribute
|
|
+ * @__NL80211_COALESCE_RULE_INVALID: invalid number for nested attribute
|
|
+ * @NL80211_ATTR_COALESCE_RULE_DELAY: delay in msecs used for packet coalescing
|
|
+ * @NL80211_ATTR_COALESCE_RULE_CONDITION: condition for packet coalescence,
|
|
+ * see &enum nl80211_coalesce_condition.
|
|
+ * @NL80211_ATTR_COALESCE_RULE_PKT_PATTERN: packet offset, pattern is matched
|
|
+ * after these fixed number of bytes of received packet
|
|
+ * @NUM_NL80211_ATTR_COALESCE_RULE: number of attributes
|
|
+ * @NL80211_ATTR_COALESCE_RULE_MAX: max attribute number
|
|
+ */
|
|
+enum nl80211_attr_coalesce_rule {
|
|
+ __NL80211_COALESCE_RULE_INVALID,
|
|
+ NL80211_ATTR_COALESCE_RULE_DELAY,
|
|
+ NL80211_ATTR_COALESCE_RULE_CONDITION,
|
|
+ NL80211_ATTR_COALESCE_RULE_PKT_PATTERN,
|
|
+
|
|
+ /* keep last */
|
|
+ NUM_NL80211_ATTR_COALESCE_RULE,
|
|
+ NL80211_ATTR_COALESCE_RULE_MAX = NUM_NL80211_ATTR_COALESCE_RULE - 1
|
|
+};
|
|
+
|
|
+/**
|
|
+ * enum nl80211_coalesce_condition - coalesce rule conditions
|
|
+ * @NL80211_COALESCE_CONDITION_MATCH: coalaesce Rx packets when patterns
|
|
+ * in a rule are matched.
|
|
+ * @NL80211_COALESCE_CONDITION_NO_MATCH: coalesce Rx packets when patterns
|
|
+ * in a rule are not matched.
|
|
+ */
|
|
+enum nl80211_coalesce_condition {
|
|
+ NL80211_COALESCE_CONDITION_MATCH,
|
|
+ NL80211_COALESCE_CONDITION_NO_MATCH
|
|
+};
|
|
+
|
|
+/**
|
|
* enum nl80211_iface_limit_attrs - limit attributes
|
|
* @NL80211_IFACE_LIMIT_UNSPEC: (reserved)
|
|
* @NL80211_IFACE_LIMIT_MAX: maximum number of interfaces that
|
|
@@ -3540,11 +3877,6 @@ enum nl80211_ap_sme_features {
|
|
* @NL80211_FEATURE_CELL_BASE_REG_HINTS: This driver has been tested
|
|
* to work properly to suppport receiving regulatory hints from
|
|
* cellular base stations.
|
|
- * @NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL: If this is set, an active
|
|
- * P2P Device (%NL80211_IFTYPE_P2P_DEVICE) requires its own channel
|
|
- * in the interface combinations, even when it's only used for scan
|
|
- * and remain-on-channel. This could be due to, for example, the
|
|
- * remain-on-channel implementation requiring a channel context.
|
|
* @NL80211_FEATURE_SAE: This driver supports simultaneous authentication of
|
|
* equals (SAE) with user space SME (NL80211_CMD_AUTHENTICATE) in station
|
|
* mode
|
|
@@ -3576,13 +3908,20 @@ enum nl80211_ap_sme_features {
|
|
* Peering Management entity which may be implemented by registering for
|
|
* beacons or NL80211_CMD_NEW_PEER_CANDIDATE events. The mesh beacon is
|
|
* still generated by the driver.
|
|
+ * @NL80211_FEATURE_ACTIVE_MONITOR: This driver supports an active monitor
|
|
+ * interface. An active monitor interface behaves like a normal monitor
|
|
+ * interface, but gets added to the driver. It ensures that incoming
|
|
+ * unicast packets directed at the configured interface address get ACKed.
|
|
+ * @NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE: This driver supports dynamic
|
|
+ * channel bandwidth change (e.g., HT 20 <-> 40 MHz channel) during the
|
|
+ * lifetime of a BSS.
|
|
*/
|
|
enum nl80211_feature_flags {
|
|
NL80211_FEATURE_SK_TX_STATUS = 1 << 0,
|
|
NL80211_FEATURE_HT_IBSS = 1 << 1,
|
|
NL80211_FEATURE_INACTIVITY_TIMER = 1 << 2,
|
|
NL80211_FEATURE_CELL_BASE_REG_HINTS = 1 << 3,
|
|
- NL80211_FEATURE_P2P_DEVICE_NEEDS_CHANNEL = 1 << 4,
|
|
+ /* bit 4 is reserved - don't use */
|
|
NL80211_FEATURE_SAE = 1 << 5,
|
|
NL80211_FEATURE_LOW_PRIORITY_SCAN = 1 << 6,
|
|
NL80211_FEATURE_SCAN_FLUSH = 1 << 7,
|
|
@@ -3595,6 +3934,8 @@ enum nl80211_feature_flags {
|
|
NL80211_FEATURE_ADVERTISE_CHAN_LIMITS = 1 << 14,
|
|
NL80211_FEATURE_FULL_AP_CLIENT_STATE = 1 << 15,
|
|
NL80211_FEATURE_USERSPACE_MPM = 1 << 16,
|
|
+ NL80211_FEATURE_ACTIVE_MONITOR = 1 << 17,
|
|
+ NL80211_FEATURE_AP_MODE_CHAN_WIDTH_CHANGE = 1 << 18,
|
|
};
|
|
|
|
/**
|
|
@@ -3695,13 +4036,12 @@ enum nl80211_radar_event {
|
|
*
|
|
* Channel states used by the DFS code.
|
|
*
|
|
- * @IEEE80211_DFS_USABLE: The channel can be used, but channel availability
|
|
+ * @NL80211_DFS_USABLE: The channel can be used, but channel availability
|
|
* check (CAC) must be performed before using it for AP or IBSS.
|
|
- * @IEEE80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it
|
|
+ * @NL80211_DFS_UNAVAILABLE: A radar has been detected on this channel, it
|
|
* is therefore marked as not available.
|
|
- * @IEEE80211_DFS_AVAILABLE: The channel has been CAC checked and is available.
|
|
+ * @NL80211_DFS_AVAILABLE: The channel has been CAC checked and is available.
|
|
*/
|
|
-
|
|
enum nl80211_dfs_state {
|
|
NL80211_DFS_USABLE,
|
|
NL80211_DFS_UNAVAILABLE,
|
|
@@ -3741,4 +4081,51 @@ enum nl80211_crit_proto_id {
|
|
/* maximum duration for critical protocol measures */
|
|
#define NL80211_CRIT_PROTO_MAX_DURATION 5000 /* msec */
|
|
|
|
+/*
|
|
+ * If this flag is unset, the lower 24 bits are an OUI, if set
|
|
+ * a Linux nl80211 vendor ID is used (no such IDs are allocated
|
|
+ * yet, so that's not valid so far)
|
|
+ */
|
|
+#define NL80211_VENDOR_ID_IS_LINUX 0x80000000
|
|
+
|
|
+/**
|
|
+ * struct nl80211_vendor_cmd_info - vendor command data
|
|
+ * @vendor_id: If the %NL80211_VENDOR_ID_IS_LINUX flag is clear, then the
|
|
+ * value is a 24-bit OUI; if it is set then a separately allocated ID
|
|
+ * may be used, but no such IDs are allocated yet. New IDs should be
|
|
+ * added to this file when needed.
|
|
+ * @subcmd: sub-command ID for the command
|
|
+ */
|
|
+struct nl80211_vendor_cmd_info {
|
|
+ __u32 vendor_id;
|
|
+ __u32 subcmd;
|
|
+};
|
|
+
|
|
+/**
|
|
+ * enum nl80211_tdls_peer_capability - TDLS peer flags.
|
|
+ *
|
|
+ * Used by tdls_mgmt() to determine which conditional elements need
|
|
+ * to be added to TDLS Setup frames.
|
|
+ *
|
|
+ * @NL80211_TDLS_PEER_HT: TDLS peer is HT capable.
|
|
+ * @NL80211_TDLS_PEER_VHT: TDLS peer is VHT capable.
|
|
+ * @NL80211_TDLS_PEER_WMM: TDLS peer is WMM capable.
|
|
+ */
|
|
+enum nl80211_tdls_peer_capability {
|
|
+ NL80211_TDLS_PEER_HT = 1<<0,
|
|
+ NL80211_TDLS_PEER_VHT = 1<<1,
|
|
+ NL80211_TDLS_PEER_WMM = 1<<2,
|
|
+};
|
|
+
|
|
+/**
|
|
+ * enum nl80211_rxmgmt_flags - flags for received management frame.
|
|
+ *
|
|
+ * Used by cfg80211_rx_mgmt()
|
|
+ *
|
|
+ * @NL80211_RXMGMT_FLAG_ANSWERED: frame was answered by device/driver.
|
|
+ */
|
|
+enum nl80211_rxmgmt_flags {
|
|
+ NL80211_RXMGMT_FLAG_ANSWERED = 1 << 0,
|
|
+};
|
|
+
|
|
#endif /* __LINUX_NL80211_H */
|