diff options
author | Jouni Malinen <jouni.malinen@atheros.com> | 2008-08-07 13:07:01 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-29 16:23:55 -0400 |
commit | 9f1ba9062e032fb7b395cd27fc564754fe4e9867 (patch) | |
tree | 6610106cd769aa3cc144b7a4f1547e07eeba5c88 /include/linux | |
parent | 7f93ea3e246db512c0c17b79847f57dd3a2891e1 (diff) |
mac80211/cfg80211: Add BSS configuration options for AP mode
This change adds a new cfg80211 command, NL80211_CMD_SET_BSS, to allow
AP mode BSS parameters to be changed from user space (e.g., hostapd).
The drivers using mac80211 are expected to be modified with separate
changes to use the new BSS info parameter for short slot time in the
bss_info_changed() handler.
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/linux')
-rw-r--r-- | include/linux/nl80211.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index 2be7c63bc0f2..447c02a5190e 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -89,6 +89,8 @@ | |||
89 | * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC | 89 | * @NL80211_CMD_DEL_PATH: Remove a mesh path identified by %NL80211_ATTR_MAC |
90 | * or, if no MAC address given, all mesh paths, on the interface identified | 90 | * or, if no MAC address given, all mesh paths, on the interface identified |
91 | * by %NL80211_ATTR_IFINDEX. | 91 | * by %NL80211_ATTR_IFINDEX. |
92 | * @NL80211_CMD_SET_BSS: Set BSS attributes for BSS identified by | ||
93 | * %NL80211_ATTR_IFINDEX. | ||
92 | * | 94 | * |
93 | * @NL80211_CMD_MAX: highest used command number | 95 | * @NL80211_CMD_MAX: highest used command number |
94 | * @__NL80211_CMD_AFTER_LAST: internal use | 96 | * @__NL80211_CMD_AFTER_LAST: internal use |
@@ -127,6 +129,8 @@ enum nl80211_commands { | |||
127 | NL80211_CMD_NEW_MPATH, | 129 | NL80211_CMD_NEW_MPATH, |
128 | NL80211_CMD_DEL_MPATH, | 130 | NL80211_CMD_DEL_MPATH, |
129 | 131 | ||
132 | NL80211_CMD_SET_BSS, | ||
133 | |||
130 | /* add commands here */ | 134 | /* add commands here */ |
131 | 135 | ||
132 | /* used to define NL80211_CMD_MAX below */ | 136 | /* used to define NL80211_CMD_MAX below */ |
@@ -134,6 +138,11 @@ enum nl80211_commands { | |||
134 | NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 | 138 | NL80211_CMD_MAX = __NL80211_CMD_AFTER_LAST - 1 |
135 | }; | 139 | }; |
136 | 140 | ||
141 | /* | ||
142 | * Allow user space programs to use #ifdef on new commands by defining them | ||
143 | * here | ||
144 | */ | ||
145 | #define NL80211_CMD_SET_BSS NL80211_CMD_SET_BSS | ||
137 | 146 | ||
138 | /** | 147 | /** |
139 | * enum nl80211_attrs - nl80211 netlink attributes | 148 | * enum nl80211_attrs - nl80211 netlink attributes |
@@ -192,6 +201,12 @@ enum nl80211_commands { | |||
192 | * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of | 201 | * @NL80211_ATTR_MNTR_FLAGS: flags, nested element with NLA_FLAG attributes of |
193 | * &enum nl80211_mntr_flags. | 202 | * &enum nl80211_mntr_flags. |
194 | * | 203 | * |
204 | * @NL80211_ATTR_BSS_CTS_PROT: whether CTS protection is enabled (u8, 0 or 1) | ||
205 | * @NL80211_ATTR_BSS_SHORT_PREAMBLE: whether short preamble is enabled | ||
206 | * (u8, 0 or 1) | ||
207 | * @NL80211_ATTR_BSS_SHORT_SLOT_TIME: whether short slot time enabled | ||
208 | * (u8, 0 or 1) | ||
209 | * | ||
195 | * @NL80211_ATTR_MAX: highest attribute number currently defined | 210 | * @NL80211_ATTR_MAX: highest attribute number currently defined |
196 | * @__NL80211_ATTR_AFTER_LAST: internal use | 211 | * @__NL80211_ATTR_AFTER_LAST: internal use |
197 | */ | 212 | */ |
@@ -235,6 +250,10 @@ enum nl80211_attrs { | |||
235 | NL80211_ATTR_MPATH_NEXT_HOP, | 250 | NL80211_ATTR_MPATH_NEXT_HOP, |
236 | NL80211_ATTR_MPATH_INFO, | 251 | NL80211_ATTR_MPATH_INFO, |
237 | 252 | ||
253 | NL80211_ATTR_BSS_CTS_PROT, | ||
254 | NL80211_ATTR_BSS_SHORT_PREAMBLE, | ||
255 | NL80211_ATTR_BSS_SHORT_SLOT_TIME, | ||
256 | |||
238 | /* add attributes here, update the policy in nl80211.c */ | 257 | /* add attributes here, update the policy in nl80211.c */ |
239 | 258 | ||
240 | __NL80211_ATTR_AFTER_LAST, | 259 | __NL80211_ATTR_AFTER_LAST, |