Skip to contentSkip to conversation

mac80211_hwsim: fix bogus warning

PATCH New Johannes Berg 1 participant 1 message Apr 24, 2009 Networking drivers (wireless)

lore
Share & tools
lore

Johannes Berg

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/wireless/mac80211_hwsim.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/mac80211_hwsim.c +1 -1
@@ -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;
 	}