diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-04-24 09:13:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:37 -0400 |
commit | d91f190c412aff940a46cabaccf114361c133605 (patch) | |
tree | ad8ea4e4104e0dc926157f2470c0bfbc63e473c2 /drivers/net/wireless/mac80211_hwsim.c | |
parent | e61f234079b49c7e075b12551797fc4954704019 (diff) |
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>
Diffstat (limited to 'drivers/net/wireless/mac80211_hwsim.c')
-rw-r--r-- | drivers/net/wireless/mac80211_hwsim.c | 2 |
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, | |||
618 | printk(KERN_DEBUG " %s: BCNINT: %d\n", | 618 | printk(KERN_DEBUG " %s: BCNINT: %d\n", |
619 | wiphy_name(hw->wiphy), info->beacon_int); | 619 | wiphy_name(hw->wiphy), info->beacon_int); |
620 | data->beacon_int = 1024 * info->beacon_int / 1000 * HZ / 1000; | 620 | data->beacon_int = 1024 * info->beacon_int / 1000 * HZ / 1000; |
621 | if (WARN_ON(data->beacon_int)) | 621 | if (WARN_ON(!data->beacon_int)) |
622 | data->beacon_int = 1; | 622 | data->beacon_int = 1; |
623 | } | 623 | } |
624 | 624 | ||