aboutsummaryrefslogtreecommitdiff
path: root/net/core/wireless.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-27 20:35:17 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-27 20:35:17 -0400
commitb2ab040db85835e54c7559533df7f85902617926 (patch)
treeb23cbdca55935c497cb88b588e4e8b088d6ab7ab /net/core/wireless.c
parent1f57389a38dc1e8be167ec601f39f78f0bed3a96 (diff)
parent741b2252a5e14d6c60a913c77a6099abe73a854a (diff)
Merge branch 'master'
Diffstat (limited to 'net/core/wireless.c')
-rw-r--r--net/core/wireless.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/net/core/wireless.c b/net/core/wireless.c
index d17f1583ea3..271ddb35b0b 100644
--- a/net/core/wireless.c
+++ b/net/core/wireless.c
@@ -455,10 +455,15 @@ static inline struct iw_statistics *get_wireless_stats(struct net_device *dev)
/* Old location, field to be removed in next WE */
if(dev->get_wireless_stats) {
- printk(KERN_DEBUG "%s (WE) : Driver using old /proc/net/wireless support, please fix driver !\n",
- dev->name);
+ static int printed_message;
+
+ if (!printed_message++)
+ printk(KERN_DEBUG "%s (WE) : Driver using old /proc/net/wireless support, please fix driver !\n",
+ dev->name);
+
return dev->get_wireless_stats(dev);
}
+
/* Not found */
return (struct iw_statistics *) NULL;
}