diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-22 11:45:38 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-04-22 16:57:20 -0400 |
commit | 8e30bc55de98c000b0b836cb42525c82f605f191 (patch) | |
tree | 6b413976c2064157c3268b87921d4e2a7595f831 /include | |
parent | e255d5eb2b478eec1416b46aea03798b64355402 (diff) |
nl80211: allow configuring IBSS beacon interval
Make the JOIN_IBSS command look at the beacon interval
attribute to see if the user requested a specific beacon
interval, if not default to 100 TU (wext too).
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 | 4 | ||||
-rw-r--r-- | include/net/cfg80211.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/nl80211.h b/include/linux/nl80211.h index dc9d9ec5d1ae..b6a48dd502ce 100644 --- a/include/linux/nl80211.h +++ b/include/linux/nl80211.h | |||
@@ -230,7 +230,9 @@ | |||
230 | * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those | 230 | * and optionally a MAC (as BSSID) and FREQ_FIXED attribute if those |
231 | * should be fixed rather than automatically determined. Can only be | 231 | * should be fixed rather than automatically determined. Can only be |
232 | * executed on a network interface that is UP, and fixed BSSID/FREQ | 232 | * executed on a network interface that is UP, and fixed BSSID/FREQ |
233 | * may be rejected. | 233 | * may be rejected. Another optional parameter is the beacon interval, |
234 | * given in the %NL80211_ATTR_BEACON_INTERVAL attribute, which if not | ||
235 | * given defaults to 100 TU (102.4ms). | ||
234 | * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is | 236 | * @NL80211_CMD_LEAVE_IBSS: Leave the IBSS -- no special arguments, the IBSS is |
235 | * determined by the network interface. | 237 | * determined by the network interface. |
236 | * | 238 | * |
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 54bc69c83691..7f7b53b69cb2 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -733,6 +733,7 @@ struct cfg80211_disassoc_request { | |||
733 | * IBSSs to join on other channels. | 733 | * IBSSs to join on other channels. |
734 | * @ie: information element(s) to include in the beacon | 734 | * @ie: information element(s) to include in the beacon |
735 | * @ie_len: length of that | 735 | * @ie_len: length of that |
736 | * @beacon_interval: beacon interval to use | ||
736 | */ | 737 | */ |
737 | struct cfg80211_ibss_params { | 738 | struct cfg80211_ibss_params { |
738 | u8 *ssid; | 739 | u8 *ssid; |
@@ -740,6 +741,7 @@ struct cfg80211_ibss_params { | |||
740 | struct ieee80211_channel *channel; | 741 | struct ieee80211_channel *channel; |
741 | u8 *ie; | 742 | u8 *ie; |
742 | u8 ssid_len, ie_len; | 743 | u8 ssid_len, ie_len; |
744 | u16 beacon_interval; | ||
743 | bool channel_fixed; | 745 | bool channel_fixed; |
744 | }; | 746 | }; |
745 | 747 | ||