summaryrefslogtreecommitdiffstats
path: root/net/mac80211/mlme.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-06-12 21:38:37 +0200
committerJohn W. Linville <linville@tuxdriver.com>2008-06-14 18:18:11 +0200
commitdc0ae30c31ee6ef83992bb692f37dfbba08a2ef6 (patch)
treecb13bf8b058797a290fb4b41e09acf783d1b7c78 /net/mac80211/mlme.c
parentrndis_wlan: Use kernel-supplied ARRAY_SIZE() macro. (diff)
downloadlinux-dc0ae30c31ee6ef83992bb692f37dfbba08a2ef6.tar.xz
linux-dc0ae30c31ee6ef83992bb692f37dfbba08a2ef6.zip
mac80211: fix beacon interval value
This patch fixes setting beacon interval 1. in register_hw it honors value requested by the driver 2. It uses default 100 instead of 1000 or 10000. Scanning for beacon interval ~1sec and above is not sane Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r--net/mac80211/mlme.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
index 7f05820dc629..46f203740834 100644
--- a/net/mac80211/mlme.c
+++ b/net/mac80211/mlme.c
@@ -3583,7 +3583,7 @@ static int ieee80211_sta_create_ibss(struct net_device *dev,
sband = local->hw.wiphy->bands[bss->band];
if (local->hw.conf.beacon_int == 0)
- local->hw.conf.beacon_int = 10000;
+ local->hw.conf.beacon_int = 100;
bss->beacon_int = local->hw.conf.beacon_int;
bss->last_update = jiffies;
bss->capability = WLAN_CAPABILITY_IBSS;