* [PATCH] mac80211_hwsim: fix bogus warning
@ 2009-04-24 13:13 Johannes Berg
0 siblings, 0 replies; only message in thread
From: Johannes Berg @ 2009-04-24 13:13 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless, Jouni Malinen
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>
---
drivers/net/wireless/mac80211_hwsim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- wireless-testing.orig/drivers/net/wireless/mac80211_hwsim.c 2009-04-24 14:46:43.000000000 +0200
+++ wireless-testing/drivers/net/wireless/mac80211_hwsim.c 2009-04-24 14:46:46.000000000 +0200
@@ -619,7 +619,7 @@ static void mac80211_hwsim_bss_info_chan
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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-24 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-24 13:13 [PATCH] mac80211_hwsim: fix bogus warning Johannes Berg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox