]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
p54: print unknown eeprom fields
authorFlorian Fainelli <florian.fainelli@telecomint.eu>
Mon, 25 Feb 2008 16:51:53 +0000 (17:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 29 Feb 2008 20:41:50 +0000 (15:41 -0500)
This patch allows p54common to print the
uknown EEPROM fields, which can help
when debugging/testing devices.

Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54common.c

index 9ae3be43156af6ae03a4c51c079d5101812b262c..84cc000e71aac96ee2ad0b6467bb39f0dc1604ff 100644 (file)
@@ -291,6 +291,10 @@ int p54_parse_eeprom(struct ieee80211_hw *dev, void *eeprom, int len)
                case PDR_END:
                        i = len;
                        break;
+               default:
+                       printk(KERN_INFO "p54: unknown eeprom code : 0x%x\n",
+                               le16_to_cpu(entry->code));
+                       break;
                }
 
                entry = (void *)entry + (entry_len + 1)*2;