diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2008-01-24 13:38:39 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:19:32 -0500 |
commit | ee688b000d35f413f33561ec9c7d3355be561e2f (patch) | |
tree | e0814191f873ba6f397ffb419b5e37ed4c0c531c /include | |
parent | 8318d78a44d49ac1edf2bdec7299de3617c4232e (diff) |
nl80211: export hardware bitrate/channel capabilities
This makes nl80211 export the hardware bitrate/channel capabilities
as registered in a wiphy.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/nl80211.h | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 9fecf902419c..63695060db9f 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -161,6 +161,9 @@ enum nl80211_commands { | |||
161 | * given for %NL80211_CMD_GET_STATION, nested attribute containing | 161 | * given for %NL80211_CMD_GET_STATION, nested attribute containing |
162 | * info as possible, see &enum nl80211_sta_stats. | 162 | * info as possible, see &enum nl80211_sta_stats. |
163 | * | 163 | * |
164 | * @NL80211_ATTR_WIPHY_BANDS: Information about an operating bands, | ||
165 | * consisting of a nested array. | ||
166 | * | ||
164 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 167 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
165 | * @__NL80211_ATTR_AFTER_LAST: internal use | 168 | * @__NL80211_ATTR_AFTER_LAST: internal use |
166 | */ | 169 | */ |
@@ -195,6 +198,8 @@ enum nl80211_attrs { | |||
195 | NL80211_ATTR_STA_VLAN, | 198 | NL80211_ATTR_STA_VLAN, |
196 | NL80211_ATTR_STA_STATS, | 199 | NL80211_ATTR_STA_STATS, |
197 | 200 | ||
201 | NL80211_ATTR_WIPHY_BANDS, | ||
202 | |||
198 | /* add attributes here, update the policy in nl80211.c */ | 203 | /* add attributes here, update the policy in nl80211.c */ |
199 | 204 | ||
200 | __NL80211_ATTR_AFTER_LAST, | 205 | __NL80211_ATTR_AFTER_LAST, |
@@ -280,4 +285,63 @@ enum nl80211_sta_stats { | |||
280 | NL80211_STA_STAT_MAX = __NL80211_STA_STAT_AFTER_LAST - 1 | 285 | NL80211_STA_STAT_MAX = __NL80211_STA_STAT_AFTER_LAST - 1 |
281 | }; | 286 | }; |
282 | 287 | ||
288 | /** | ||
289 | * enum nl80211_band_attr - band attributes | ||
290 | * @__NL80211_BAND_ATTR_INVALID: attribute number 0 is reserved | ||
291 | * @NL80211_BAND_ATTR_FREQS: supported frequencies in this band, | ||
292 | * an array of nested frequency attributes | ||
293 | * @NL80211_BAND_ATTR_RATES: supported bitrates in this band, | ||
294 | * an array of nested bitrate attributes | ||
295 | */ | ||
296 | enum nl80211_band_attr { | ||
297 | __NL80211_BAND_ATTR_INVALID, | ||
298 | NL80211_BAND_ATTR_FREQS, | ||
299 | NL80211_BAND_ATTR_RATES, | ||
300 | |||
301 | /* keep last */ | ||
302 | __NL80211_BAND_ATTR_AFTER_LAST, | ||
303 | NL80211_BAND_ATTR_MAX = __NL80211_BAND_ATTR_AFTER_LAST - 1 | ||
304 | }; | ||
305 | |||
306 | /** | ||
307 | * enum nl80211_frequency_attr - frequency attributes | ||
308 | * @NL80211_FREQUENCY_ATTR_FREQ: Frequency in MHz | ||
309 | * @NL80211_FREQUENCY_ATTR_DISABLED: Channel is disabled in current | ||
310 | * regulatory domain. | ||
311 | * @NL80211_FREQUENCY_ATTR_PASSIVE_SCAN: Only passive scanning is | ||
312 | * permitted on this channel in current regulatory domain. | ||
313 | * @NL80211_FREQUENCY_ATTR_NO_IBSS: IBSS networks are not permitted | ||
314 | * on this channel in current regulatory domain. | ||
315 | * @NL80211_FREQUENCY_ATTR_RADAR: Radar detection is mandatory | ||
316 | * on this channel in current regulatory domain. | ||
317 | */ | ||
318 | enum nl80211_frequency_attr { | ||
319 | __NL80211_FREQUENCY_ATTR_INVALID, | ||
320 | NL80211_FREQUENCY_ATTR_FREQ, | ||
321 | NL80211_FREQUENCY_ATTR_DISABLED, | ||
322 | NL80211_FREQUENCY_ATTR_PASSIVE_SCAN, | ||
323 | NL80211_FREQUENCY_ATTR_NO_IBSS, | ||
324 | NL80211_FREQUENCY_ATTR_RADAR, | ||
325 | |||
326 | /* keep last */ | ||
327 | __NL80211_FREQUENCY_ATTR_AFTER_LAST, | ||
328 | NL80211_FREQUENCY_ATTR_MAX = __NL80211_FREQUENCY_ATTR_AFTER_LAST - 1 | ||
329 | }; | ||
330 | |||
331 | /** | ||
332 | * enum nl80211_bitrate_attr - bitrate attributes | ||
333 | * @NL80211_BITRATE_ATTR_RATE: Bitrate in units of 100 kbps | ||
334 | * @NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE: Short preamble supported | ||
335 | * in 2.4 GHz band. | ||
336 | */ | ||
337 | enum nl80211_bitrate_attr { | ||
338 | __NL80211_BITRATE_ATTR_INVALID, | ||
339 | NL80211_BITRATE_ATTR_RATE, | ||
340 | NL80211_BITRATE_ATTR_2GHZ_SHORTPREAMBLE, | ||
341 | |||
342 | /* keep last */ | ||
343 | __NL80211_BITRATE_ATTR_AFTER_LAST, | ||
344 | NL80211_BITRATE_ATTR_MAX = __NL80211_BITRATE_ATTR_AFTER_LAST - 1 | ||
345 | }; | ||
346 | |||
283 | #endif /* __LINUX_NL80211_H */ | 347 | #endif /* __LINUX_NL80211_H */ |