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>
This commit is contained in:
Johannes Berg
2010-12-14 17:54:28 +01:00
committed by John W. Linville
parent 14a085e770
commit a293911d4f
4 changed files with 18 additions and 1 deletions

View File

@@ -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;