Search Linux Wireless

Re: [RFC] use alternate SPROM offset for 43224

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

 



W dniu 14 lutego 2012 05:01 użytkownik Saul St. John
<saul.stjohn@xxxxxxxxx> napisał:
> I don't know if this is correct in the general sense, but the wireless on my
> mid-2010 MacBook Pro doesn't work without it.
>
> Signed-off-by: Saul St. John <saul.stjohn@xxxxxxxxx>
> ---
>  drivers/bcma/sprom.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/bcma/sprom.c b/drivers/bcma/sprom.c
> index 6f230fb..06c87b5 100644
> --- a/drivers/bcma/sprom.c
> +++ b/drivers/bcma/sprom.c
> @@ -228,8 +228,8 @@ int bcma_sprom_get(struct bcma_bus *bus)
>        /* Most cards have SPROM moved by additional offset 0x30 (48 dwords).
>         * According to brcm80211 this applies to cards with PCIe rev >= 6
>         * TODO: understand this condition and use it */
> -       offset = (bus->chipinfo.id == 0x4331) ? BCMA_CC_SPROM :
> -               BCMA_CC_SPROM_PCIE6;
> +       offset = (bus->chipinfo.id == 0x4331 || bus->chipinfo.id == 43224) ?
> +                       BCMA_CC_SPROM : BCMA_CC_SPROM_PCIE6;
>        bcma_sprom_read(bus, offset, sprom);
>
>        if (bus->chipinfo.id == 0x4331)

I'm quite sure it'll break my BCM43224. It's not chip-specific,
probably some status bit specific.

-- 
Rafał
--
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