diff mbox

BCM4313 & brcmsmac & 3.12: only semi-working?

Message ID 547B07CF.90501@broadcom.com (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Arend van Spriel Nov. 30, 2014, 12:04 p.m. UTC
On 26-11-14 10:52, Michael Tokarev wrote:
> I'm sorry this took so long - I was AFK during weekend and had
> to deal with a huge backlog after that.  Now it is all sorted.
> 
> 23.11.2014 12:43, Arend van Spriel wrote:
>> On 19-11-14 22:00, Michael Tokarev wrote:
> []
>> Well, it shows tx looks ok, but with download there is not much of that
>> going on. At least no large packets. However, I did find some missing
>> pieces related to bt-coex. Given that you device is a wifi-bt combo card
>> that is likely an issue for you. One of the missing pieces looks in
>> sprom for parameters and that is provided by bcma. However, it does not
>> seem to extract bt-coex related stuff. So I have attached a patch based
>> on 3.18-rc5 for bcma that dumps the sprom contents. Could you sent that
>> content to me.
> 
> Here we go.  I had to replace pr_debug with pr_err - haven't looked yet,
> but the thing is that pr_debug isn't even being compiled into the kernel
> here, all the messages are not present in the compiled modules.

Thanks. Did not find what I was looking for, but I started working on
integrating btcoex related functionality. The attached patch will print
some info so I can focus on the required functionality for your device.
It is based on 3.18-rc5.

Regards,
Arend

> [  525.693474] bcma: bcmasprom:
> [  525.693528] bcma:
> 	
> [  525.693592] bcma: 2801
> [  525.693613] bcma: 0000
> [  525.693659] bcma: 1795
> [  525.693679] bcma: 103C
> [  525.693725] bcma: 0070
> [  525.693746] bcma: EDBE
> [  525.693791] bcma: 0000
> [  525.693811] bcma: 2BC4
> [  525.693856] bcma: 2A64
> [  525.693877] bcma: 2964
> [  525.693922] bcma:
> 	
> [  525.693938] bcma: 2C64
> [  525.693984] bcma: 3CE7
> [  525.694004] bcma: 46FF
> [  525.694049] bcma: 47FF
> [  525.694070] bcma: 0C00
> [  525.694115] bcma: 0820
> [  525.694136] bcma: 0030
> [  525.694181] bcma: 1002
> [  525.694202] bcma: 9F28
> [  525.694247] bcma: 5D44
> [  525.694267] bcma:
> 	
> [  525.694329] bcma: 8080
> [  525.694349] bcma: 1D8F
> [  525.694395] bcma: 0032
> [  525.694415] bcma: 0100
> [  525.694461] bcma: DF00
> [  525.694481] bcma: 71F5
> [  525.694526] bcma: 8400
> [  525.694547] bcma: 0083
> [  525.694592] bcma: 8500
> [  525.694613] bcma: 2010
> [  525.694658] bcma:
> 	
> [  525.694674] bcma: 0001
> [  525.694719] bcma: 0000
> [  525.694740] bcma: 0000
> [  525.694785] bcma: 0000
> [  525.694805] bcma: 0000
> [  525.694850] bcma: 0000
> [  525.694871] bcma: 0000
> [  525.694916] bcma: 0000
> [  525.694937] bcma: 0000
> [  525.694982] bcma: 0000
> [  525.695002] bcma:
> 	
> [  525.695063] bcma: 0000
> [  525.695084] bcma: 0000
> [  525.695129] bcma: 1008
> [  525.695150] bcma: 0305
> [  525.695195] bcma: 0000
> [  525.695215] bcma: 0000
> [  525.695261] bcma: 0000
> [  525.695281] bcma: 0000
> [  525.695326] bcma: 4727
> [  525.695347] bcma: 8000
> [  525.695392] bcma:
> 	
> [  525.695409] bcma: 0002
> [  525.695454] bcma: 0000
> [  525.695474] bcma: 1800
> [  525.695520] bcma: 1800
> [  525.695561] bcma: 0000
> [  525.695610] bcma: 0000
> [  525.695631] bcma: 0000
> [  525.695677] bcma: 0000
> [  525.695698] bcma: 0000
> [  525.695746] bcma: 0000
> [  525.695766] bcma:
> 	
> [  525.695827] bcma: 0000
> [  525.695848] bcma: 0000
> [  525.695893] bcma: 0000
> [  525.695914] bcma: 0000
> [  525.695961] bcma: 5372
> [  525.695982] bcma: 1107
> [  525.696027] bcma: 2201
> [  525.696048] bcma: 0040
> [  525.696093] bcma: 0884
> [  525.696116] bcma: 0000
> [  525.696161] bcma:
> 	
> [  525.696178] bcma: E006
> [  525.696223] bcma: E659
> [  525.696244] bcma: 5F5A
> [  525.696290] bcma: 5856
> [  525.696310] bcma: 0001
> [  525.696356] bcma: FFFF
> [  525.696376] bcma: 83FF
> [  525.696422] bcma: FFFF
> [  525.696443] bcma: 0003
> [  525.696488] bcma: 0202
> [  525.696508] bcma:
> 	
> [  525.696570] bcma: FFFF
> [  525.696590] bcma: 0011
> [  525.698381] bcma: 017A
> [  525.698402] bcma: 0000
> [  525.700181] bcma: 0000
> [  525.700202] bcma: 0000
> [  525.701936] bcma: 0000
> [  525.701957] bcma: 0201
> [  525.703650] bcma: 0000
> [  525.703672] bcma: 7800
> [  525.705278] bcma:
> 	
> [  525.706808] bcma: 6410
> [  525.708296] bcma: E398
> [  525.708318] bcma: 0008
> [  525.709774] bcma: 0000
> [  525.709796] bcma: 0000
> [  525.711186] bcma: 0000
> [  525.711207] bcma: 0044
> [  525.712532] bcma: 2400
> [  525.712556] bcma: FCF7
> [  525.713867] bcma: 0089
> [  525.713888] bcma:
> 	
> [  525.716500] bcma: 0000
> [  525.716524] bcma: 0000
> [  525.717834] bcma: 0000
> [  525.717855] bcma: 0000
> [  525.719195] bcma: 0000
> [  525.719217] bcma: 0000
> [  525.720530] bcma: 0000
> [  525.720551] bcma: 0000
> [  525.721862] bcma: 0000
> [  525.721882] bcma: 0000
> [  525.723176] bcma:
> 	
> [  525.724400] bcma: 0000
> [  525.725678] bcma: 0000
> [  525.725699] bcma: 0048
> [  525.726996] bcma: FED2
> [  525.727017] bcma: 15D9
> [  525.728308] bcma: FAC6
> [  525.728329] bcma: 0000
> [  525.729642] bcma: 0000
> [  525.729664] bcma: 0000
> [  525.730958] bcma: 0000
> [  525.730978] bcma:
> 	
> [  525.733526] bcma: 0000
> [  525.733549] bcma: 0000
> [  525.734827] bcma: 0000
> [  525.734848] bcma: 0000
> [  525.736155] bcma: 0000
> [  525.736179] bcma: 0000
> [  525.737466] bcma: 0000
> [  525.737487] bcma: 0000
> [  525.738764] bcma: 0000
> [  525.738785] bcma: 0000
> [  525.740049] bcma:
> 	
> [  525.741240] bcma: 0000
> [  525.742501] bcma: 0000
> [  525.742522] bcma: 0000
> [  525.743806] bcma: 0000
> [  525.743827] bcma: 0000
> [  525.745111] bcma: 0000
> [  525.745132] bcma: 0000
> [  525.746433] bcma: 0000
> [  525.746456] bcma: 0000
> [  525.747725] bcma: 0000
> [  525.747746] bcma:
> 	
> [  525.750251] bcma: 0000
> [  525.750272] bcma: 0000
> [  525.751532] bcma: 0000
> [  525.751553] bcma: 0000
> [  525.752847] bcma: 0000
> [  525.752871] bcma: 0000
> [  525.754150] bcma: 0000
> [  525.754171] bcma: 0000
> [  525.755441] bcma: 0000
> [  525.755462] bcma: 0000
> [  525.756717] bcma:
> 	
> [  525.757900] bcma: 0000
> [  525.759148] bcma: 0000
> [  525.759170] bcma: 0000
> [  525.760436] bcma: 0000
> [  525.760457] bcma: 0000
> [  525.761720] bcma: 0000
> [  525.761741] bcma: 0000
> [  525.763023] bcma: 0000
> [  525.763047] bcma: 0000
> [  525.764301] bcma: 0000
> [  525.764321] bcma:
> 	
> [  525.766790] bcma: 0000
> [  525.766813] bcma: 1111
> [  525.768057] bcma: 1111
> [  525.768078] bcma: 0000
> [  525.769355] bcma: 0000
> [  525.769378] bcma: 0000
> [  525.770631] bcma: 0000
> [  525.770652] bcma: 0000
> [  525.771898] bcma: 0000
> [  525.771919] bcma: 2222
> [  525.773158] bcma:
> 	
> [  525.774325] bcma: 3222
> [  525.775540] bcma: 0000
> [  525.775561] bcma: 0000
> [  525.776816] bcma: 0000
> [  525.776840] bcma: 0000
> [  525.778089] bcma: 0000
> [  525.778110] bcma: 0000
> [  525.779355] bcma: 0000
> [  525.779380] bcma: 0000
> [  525.780600] bcma: 0000
> [  525.780621] bcma:
> 	
> [  525.783015] bcma: 0000
> [  525.783038] bcma: 0000
> [  525.784247] bcma: 0000
> [  525.784268] bcma: 0000
> [  525.785500] bcma: 0000
> [  525.785521] bcma: 0000
> [  525.786759] bcma: 0000
> [  525.786781] bcma: 0000
> [  525.787995] bcma: 0000
> [  525.788016] bcma: 0000
> [  525.789217] bcma:
> 	
> [  525.790337] bcma: 0000
> [  525.791505] bcma: 0000
> [  525.791525] bcma: 0000
> [  525.792740] bcma: 0000
> [  525.792765] bcma: 0000
> [  525.793965] bcma: 0000
> [  525.793986] bcma: 0000
> [  525.795168] bcma: 0000
> [  525.795189] bcma: 0000
> [  525.796375] bcma: 0000
> [  525.796399] bcma:
> 	
> [  525.798682] bcma: 0000
> [  525.798703] bcma: 0000
> [  525.799885] bcma: 0000
> [  525.799906] bcma: 0000
> [  525.801038] bcma: 0000
> [  525.801058] bcma: 0000
> [  525.802177] bcma: 0000
> [  525.802197] bcma: 0000
> [  525.803320] bcma: 0000
> [  525.803340] bcma: 0000
> [  525.804433] bcma:
> 	
> [  525.805460] bcma: 0000
> [  525.806547] bcma: 0000
> [  525.806567] bcma: 0000
> [  525.807671] bcma: 0000
> [  525.807691] bcma: 0000
> [  525.808777] bcma: 0000
> [  525.808796] bcma: 0000
> [  525.809899] bcma: 0000
> [  525.809919] bcma: 0000
> [  525.821789] bcma: bus0: Bus registered
> 
> Thanks,
> 
> /mjt
>

Comments

Michael Tokarev Dec. 2, 2014, 9:40 p.m. UTC | #1
30.11.2014 15:04, Arend van Spriel wrote:

> Thanks. Did not find what I was looking for, but I started working on
> integrating btcoex related functionality. The attached patch will print
> some info so I can focus on the required functionality for your device.
> It is based on 3.18-rc5.

With this patch applied against 3.18-rc5, the machine instantly reboots
once brcmsmac module is loaded.  I'm still debugging this.

Thanks,

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel Dec. 3, 2014, 12:43 p.m. UTC | #2
On 12/02/14 22:40, Michael Tokarev wrote:
> 30.11.2014 15:04, Arend van Spriel wrote:
>
>> Thanks. Did not find what I was looking for, but I started working on
>> integrating btcoex related functionality. The attached patch will print
>> some info so I can focus on the required functionality for your device.
>> It is based on 3.18-rc5.
>
> With this patch applied against 3.18-rc5, the machine instantly reboots
> once brcmsmac module is loaded.  I'm still debugging this.

Argh. Probably the register access I added end up in limbo land or some 
other stupid mistake. I will double check my patch.

Regards,
Arend

> Thanks,
>
> /mjt

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel Dec. 16, 2014, 4:51 p.m. UTC | #3
On 12/03/14 13:43, Arend van Spriel wrote:
> On 12/02/14 22:40, Michael Tokarev wrote:
>> 30.11.2014 15:04, Arend van Spriel wrote:
>>
>>> Thanks. Did not find what I was looking for, but I started working on
>>> integrating btcoex related functionality. The attached patch will print
>>> some info so I can focus on the required functionality for your device.
>>> It is based on 3.18-rc5.
>>
>> With this patch applied against 3.18-rc5, the machine instantly reboots
>> once brcmsmac module is loaded. I'm still debugging this.

Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please 
remove that call as it causes endless recursion and eventually reboot.

Regards,
Arend

> Argh. Probably the register access I added end up in limbo land or some
> other stupid mistake. I will double check my patch.
>
> Regards,
> Arend
>
>> Thanks,
>>
>> /mjt
>

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Michael Tokarev Dec. 21, 2014, 9:58 a.m. UTC | #4
16.12.2014 19:51, Arend van Spriel wrote:

> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please remove that call as it causes endless recursion and eventually reboot.

Ok, that was easy.  Now it loads, but wifi link still
does not work, stalling as before.  What we're looking
at now?

(To have a common base, I applied this bt-coex patch to
3.18.0 kernel.  I can also apply the previously mentioned
debugging/stats patch too).

Thanks,

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel Dec. 21, 2014, 10:12 a.m. UTC | #5
On 12/21/14 10:58, Michael Tokarev wrote:
> 16.12.2014 19:51, Arend van Spriel wrote:
>
>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please remove that call as it causes endless recursion and eventually reboot.
>
> Ok, that was easy.  Now it loads, but wifi link still
> does not work, stalling as before.  What we're looking
> at now?

The patch is just to provide me with extra bt-coex related information 
in the kernel log. So if you can provide that to me I have to info 
needed to look in the proprietary code base to determine what is missing.

Regards,
Arend

> (To have a common base, I applied this bt-coex patch to
> 3.18.0 kernel.  I can also apply the previously mentioned
> debugging/stats patch too).
>
> Thanks,
>
> /mjt

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel Dec. 21, 2014, 10:17 a.m. UTC | #6
On 12/21/14 11:00, Michael Tokarev wrote:
> Attaching a picture of the board, too.  One of the two similar
> boards I have (another has lenovo sticker on it).
>
> Also available as http://www.corpit.ru/mjt/BRCM94313HMGB.JPG
>
> (I wonder if broadcom does not have any of these cards anymore... ;)

Probably in US, but we are in an office in the Netherlands and do not 
have every flavor of board available. I will dive into some boxes again 
with this info.

Thanks,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Michael Tokarev Dec. 21, 2014, 10:27 a.m. UTC | #7
[Trimming Cc list a bit]

21.12.2014 13:12, Arend van Spriel wrote:
> On 12/21/14 10:58, Michael Tokarev wrote:
>> 16.12.2014 19:51, Arend van Spriel wrote:
>>
>>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please remove that call as it causes endless recursion and eventually reboot.
>>
>> Ok, that was easy.  Now it loads, but wifi link still
>> does not work, stalling as before.  What we're looking
>> at now?
> 
> The patch is just to provide me with extra bt-coex related information in the kernel log. So if you can provide that to me I have to info needed to look in the proprietary code base to determine what is missing.

I don't really see any additional info, but it might be just me.

Here's the dmesg contents of loading brcmsmac module with debug=1,
adding an IP address to the wlan0 interface and running a simple
download (which stalls after about 4..6Kb transferred):

[73321.062190] cfg80211: Calling CRDA to update world regulatory domain
[73326.973828] bcma: bus0: Found chip with id 0x4313, rev 0x01 and package 0x08
[73326.979264] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x24, class 0x0)
[73326.984760] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x18, class 0x0)
[73326.990242] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x11, class 0x0)
[73326.995741] bcma: bus0: Found rev 8 PMU (capabilities 0x084C3008)
[73326.995754] bcma: bus0: SPROM offset 0x830
[73326.997645] bcma: bus0: Found SPROM revision 8
[73327.008110] bcma: bus0: GPIO driver not activated
[73327.008117] bcma: bus0: Bus registered
[73327.016533] Support for cores revisions 0x17 and 0x18 disabled by module param allhwsupport=0. Try b43.allhwsupport=1
[73327.021981] b43: probe of bcma0:1 failed with error -524
[73327.027507] Broadcom 43xx driver loaded [ Features: PNL ]
[73327.028594] brcmsmac bcma0:1: mfg 4bf core 812 rev 24 class 0 irq 19
[73327.028620] ieee80211 phy4: brcms_c_protection_upd: idx 2, val -1
[73327.028623] ieee80211 phy4: brcms_c_protection_upd: idx 1, val 0
[73327.028626] ieee80211 phy4: brcms_c_protection_upd: idx 12, val -1
[73327.028629] ieee80211 phy4: brcms_c_protection_upd: idx 11, val 0
[73327.028632] ieee80211 phy4: brcms_c_protection_upd: idx 14, val -1
[73327.028635] ieee80211 phy4: brcms_c_protection_upd: idx 13, val 0
[73327.028638] ieee80211 phy4: brcms_c_protection_upd: idx 15, val -1
[73327.028641] ieee80211 phy4: brcms_c_protection_upd: idx 4, val 2
[73327.028647] brcmsmac bcma0:1: brcms_b_attach wl0: vendor 0x14e4 device 0x4727
[73327.028660] brcmsmac bcma0:1: brcms_b_corereset wl0: core reset
[73327.028667] bcma: bus0: Switched to core: 0x812
[73327.029223] brcmsmac bcma0:1: brcms_b_phy_reset wl0: reset phy
[73327.029227] brcmsmac bcma0:1: brcms_b_core_phypll_ctl wl0
[73327.029259] brcmsmac bcma0:1: brcms_b_corereset wl0: core reset
[73327.029364] brcmsmac bcma0:1: brcms_b_phy_reset wl0: reset phy
[73327.029367] brcmsmac bcma0:1: brcms_b_core_phypll_ctl wl0
[73327.029410] brcmsmac bcma0:1: brcms_b_attach wl0: phy 8/1 radio 2064/1
[73327.029460] brcmsmac bcma0:1: hardware: SECI
[73327.029464] brcmsmac bcma0:1: brcms_c_coredisable wl0: disable core
[73327.029490] brcmsmac bcma0:1: brcms_b_core_phypll_ctl wl0
[73327.029529] ieee80211 phy4: brcms_c_protection_upd: idx 15, val 0
[73327.029534] ieee80211 phy4: brcms_c_protection_upd: idx 3, val 1
[73327.029537] ieee80211 phy4: brcms_c_protection_upd: idx 10, val 1
[73327.029549] ieee80211 phy4: brcms_c_protection_upd: idx 3, val 1
[73327.029820] ieee80211 phy4: Selected rate control algorithm 'minstrel_ht'
[73327.121616] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: false (implement)
[73327.121626] brcmsmac bcma0:1: brcms_ops_config: change power-save mode: false (implement)
[73327.122195] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[73328.179594] wlan0: authenticate with 64:70:02:29:d9:30
[73328.183927] wlan0: capabilities/regulatory prevented using AP HT/VHT configuration, downgraded
[73328.187684] wlan0: send auth to 64:70:02:29:d9:30 (try 1/3)
[73328.193289] wlan0: authenticated
[73328.198793] wlan0: associate with 64:70:02:29:d9:30 (try 1/3)
[73328.207394] wlan0: RX AssocResp from 64:70:02:29:d9:30 (capab=0x411 status=0 aid=2)
[73328.211734] brcmsmac bcma0:1: brcmsmac: brcms_ops_bss_info_changed: associated
[73328.215616] brcmsmac bcma0:1: brcms_ops_bss_info_changed: qos enabled: true (implement)
[73328.219433] wlan0: associated
[73328.223264] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[73328.282197] ieee80211 phy4: brcms_c_protection_upd: idx 11, val 0
[73328.285855] ieee80211 phy4: brcms_c_protection_upd: idx 13, val 4
[73328.289431] ieee80211 phy4: brcms_c_protection_upd: idx 16, val 0
[73332.121259] net_ratelimit: 36 callbacks suppressed
[73332.125201] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73333.125295] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73334.129073] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73335.133022] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73336.137011] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73337.141095] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73338.145078] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73339.148965] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73340.152950] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73341.156936] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73342.161074] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73343.165180] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73344.168951] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73345.172948] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73346.176862] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73347.181006] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73348.185025] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73349.188991] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73350.193073] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73351.196894] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73352.200874] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73353.204712] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73354.208701] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73355.212685] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73356.216671] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73357.220657] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73358.224644] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73359.228630] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73360.232616] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73361.236665] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73362.240808] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73363.244823] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73364.248710] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73365.252750] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73366.256533] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73367.260517] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73368.264505] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73369.268541] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73370.272476] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73371.276467] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73372.280717] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73373.284704] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73374.288692] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73375.292669] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73376.296626] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73377.300630] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73378.304613] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73379.308647] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73380.312571] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73381.316529] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73382.320534] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73383.324516] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73384.328514] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73385.332477] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73386.336434] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73387.340438] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73388.344397] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73389.348401] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73390.352382] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73391.356417] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73392.360340] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73393.364394] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73394.368307] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73395.372293] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73396.376270] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73397.380238] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73398.384330] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73399.388338] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73400.392406] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73401.396274] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73402.400268] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73403.404281] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73404.408146] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73405.412177] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73406.416229] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73407.420182] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73408.424230] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73409.428026] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73410.432095] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73411.436110] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73412.439986] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73413.219752] brcmsmac bcma0:1: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
[73413.444021] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73414.448001] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73415.451912] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73416.455863] brcmsmac bcma0:1: brcms_c_watchdog wl0
[73417.460056] brcmsmac bcma0:1: brcms_c_watchdog wl0


I also noticed the following:

o Watchdog calls itself wl0 while interface name is wlan0.
  Might be a good idea to change it.

o what does "capabilities/regulatory prevented using AP HT/VHT configuration, downgraded"
  mean?

Thanks,

/mjt
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel Dec. 21, 2014, 11:38 a.m. UTC | #8
On 12/21/14 11:27, Michael Tokarev wrote:
> [73327.029460] brcmsmac bcma0:1: hardware: SECI

Well,

The piece of info is small, but it is there ;-)

Thanks,
Arend
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Maximilian Engelhardt Dec. 21, 2014, 2:08 p.m. UTC | #9
On Sunday 21 December 2014 11:12:40 Arend van Spriel wrote:
> On 12/21/14 10:58, Michael Tokarev wrote:
> > 16.12.2014 19:51, Arend van Spriel wrote:
> >> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please
> >> remove that call as it causes endless recursion and eventually reboot.> 
> > Ok, that was easy.  Now it loads, but wifi link still
> > does not work, stalling as before.  What we're looking
> > at now?
> 
> The patch is just to provide me with extra bt-coex related information
> in the kernel log. So if you can provide that to me I have to info
> needed to look in the proprietary code base to determine what is missing.
> 
> Regards,
> Arend

Hi Arend,

here is the output from my card:

[ 5167.720041] cfg80211: Calling CRDA to update world regulatory domain
[ 5167.737243] bcma: bus0: Found chip with id 0x4313, rev 0x01 and package 0x08
[ 5167.737271] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x24, class 0x0)
[ 5167.737290] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x18, class 0x0)
[ 5167.737324] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x11, class 0x0)
[ 5167.737407] bcma: bus0: Found rev 8 PMU (capabilities 0x084C3008)
[ 5167.737417] bcma: bus0: SPROM offset 0x830
[ 5167.739392] bcma: bcmasprom:
[ 5167.739396] bcma: 
	
[ 5167.739400] bcma: 2801 
[ 5167.739402] bcma: 0000 
[ 5167.739404] bcma: 0608 
[ 5167.739405] bcma: 14E4 
[ 5167.739408] bcma: 0070 
[ 5167.739409] bcma: EDBE 
[ 5167.739411] bcma: 0000 
[ 5167.739412] bcma: 2BC4 
[ 5167.739414] bcma: 2A64 
[ 5167.739416] bcma: 2964 
[ 5167.739417] bcma: 
	
[ 5167.739419] bcma: 2C64 
[ 5167.739421] bcma: 3CE7 
[ 5167.739422] bcma: 46FF 
[ 5167.739424] bcma: 47FF 
[ 5167.739425] bcma: 0C00 
[ 5167.739427] bcma: 0820 
[ 5167.739429] bcma: 0030 
[ 5167.739430] bcma: 1002 
[ 5167.739432] bcma: 9F28 
[ 5167.739434] bcma: 5D44 
[ 5167.739435] bcma: 
	
[ 5167.739438] bcma: 8080 
[ 5167.739439] bcma: 1D8F 
[ 5167.739441] bcma: 0032 
[ 5167.739442] bcma: 0100 
[ 5167.739444] bcma: DF00 
[ 5167.739445] bcma: 71F5 
[ 5167.739447] bcma: 8400 
[ 5167.739448] bcma: 0083 
[ 5167.739450] bcma: 8500 
[ 5167.739452] bcma: 2010 
[ 5167.739453] bcma: 
	
[ 5167.739455] bcma: 0001 
[ 5167.739457] bcma: 0000 
[ 5167.739458] bcma: 0000 
[ 5167.739460] bcma: 0000 
[ 5167.739461] bcma: 0000 
[ 5167.739463] bcma: 0000 
[ 5167.739464] bcma: 0000 
[ 5167.739466] bcma: 0000 
[ 5167.739467] bcma: 0000 
[ 5167.739469] bcma: 0000 
[ 5167.739470] bcma: 
	
[ 5167.739473] bcma: 0000 
[ 5167.739474] bcma: 0000 
[ 5167.739476] bcma: 1008 
[ 5167.739477] bcma: 0305 
[ 5167.739479] bcma: 0000 
[ 5167.739480] bcma: 0000 
[ 5167.739482] bcma: 0000 
[ 5167.739484] bcma: 0000 
[ 5167.739485] bcma: 4727 
[ 5167.739487] bcma: 8000 
[ 5167.739488] bcma: 
	
[ 5167.739490] bcma: 0002 
[ 5167.739492] bcma: 0000 
[ 5167.739493] bcma: 1F30 
[ 5167.739495] bcma: 1800 
[ 5167.739496] bcma: 0000 
[ 5167.739498] bcma: 0000 
[ 5167.739499] bcma: 0000 
[ 5167.739501] bcma: 0000 
[ 5167.739502] bcma: 0000 
[ 5167.739504] bcma: 0000 
[ 5167.739505] bcma: 
	
[ 5167.739508] bcma: 0000 
[ 5167.739509] bcma: 0000 
[ 5167.739511] bcma: 0000 
[ 5167.739512] bcma: 0000 
[ 5167.739514] bcma: 5372 
[ 5167.739515] bcma: 1109 
[ 5167.739517] bcma: 2201 
[ 5167.739519] bcma: 0040 
[ 5167.739520] bcma: 0884 
[ 5167.739522] bcma: 0000 
[ 5167.739523] bcma: 
	
[ 5167.739525] bcma: C014 
[ 5167.739526] bcma: 3DC1 
[ 5167.739528] bcma: 809D 
[ 5167.739530] bcma: 5856 
[ 5167.739531] bcma: 0001 
[ 5167.739533] bcma: FFFF 
[ 5167.739534] bcma: 83FF 
[ 5167.739536] bcma: FFFF 
[ 5167.739537] bcma: 0003 
[ 5167.739539] bcma: 0202 
[ 5167.739540] bcma: 
	
[ 5167.739543] bcma: FFFF 
[ 5167.739544] bcma: 0011 
[ 5167.739546] bcma: 017A 
[ 5167.739547] bcma: 0000 
[ 5167.739549] bcma: 0000 
[ 5167.739550] bcma: 0000 
[ 5167.739552] bcma: 0000 
[ 5167.739553] bcma: 0201 
[ 5167.739555] bcma: 0000 
[ 5167.739556] bcma: 7800 
[ 5167.739558] bcma: 
	
[ 5167.739559] bcma: 01FF 
[ 5167.739561] bcma: E398 
[ 5167.739563] bcma: 0008 
[ 5167.739564] bcma: 0000 
[ 5167.739566] bcma: 0000 
[ 5167.739568] bcma: 0000 
[ 5167.739569] bcma: 0044 
[ 5167.739571] bcma: 2400 
[ 5167.739572] bcma: FCF7 
[ 5167.739574] bcma: 0089 
[ 5167.739575] bcma: 
	
[ 5167.739578] bcma: 0000 
[ 5167.739579] bcma: 0000 
[ 5167.739581] bcma: 0000 
[ 5167.739582] bcma: 0000 
[ 5167.739584] bcma: 0000 
[ 5167.739585] bcma: 0000 
[ 5167.739587] bcma: 0000 
[ 5167.739588] bcma: 0000 
[ 5167.739590] bcma: 0000 
[ 5167.739591] bcma: 0000 
[ 5167.739593] bcma: 
	
[ 5167.739594] bcma: 0000 
[ 5167.739596] bcma: 0000 
[ 5167.739597] bcma: 0048 
[ 5167.739599] bcma: FED2 
[ 5167.739600] bcma: 15D9 
[ 5167.739602] bcma: FAC6 
[ 5167.739604] bcma: 0000 
[ 5167.739605] bcma: 0000 
[ 5167.739607] bcma: 0000 
[ 5167.739608] bcma: 0000 
[ 5167.739610] bcma: 
	
[ 5167.739612] bcma: 0000 
[ 5167.739614] bcma: 0000 
[ 5167.739615] bcma: 0000 
[ 5167.739617] bcma: 0000 
[ 5167.739618] bcma: 0000 
[ 5167.739620] bcma: 0000 
[ 5167.739622] bcma: 0000 
[ 5167.739623] bcma: 0000 
[ 5167.739625] bcma: 0000 
[ 5167.739626] bcma: 0000 
[ 5167.739627] bcma: 
	
[ 5167.739629] bcma: 0000 
[ 5167.739631] bcma: 0000 
[ 5167.739632] bcma: 0000 
[ 5167.739634] bcma: 0000 
[ 5167.739635] bcma: 0000 
[ 5167.739637] bcma: 0000 
[ 5167.739638] bcma: 0000 
[ 5167.739640] bcma: 0000 
[ 5167.739641] bcma: 0000 
[ 5167.739643] bcma: 0000 
[ 5167.739644] bcma: 
	
[ 5167.739647] bcma: 0000 
[ 5167.739648] bcma: 0000 
[ 5167.739650] bcma: 0000 
[ 5167.739651] bcma: 0000 
[ 5167.739653] bcma: 0000 
[ 5167.739654] bcma: 0000 
[ 5167.739656] bcma: 0000 
[ 5167.739657] bcma: 0000 
[ 5167.739659] bcma: 0000 
[ 5167.739660] bcma: 0000 
[ 5167.739662] bcma: 
	
[ 5167.739663] bcma: 0000 
[ 5167.739665] bcma: 0000 
[ 5167.739666] bcma: 0000 
[ 5167.739668] bcma: 0000 
[ 5167.739669] bcma: 0000 
[ 5167.739671] bcma: 0000 
[ 5167.739672] bcma: 0000 
[ 5167.739674] bcma: 0000 
[ 5167.739676] bcma: 0000 
[ 5167.739677] bcma: 0000 
[ 5167.739679] bcma: 
	
[ 5167.739681] bcma: 0000 
[ 5167.739682] bcma: 1111 
[ 5167.739684] bcma: 1111 
[ 5167.739686] bcma: 0000 
[ 5167.739687] bcma: 0000 
[ 5167.739689] bcma: 0000 
[ 5167.739690] bcma: 0000 
[ 5167.739692] bcma: 0000 
[ 5167.739693] bcma: 0000 
[ 5167.739695] bcma: 2222 
[ 5167.739696] bcma: 
	
[ 5167.739698] bcma: 3222 
[ 5167.739700] bcma: 0000 
[ 5167.739701] bcma: 0000 
[ 5167.739703] bcma: 0000 
[ 5167.739704] bcma: 0000 
[ 5167.739706] bcma: 0000 
[ 5167.739707] bcma: 0000 
[ 5167.739709] bcma: 0000 
[ 5167.739710] bcma: 0000 
[ 5167.739712] bcma: 0000 
[ 5167.739713] bcma: 
	
[ 5167.739716] bcma: 0000 
[ 5167.739717] bcma: 0000 
[ 5167.739719] bcma: 0000 
[ 5167.739720] bcma: 0000 
[ 5167.739722] bcma: 0000 
[ 5167.739723] bcma: 0000 
[ 5167.739725] bcma: 0000 
[ 5167.739726] bcma: 0000 
[ 5167.739728] bcma: 0000 
[ 5167.739729] bcma: 0000 
[ 5167.739731] bcma: 
	
[ 5167.739732] bcma: 0000 
[ 5167.739734] bcma: 0000 
[ 5167.739735] bcma: 0000 
[ 5167.739737] bcma: 0000 
[ 5167.739738] bcma: 0000 
[ 5167.739740] bcma: 0000 
[ 5167.739741] bcma: 0000 
[ 5167.739743] bcma: 0000 
[ 5167.739744] bcma: 0000 
[ 5167.739746] bcma: 0000 
[ 5167.739748] bcma: 
	
[ 5167.739750] bcma: 0000 
[ 5167.739751] bcma: 0000 
[ 5167.739753] bcma: 0000 
[ 5167.739755] bcma: 0000 
[ 5167.739756] bcma: 0000 
[ 5167.739758] bcma: 0000 
[ 5167.739759] bcma: 0000 
[ 5167.739761] bcma: 0000 
[ 5167.739762] bcma: 0000 
[ 5167.739764] bcma: 0000 
[ 5167.739765] bcma: 
	
[ 5167.739767] bcma: 0000 
[ 5167.739768] bcma: 0000 
[ 5167.739770] bcma: 0000 
[ 5167.739772] bcma: 0000 
[ 5167.739773] bcma: 0000 
[ 5167.739775] bcma: 0000 
[ 5167.739776] bcma: 0000 
[ 5167.739778] bcma: 0000 
[ 5167.739779] bcma: 0000 
[ 5167.739782] bcma: bus0: Found SPROM revision 8
[ 5167.752730] bcma: bus0: GPIO driver not activated
[ 5167.752738] bcma: bus0: Bus registered
[ 5167.765209] brcmsmac bcma0:0: mfg 4bf core 812 rev 24 class 0 irq 17
[ 5167.765319] bcma: bus0: Switched to core: 0x812
[ 5167.766135] brcmsmac bcma0:0: hardware: SECI
[ 5167.766559] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 5167.786115] cfg80211: World regulatory domain updated:
[ 5167.786128] cfg80211:  DFS Master region: unset
[ 5167.786131] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 5167.786137] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.786141] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.786144] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.786148] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.786152] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 5167.786155] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[ 5167.786159] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.786162] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[ 5167.794806] cfg80211: Calling CRDA for country: DE
[ 5167.810110] cfg80211: Regulatory domain changed to country: DE
[ 5167.810122] cfg80211:  DFS Master region: ETSI
[ 5167.810125] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[ 5167.810131] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.810134] cfg80211:   (5150000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[ 5167.810139] cfg80211:   (5250000 KHz - 5350000 KHz @ 80000 KHz), (N/A, 2000 mBm), (0 s)
[ 5167.810142] cfg80211:   (5470000 KHz - 5725000 KHz @ 80000 KHz), (N/A, 2698 mBm), (0 s)
[ 5167.810146] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)


Greetings,
Maxi
Arend van Spriel Dec. 21, 2014, 2:13 p.m. UTC | #10
On 12/21/14 15:08, Maximilian Engelhardt wrote:
> On Sunday 21 December 2014 11:12:40 Arend van Spriel wrote:
>> On 12/21/14 10:58, Michael Tokarev wrote:
>>> 16.12.2014 19:51, Arend van Spriel wrote:
>>>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please
>>>> remove that call as it causes endless recursion and eventually reboot.>
>>> Ok, that was easy.  Now it loads, but wifi link still
>>> does not work, stalling as before.  What we're looking
>>> at now?
>>
>> The patch is just to provide me with extra bt-coex related information
>> in the kernel log. So if you can provide that to me I have to info
>> needed to look in the proprietary code base to determine what is missing.
>>
>> Regards,
>> Arend
>
> Hi Arend,
>
> here is the output from my card:

Thanks. It shows you have have the same bt-coex version as Michael. I am 
not familiar with bluetooth side of things. Are you both using bluetooth 
on 4313?

Regards,
Arend

> [ 5167.720041] cfg80211: Calling CRDA to update world regulatory domain
> [ 5167.737243] bcma: bus0: Found chip with id 0x4313, rev 0x01 and package 0x08
> [ 5167.737271] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x24, class 0x0)
> [ 5167.737290] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x18, class 0x0)
> [ 5167.737324] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x11, class 0x0)
> [ 5167.737407] bcma: bus0: Found rev 8 PMU (capabilities 0x084C3008)
> [ 5167.737417] bcma: bus0: SPROM offset 0x830
> [ 5167.739392] bcma: bcmasprom:
> [ 5167.739396] bcma:
> 	
> [ 5167.739400] bcma: 2801
> [ 5167.739402] bcma: 0000
> [ 5167.739404] bcma: 0608
> [ 5167.739405] bcma: 14E4
> [ 5167.739408] bcma: 0070
> [ 5167.739409] bcma: EDBE
> [ 5167.739411] bcma: 0000
> [ 5167.739412] bcma: 2BC4
> [ 5167.739414] bcma: 2A64
> [ 5167.739416] bcma: 2964
> [ 5167.739417] bcma:
> 	
> [ 5167.739419] bcma: 2C64
> [ 5167.739421] bcma: 3CE7
> [ 5167.739422] bcma: 46FF
> [ 5167.739424] bcma: 47FF
> [ 5167.739425] bcma: 0C00
> [ 5167.739427] bcma: 0820
> [ 5167.739429] bcma: 0030
> [ 5167.739430] bcma: 1002
> [ 5167.739432] bcma: 9F28
> [ 5167.739434] bcma: 5D44
> [ 5167.739435] bcma:
> 	
> [ 5167.739438] bcma: 8080
> [ 5167.739439] bcma: 1D8F
> [ 5167.739441] bcma: 0032
> [ 5167.739442] bcma: 0100
> [ 5167.739444] bcma: DF00
> [ 5167.739445] bcma: 71F5
> [ 5167.739447] bcma: 8400
> [ 5167.739448] bcma: 0083
> [ 5167.739450] bcma: 8500
> [ 5167.739452] bcma: 2010
> [ 5167.739453] bcma:
> 	
> [ 5167.739455] bcma: 0001
> [ 5167.739457] bcma: 0000
> [ 5167.739458] bcma: 0000
> [ 5167.739460] bcma: 0000
> [ 5167.739461] bcma: 0000
> [ 5167.739463] bcma: 0000
> [ 5167.739464] bcma: 0000
> [ 5167.739466] bcma: 0000
> [ 5167.739467] bcma: 0000
> [ 5167.739469] bcma: 0000
> [ 5167.739470] bcma:
> 	
> [ 5167.739473] bcma: 0000
> [ 5167.739474] bcma: 0000
> [ 5167.739476] bcma: 1008
> [ 5167.739477] bcma: 0305
> [ 5167.739479] bcma: 0000
> [ 5167.739480] bcma: 0000
> [ 5167.739482] bcma: 0000
> [ 5167.739484] bcma: 0000
> [ 5167.739485] bcma: 4727
> [ 5167.739487] bcma: 8000
> [ 5167.739488] bcma:
> 	
> [ 5167.739490] bcma: 0002
> [ 5167.739492] bcma: 0000
> [ 5167.739493] bcma: 1F30
> [ 5167.739495] bcma: 1800
> [ 5167.739496] bcma: 0000
> [ 5167.739498] bcma: 0000
> [ 5167.739499] bcma: 0000
> [ 5167.739501] bcma: 0000
> [ 5167.739502] bcma: 0000
> [ 5167.739504] bcma: 0000
> [ 5167.739505] bcma:
> 	
> [ 5167.739508] bcma: 0000
> [ 5167.739509] bcma: 0000
> [ 5167.739511] bcma: 0000
> [ 5167.739512] bcma: 0000
> [ 5167.739514] bcma: 5372
> [ 5167.739515] bcma: 1109
> [ 5167.739517] bcma: 2201
> [ 5167.739519] bcma: 0040
> [ 5167.739520] bcma: 0884
> [ 5167.739522] bcma: 0000
> [ 5167.739523] bcma:
> 	
> [ 5167.739525] bcma: C014
> [ 5167.739526] bcma: 3DC1
> [ 5167.739528] bcma: 809D
> [ 5167.739530] bcma: 5856
> [ 5167.739531] bcma: 0001
> [ 5167.739533] bcma: FFFF
> [ 5167.739534] bcma: 83FF
> [ 5167.739536] bcma: FFFF
> [ 5167.739537] bcma: 0003
> [ 5167.739539] bcma: 0202
> [ 5167.739540] bcma:
> 	
> [ 5167.739543] bcma: FFFF
> [ 5167.739544] bcma: 0011
> [ 5167.739546] bcma: 017A
> [ 5167.739547] bcma: 0000
> [ 5167.739549] bcma: 0000
> [ 5167.739550] bcma: 0000
> [ 5167.739552] bcma: 0000
> [ 5167.739553] bcma: 0201
> [ 5167.739555] bcma: 0000
> [ 5167.739556] bcma: 7800
> [ 5167.739558] bcma:
> 	
> [ 5167.739559] bcma: 01FF
> [ 5167.739561] bcma: E398
> [ 5167.739563] bcma: 0008
> [ 5167.739564] bcma: 0000
> [ 5167.739566] bcma: 0000
> [ 5167.739568] bcma: 0000
> [ 5167.739569] bcma: 0044
> [ 5167.739571] bcma: 2400
> [ 5167.739572] bcma: FCF7
> [ 5167.739574] bcma: 0089
> [ 5167.739575] bcma:
> 	
> [ 5167.739578] bcma: 0000
> [ 5167.739579] bcma: 0000
> [ 5167.739581] bcma: 0000
> [ 5167.739582] bcma: 0000
> [ 5167.739584] bcma: 0000
> [ 5167.739585] bcma: 0000
> [ 5167.739587] bcma: 0000
> [ 5167.739588] bcma: 0000
> [ 5167.739590] bcma: 0000
> [ 5167.739591] bcma: 0000
> [ 5167.739593] bcma:
> 	
> [ 5167.739594] bcma: 0000
> [ 5167.739596] bcma: 0000
> [ 5167.739597] bcma: 0048
> [ 5167.739599] bcma: FED2
> [ 5167.739600] bcma: 15D9
> [ 5167.739602] bcma: FAC6
> [ 5167.739604] bcma: 0000
> [ 5167.739605] bcma: 0000
> [ 5167.739607] bcma: 0000
> [ 5167.739608] bcma: 0000
> [ 5167.739610] bcma:
> 	
> [ 5167.739612] bcma: 0000
> [ 5167.739614] bcma: 0000
> [ 5167.739615] bcma: 0000
> [ 5167.739617] bcma: 0000
> [ 5167.739618] bcma: 0000
> [ 5167.739620] bcma: 0000
> [ 5167.739622] bcma: 0000
> [ 5167.739623] bcma: 0000
> [ 5167.739625] bcma: 0000
> [ 5167.739626] bcma: 0000
> [ 5167.739627] bcma:
> 	
> [ 5167.739629] bcma: 0000
> [ 5167.739631] bcma: 0000
> [ 5167.739632] bcma: 0000
> [ 5167.739634] bcma: 0000
> [ 5167.739635] bcma: 0000
> [ 5167.739637] bcma: 0000
> [ 5167.739638] bcma: 0000
> [ 5167.739640] bcma: 0000
> [ 5167.739641] bcma: 0000
> [ 5167.739643] bcma: 0000
> [ 5167.739644] bcma:
> 	
> [ 5167.739647] bcma: 0000
> [ 5167.739648] bcma: 0000
> [ 5167.739650] bcma: 0000
> [ 5167.739651] bcma: 0000
> [ 5167.739653] bcma: 0000
> [ 5167.739654] bcma: 0000
> [ 5167.739656] bcma: 0000
> [ 5167.739657] bcma: 0000
> [ 5167.739659] bcma: 0000
> [ 5167.739660] bcma: 0000
> [ 5167.739662] bcma:
> 	
> [ 5167.739663] bcma: 0000
> [ 5167.739665] bcma: 0000
> [ 5167.739666] bcma: 0000
> [ 5167.739668] bcma: 0000
> [ 5167.739669] bcma: 0000
> [ 5167.739671] bcma: 0000
> [ 5167.739672] bcma: 0000
> [ 5167.739674] bcma: 0000
> [ 5167.739676] bcma: 0000
> [ 5167.739677] bcma: 0000
> [ 5167.739679] bcma:
> 	
> [ 5167.739681] bcma: 0000
> [ 5167.739682] bcma: 1111
> [ 5167.739684] bcma: 1111
> [ 5167.739686] bcma: 0000
> [ 5167.739687] bcma: 0000
> [ 5167.739689] bcma: 0000
> [ 5167.739690] bcma: 0000
> [ 5167.739692] bcma: 0000
> [ 5167.739693] bcma: 0000
> [ 5167.739695] bcma: 2222
> [ 5167.739696] bcma:
> 	
> [ 5167.739698] bcma: 3222
> [ 5167.739700] bcma: 0000
> [ 5167.739701] bcma: 0000
> [ 5167.739703] bcma: 0000
> [ 5167.739704] bcma: 0000
> [ 5167.739706] bcma: 0000
> [ 5167.739707] bcma: 0000
> [ 5167.739709] bcma: 0000
> [ 5167.739710] bcma: 0000
> [ 5167.739712] bcma: 0000
> [ 5167.739713] bcma:
> 	
> [ 5167.739716] bcma: 0000
> [ 5167.739717] bcma: 0000
> [ 5167.739719] bcma: 0000
> [ 5167.739720] bcma: 0000
> [ 5167.739722] bcma: 0000
> [ 5167.739723] bcma: 0000
> [ 5167.739725] bcma: 0000
> [ 5167.739726] bcma: 0000
> [ 5167.739728] bcma: 0000
> [ 5167.739729] bcma: 0000
> [ 5167.739731] bcma:
> 	
> [ 5167.739732] bcma: 0000
> [ 5167.739734] bcma: 0000
> [ 5167.739735] bcma: 0000
> [ 5167.739737] bcma: 0000
> [ 5167.739738] bcma: 0000
> [ 5167.739740] bcma: 0000
> [ 5167.739741] bcma: 0000
> [ 5167.739743] bcma: 0000
> [ 5167.739744] bcma: 0000
> [ 5167.739746] bcma: 0000
> [ 5167.739748] bcma:
> 	
> [ 5167.739750] bcma: 0000
> [ 5167.739751] bcma: 0000
> [ 5167.739753] bcma: 0000
> [ 5167.739755] bcma: 0000
> [ 5167.739756] bcma: 0000
> [ 5167.739758] bcma: 0000
> [ 5167.739759] bcma: 0000
> [ 5167.739761] bcma: 0000
> [ 5167.739762] bcma: 0000
> [ 5167.739764] bcma: 0000
> [ 5167.739765] bcma:
> 	
> [ 5167.739767] bcma: 0000
> [ 5167.739768] bcma: 0000
> [ 5167.739770] bcma: 0000
> [ 5167.739772] bcma: 0000
> [ 5167.739773] bcma: 0000
> [ 5167.739775] bcma: 0000
> [ 5167.739776] bcma: 0000
> [ 5167.739778] bcma: 0000
> [ 5167.739779] bcma: 0000
> [ 5167.739782] bcma: bus0: Found SPROM revision 8
> [ 5167.752730] bcma: bus0: GPIO driver not activated
> [ 5167.752738] bcma: bus0: Bus registered
> [ 5167.765209] brcmsmac bcma0:0: mfg 4bf core 812 rev 24 class 0 irq 17
> [ 5167.765319] bcma: bus0: Switched to core: 0x812
> [ 5167.766135] brcmsmac bcma0:0: hardware: SECI
> [ 5167.766559] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
> [ 5167.786115] cfg80211: World regulatory domain updated:
> [ 5167.786128] cfg80211:  DFS Master region: unset
> [ 5167.786131] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
> [ 5167.786137] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.786141] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.786144] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.786148] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.786152] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
> [ 5167.786155] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
> [ 5167.786159] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.786162] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
> [ 5167.794806] cfg80211: Calling CRDA for country: DE
> [ 5167.810110] cfg80211: Regulatory domain changed to country: DE
> [ 5167.810122] cfg80211:  DFS Master region: ETSI
> [ 5167.810125] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
> [ 5167.810131] cfg80211:   (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.810134] cfg80211:   (5150000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
> [ 5167.810139] cfg80211:   (5250000 KHz - 5350000 KHz @ 80000 KHz), (N/A, 2000 mBm), (0 s)
> [ 5167.810142] cfg80211:   (5470000 KHz - 5725000 KHz @ 80000 KHz), (N/A, 2698 mBm), (0 s)
> [ 5167.810146] cfg80211:   (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
>
>
> Greetings,
> Maxi

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Maximilian Engelhardt Dec. 21, 2014, 2:24 p.m. UTC | #11
On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
> On 12/21/14 15:08, Maximilian Engelhardt wrote:
> > On Sunday 21 December 2014 11:12:40 Arend van Spriel wrote:
> >> On 12/21/14 10:58, Michael Tokarev wrote:
> >>> 16.12.2014 19:51, Arend van Spriel wrote:
> >>>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please
> >>>> remove that call as it causes endless recursion and eventually reboot.>
> >>> 
> >>> Ok, that was easy.  Now it loads, but wifi link still
> >>> does not work, stalling as before.  What we're looking
> >>> at now?
> >> 
> >> The patch is just to provide me with extra bt-coex related information
> >> in the kernel log. So if you can provide that to me I have to info
> >> needed to look in the proprietary code base to determine what is missing.
> >> 
> >> Regards,
> >> Arend
> > 
> > Hi Arend,
> 
> > here is the output from my card:
> Thanks. It shows you have have the same bt-coex version as Michael. I am
> not familiar with bluetooth side of things. Are you both using bluetooth
> on 4313?
> 
> Regards,
> Arend

I don't know. I think I have Bluetooth somehow enabled but I'm not really 
using it. I definitely don't have any Bluetooth devices connected. I could try 
to unload/disable Bluetooth it to see if it makes any difference.

Greetings,
Maxi
Arend van Spriel Dec. 21, 2014, 3:03 p.m. UTC | #12
On 12/21/14 15:24, Maximilian Engelhardt wrote:
> On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
>> On 12/21/14 15:08, Maximilian Engelhardt wrote:
>>> On Sunday 21 December 2014 11:12:40 Arend van Spriel wrote:
>>>> On 12/21/14 10:58, Michael Tokarev wrote:
>>>>> 16.12.2014 19:51, Arend van Spriel wrote:
>>>>>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please
>>>>>> remove that call as it causes endless recursion and eventually reboot.>
>>>>>
>>>>> Ok, that was easy.  Now it loads, but wifi link still
>>>>> does not work, stalling as before.  What we're looking
>>>>> at now?
>>>>
>>>> The patch is just to provide me with extra bt-coex related information
>>>> in the kernel log. So if you can provide that to me I have to info
>>>> needed to look in the proprietary code base to determine what is missing.
>>>>
>>>> Regards,
>>>> Arend
>>>
>>> Hi Arend,
>>
>>> here is the output from my card:
>> Thanks. It shows you have have the same bt-coex version as Michael. I am
>> not familiar with bluetooth side of things. Are you both using bluetooth
>> on 4313?
>>
>> Regards,
>> Arend
>
> I don't know. I think I have Bluetooth somehow enabled but I'm not really
> using it. I definitely don't have any Bluetooth devices connected. I could try
> to unload/disable Bluetooth it to see if it makes any difference.

That would be useful to know.

Thanks,
Arend

> Greetings,
> Maxi
>

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Maximilian Engelhardt Dec. 21, 2014, 5:34 p.m. UTC | #13
On Sunday 21 December 2014 16:03:17 Arend van Spriel wrote:
> On 12/21/14 15:24, Maximilian Engelhardt wrote:
> > On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
> >> On 12/21/14 15:08, Maximilian Engelhardt wrote:
> >>> On Sunday 21 December 2014 11:12:40 Arend van Spriel wrote:
> >>>> On 12/21/14 10:58, Michael Tokarev wrote:
> >>>>> 16.12.2014 19:51, Arend van Spriel wrote:
> >>>>>> Hmm. The function brcms_btc_ecicoex_enab() is calling itself. Please
> >>>>>> remove that call as it causes endless recursion and eventually
> >>>>>> reboot.>
> >>>>> 
> >>>>> Ok, that was easy.  Now it loads, but wifi link still
> >>>>> does not work, stalling as before.  What we're looking
> >>>>> at now?
> >>>> 
> >>>> The patch is just to provide me with extra bt-coex related information
> >>>> in the kernel log. So if you can provide that to me I have to info
> >>>> needed to look in the proprietary code base to determine what is
> >>>> missing.
> >>>> 
> >>>> Regards,
> >>>> Arend
> >>> 
> >>> Hi Arend,
> >> 
> >>> here is the output from my card:
> >> Thanks. It shows you have have the same bt-coex version as Michael. I am
> >> not familiar with bluetooth side of things. Are you both using bluetooth
> >> on 4313?
> >> 
> >> Regards,
> >> Arend
> > 
> > I don't know. I think I have Bluetooth somehow enabled but I'm not really
> > using it. I definitely don't have any Bluetooth devices connected. I could
> > try to unload/disable Bluetooth it to see if it makes any difference.
> 
> That would be useful to know.
> 

I did a test with all Bluetooth modules unloaded that I could find but 
throughput was still very low (about 4 Mbit/s with brcmsmac, my atheros USB 
stick archived about 110 Mbit/s).

Greetings,
Maxi
Daniel Glöckner March 9, 2015, 8:54 p.m. UTC | #14
Hi Arend,

On Sun, Dec 21, 2014 at 06:34:24PM +0100, Maximilian Engelhardt wrote:
> On Sunday 21 December 2014 16:03:17 Arend van Spriel wrote:
> > On 12/21/14 15:24, Maximilian Engelhardt wrote:
> > > On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
> > >> Thanks. It shows you have have the same bt-coex version as Michael. I am
> > >> not familiar with bluetooth side of things. Are you both using bluetooth
> > >> on 4313?
> > >> 
> > >> Regards,
> > >> Arend
> > > 
> > > I don't know. I think I have Bluetooth somehow enabled but I'm not really
> > > using it. I definitely don't have any Bluetooth devices connected. I could
> > > try to unload/disable Bluetooth it to see if it makes any difference.
> > 
> > That would be useful to know.
> > 
> 
> I did a test with all Bluetooth modules unloaded that I could find but 
> throughput was still very low (about 4 Mbit/s with brcmsmac, my atheros USB 
> stick archived about 110 Mbit/s).

any update on this issue?
One of my relatives would like to get rid of that Ralink wifi stick she
has been carrying around for 1.5 years now since the internal wifi in her
Thinkpad E130 suffers from this problem.

Best regards,

  Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Arend van Spriel March 10, 2015, 9:27 p.m. UTC | #15
On 03/09/15 21:54, Daniel Glöckner wrote:
> Hi Arend,
>
> On Sun, Dec 21, 2014 at 06:34:24PM +0100, Maximilian Engelhardt wrote:
>> On Sunday 21 December 2014 16:03:17 Arend van Spriel wrote:
>>> On 12/21/14 15:24, Maximilian Engelhardt wrote:
>>>> On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
>>>>> Thanks. It shows you have have the same bt-coex version as Michael. I am
>>>>> not familiar with bluetooth side of things. Are you both using bluetooth
>>>>> on 4313?
>>>>>
>>>>> Regards,
>>>>> Arend
>>>>
>>>> I don't know. I think I have Bluetooth somehow enabled but I'm not really
>>>> using it. I definitely don't have any Bluetooth devices connected. I could
>>>> try to unload/disable Bluetooth it to see if it makes any difference.
>>>
>>> That would be useful to know.
>>>
>>
>> I did a test with all Bluetooth modules unloaded that I could find but
>> throughput was still very low (about 4 Mbit/s with brcmsmac, my atheros USB
>> stick archived about 110 Mbit/s).
>
> any update on this issue?
> One of my relatives would like to get rid of that Ralink wifi stick she
> has been carrying around for 1.5 years now since the internal wifi in her
> Thinkpad E130 suffers from this problem.

I did get my hands on same device as Michael has/had and it now sits in 
my developement laptop. Just need to find some time to give it a spin.

Regards,
Arend

> Best regards,
>
>    Daniel

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Daniel Glöckner March 14, 2016, 4:41 p.m. UTC | #16
Happy new year!

On Tue, Mar 10, 2015 at 10:27:18PM +0100, Arend van Spriel wrote:
> On 03/09/15 21:54, Daniel Glöckner wrote:
> >On Sun, Dec 21, 2014 at 06:34:24PM +0100, Maximilian Engelhardt wrote:
> >>On Sunday 21 December 2014 16:03:17 Arend van Spriel wrote:
> >>>On 12/21/14 15:24, Maximilian Engelhardt wrote:
> >>>>On Sunday 21 December 2014 15:13:50 Arend van Spriel wrote:
> >>>>>Thanks. It shows you have have the same bt-coex version as Michael. I am
> >>>>>not familiar with bluetooth side of things. Are you both using bluetooth
> >>>>>on 4313?
> >>>>>
> >>>>>Regards,
> >>>>>Arend
> >>>>
> >>>>I don't know. I think I have Bluetooth somehow enabled but I'm not really
> >>>>using it. I definitely don't have any Bluetooth devices connected. I could
> >>>>try to unload/disable Bluetooth it to see if it makes any difference.
> >>>
> >>>That would be useful to know.
> >>>
> >>
> >>I did a test with all Bluetooth modules unloaded that I could find but
> >>throughput was still very low (about 4 Mbit/s with brcmsmac, my atheros USB
> >>stick archived about 110 Mbit/s).
> >
> >any update on this issue?
> >One of my relatives would like to get rid of that Ralink wifi stick she
> >has been carrying around for 1.5 years now since the internal wifi in her
> >Thinkpad E130 suffers from this problem.
> 
> I did get my hands on same device as Michael has/had and it now sits
> in my developement laptop. Just need to find some time to give it a
> spin.

Is there any hope for this device?
The Thinkpad is still in use.

Best regards,

  Daniel
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

From 1389fc3ce6787af145d0851ba5a4931bd8d72b23 Mon Sep 17 00:00:00 2001
From: Arend van Spriel <arend@broadcom.com>
Date: Sat, 29 Nov 2014 16:31:44 +0100
Subject: [PATCH] brcmsmac: obtain more btcoex related details

Added initial btcoex module for supporting bcm4313 combo chips. For
now it just detects the btcoex support and flavours.

Signed-off-by: Arend van Spriel <arend@broadcom.com>
---
 drivers/net/wireless/brcm80211/brcmsmac/Makefile   |   1 +
 drivers/net/wireless/brcm80211/brcmsmac/btcoex.c   | 114 +++++++++++++++++++++
 drivers/net/wireless/brcm80211/brcmsmac/btcoex.h   |  25 +++++
 drivers/net/wireless/brcm80211/brcmsmac/d11.h      |   2 +-
 drivers/net/wireless/brcm80211/brcmsmac/main.c     |   5 +
 drivers/net/wireless/brcm80211/brcmsmac/main.h     |   1 +
 drivers/net/wireless/brcm80211/brcmsmac/types.h    |   3 +-
 .../net/wireless/brcm80211/include/chipcommon.h    |   2 +
 8 files changed, 151 insertions(+), 2 deletions(-)
 create mode 100644 drivers/net/wireless/brcm80211/brcmsmac/btcoex.c
 create mode 100644 drivers/net/wireless/brcm80211/brcmsmac/btcoex.h

diff --git a/drivers/net/wireless/brcm80211/brcmsmac/Makefile b/drivers/net/wireless/brcm80211/brcmsmac/Makefile
index 32464ac..aa341bb 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/Makefile
+++ b/drivers/net/wireless/brcm80211/brcmsmac/Makefile
@@ -26,6 +26,7 @@  brcmsmac-y := \
 	ucode_loader.o \
 	ampdu.o \
 	antsel.o \
+	btcoex.o \
 	channel.o \
 	main.o \
 	phy_shim.o \
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/btcoex.c b/drivers/net/wireless/brcm80211/brcmsmac/btcoex.c
new file mode 100644
index 0000000..01cd10d
--- /dev/null
+++ b/drivers/net/wireless/brcm80211/brcmsmac/btcoex.c
@@ -0,0 +1,114 @@ 
+/*
+ * Copyright (c) 2014 Broadcom Corporation
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#include <linux/types.h>
+#include <net/mac80211.h>
+
+#include <chipcommon.h>
+#include "types.h"
+#include "debug.h"
+#include "btcoex.h"
+#include "main.h"
+
+struct brcms_btcoex {
+	struct brcms_hardware *hw;
+};
+
+static bool brcms_btc_ecicoex_enab(struct brcms_hardware *wlc_hw)
+{
+	struct bcma_bus *bus;
+	bool enab;
+
+	enab = brcms_btc_ecicoex_enab(wlc_hw);
+	if (!enab)
+		return false;
+
+	bus = wlc_hw->d11core->bus;
+	enab = D11REV_GE(wlc_hw->corerev, 15) &&
+	       (bus->drv_cc.capabilities & CC_CAP_ECI) &&
+	       (wlc_hw->machwcap & MCAP_BTCX) &&
+	       (wlc_hw->boardflags & BFL_BTCOEX) &&
+	       (wlc_hw->boardflags2 & BFL2_LEGACY) &&
+	       !(bus->drv_cc.capabilities_ext & CC_CAP2_SECI);
+
+	return enab;
+}
+
+static bool brcms_btc_secicoex_enab(struct brcms_hardware *wlc_hw)
+{
+	struct bcma_bus *bus;
+	bool enab;
+
+	bus = wlc_hw->d11core->bus;
+	enab = (wlc_hw->boardflags & BFL_BTCOEX) &&
+	       (wlc_hw->boardflags2 & BFL2_LEGACY) &&
+	       (bus->drv_cc.capabilities_ext & CC_CAP2_SECI) &&
+	       (wlc_hw->machwcap & MCAP_BTCX);
+
+	return enab;
+}
+
+static bool brcms_btc_gcicoex_enab(struct brcms_hardware *wlc_hw)
+{
+	struct bcma_bus *bus;
+	bool enab;
+
+	bus = wlc_hw->d11core->bus;
+	enab = (wlc_hw->boardflags & BFL_BTCOEX) &&
+	       (wlc_hw->boardflags2 & BFL2_LEGACY) &&
+	       (bus->drv_cc.capabilities_ext & CC_CAP_EXT_GCI_PRESENT) &&
+	       (wlc_hw->machwcap & MCAP_BTCX);
+
+	return enab;
+}
+
+static bool brcms_btc_coex_enab(struct brcms_hardware *wlc_hw)
+{
+	bool enab;
+
+	enab = brcms_btc_ecicoex_enab(wlc_hw) ||
+	       brcms_btc_secicoex_enab(wlc_hw) ||
+	       brcms_btc_gcicoex_enab(wlc_hw);
+
+	return enab;
+}
+
+struct brcms_btcoex *brcms_btcoex_attach(struct brcms_hardware *wlc_hw)
+{
+	struct brcms_btcoex *btc;
+
+	if (!brcms_btc_coex_enab(wlc_hw)) {
+		brcms_err(wlc_hw->d11core, "no btcoex supported\n");
+		return NULL;
+	}
+	btc = kzalloc(sizeof(*btc), GFP_KERNEL);
+	if (!btc)
+		return NULL;
+
+	btc->hw = wlc_hw;
+
+	brcms_err(wlc_hw->d11core, "hardware:%s%s%s\n",
+		  brcms_btc_ecicoex_enab(wlc_hw) ? " ECI" : "",
+		  brcms_btc_secicoex_enab(wlc_hw) ? " SECI" : "",
+		  brcms_btc_gcicoex_enab(wlc_hw) ? " GCI" : "");
+
+	return btc;
+}
+
+void brcms_btcoex_detach(struct brcms_btcoex *btc)
+{
+	kfree(btc);
+}
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/btcoex.h b/drivers/net/wireless/brcm80211/brcmsmac/btcoex.h
new file mode 100644
index 0000000..92032d8
--- /dev/null
+++ b/drivers/net/wireless/brcm80211/brcmsmac/btcoex.h
@@ -0,0 +1,25 @@ 
+/*
+ * Copyright (c) 2014 Broadcom Corporation
+ *
+ * Permission to use, copy, modify, and/or distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
+ * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
+ * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+#ifndef _BRCMS_BTCOEX_H_
+#define _BRCMS_BTCOEX_H_
+
+struct brcms_btcoex;
+
+struct brcms_btcoex *brcms_btcoex_attach(struct brcms_hardware *wlc_hw);
+void brcms_btcoex_detach(struct brcms_btcoex *btc);
+
+#endif /* _BRCMS_BTCOEX_H_ */
+
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/d11.h b/drivers/net/wireless/brcm80211/brcmsmac/d11.h
index 9035cc4..a4754f8 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/d11.h
+++ b/drivers/net/wireless/brcm80211/brcmsmac/d11.h
@@ -548,7 +548,7 @@  struct d11regs {
 /* Mac capabilities registers */
 /*== machwcap ==*/
 #define	MCAP_TKIPMIC		0x80000000	/* TKIP MIC hardware present */
-
+#define MCAP_BTCX               0x20000000      /* BT coex hardware present */
 /*== pmqhost data ==*/
 /* data entry of head pmq entry */
 #define	PMQH_DATA_MASK		0xffff0000
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.c b/drivers/net/wireless/brcm80211/brcmsmac/main.c
index bc9be78..fbb8b83 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.c
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.c
@@ -33,6 +33,7 @@ 
 #include "ampdu.h"
 #include "mac80211_if.h"
 #include "ucode_loader.h"
+#include "btcoex.h"
 #include "main.h"
 #include "soc.h"
 #include "dma.h"
@@ -4665,6 +4666,8 @@  static int brcms_b_attach(struct brcms_c_info *wlc, struct bcma_device *core,
 		}
 	}
 
+	wlc_hw->btc = brcms_btcoex_attach(wlc_hw);
+
 	/* disable core to match driver "down" state */
 	brcms_c_coredisable(wlc_hw);
 
@@ -4856,6 +4859,8 @@  static void brcms_b_detach(struct brcms_c_info *wlc)
 
 	wlc_phy_shim_detach(wlc_hw->physhim);
 
+	brcms_btcoex_detach(wlc_hw->btc);
+
 	if (wlc_hw->sih) {
 		ai_detach(wlc_hw->sih);
 		wlc_hw->sih = NULL;
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/main.h b/drivers/net/wireless/brcm80211/brcmsmac/main.h
index c4d135c..1089264 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/main.h
+++ b/drivers/net/wireless/brcm80211/brcmsmac/main.h
@@ -376,6 +376,7 @@  struct brcms_hardware {
 				 * put struct antsel_info here if more info is
 				 * needed
 				 */
+	struct brcms_btcoex *btc;
 };
 
 /*
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/types.h b/drivers/net/wireless/brcm80211/brcmsmac/types.h
index ae1f3ad..ac8e3df 100644
--- a/drivers/net/wireless/brcm80211/brcmsmac/types.h
+++ b/drivers/net/wireless/brcm80211/brcmsmac/types.h
@@ -26,7 +26,8 @@ 
 #define WL_CHAN_FREQ_RANGE_5GH     3
 
 /* boardflags */
-
+/* Board supports BTCOEX */
+#define BFL_BTCOEX		0x00000001
 /* Board has gpio 9 controlling the PA */
 #define	BFL_PACTRL		0x00000002
 /* Not ok to power down the chip pll and oscillator */
diff --git a/drivers/net/wireless/brcm80211/include/chipcommon.h b/drivers/net/wireless/brcm80211/include/chipcommon.h
index d242333..d2d424c 100644
--- a/drivers/net/wireless/brcm80211/include/chipcommon.h
+++ b/drivers/net/wireless/brcm80211/include/chipcommon.h
@@ -254,6 +254,7 @@  struct chipcregs {
 #define CC_CAP_ROM		0x00800000	/* Internal boot rom active */
 #define CC_CAP_BKPLN64		0x08000000	/* 64-bit backplane */
 #define	CC_CAP_PMU		0x10000000	/* PMU Present, rev >= 20 */
+#define CC_CAP_ECI              0x20000000      /* ECI Present, rev >= 21 */
 #define	CC_CAP_SROM		0x40000000	/* Srom Present, rev >= 32 */
 /* Nand flash present, rev >= 35 */
 #define	CC_CAP_NFLASH		0x80000000
@@ -261,6 +262,7 @@  struct chipcregs {
 #define	CC_CAP2_SECI		0x00000001	/* SECI Present, rev >= 36 */
 /* GSIO (spi/i2c) present, rev >= 37 */
 #define	CC_CAP2_GSIO		0x00000002
+#define CC_CAP_EXT_GCI_PRESENT  0x00000004    /* GCI present */
 
 /* pmucapabilities */
 #define PCAP_REV_MASK	0x000000ff
-- 
1.9.1