public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] orinoco: Fix flood of kernel log with stupid WE warnings
@ 2005-09-26  0:12 Benjamin Herrenschmidt
  0 siblings, 0 replies; only message in thread
From: Benjamin Herrenschmidt @ 2005-09-26  0:12 UTC (permalink / raw)
  To: Andrew Morton; +Cc: David Gibson, Linux Kernel list

Latest wireless extensions moved a field from netdev ->
wireless_handlers. The WE core will now printk a warning on every call
to get_wireless_stats() on a driver that still uses the old field. This
patch fixes orinoco.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Index: linux-work/drivers/net/wireless/orinoco.c
===================================================================
--- linux-work.orig/drivers/net/wireless/orinoco.c	2005-09-22 14:06:50.000000000 +1000
+++ linux-work/drivers/net/wireless/orinoco.c	2005-09-26 09:59:44.000000000 +1000
@@ -2458,7 +2458,6 @@
 	dev->watchdog_timeo = HZ; /* 1 second timeout */
 	dev->get_stats = orinoco_get_stats;
 	dev->ethtool_ops = &orinoco_ethtool_ops;
-	dev->get_wireless_stats = orinoco_get_wireless_stats;
 	dev->wireless_handlers = (struct iw_handler_def *)&orinoco_handler_def;
 	dev->change_mtu = orinoco_change_mtu;
 	dev->set_multicast_list = orinoco_set_multicast_list;
@@ -4399,6 +4398,7 @@
 	.standard = orinoco_handler,
 	.private = orinoco_private_handler,
 	.private_args = orinoco_privtab,
+	.get_wireless_stats = orinoco_get_wireless_stats,
 };
 
 static void orinoco_get_drvinfo(struct net_device *dev,



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-26  0:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-26  0:12 [PATCH] orinoco: Fix flood of kernel log with stupid WE warnings Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox