summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2009-04-24 15:13:54 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-05-06 15:14:37 -0400
commitd91f190c412aff940a46cabaccf114361c133605 (patch)
treead8ea4e4104e0dc926157f2470c0bfbc63e473c2
parente61f234079b49c7e075b12551797fc4954704019 (diff)
downloadblackbird-obmc-linux-d91f190c412aff940a46cabaccf114361c133605.tar.gz
blackbird-obmc-linux-d91f190c412aff940a46cabaccf114361c133605.zip
mac80211_hwsim: fix bogus warning
A typo slipped into my patch to configure beacon intervals properly -- this warning is supposed to trigger when the beacon interval is zero, not non-zero. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mac80211_hwsim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index e67b424f925e..8fa6e6ce5705 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -618,7 +618,7 @@ static void mac80211_hwsim_bss_info_changed(struct ieee80211_hw *hw,
printk(KERN_DEBUG " %s: BCNINT: %d\n",
wiphy_name(hw->wiphy), info->beacon_int);
data->beacon_int = 1024 * info->beacon_int / 1000 * HZ / 1000;
- if (WARN_ON(data->beacon_int))
+ if (WARN_ON(!data->beacon_int))
data->beacon_int = 1;
}
OpenPOWER on IntegriCloud