Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10100
b: refs/heads/master
c: 35848e0
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Garzik authored and Linus Torvalds committed Oct 26, 2005
1 parent 7c5501c commit 844cddb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bb32051532fed727de0d513a9a578b54c0b7ea5a
refs/heads/master: 35848e048f55368f132e28e7f3278ce2d2347f6c
9 changes: 7 additions & 2 deletions trunk/net/core/wireless.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 844cddb

Please sign in to comment.