Bug 103201

Summary: brcmfmac regression
Product: Networking Reporter: Justin Dray (justin)
Component: WirelessAssignee: networking_wireless (networking_wireless)
Status: NEW ---    
Severity: normal CC: accounts+kernel, ajb, andre.insead, anthonybrice, archenroot, aspriel, b.gianfo, cameron.e.wood, christian_baillard, christophe, danielroschka+kernel, david.goransson90, dinechin, doj, fedora, george, hoxnox, hugo, jcpetkovich, john, kongjianjun, lbrito, lev.krainov, lgunsch, linville, mael.lavault, nankanbob, nd, orion, pewhoo, ptitjes, thejoe, tim.sammut, toracat, uestclx, vlasov
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 4.2.0-rc7 Subsystem:
Regression: No Bisected commit-id:
Attachments: Dell XPS-15 9550 lspci -nnvv (Networking)

Description Justin Dray 2015-08-20 11:23:10 UTC
In the latest RC (Haven't tested previous RC's for 4.2.0) my Broadcom BCM43602 (MacbookPro11,4 - mid-2015 15")  takes 60 seconds after boot to show up in `ip link`.

At the same time I get this message in the journal:
Aug 20 21:10:05 justinmacbook kernel: brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 13 2015 08:11:08 version 7.35.177.36 (r540934) FWID 01-e4dc1
Aug 20 21:10:05 justinmacbook kernel: brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

After this the wireless device mostly works fine, but I haven't had a lot of time to test it at length. This regression is easily repeatable on the latest mainline.
Comment 1 Anthony Brice 2015-08-23 05:10:23 UTC
I can confirm the issue affects the MBPr 12,1 as well.
Comment 2 Justin Dray 2015-08-24 06:56:41 UTC
I've also noticed that when going to suspend/hibernate that exactly 60 seconds after resume the whole system will lock up if brcmfmac is loaded. Not sure if this is related or not. Manually running rmmod brmcfmac before suspend, then modprobe brcmfmac afterwards results in me being able to see wireless networks but oddly enough not my own one via network manager. using wifi-menu/netctl I was however able to see and connect to my network.
Comment 3 Justin Dray 2015-08-24 07:01:02 UTC
Sorry for double post. When restarting networkmanager it spews out the following kernel trace (again, this is only post-resume from hibernate/suspend):
https://gist.github.com/justin8/484464641fae604799bd
Comment 4 Adrian Bjugård 2015-09-02 11:57:39 UTC
Also 5 GHz doesn't work, and the correct physical MAC address isn't recognised properly, everyone with this card (14e4:43ba) gets assigned the MAC address 00:90:4c:0d:f4:3e. Even by spoofing MAC address, it isn't possible to have two users of this card in the vicinity of each other.
Comment 5 Arend van Spriel 2015-09-05 13:15:05 UTC
This issue has been root caused as a firmware issue. We are preparing a new firmware release to linux-firmware repo.
Comment 6 Arend van Spriel 2015-09-05 13:31:02 UTC
(In reply to Arend van Spriel from comment #5)
> This issue has been root caused as a firmware issue. We are preparing a new
> firmware release to linux-firmware repo.

This is regarding the 5GHz operation and mac address issue.
Comment 7 Arend van Spriel 2015-09-21 18:19:29 UTC
(In reply to Justin Dray from comment #0)
> In the latest RC (Haven't tested previous RC's for 4.2.0) my Broadcom
> BCM43602 (MacbookPro11,4 - mid-2015 15")  takes 60 seconds after boot to
> show up in `ip link`.

The 60 seconds suggest firmware loading using some timeout. Do you have the brcmfmac driver built-in the kernel or using it as a kernel module?
Comment 8 Justin Dray 2015-09-21 18:27:04 UTC
It is a module.
Comment 9 Adrian Bjugård 2015-09-21 18:30:50 UTC
(In reply to Arend van Spriel from comment #7)
> (In reply to Justin Dray from comment #0)
> > In the latest RC (Haven't tested previous RC's for 4.2.0) my Broadcom
> > BCM43602 (MacbookPro11,4 - mid-2015 15")  takes 60 seconds after boot to
> > show up in `ip link`.
> 
> The 60 seconds suggest firmware loading using some timeout. Do you have the
> brcmfmac driver built-in the kernel or using it as a kernel module?

I had the 60s to load problem when I was compiling the linux-mainline package on ArchLinux, I think it only happens when the kernel is running with debug enabled? I'm not getting it with the linux 4.2.0-4 package from the testing repo, and I wasn't getting it with 4.1.6 from core either.
Comment 10 Anthony Brice 2015-09-21 19:12:39 UTC
Prompted by Adrian's comment, I enabled Arch's testing repositories and enabled its kernel. I can confirm that fixed the 60s to load problem on my machine.
Comment 11 Justin Dray 2015-09-22 08:41:35 UTC
I can also confirm the testing 4.2.0-4 kernel in arch's testing repo fixes the 60s to load issue. The MAC address is still forced to 00:90:4c:0d:f4:3e however. And I do not appear to be able to see or connect to 5GHz networks still. But they existed in 4.1.x as well; so the regression is fixed? but networking is still fairly broken.
Comment 12 Arend van Spriel 2015-10-08 07:33:21 UTC
Please try latest firmware in linux-firmware repository [1].

Regards,
Arend

[1] https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/plain/brcm/brcmfmac43602-pcie.bin?id=ea1178515b8852a5ead23b165b4609ef2b49f36c
Comment 13 Justin Dray 2015-10-08 08:12:40 UTC
I found that one 2 days ago, I've been using it for a full day now and it's working great! Thanks
Comment 14 Orion Poplawski 2016-02-18 20:42:35 UTC
Running 4.4.2 on Dell XPS 13 (2016) with latest brcmfmac4350-pcie.bin from linux-firmware repo and I get the timeout still:

[   74.153278] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 22 2015 06:16:26 version 7.35.180.119 (r594535) FWID 01-e791c176
[   74.169784] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

Is there an updated firmware for this chipset?
Comment 15 hoxnox 2016-03-02 18:34:27 UTC
Almost the same for me with Dell XPS-15 9550 (2015)
It has Dell Wireless 1830 WiFi, which is bcm43602-pcie  (attached lspci -vvnn).

I'm able to connect to my 5GHz network (TP-Link Archer C7), but after some time (5-7 seconds) connection is lost.

~  grep -i brcm /usr/src/linux/.config
CONFIG_EXTRA_FIRMWARE="i915/bxt_dmc_ver1.bin i915/skl_dmc_ver1.bin i915/skl_guc_ver4.bin brcm/brcmfmac43602-pcie.bin brcm/brcmfmac43602-pcie.ap.bin edid/dell_9550.bin"
CONFIG_BRCMUTIL=y
CONFIG_BRCMFMAC=y
CONFIG_BRCMFMAC_PROTO_BCDC=y
CONFIG_BRCMFMAC_PROTO_MSGBUF=y
CONFIG_BRCMFMAC_USB=y
CONFIG_BRCMFMAC_PCIE=y
CONFIG_BRCM_TRACING=y
CONFIG_BRCMDBG=y
~  dmesg | grep brcm
[    0.527288] usbcore: registered new interface driver brcmfmac
[    0.527367] brcmfmac 0000:02:00.0: enabling device (0000 -> 0002)
[    0.628557] brcmfmac 0000:02:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[    1.136282] brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c
[    1.207709] brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    2.627205] brcmfmac 0000:02:00.0 wifi: renamed from wlan0
[    3.556370] brcmf_cfg80211_reg_notifier: not a ISO3166 code
[    5.822751] brcmf_add_if: ERROR: netdev:wifi already exists
[    5.822757] brcmf_add_if: ignore IF event
[   82.338915] brcmf_cfg80211_reg_notifier: not a ISO3166 code
Comment 16 hoxnox 2016-03-02 18:35:21 UTC
Created attachment 206661 [details]
Dell XPS-15 9550 lspci -nnvv (Networking)
Comment 17 christian 2016-03-15 09:56:05 UTC
I'm having the same issue with my last dell xps 13 (2016) laptop since last update...
How can I do?
Comment 18 Niels Dettenbach 2016-06-02 10:49:25 UTC
Have the same 60s problem (on MacBookPro 11,5).

[  288.535260] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[  288.535266] brcmfmac 0000:04:00.0: Falling back to user helper

...here it takes 60s...

[  349.031145] brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c
[  349.078629] brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  349.199856] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[  397.786460] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  404.492633] brcmf_inetaddr_changed: fail to get arp ip table err:-23

Same after suspend (hibernate to ram).

I tried the firmware blob as described here plus from linux-firmware (git), but that crashes instantly the kernel (could not debug it further att) when try to load. I'm on Gentoo (with gentoo kernel patchset) and not know if the guys here have modified something related.

best regards,

Niels.
Comment 19 Amos Kong 2016-07-06 13:53:49 UTC
I also touched this problem in Dell XPS-13, with Fedora 24 system.

[amos@eve scylladb.com]$ uname -a
Linux eve 4.6.3-300.fc24.x86_64 #1 SMP Fri Jun 24 20:52:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
[amos@eve scylladb.com]$ rpm -qi kernel
Name        : kernel
Version     : 4.5.5
Release     : 300.fc24
Architecture: x86_64
Install Date: Wed 15 Jun 2016 12:39:18 AM HKT
Group       : System Environment/Kernel
Size        : 0
License     : GPLv2 and Redistributable, no modification permitted
Signature   : RSA/SHA256, Tue 24 May 2016 02:37:16 AM HKT, Key ID 73bde98381b46521
Source RPM  : kernel-4.5.5-300.fc24.src.rpm
Build Date  : Thu 19 May 2016 10:11:33 PM HKT
Build Host  : bkernel01.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kernel.org/
Summary     : The Linux kernel
Description :
The kernel meta package
Name        : kernel
Version     : 4.5.7
Release     : 300.fc24
Architecture: x86_64
Install Date: Fri 01 Jul 2016 07:48:24 AM HKT
Group       : System Environment/Kernel
Size        : 0
License     : GPLv2 and Redistributable, no modification permitted
Signature   : RSA/SHA256, Thu 09 Jun 2016 11:13:42 PM HKT, Key ID 73bde98381b46521
Source RPM  : kernel-4.5.7-300.fc24.src.rpm
Build Date  : Thu 09 Jun 2016 03:24:06 AM HKT
Build Host  : bkernel02.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kernel.org/
Summary     : The Linux kernel
Description :
The kernel meta package
Name        : kernel
Version     : 4.6.3
Release     : 300.fc24
Architecture: x86_64
Install Date: Fri 01 Jul 2016 12:51:40 PM HKT
Group       : System Environment/Kernel
Size        : 0
License     : GPLv2 and Redistributable, no modification permitted
Signature   : RSA/SHA256, Sun 26 Jun 2016 12:53:51 AM HKT, Key ID 73bde98381b46521
Source RPM  : kernel-4.6.3-300.fc24.src.rpm
Build Date  : Sat 25 Jun 2016 06:00:23 AM HKT
Build Host  : bkernel02.phx2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.kernel.org/
Summary     : The Linux kernel
Description :
The kernel meta package
Comment 20 Roman Blanty 2016-08-04 06:53:08 UTC
Problems here as well Dell XPS 13 9350 (2016) Fedora 24

uname -a
Linux localhost.localdomain 4.6.4-301.fc24.x86_64 #1 SMP Tue Jul 12 11:50:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

lspci -nnvv (only Networking):

3a:00.0 Network controller [0280]: Broadcom Corporation BCM4350 802.11ac Wireless Network Adapter [14e4:43a3] (rev 08)
	Subsystem: Dell Device [1028:0023]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 284
	Region 0: Memory at dc400000 (64-bit, non-prefetchable) [size=32K]
	Region 2: Memory at dc000000 (64-bit, non-prefetchable) [size=4M]
	Capabilities: [48] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=2 PME-
	Capabilities: [58] MSI: Enable+ Count=1/16 Maskable- 64bit+
		Address: 00000000fee00398  Data: 0000
	Capabilities: [68] Vendor Specific Information: Len=44 <?>
	Capabilities: [ac] Express (v2) Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
			RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <32us
			ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Via WAKE#
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
			 EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
	Capabilities: [100 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover+ Timeout+ NonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
	Capabilities: [13c v1] Device Serial Number 00-00-cb-ff-ff-e6-30-52
	Capabilities: [150 v1] Power Budgeting <?>
	Capabilities: [160 v1] Virtual Channel
		Caps:	LPEVC=0 RefClk=100ns PATEntryBits=1
		Arb:	Fixed- WRR32- WRR64- WRR128-
		Ctrl:	ArbSelect=Fixed
		Status:	InProgress-
		VC0:	Caps:	PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
			Arb:	Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
			Ctrl:	Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
			Status:	NegoPending- InProgress-
	Capabilities: [1b0 v1] Latency Tolerance Reporting
		Max snoop latency: 3145728ns
		Max no snoop latency: 3145728ns
	Capabilities: [220 v1] #15
	Capabilities: [240 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=50us
	Kernel driver in use: brcmfmac
	Kernel modules: brcmfmac
Comment 21 Shinping Wang 2016-08-06 03:52:13 UTC
Having the similar problem with Lenovo Yoga 15ISK running Fedora 24, 
uname print: Linux Yoga 4.6.4-301.fc24.x86_64 #1 SMP Tue Jul 12 11:50:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

the dmesg prints:
[    4.191169] i2c_hid i2c-ITE8350:00: error in i2c_hid_init_report size:19 / ret_size:18
[    4.197991] input: MELF0400:00 1FD2:5008 as /devices/pci0000:00/0000:00:15.1/i2c_designware.1/i2c-6/i2c-MELF0400:00/0018:1FD2:5008.0006/input/input15
[    4.198757] hid-multitouch 0018:1FD2:5008.0006: input,hidraw2: I2C HID v1.00 Device [MELF0400:00 1FD2:5008] on i2c-MELF0400:00
[    4.221843] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 22 2015 06:16:26 version 7.35.180.119 (r594535) FWID 01-e791c176
[    4.239976] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[    4.260477] brcmfmac 0000:01:00.0 wlp1s0: renamed from wlan0


best regards,
Bob
Comment 22 pewhoo 2016-08-31 07:52:03 UTC
Have a similar problem, with also a XPS dell 13' 9350 (2016), on archlinux

uname -a 
Linux pewhodell 4.7.2-1-ARCH #1 SMP PREEMPT Sat Aug 20 23:02:56 CEST 2016 x86_64 GNU/Linux


lspci -nnvv (only Networking):
3a:00.0 Network controller [0280]: Broadcom Corporation BCM4350 802.11ac Wireless Network Adapter [14e4:43a3] (rev 08)
	Subsystem: Dell Device [1028:0021]
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 282
	Region 0: Memory at dc400000 (64-bit, non-prefetchable) [size=32K]
	Region 2: Memory at dc000000 (64-bit, non-prefetchable) [size=4M]
	Capabilities: [48] Power Management version 3
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=2 PME-
	Capabilities: [58] MSI: Enable+ Count=1/16 Maskable- 64bit+
		Address: 00000000fee0f00c  Data: 4182
	Capabilities: [68] Vendor Specific Information: Len=44 <?>
	Capabilities: [ac] Express (v2) Endpoint, MSI 00
		DevCap:	MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 unlimited
			ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset- SlotPowerLimit 10.000W
		DevCtl:	Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
			RlxdOrd+ ExtTag- PhantFunc- AuxPwr+ NoSnoop+
			MaxPayload 256 bytes, MaxReadReq 512 bytes
		DevSta:	CorrErr+ UncorrErr- FatalErr- UnsuppReq+ AuxPwr+ TransPend-
		LnkCap:	Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <2us, L1 <32us
			ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
		LnkCtl:	ASPM L1 Enabled; RCB 64 bytes Disabled- CommClk+
			ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
		LnkSta:	Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
		DevCap2: Completion Timeout: Range ABCD, TimeoutDis+, LTR+, OBFF Via WAKE#
		DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
		LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-
			 Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
			 Compliance De-emphasis: -6dB
		LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
			 EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
	Capabilities: [100 v1] Advanced Error Reporting
		UESta:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UEMsk:	DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
		UESvrt:	DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
		CESta:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
		CEMsk:	RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
		AERCap:	First Error Pointer: 00, GenCap+ CGenEn- ChkCap+ ChkEn-
	Capabilities: [13c v1] Device Serial Number 00-00-cb-ff-ff-e8-30-52
	Capabilities: [150 v1] Power Budgeting <?>
	Capabilities: [160 v1] Virtual Channel
		Caps:	LPEVC=0 RefClk=100ns PATEntryBits=1
		Arb:	Fixed- WRR32- WRR64- WRR128-
		Ctrl:	ArbSelect=Fixed
		Status:	InProgress-
		VC0:	Caps:	PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
			Arb:	Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
			Ctrl:	Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
			Status:	NegoPending- InProgress-
	Capabilities: [1b0 v1] Latency Tolerance Reporting
		Max snoop latency: 3145728ns
		Max no snoop latency: 3145728ns
	Capabilities: [220 v1] #15
	Capabilities: [240 v1] L1 PM Substates
		L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
			  PortCommonModeRestoreTime=0us PortTPowerOnTime=50us
	Kernel driver in use: brcmfmac
	Kernel modules: brcmfmac



and finally the dmseg errors:
[    1.658740] usbcore: registered new interface driver brcmfmac
[    1.658798] brcmfmac 0000:3a:00.0: enabling device (0000 -> 0002)
[    1.763191] brcmfmac 0000:3a:00.0: Direct firmware load for brcm/brcmfmac4350-pcie.txt failed with error -2
[    2.577166] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 22 2015 06:16:26 version 7.35.180.119 (r594535) FWID 01-e791c176
[    2.604797] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[    2.699794] brcmfmac 0000:3a:00.0 wlp58s0: renamed from wlan0
[    3.424821] brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error

Best Regards,
Pewho
Comment 23 Lev 2016-09-14 00:19:26 UTC
I also have archlinux on Dell XPS 13' 9350 and have a similar problem. lspci and dmesg outputs are pretty similar to Pewho's.
Comment 24 lbrito 2016-10-04 15:31:28 UTC
Same issue here. Dell XPS 13 9350 with Broadcom Corporation BCM4350 802.11ac Wireless Network Adapter [14e4:43a3] (rev 08).

I'm using Ubuntu 16.04 with the 4.8 kernel. brcmfmac errors are logged in dmesg every 60s or so:

[  449.586402] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  517.154683] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  582.704065] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  650.273411] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)

And when the error happens, wifi dies for ~10s. This issue did not happen with me when using kernel 4.7.
Comment 25 George Ornbo 2016-10-16 07:30:25 UTC
I also experience this issue on a MacbookPro 12,1.

lspci -k

03:00.0 Network controller: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC (rev 01)
        Subsystem: Apple Inc. Device 0133
        Kernel driver in use: brcmfmac
        Kernel modules: brcmfmac


dmesg from a cold boot connecting using wpa_supplicant.

[   10.299941] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c
[   10.330167] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[   10.334543] brcmfmac 0000:03:00.0 wlp3s0: renamed from wlan0
[   10.407344] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   11.519248] Console: switching to colour frame buffer device 320x100
[   11.736629] i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[   45.713137] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[   52.135162] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23
Comment 26 Niels Dettenbach 2016-10-17 10:52:47 UTC
Just an update:
I'm on a new kernel 4.8.1 with linux-firmware 20160628 (Gentoo) with no change. After loading the brcmfmac module it takes a minute until upcoming with the network device. Same happens when rmmod and insmod the module again. Seems it run's into any timeout while firmware loading or similiar.

[    9.511871] usbcore: registered new interface driver brcmfmac
[    9.620781] brcmfmac 0000:04:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[    9.620782] brcmfmac 0000:04:00.0: Falling back to user helper
[   71.215417] brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c

here is my lspci -knnv

00:00.0 Host bridge [0600]: Intel Corporation Crystal Well DRAM Controller [8086:0d04] (rev 08)
        Subsystem: Apple Inc. Crystal Well DRAM Controller [106b:0148]
        Flags: bus master, fast devsel, latency 0
        Capabilities: [e0] Vendor Specific Information: Len=0c <?>


04:00.0 Network controller [0280]: Broadcom Corporation BCM43602 802.11ac Wireless LAN SoC [14e4:43ba] (rev 01)
        Subsystem: Apple Inc. BCM43602 802.11ac Wireless LAN SoC [106b:0152]
        Flags: bus master, fast devsel, latency 0, IRQ 64
        Memory at b0800000 (64-bit, non-prefetchable) [size=32K]
        Memory at b0400000 (64-bit, non-prefetchable) [size=4M]
        Capabilities: [48] Power Management version 3
        Capabilities: [58] MSI: Enable+ Count=1/16 Maskable- 64bit+
        Capabilities: [68] Vendor Specific Information: Len=44 <?>
        Capabilities: [ac] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Device Serial Number d6-8d-32-ff-ff-ae-ac-bc
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel
        Capabilities: [1b0] Latency Tolerance Reporting
        Capabilities: [220] #15
        Capabilities: [240] L1 PM Substates
        Kernel driver in use: brcmfmac
        Kernel modules: brcmfmac, wl

hth a bit,

best regards,


Niels.
http://www.syndicat.com
Comment 27 andre.insead 2016-10-17 13:58:48 UTC
Hi, not sure if this is the right place to post this, but in addition of having the errors mentioned in the thread, I recently had the driver crash on me:



Oct 13 13:48:22 andre-T460s kernel: [520069.912921] WARNING: CPU: 2 PID: 1229 at /home/kernel/COD/linux/drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c:1376 brcmf_netdev_wait_pend8021x+0x106/0x110 [brcmfmac]
Oct 13 13:48:22 andre-T460s kernel: [520069.912922] Modules linked in: pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) snd_hda_codec_hdmi snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc snd_hda_codec_realtek snd_hda_codec_generic snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_match snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine dw_dmac_core snd_hda_intel efi_pstore intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp snd_hda_codec kvm_intel snd_hda_core kvm snd_hwdep irqbypass brcmfmac snd_seq_midi crct10dif_pclmul crc32_pclmul cmac ecb uvcvideo ghash_clmulni_intel snd_seq_midi_event brcmutil videobuf2_vmalloc aesni_intel videobuf2_memops aes_x86_64 lrw gf128mul videobuf2_v4l2 snd_pcm glue_helper snd_rawmidi ablk_helper videobuf2_core cryptd rtsx_pci_ms input_leds joydev memstick cfg80211 videodev serio_raw efivars snd_seq btusb media btrtl btbcm snd_seq_device btintel shpchp bnep rfcomm thinkpad_acpi snd_timer nvram bluetooth snd soundcore led_class ac battery mac_hid tpm_crb mei_me mei intel_pch_thermal processor fuse parport_pc ppdev nls_iso8859_1 vfat lp fat parport ext4 crc16 jbd2 mbcache sd_mod rtsx_pci_sdmmc i915 i2c_algo_bit crc32c_intel drm_kms_helper e1000e syscopyarea sysfillrect sysimgblt psmouse fb_sys_fops ptp pps_core xhci_pci drm xhci_hcd ahci libahci rtsx_pci libata usbcore intel_gtt scsi_mod agpgart usb_common thermal wmi video button fjes
Oct 13 13:48:22 andre-T460s kernel: [520069.912975] CPU: 2 PID: 1229 Comm: wpa_supplicant Tainted: G     U     OE   4.6.0-040600-generic #201606100558
Oct 13 13:48:22 andre-T460s kernel: [520069.912976] Hardware name: LENOVO 20F9CTO1WW/20F9CTO1WW, BIOS N1CET37W (1.05 ) 01/15/2016Oct 13 13:48:22 andre-T460s kernel: [520069.912975] CPU: 2 PID: 1229 Comm: wpa_supplicant Tainted: G     U     OE   4.6.0-040600-generic #201606100558
Oct 13 13:48:22 andre-T460s kernel: [520069.912976] Hardware name: LENOVO 20F9CTO1WW/20F9CTO1WW, BIOS N1CET37W (1.05 ) 01/15/2016
Oct 13 13:48:22 andre-T460s kernel: [520069.912977]  0000000000000286 00000000020bd703 ffff880506c4f8d0 ffffffff8135f483
Oct 13 13:48:22 andre-T460s kernel: [520069.912979]  0000000000000000 0000000000000000 ffff880506c4f910 ffffffff810814db
Oct 13 13:48:22 andre-T460s kernel: [520069.912981]  0000056000000246 0000000000000000 ffff88023e5ba990 ffff88023e5ba840
Oct 13 13:48:22 andre-T460s kernel: [520069.912983] Call Trace:
Oct 13 13:48:22 andre-T460s kernel: [520069.912987]  [<ffffffff8135f483>] dump_stack+0x63/0x90
Oct 13 13:48:22 andre-T460s kernel: [520069.912989]  [<ffffffff810814db>] __warn+0xcb/0xf0
Oct 13 13:48:22 andre-T460s kernel: [520069.912990]  [<ffffffff8108160d>] warn_slowpath_null+0x1d/0x20
Oct 13 13:48:22 andre-T460s kernel: [520069.912996]  [<ffffffffc083a9d6>] brcmf_netdev_wait_pend8021x+0x106/0x110 [brcmfmac]
Oct 13 13:48:22 andre-T460s kernel: [520069.912998]  [<ffffffff810c5a30>] ? wake_atomic_t_function+0x60/0x60
Oct 13 13:48:22 andre-T460s kernel: [520069.913002]  [<ffffffffc0823712>] send_key_to_dongle+0xa2/0x100 [brcmfmac]
Oct 13 13:48:22 andre-T460s kernel: [520069.913004]  [<ffffffff810b3d6c>] ? __enqueue_entity+0x6c/0x70
Oct 13 13:48:22 andre-T460s kernel: [520069.913008]  [<ffffffffc0824e07>] brcmf_cfg80211_add_key+0x287/0x520 [brcmfmac]
Oct 13 13:48:22 andre-T460s kernel: [520069.913021]  [<ffffffffc06f0ea8>] nl80211_new_key+0x128/0x260 [cfg80211]
Oct 13 13:48:22 andre-T460s kernel: [520069.913023]  [<ffffffff815c98bb>] genl_family_rcv_msg+0x1db/0x3b0
Oct 13 13:48:22 andre-T460s kernel: [520069.913025]  [<ffffffff815c9a90>] ? genl_family_rcv_msg+0x3b0/0x3b0
Oct 13 13:48:22 andre-T460s kernel: [520069.913026]  [<ffffffff815c9b06>] genl_rcv_msg+0x76/0xb0
Oct 13 13:48:22 andre-T460s kernel: [520069.913028]  [<ffffffff815c9014>] netlink_rcv_skb+0xa4/0xc0
Oct 13 13:48:22 andre-T460s kernel: [520069.913029]  [<ffffffff815c96c8>] genl_rcv+0x28/0x40
Oct 13 13:48:22 andre-T460s kernel: [520069.913031]  [<ffffffff815c89f3>] netlink_unicast+0x183/0x230

Oct 13 13:48:22 andre-T460s kernel: [520069.913033]  [<ffffffff815c8d9b>] netlink_sendmsg+0x2fb/0x3a0
Oct 13 13:48:22 andre-T460s kernel: [520069.913035]  [<ffffffff81576088>] sock_sendmsg+0x38/0x50
Oct 13 13:48:22 andre-T460s kernel: [520069.913037]  [<ffffffff81576b3e>] ___sys_sendmsg+0x28e/0x2a0
Oct 13 13:48:22 andre-T460s kernel: [520069.913038]  [<ffffffff81575a7f>] ? sock_destroy_inode+0x2f/0x40
Oct 13 13:48:22 andre-T460s kernel: [520069.913040]  [<ffffffff8123e4ab>] ? destroy_inode+0x3b/0x60
Oct 13 13:48:22 andre-T460s kernel: [520069.913042]  [<ffffffff8123e606>] ? evict+0x136/0x1a0
Oct 13 13:48:22 andre-T460s kernel: [520069.913044]  [<ffffffff81239b2e>] ? dentry_free+0x4e/0x90
Oct 13 13:48:22 andre-T460s kernel: [520069.913045]  [<ffffffff81239f32>] ? __dentry_kill+0x162/0x1e0
Oct 13 13:48:22 andre-T460s kernel: [520069.913047]  [<ffffffff8123a196>] ? dput+0x1e6/0x220
Oct 13 13:48:22 andre-T460s kernel: [520069.913049]  [<ffffffff81243744>] ? mntput+0x24/0x40
Oct 13 13:48:22 andre-T460s kernel: [520069.913051]  [<ffffffff812243e3>] ? __fput+0x193/0x230
Oct 13 13:48:22 andre-T460s kernel: [520069.913052]  [<ffffffff81577494>] __sys_sendmsg+0x54/0x90
Oct 13 13:48:22 andre-T460s kernel: [520069.913054]  [<ffffffff815774e2>] SyS_sendmsg+0x12/0x20
Oct 13 13:48:22 andre-T460s kernel: [520069.913056]  [<ffffffff816a09b6>] entry_SYSCALL_64_fastpath+0x1e/0xa8
Oct 13 13:48:22 andre-T460s kernel: [520069.913057] ---[ end trace f5ff11dcb2dab81a ]---
Oct 13 13:48:25 andre-T460s kernel: [520072.580573] brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Oct 13 16:10:37 andre-T460s kernel: [528605.154659] brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)


cheers,

--Andre
Comment 28 lbrito 2016-10-17 14:23:46 UTC
I've reported this bug on Launchpad, please subscribe so that the bug can get some traction and we can work towards a solution: https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1630324
Comment 29 Orion Poplawski 2016-10-17 14:52:40 UTC
To avoid the minute delay in loading the module, make sure that CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set in the kernel configuration.  New elrepo kernels should have this.  See http://elrepo.org/bugs/view.php?id=671.

I ended up swapping the wireless card for an Intel one.  Easy and works great.
Comment 30 hoxnox 2016-11-10 19:25:50 UTC
I've flashed my router (Archer C7 v2) with dd-wrt (ftp://ftp.dd-wrt.com/betas/2016/11-01-2016-r30826/tplink_archer-c7-v2/), configured 5Gz network as follows:

Wireless Mode: AP
Wireless Network Mode: AC/N-Mixed
Channel Width: Full (20 MHz)
Wireless Channel: 40-5200 MHz

The connection is fast and stable, but I still getting error about ISO code.
Comment 31 Christophe de Dinechin 2016-12-21 11:11:23 UTC
I see a systematic driver crash on a Mac Book Pro 15" running Fedora 25 Workstation, following the same "not an ISO3166 code" message.

It only happens when connected to one of my two base stations, a Freebox Revolution. As far as I can tell, 5GHz is not enabled on that base station (the configuration page says it's using a 40MHz bandwidth at 2.4GHz, channels 12 and 8). It happens every time I enter a Wi-Fi password. From a user perspective, it looks as if the Wi-Fi password was bad, there is no notification other than in dmesg.

The other base station is an old  Airport Time Capsule, and there is no issue connecting to it.

The stack trace is:
[ 1008.652836] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[ 1011.548069] ------------[ cut here ]------------
[ 1011.548099] WARNING: CPU: 2 PID: 2262 at net/wireless/sme.c:724 __cfg80211_connect_result+0x3ab/0x410 [cfg80211]
[ 1011.548100] Modules linked in: rfcomm fuse nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_mangle ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_raw ip6table_security iptable_mangle iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables cmac bnep nls_utf8 hfsplus intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel btusb snd_hda_codec_cirrus snd_hda_codec_generic snd_hda_codec_hdmi brcmfmac kvm btrtl btbcm btintel joydev bluetooth brcmutil snd_hda_intel snd_hda_codec applesmc cfg80211 iTCO_wdt irqbypass iTCO_vendor_support input_polldev
[ 1011.548128]  snd_hda_core crct10dif_pclmul mmc_core crc32_pclmul snd_hwdep snd_seq ghash_clmulni_intel intel_cstate intel_uncore mei_me intel_rapl_perf bcm5974 snd_seq_device rfkill mei i2c_i801 snd_pcm i2c_smbus lpc_ich thunderbolt snd_timer snd soundcore shpchp sbs sbshc acpi_als apple_gmux kfifo_buf industrialio video tpm_tis tpm_tis_core tpm apple_bl nfsd auth_rpcgss nfs_acl lockd grace sunrpc uas usb_storage hid_apple btrfs xor amdkfd amd_iommu_v2 radeon raid6_pq i2c_algo_bit drm_kms_helper ttm crc32c_intel drm fjes
[ 1011.548154] CPU: 2 PID: 2262 Comm: kworker/u16:9 Tainted: G        W       4.8.14-300.fc25.x86_64 #1
[ 1011.548155] Hardware name: Apple Inc. MacBookPro11,5/Mac-06F11F11946D27C5, BIOS MBP114.88Z.0172.B09.1602151732 02/15/2016
[ 1011.548164] Workqueue: cfg80211 cfg80211_event_work [cfg80211]
[ 1011.548165]  0000000000000286 00000000650b1753 ffff92b31fe0fc98 ffffffff823e5ded
[ 1011.548167]  0000000000000000 0000000000000000 ffff92b31fe0fcd8 ffffffff820a0e8b
[ 1011.548169]  000002d400000008 ffff92b36aa9c008 0000000000000000 ffff92b36aa9b000
[ 1011.548171] Call Trace:
[ 1011.548175]  [] dump_stack+0x63/0x86
[ 1011.548178]  [] __warn+0xcb/0xf0
[ 1011.548180]  [] warn_slowpath_null+0x1d/0x20
[ 1011.548190]  [] __cfg80211_connect_result+0x3ab/0x410 [cfg80211]
[ 1011.548199]  [] cfg80211_process_wdev_events+0x129/0x1a0 [cfg80211]
[ 1011.548207]  [] cfg80211_process_rdev_events+0x38/0x70 [cfg80211]
[ 1011.548215]  [] cfg80211_event_work+0x1e/0x30 [cfg80211]
[ 1011.548217]  [] process_one_work+0x184/0x430
[ 1011.548218]  [] worker_thread+0x4e/0x480
[ 1011.548219]  [] ? process_one_work+0x430/0x430
[ 1011.548220]  [] ? process_one_work+0x430/0x430
[ 1011.548222]  [] kthread+0xd8/0xf0
[ 1011.548226]  [] ret_from_fork+0x1f/0x40
[ 1011.548228]  [] ? kthread_worker_fn+0x180/0x180
[ 1011.548229] ---[ end trace 022b2d25dbb9a245 ]---
Comment 32 archenroot 2017-01-05 07:33:43 UTC
While being on 4.8.6 gentoo kernel, kernel got panic while connecting to WPA2-PSK only network, when connected with no security network, newer experienced this behaviour.

I just upgraded to 4.9.0 and will check the situation again.

Output of dmesg after first boot:
[    8.203351] bus: 'platform': add driver brcmfmac
[    8.203382] bus: 'platform': remove driver brcmfmac
[    8.203385] driver: 'brcmfmac': driver_release
[    8.203393] bus: 'pci': add driver brcmfmac
[    8.203398] bus: 'pci': driver_probe_device: matched device 0000:02:00.0 with driver brcmfmac
[    8.203399] bus: 'pci': really_probe: probing driver brcmfmac with device 0000:02:00.0
[    8.203401] brcmfmac 0000:02:00.0: no default pinctrl state
[    8.203462] brcmfmac 0000:02:00.0: enabling device (0000 -> 0002)
[    8.307424] driver: 'brcmfmac': driver_bound: bound to device '0000:02:00.0'
[    8.307427] bus: 'pci': really_probe: bound device 0000:02:00.0 to driver brcmfmac
[    8.307443] __allocate_fw_buf: fw-brcm/brcmfmac43602-pcie.bin buf=ffff88f647d58240
[    8.307734] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/4.9.0-gentoo/brcm/brcmfmac43602-pcie.bin failed with error -2
[    8.307736] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/brcm/brcmfmac43602-pcie.bin failed with error -2
[    8.307839] brcmfmac 0000:02:00.0: loading /lib/firmware/4.9.0-gentoo/brcm/brcmfmac43602-pcie.bin failed with error -2
[    8.311039] brcmfmac 0000:02:00.0: direct-loading brcm/brcmfmac43602-pcie.bin
[    8.311042] fw_set_page_data: fw-brcm/brcmfmac43602-pcie.bin buf=ffff88f647d58240 data=ffff8e7ac7de9000 size=635449
[    8.311067] __allocate_fw_buf: fw-brcm/brcmfmac43602-pcie.txt buf=ffff88f647d58540
[    8.311070] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/4.9.0-gentoo/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.311071] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.311073] brcmfmac 0000:02:00.0: loading /lib/firmware/4.9.0-gentoo/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.311096] brcmfmac 0000:02:00.0: loading /lib/firmware/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.311097] brcmfmac 0000:02:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.311098] __fw_free_buf: fw-brcm/brcmfmac43602-pcie.txt buf=ffff88f647d58540 data=          (null) size=0
[    8.396587] __fw_free_buf: fw-brcm/brcmfmac43602-pcie.bin buf=ffff88f647d58240 data=ffff8e7ac7de9000 size=635449
[    8.816100] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c
[    8.854962] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[    8.859891] brcmfmac 0000:02:00.0 wlp2s0: renamed from wlan0

I am on package sys-kernel/linux-firmware-20160331.

After this refresh I can confirm that I can now even connect to WPA2-PSK network which didn't work on older kernel and older linux-firmware package although the firmware version looks like not updated.

I still see in new kernel some weird stuff in dmesg output:
[11424.238312] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[11424.244842] brcmfmac 0000:02:00.0 wlp2s0: renamed from wlan0
[11433.965541] uncache_firmware: brcm/brcmfmac43602-pcie.bin
[11433.965545] __fw_free_buf: fw-brcm/brcmfmac43602-pcie.bin buf=ffffa2a7342ecb40 data=ffffa6e24a579000 size=635449
[11864.901594] brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error
[11864.901597] brcmfmac: brcmf_cfg80211_add_iface: add iface p2p-dev-wlp2s0 type 10 failed: err=-16
[11865.968717] brcmfmac: brcmf_cfg80211_escan_handler: scan not ready, bsscfgidx=0
[11865.968718] brcmfmac: brcmf_fweh_event_worker: event handler failed (69)
[11866.070570] brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error
[11866.070573] brcmfmac: brcmf_cfg80211_add_iface: add iface p2p-dev-wlp2s0 type 10 failed: err=-16
[11898.353536] brcmfmac: brcmf_inetaddr_changed: fail to get arp ip table err:-23

But so far I stable for 1 hour, usually the kernel panic happened when I used some heavy parallel downloading/uploading, so I will do some stress testing.
Comment 33 archenroot 2017-01-06 02:00:18 UTC
Well, it looks still the same, not sure how I got it working, but I cannot connect to WPA-PSK netowrks again.

[    8.469764] fw_set_page_data: fw-brcm/brcmfmac43602-pcie.bin buf=ffff9ff7879bed80 data=ffffa10fc38a1000 size=635449
[    8.469766] __allocate_fw_buf: fw-brcm/brcmfmac43602-pcie.txt buf=ffff9ff7879be540
[    8.469768] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/4.9.0-gentoo/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.469768] brcmfmac 0000:02:00.0: loading /lib/firmware/updates/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.469769] brcmfmac 0000:02:00.0: loading /lib/firmware/4.9.0-gentoo/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.469773] brcmfmac 0000:02:00.0: loading /lib/firmware/brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.469773] brcmfmac 0000:02:00.0: Direct firmware load for brcm/brcmfmac43602-pcie.txt failed with error -2
[    8.469774] __fw_free_buf: fw-brcm/brcmfmac43602-pcie.txt buf=ffff9ff7879be540 data=          (null) size=0
[    8.554962] __fw_free_buf: fw-brcm/brcmfmac43602-pcie.bin buf=ffff9ff7879bed80 data=ffffa10fc38a1000 size=635449
[    8.976981] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Nov 10 2015 06:38:10 version 7.35.177.61 (r598657) FWID 01-ea662a8c
[    9.039929] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[    9.049924] brcmfmac 0000:02:00.0 wlp2s0: renamed from wlan0
[   10.407950] brcmfmac: brcmf_cfg80211_add_iface: iface validation failed: err=-16
[  100.617207] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  111.265139] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  118.433854] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  129.846770] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  143.521252] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  154.171160] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  191.854524] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  199.022102] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  212.744272] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  254.935198] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
[  321.595859] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)
Comment 34 Christophe de Dinechin 2017-01-10 07:21:52 UTC
(In reply to Christophe de Dinechin from comment #31)
> I see a systematic driver crash on a Mac Book Pro 15" running Fedora 25
> Workstation, following the same "not an ISO3166 code" message.

Problem apparently goes away for me after upgrading to 4.9.
Comment 35 Maël Lavault 2017-01-16 10:32:21 UTC
(In reply to Christophe de Dinechin from comment #34)
> (In reply to Christophe de Dinechin from comment #31)
> > I see a systematic driver crash on a Mac Book Pro 15" running Fedora 25
> > Workstation, following the same "not an ISO3166 code" message.
> 
> Problem apparently goes away for me after upgrading to 4.9.

It doesn't for me, I use kernel 4.9.3-200 on Fedora 25 workstation (macbook pro mid-2015)