dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Johannes Berg 2009-04-24 15:13:54 +02:00 committed by John W. Linville
parent e61f234079
commit d91f190c41
1 changed files with 1 additions and 1 deletions

View File

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