summaryrefslogtreecommitdiff
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2010-12-14 19:54:28 +0300
committerJohn W. Linville <linville@tuxdriver.com>2010-12-16 01:03:56 +0300
commita293911d4fd5e8593dbf478399a77f990d466269 (patch)
tree826f614f178e915c4d2c08aba9ca5b2a38f78c75 /net/mac80211
parent14a085e77063090fb12ad391d0f4d46e593be225 (diff)
downloadlinux-a293911d4fd5e8593dbf478399a77f990d466269.tar.xz
nl80211: advertise maximum remain-on-channel duration
With the upcoming hardware offload implementation, some devices will have a different maximum duration for the remain-on-channel command. Advertise the maximum duration in mac80211, and make mac80211 set it. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c
index f7bdb7c78879..d87eb005690f 100644
--- a/net/mac80211/main.c
+++ b/net/mac80211/main.c
@@ -745,6 +745,8 @@ int ieee80211_register_hw(struct ieee80211_hw *hw)
}
}
+ local->hw.wiphy->max_remain_on_channel_duration = 5000;
+
result = wiphy_register(local->hw.wiphy);
if (result < 0)
goto fail_wiphy_register;