diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-06-12 15:38:37 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-14 12:18:11 -0400 |
commit | dc0ae30c31ee6ef83992bb692f37dfbba08a2ef6 (patch) | |
tree | cb13bf8b058797a290fb4b41e09acf783d1b7c78 /net/mac80211/main.c | |
parent | 5720508d9ad9a82927875252b7a19ba2b45f11f8 (diff) |
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/main.c')
-rw-r--r-- | net/mac80211/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index b182f018a187..5c5396edad32 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -1707,7 +1707,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
1707 | 1707 | ||
1708 | debugfs_hw_add(local); | 1708 | debugfs_hw_add(local); |
1709 | 1709 | ||
1710 | local->hw.conf.beacon_int = 1000; | 1710 | if (local->hw.conf.beacon_int < 10) |
1711 | local->hw.conf.beacon_int = 100; | ||
1711 | 1712 | ||
1712 | local->wstats_flags |= local->hw.flags & (IEEE80211_HW_SIGNAL_UNSPEC | | 1713 | local->wstats_flags |= local->hw.flags & (IEEE80211_HW_SIGNAL_UNSPEC | |
1713 | IEEE80211_HW_SIGNAL_DB | | 1714 | IEEE80211_HW_SIGNAL_DB | |