diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-07-18 05:53:00 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-08-04 19:09:07 (GMT) |
commit | ea95bba41e69c616bb1512cf59d22f33266b8568 (patch) | |
tree | fe3d17351465189b041bf20c0c9f6c4835d63997 /net/mac80211/main.c | |
parent | 98f7dfd86cbbd377e2cbc293529681b914296f68 (diff) | |
download | linux-fsl-qoriq-ea95bba41e69c616bb1512cf59d22f33266b8568.tar.xz |
mac80211: make listen_interval be limited by low level driver
This patch makes possible for a driver to specify maximal listen interval
The possibility for user to configure listen interval is not implemented
yet, currently the maximum provided by the driver or 1 is used.
Mac80211 uses config handler to set listen interval for to the driver.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index a4c5b90..0c02c47 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c @@ -1689,6 +1689,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) if (local->hw.conf.beacon_int < 10) local->hw.conf.beacon_int = 100; + if (local->hw.max_listen_interval == 0) + local->hw.max_listen_interval = 1; + + local->hw.conf.listen_interval = local->hw.max_listen_interval; + local->wstats_flags |= local->hw.flags & (IEEE80211_HW_SIGNAL_UNSPEC | IEEE80211_HW_SIGNAL_DB | IEEE80211_HW_SIGNAL_DBM) ? |