diff options
author | Johannes Berg <johannes.berg@intel.com> | 2011-11-10 09:55:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-11 12:32:55 -0500 |
commit | 3ddf6befb98d5dd61466a0e0e585037f6dca352f (patch) | |
tree | edd8447b73e81a1026c75e53862839fb43636717 /drivers | |
parent | 9cac4943aa15763a2b1f13d276ae03b4cd5aa9a1 (diff) |
iwlagn: convert remain-on-channel duration to TU
The device expects TU but we get ms, so convert.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-mac80211.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-mac80211.c b/drivers/net/wireless/iwlwifi/iwl-mac80211.c index 073e827c462b..05b1f0d2f387 100644 --- a/drivers/net/wireless/iwlwifi/iwl-mac80211.c +++ b/drivers/net/wireless/iwlwifi/iwl-mac80211.c | |||
@@ -957,7 +957,8 @@ static int iwlagn_mac_remain_on_channel(struct ieee80211_hw *hw, | |||
957 | 957 | ||
958 | priv->hw_roc_channel = channel; | 958 | priv->hw_roc_channel = channel; |
959 | priv->hw_roc_chantype = channel_type; | 959 | priv->hw_roc_chantype = channel_type; |
960 | priv->hw_roc_duration = duration; | 960 | /* convert from ms to TU */ |
961 | priv->hw_roc_duration = DIV_ROUND_UP(1000 * duration, 1024); | ||
961 | priv->hw_roc_start_notified = false; | 962 | priv->hw_roc_start_notified = false; |
962 | cancel_delayed_work(&priv->hw_roc_disable_work); | 963 | cancel_delayed_work(&priv->hw_roc_disable_work); |
963 | 964 | ||