aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-10-30 10:59:22 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-11-10 15:17:39 -0500
commit90c97a040d6b08cc4890328aa262fdc37336ab01 (patch)
treed152a2edcb55d2d7b0428721341f7b271ffe39f8 /include
parentfe63bfa3669dbdd4985ed35d9a0ed08881f62516 (diff)
nl80211: Add basic rate configuration for AP mode
Add a new attribute, NL80211_ATTR_BSS_BASIC_RATES, that can be used with NL80211_CMD_SET_BSS for userspace (e.g., hostapd) to set which rates are in the basic rate set. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Acked-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.h6
-rw-r--r--include/net/cfg80211.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h
index e4cc7869b22f..5009809588c0 100644
--- a/include/linux/nl80211.h
+++ b/include/linux/nl80211.h
@@ -243,6 +243,9 @@ enum nl80211_commands {
243 * (u8, 0 or 1) 243 * (u8, 0 or 1)
244 * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled 244 * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled
245 * (u8, 0 or 1) 245 * (u8, 0 or 1)
246 * @NL80211_ATTR_BSS_BASIC_RATES: basic rates, array of basic
247 * rates in format defined by IEEE 802.11 7.3.2.2 but without the length
248 * restriction (at most %NL80211_MAX_SUPP_RATES).
246 * 249 *
247 * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from 250 * @NL80211_ATTR_HT_CAPABILITY: HT Capability information element (from
248 * association request when used with NL80211_CMD_NEW_STATION) 251 * association request when used with NL80211_CMD_NEW_STATION)
@@ -307,6 +310,8 @@ enum nl80211_attrs {
307 310
308 NL80211_ATTR_MESH_PARAMS, 311 NL80211_ATTR_MESH_PARAMS,
309 312
313 NL80211_ATTR_BSS_BASIC_RATES,
314
310 /* add attributes here, update the policy in nl80211.c */ 315 /* add attributes here, update the policy in nl80211.c */
311 316
312 __NL80211_ATTR_AFTER_LAST, 317 __NL80211_ATTR_AFTER_LAST,
@@ -318,6 +323,7 @@ enum nl80211_attrs {
318 * here 323 * here
319 */ 324 */
320#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY 325#define NL80211_ATTR_HT_CAPABILITY NL80211_ATTR_HT_CAPABILITY
326#define NL80211_ATTR_BSS_BASIC_RATES NL80211_ATTR_BSS_BASIC_RATES
321 327
322#define NL80211_MAX_SUPP_RATES 32 328#define NL80211_MAX_SUPP_RATES 32
323#define NL80211_MAX_SUPP_REG_RULES 32 329#define NL80211_MAX_SUPP_REG_RULES 32
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index 03e1e88c6a09..7caf3c76a12f 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -280,11 +280,16 @@ struct mpath_info {
280 * (0 = no, 1 = yes, -1 = do not change) 280 * (0 = no, 1 = yes, -1 = do not change)
281 * @use_short_slot_time: Whether the use of short slot time is allowed 281 * @use_short_slot_time: Whether the use of short slot time is allowed
282 * (0 = no, 1 = yes, -1 = do not change) 282 * (0 = no, 1 = yes, -1 = do not change)
283 * @basic_rates: basic rates in IEEE 802.11 format
284 * (or NULL for no change)
285 * @basic_rates_len: number of basic rates
283 */ 286 */
284struct bss_parameters { 287struct bss_parameters {
285 int use_cts_prot; 288 int use_cts_prot;
286 int use_short_preamble; 289 int use_short_preamble;
287 int use_short_slot_time; 290 int use_short_slot_time;
291 u8 *basic_rates;
292 u8 basic_rates_len;
288}; 293};
289 294
290/** 295/**