Search Linux Wireless

[PATCH V2] ssb: Fix case where board flags are unset in SPROM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The specifications call for the low 16 bits of the board flags to
be cleared if unset (== 0xFFFF). This step was taken in bcm43xx,
but was missed when ssb was coded. With this patch, Linksys WMP11
cards with a BCM4301 now work.

Signed-off-by: Larry Finger <Larry.Finger@xxxxxxxxxxxx>
---

John,

This is 2.6.26 material.

Larry
---


Index: wireless-testing/drivers/ssb/pci.c
===================================================================
--- wireless-testing.orig/drivers/ssb/pci.c
+++ wireless-testing/drivers/ssb/pci.c
@@ -483,6 +483,11 @@ static int sprom_extract(struct ssb_bus 
 		if (out->revision >= 5)
 			goto unsupported;
 	}
+	/* check for board flags not set (0xFFFF) and make 0 as per specs */
+	if (out->boardflags_lo == 0xFFFF)
+		out->boardflags_lo = 0;
+	if (out->boardflags_hi == 0xFFFF)
+		out->boardflags_hi = 0;
 
 	return 0;
 unsupported:
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux