p54usb: support LM87 firmwares
[linux-2.6.git] / drivers / net / wireless / p54 / p54common.c
index 6d8248e..e96bf1a 100644 (file)
@@ -93,7 +93,8 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
                u32 code = le32_to_cpu(bootrec->code);
                switch (code) {
                case BR_CODE_COMPONENT_ID:
-                       switch (be32_to_cpu(*(__be32 *)bootrec->data)) {
+                       priv->fw_interface = be32_to_cpup(bootrec->data);
+                       switch (priv->fw_interface) {
                        case FW_FMAC:
                                printk(KERN_INFO "p54: FreeMAC firmware\n");
                                break;
@@ -104,7 +105,7 @@ int p54_parse_firmware(struct ieee80211_hw *dev, const struct firmware *fw)
                                printk(KERN_INFO "p54: LM86 firmware\n");
                                break;
                        case FW_LM87:
-                               printk(KERN_INFO "p54: LM87 firmware - not supported yet!\n");
+                               printk(KERN_INFO "p54: LM87 firmware\n");
                                break;
                        default:
                                printk(KERN_INFO "p54: unknown firmware\n");