[package] broadcom-wl: detect all radios when generating config, do wireless setup...
[openwrt.git] / package / iw / patches / 001-sync_nl80211_h.patch
1 --- a/nl80211.h
2 +++ b/nl80211.h
3 @@ -270,6 +270,35 @@
4 * @NL80211_CMD_SET_WIPHY_NETNS: Set a wiphy's netns. Note that all devices
5 * associated with this wiphy must be down and will follow.
6 *
7 + * @NL80211_CMD_REMAIN_ON_CHANNEL: Request to remain awake on the specified
8 + * channel for the specified amount of time. This can be used to do
9 + * off-channel operations like transmit a Public Action frame and wait for
10 + * a response while being associated to an AP on another channel.
11 + * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify which
12 + * radio is used. %NL80211_ATTR_WIPHY_FREQ is used to specify the
13 + * frequency for the operation and %NL80211_ATTR_WIPHY_CHANNEL_TYPE may be
14 + * optionally used to specify additional channel parameters.
15 + * %NL80211_ATTR_DURATION is used to specify the duration in milliseconds
16 + * to remain on the channel. This command is also used as an event to
17 + * notify when the requested duration starts (it may take a while for the
18 + * driver to schedule this time due to other concurrent needs for the
19 + * radio).
20 + * When called, this operation returns a cookie (%NL80211_ATTR_COOKIE)
21 + * that will be included with any events pertaining to this request;
22 + * the cookie is also used to cancel the request.
23 + * @NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL: This command can be used to cancel a
24 + * pending remain-on-channel duration if the desired operation has been
25 + * completed prior to expiration of the originally requested duration.
26 + * %NL80211_ATTR_WIPHY or %NL80211_ATTR_IFINDEX is used to specify the
27 + * radio. The %NL80211_ATTR_COOKIE attribute must be given as well to
28 + * uniquely identify the request.
29 + * This command is also used as an event to notify when a requested
30 + * remain-on-channel duration has expired.
31 + *
32 + * @NL80211_CMD_SET_TX_BITRATE_MASK: Set the mask of rates to be used in TX
33 + * rate selection. %NL80211_ATTR_IFINDEX is used to specify the interface
34 + * and @NL80211_ATTR_TX_RATES the set of allowed rates.
35 + *
36 * @NL80211_CMD_MAX: highest used command number
37 * @__NL80211_CMD_AFTER_LAST: internal use
38 */
39 @@ -349,6 +378,15 @@ enum nl80211_commands {
40 NL80211_CMD_GET_SURVEY,
41 NL80211_CMD_NEW_SURVEY_RESULTS,
42
43 + NL80211_CMD_SET_PMKSA,
44 + NL80211_CMD_DEL_PMKSA,
45 + NL80211_CMD_FLUSH_PMKSA,
46 +
47 + NL80211_CMD_REMAIN_ON_CHANNEL,
48 + NL80211_CMD_CANCEL_REMAIN_ON_CHANNEL,
49 +
50 + NL80211_CMD_SET_TX_BITRATE_MASK,
51 +
52 /* add new commands above here */
53
54 /* used to define NL80211_CMD_MAX below */
55 @@ -398,6 +436,8 @@ enum nl80211_commands {
56 * @NL80211_ATTR_WIPHY_RTS_THRESHOLD: RTS threshold (TX frames with length
57 * larger than or equal to this use RTS/CTS handshake); allowed range:
58 * 0..65536, disable with (u32)-1; dot11RTSThreshold; u32
59 + * @NL80211_ATTR_WIPHY_COVERAGE_CLASS: Coverage Class as defined by IEEE 802.11
60 + * section 7.3.2.9; dot11CoverageClass; u8
61 *
62 * @NL80211_ATTR_IFINDEX: network interface index of the device to operate on
63 * @NL80211_ATTR_IFNAME: network interface name
64 @@ -598,6 +638,21 @@ enum nl80211_commands {
65 * the survey response for %NL80211_CMD_GET_SURVEY, nested attribute
66 * containing info as possible, see &enum survey_info.
67 *
68 + * @NL80211_ATTR_PMKID: PMK material for PMKSA caching.
69 + * @NL80211_ATTR_MAX_NUM_PMKIDS: maximum number of PMKIDs a firmware can
70 + * cache, a wiphy attribute.
71 + *
72 + * @NL80211_ATTR_DURATION: Duration of an operation in milliseconds, u32.
73 + *
74 + * @NL80211_ATTR_COOKIE: Generic 64-bit cookie to identify objects.
75 + *
76 + * @NL80211_ATTR_TX_RATES: Nested set of attributes
77 + * (enum nl80211_tx_rate_attributes) describing TX rates per band. The
78 + * enum nl80211_band value is used as the index (nla_type() of the nested
79 + * data. If a band is not included, it will be configured to allow all
80 + * rates based on negotiated supported rates information. This attribute
81 + * is used with %NL80211_CMD_SET_TX_BITRATE_MASK.
82 + *
83 * @NL80211_ATTR_MAX: highest attribute number currently defined
84 * @__NL80211_ATTR_AFTER_LAST: internal use
85 */
86 @@ -732,6 +787,17 @@ enum nl80211_attrs {
87
88 NL80211_ATTR_SURVEY_INFO,
89
90 + NL80211_ATTR_PMKID,
91 + NL80211_ATTR_MAX_NUM_PMKIDS,
92 +
93 + NL80211_ATTR_DURATION,
94 +
95 + NL80211_ATTR_COOKIE,
96 +
97 + NL80211_ATTR_WIPHY_COVERAGE_CLASS,
98 +
99 + NL80211_ATTR_TX_RATES,
100 +
101 /* add attributes here, update the policy in nl80211.c */
102
103 __NL80211_ATTR_AFTER_LAST,
104 @@ -1312,13 +1378,20 @@ enum nl80211_channel_type {
105 * @NL80211_BSS_BEACON_INTERVAL: beacon interval of the (I)BSS (u16)
106 * @NL80211_BSS_CAPABILITY: capability field (CPU order, u16)
107 * @NL80211_BSS_INFORMATION_ELEMENTS: binary attribute containing the
108 - * raw information elements from the probe response/beacon (bin)
109 + * raw information elements from the probe response/beacon (bin);
110 + * if the %NL80211_BSS_BEACON_IES attribute is present, the IEs here are
111 + * from a Probe Response frame; otherwise they are from a Beacon frame.
112 + * However, if the driver does not indicate the source of the IEs, these
113 + * IEs may be from either frame subtype.
114 * @NL80211_BSS_SIGNAL_MBM: signal strength of probe response/beacon
115 * in mBm (100 * dBm) (s32)
116 * @NL80211_BSS_SIGNAL_UNSPEC: signal strength of the probe response/beacon
117 * in unspecified units, scaled to 0..100 (u8)
118 * @NL80211_BSS_STATUS: status, if this BSS is "used"
119 * @NL80211_BSS_SEEN_MS_AGO: age of this BSS entry in ms
120 + * @NL80211_BSS_BEACON_IES: binary attribute containing the raw information
121 + * elements from a Beacon frame (bin); not present if no Beacon frame has
122 + * yet been received
123 * @__NL80211_BSS_AFTER_LAST: internal
124 * @NL80211_BSS_MAX: highest BSS attribute
125 */
126 @@ -1334,6 +1407,7 @@ enum nl80211_bss {
127 NL80211_BSS_SIGNAL_UNSPEC,
128 NL80211_BSS_STATUS,
129 NL80211_BSS_SEEN_MS_AGO,
130 + NL80211_BSS_BEACON_IES,
131
132 /* keep last */
133 __NL80211_BSS_AFTER_LAST,
134 @@ -1431,4 +1505,33 @@ enum nl80211_key_attributes {
135 NL80211_KEY_MAX = __NL80211_KEY_AFTER_LAST - 1
136 };
137
138 +/**
139 + * enum nl80211_tx_rate_attributes - TX rate set attributes
140 + * @__NL80211_TXRATE_INVALID: invalid
141 + * @NL80211_TXRATE_LEGACY: Legacy (non-MCS) rates allowed for TX rate selection
142 + * in an array of rates as defined in IEEE 802.11 7.3.2.2 (u8 values with
143 + * 1 = 500 kbps) but without the IE length restriction (at most
144 + * %NL80211_MAX_SUPP_RATES in a single array).
145 + * @__NL80211_TXRATE_AFTER_LAST: internal
146 + * @NL80211_TXRATE_MAX: highest TX rate attribute
147 + */
148 +enum nl80211_tx_rate_attributes {
149 + __NL80211_TXRATE_INVALID,
150 + NL80211_TXRATE_LEGACY,
151 +
152 + /* keep last */
153 + __NL80211_TXRATE_AFTER_LAST,
154 + NL80211_TXRATE_MAX = __NL80211_TXRATE_AFTER_LAST - 1
155 +};
156 +
157 +/**
158 + * enum nl80211_band - Frequency band
159 + * @NL80211_BAND_2GHZ - 2.4 GHz ISM band
160 + * @NL80211_BAND_5GHZ - around 5 GHz band (4.9 - 5.7 GHz)
161 + */
162 +enum nl80211_band {
163 + NL80211_BAND_2GHZ,
164 + NL80211_BAND_5GHZ,
165 +};
166 +
167 #endif /* __LINUX_NL80211_H */
This page took 0.072978 seconds and 5 git commands to generate.