joshskidmore / gpd-pocket-arch-packages

Various Arch Linux packages for the GPD Pocket
6 stars 6 forks source link

Source of brcmfmac4356-pcie.txt #2

Open ubitux opened 6 years ago

ubitux commented 6 years ago

Where does brcmfmac4356-pcie.txt come from?

It seems to have been pushed (by Broadcom) in Chromium's fork mid-2014 but the one in this repository is slightly different:

--- a/brcmfmac4356-pcie.txt
+++ b/brcmfmac4356-pcie.txt
@@ -12,7 +12,7 @@
 #define BFL3_5G_SPUR_WAR   0x00080000   /* enable spur WAR in 5G band */
 #define BFL3_AvVim   0x40000000   /* load AvVim from nvram */
 macaddr=00:90:4c:1a:10:01
-ccode=0x5854
+ccode=X2
 regrev=205
 antswitch=0
 pdgain5g=4

For some reason the file is inexistent is the mainline linux-firmware repository, but the firmware itself is much more recent (WTF Broadcom FFS) with a bunch of CVE fixed, pushed by Broadcom too...

I also found a version of this file with an older boardrev (0x1101) in @jwrdegoede personal www, but I have no idea where it comes from either.

So I innocently tried to dump it myself by looking into efivars like it seems to be done for other broadcom devices but couldn't find anything.

cawilliamson commented 6 years ago

This change was from a hansdegoede mailing list discussion. The ccode=X2 basically unlocks all wifi channels by default instead of just the US ones.

As such - without this change some channels cannot be used by default without setting the reg domain.

jwrdegoede commented 6 years ago

Hi,

On 13-01-18 17:41, Clément Bœsch wrote:

I also found a version of this file with an older |boardrev| (|0x1101|) in @jwrdegoede https://github.com/jwrdegoede personal www https://fedorapeople.org/%7Ejwrdegoede/brcmfmac4356-pcie.txt, but I have no idea where it comes from either.

My copy comes from the Windows partition of the GPD win.

Regards,

Hans