linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Arend van Spriel <arend@broadcom.com>
To: Michael Tokarev <mjt@tls.msk.ru>,
	<brcm80211-dev-list@broadcom.com>,
	<linux-wireless@vger.kernel.org>
Subject: Re: BCM4313 & brcmsmac & 3.12: only semi-working?
Date: Sat, 28 Dec 2013 10:42:17 +0100	[thread overview]
Message-ID: <52BE9CF9.7030305@broadcom.com> (raw)
In-Reply-To: <52BDE9DC.5040206@msgid.tls.msk.ru>

On 12/27/2013 09:58 PM, Michael Tokarev wrote:
> Hello.
>
> Got a Lenovo Thinkpad notebook with the following wifi card:
>
> 03:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller [14e4:4727] (rev 01)
> 	Subsystem: Broadcom Corporation Device [14e4:0608]
> 	Flags: bus master, fast devsel, latency 0, IRQ 17
> 	Memory at f1600000 (64-bit, non-prefetchable) [size=16K]
> 	Capabilities: [40] Power Management version 3
> 	Capabilities: [58] Vendor Specific Information: Len=78 <?>
> 	Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
> 	Capabilities: [d0] Express Endpoint, MSI 00
> 	Capabilities: [100] Advanced Error Reporting
> 	Capabilities: [13c] Virtual Channel
> 	Capabilities: [160] Device Serial Number 00-00-24-ff-ff-fe-48-d2
> 	Capabilities: [16c] Power Budgeting <?>
> 	Kernel driver in use: bcma-pci-bridge
>
> With 3.12 kernel, the device is recognized and it is possible to
> connect to the access point and exchange some data.  In 3.10,
> even connection (assotiation with the AP) was quite a bit
> problematic, and packet exchange never worked).
>
> However, after receiving a few packets (about 100 packets), the
> interface almost stops receiving data, except a few packets once
> in a while.  For example, when d/loading some file over wifi, first
> part (very beginning) gets d/loaded fine, and next d/load stalls,
> with Rx counter of the card not changing.  Terminating the process
> makes the counter to increase by one or two.
>
> Stopping and re-starting the interface in NetworkManager makes
> it go again, also for just about 100 packets, till it stalls
> again.
>
> Sometimes it works longer, say, 500 or even 1000 packets, but
> at the end it stalls anyway.
>
> Here's a typical iwconfig output:
>
> wlan0     IEEE 802.11bgn  ESSID:"mjt"
>           Mode:Managed  Frequency:2.412 GHz  Access Point: 64:70:02:29:D9:30
>           Bit Rate=1 Mb/s   Tx-Power=19 dBm
>           Retry  long limit:7   RTS thr:off   Fragment thr:off
>           Encryption key:off
>           Power Management:off
>           Link Quality=56/70  Signal level=-54 dBm
>           Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>           Tx excessive retries:84  Invalid misc:13   Missed beacon:0
>
> (Note the bitrate of 1Mbps: the AP is pretty much capable of
> running at 54Mbps, and actually my smartphone, when used in
> exactly the same place, goes at full 54Mbps just fine.  The
> signal conditions are very well in here, AP is about 15 meters
> away, stright visible.  When I force-reconnect it, it displays
> some more sane value here for a few moments but drops to 1mbps
> anyway).
>
> Here's some dmesg output when I start/stop wifi network and
> try to d/load something:
>
> ...
> [28031.696294] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
> [28031.696307] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
> [28033.640097] wlan0: authenticate with 64:70:02:29:d9:30
> [28033.642395] wlan0: send auth to 64:70:02:29:d9:30 (try 1/3)
> [28033.644624] wlan0: authenticated
> [28033.645452] wlan0: associate with 64:70:02:29:d9:30 (try 1/3)
> [28033.650163] wlan0: RX AssocResp from 64:70:02:29:d9:30 (capab=0x411 status=0 aid=1)
> [28033.651697] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
> [28033.651702] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
> [28033.651710] wlan0: associated
> [28033.921528] brcmsmac bcma0:0: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
> [28149.522205] wlan0: deauthenticating from 64:70:02:29:d9:30 by local choice (reason=3)
> [28149.535454] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: disassociated
> [28149.535469] brcmsmac bcma0:0: brcms_ops_bss_info_changed: arp filtering: 1 addresses (implement)
> [28149.535476] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
> [28149.538431] cfg80211: Calling CRDA to update world regulatory domain
> [28152.718056] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
> [28152.718074] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
> [28154.564599] wlan0: authenticate with 64:70:02:29:d9:30
> [28154.567108] wlan0: send auth to 64:70:02:29:d9:30 (try 1/3)
> [28154.569527] wlan0: authenticated
> [28154.570232] wlan0: associate with 64:70:02:29:d9:30 (try 1/3)
> [28154.574687] wlan0: RX AssocResp from 64:70:02:29:d9:30 (capab=0x411 status=0 aid=1)
> [28154.575257] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
> [28154.575261] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
> [28154.575268] wlan0: associated
> ...
>
>
> The same notebook with the same wifi card works just fine under
> windows (both windows 7 and 8), demonstrating stable reliable
> about-54Mbps connection.
>
> Is there any hope to get this device working under linux?
>
> I can re-build kernels and stuff, enable debugging etc, -- that's
> no problem, but I've really limited time.
>
> I purchased this notebook especially to be used when travelling,
> to be able to access to my office/work network over hotel wifi,
> I plan to have a trip starting Jan-2.  After figuring out that
> it doesn't quite work as I'd expect it to do, I purchased another
> wifi card, just to face another issue: it my notebook refuses to
> _boot_ while that card is inserted! (it was a completely new
> and unexpected "feature", now I know what it is, and will avoid
> lenovo and HP notebooks in the future), -- so I returned the card
> back.  But now I'm again without wifi, and I can't return the
> notebook...
>
> P.S. I tried to find archives of brcm80211 list, or a way to
> subscribe to it before posting, but found neither.  Are there
> archives?

Nope. The brcm80211-dev-list is just a (hopefully) convenient way to get
your message to the brcm80211 driver developer within Broadcom. So it is
always best to Cc: the linux-wireless list as well.

Now about your card. I am not sure where to start, but can you dump
contents for following debugfs file:

/sys/kernel/debug/brcmsmac/bcma*/hardware

Also a capture file would be great so if you have wireshark or dumpcap 
you can add monitor interface and capture 802.11 packets from connect up 
until the stalls. Commands for adding/enabling monitor interface (ass 
root/sudo):

# iw dev wlan0 interface add mon0 type monitor
# ifconfig mon0 up

Regards,
Arend

> Thanks,
>
> /mjt
>


  reply	other threads:[~2013-12-28  9:42 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-27 20:58 BCM4313 & brcmsmac & 3.12: only semi-working? Michael Tokarev
2013-12-28  9:42 ` Arend van Spriel [this message]
2013-12-28 12:24   ` Michael Tokarev
2014-01-14  8:59     ` Michael Tokarev
2014-01-14  9:30       ` Nikita N.
2014-02-10 19:16       ` Michael Tokarev
2014-04-19 11:42         ` Michael Tokarev
2014-08-26  5:13           ` Michael Tokarev
2014-08-26 14:56             ` Arend van Spriel
2014-08-26 16:15               ` Michael Tokarev
2014-08-26 21:37                 ` Arend van Spriel
2014-08-27 10:02                   ` Michael Tokarev
2014-08-27 15:27                     ` Arend van Spriel
2014-09-15  8:03                       ` Arend van Spriel
2014-09-21 15:30                         ` Michael Tokarev
2014-09-23 10:04                           ` Michael Tokarev
2014-09-23 12:47                             ` Arend van Spriel
2014-09-23 13:44                               ` Seth Forshee
2014-09-23 13:50                                 ` Arend van Spriel
2014-09-23 14:25                                   ` Michael Tokarev
2014-09-23 14:28                                     ` Michael Tokarev
2014-09-23 14:31                                       ` Seth Forshee
2014-09-23 16:02                                         ` Michael Tokarev
2014-09-23 17:35                                           ` Arend van Spriel
2014-09-23 18:10                                             ` Michael Tokarev
2014-09-24 13:28                                               ` Arend van Spriel
2014-09-24 14:51                                                 ` Michael Tokarev
2014-09-26 14:26                                                   ` Michael Tokarev
2014-09-26 14:42                                                     ` Arend van Spriel
2014-09-26 15:20                                                       ` Michael Tokarev
2014-09-29 13:44                                                         ` Arend van Spriel
2014-09-29 19:40                                                           ` Maximilian Engelhardt
2014-09-30 10:06                                                             ` Arend van Spriel
2014-10-08 22:19                                                               ` Maximilian Engelhardt
2014-10-09  7:52                                                                 ` Arend van Spriel
2014-10-09  8:21                                                                   ` Rafał Miłecki
2014-11-17 22:36                                                                     ` Maximilian Engelhardt
2014-11-19  9:04                                                                       ` Michael Tokarev
2014-11-19 17:54                                                                         ` Arend van Spriel
2014-11-19 19:58                                                                           ` Michael Tokarev
2014-11-19 21:00                                                                             ` Michael Tokarev
2014-11-23  9:43                                                                               ` Arend van Spriel
2014-11-26  9:52                                                                                 ` Michael Tokarev
2014-11-30 12:04                                                                                   ` Arend van Spriel
2014-12-02 21:40                                                                                     ` Michael Tokarev
2014-12-03 12:43                                                                                       ` Arend van Spriel
2014-12-16 16:51                                                                                         ` Arend van Spriel
2014-12-21  9:58                                                                                           ` Michael Tokarev
2014-12-21 10:12                                                                                             ` Arend van Spriel
2014-12-21 10:27                                                                                               ` Michael Tokarev
2014-12-21 11:38                                                                                                 ` Arend van Spriel
2014-12-21 14:08                                                                                               ` Maximilian Engelhardt
2014-12-21 14:13                                                                                                 ` Arend van Spriel
2014-12-21 14:24                                                                                                   ` Maximilian Engelhardt
2014-12-21 15:03                                                                                                     ` Arend van Spriel
2014-12-21 17:34                                                                                                       ` Maximilian Engelhardt
2015-03-09 20:54                                                                                                         ` Daniel Glöckner
2015-03-10 21:27                                                                                                           ` Arend van Spriel
2016-03-14 16:41                                                                                                             ` Daniel Glöckner
     [not found]                                                                                           ` <54969A46.8000807@msgid.tls.msk.ru>
2014-12-21 10:17                                                                                             ` Arend van Spriel
2014-12-01 22:06                                                                                   ` Maximilian Engelhardt
2014-11-19 13:46                                                                       ` Arend van Spriel
2014-11-19 13:49                                                                         ` Arend van Spriel
  -- strict thread matches above, loose matches on Subject: below --
2020-08-24  3:44 Sébastien Le Preste De Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52BE9CF9.7030305@broadcom.com \
    --to=arend@broadcom.com \
    --cc=brcm80211-dev-list@broadcom.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mjt@tls.msk.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).