aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2007-11-27 15:48:37 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:06 -0500
commit22c96c28b47ce74d78aad1afbed88b26f43ce24b (patch)
treea5efe88b6387401b750878ce9aad8def1e4e3b7c /drivers/net
parent91921a4e9b033b1bf6ab65be7f9b74b60290f41c (diff)
rt2x00: Add chipset version to chipset debugfs entry
The chipset debugfs entry already indicates it is about the chipset, it only makes sense to also display the chipset version in there. Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00debug.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c
index 92efc5a38d71..3aa7e0ab513b 100644
--- a/drivers/net/wireless/rt2x00/rt2x00debug.c
+++ b/drivers/net/wireless/rt2x00/rt2x00debug.c
@@ -251,16 +251,21 @@ static struct dentry *rt2x00debug_create_file_chipset(const char *name,
251 const struct rt2x00debug *debug = intf->debug; 251 const struct rt2x00debug *debug = intf->debug;
252 char *data; 252 char *data;
253 253
254 data = kzalloc(4 * PRINT_LINE_LEN_MAX, GFP_KERNEL); 254 data = kzalloc(8 * PRINT_LINE_LEN_MAX, GFP_KERNEL);
255 if (!data) 255 if (!data)
256 return NULL; 256 return NULL;
257 257
258 blob->data = data; 258 data += sprintf(data, "rt chip: %04x\n", intf->rt2x00dev->chip.rt);
259 data += sprintf(data, "rf chip: %04x\n", intf->rt2x00dev->chip.rf);
260 data += sprintf(data, "revision:%08x\n", intf->rt2x00dev->chip.rev);
261 data += sprintf(data, "\n");
259 data += sprintf(data, "csr length: %d\n", debug->csr.word_count); 262 data += sprintf(data, "csr length: %d\n", debug->csr.word_count);
260 data += sprintf(data, "eeprom length: %d\n", debug->eeprom.word_count); 263 data += sprintf(data, "eeprom length: %d\n", debug->eeprom.word_count);
261 data += sprintf(data, "bbp length: %d\n", debug->bbp.word_count); 264 data += sprintf(data, "bbp length: %d\n", debug->bbp.word_count);
262 data += sprintf(data, "rf length: %d\n", debug->rf.word_count); 265 data += sprintf(data, "rf length: %d\n", debug->rf.word_count);
263 blob->size = strlen(blob->data); 266
267 blob->data = data;
268 blob->size = strlen(data);
264 269
265 return debugfs_create_blob(name, S_IRUGO, intf->driver_folder, blob); 270 return debugfs_create_blob(name, S_IRUGO, intf->driver_folder, blob);
266} 271}