linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: Arend Van Spriel <arend@broadcom.com>
Cc: "linux-wireless@vger.kernel.org" <linux-wireless@vger.kernel.org>,
	brcm80211-dev-list <brcm80211-dev-list@broadcom.com>
Subject: Re: [RFC 00/13] brcmsmac: add AP mode
Date: Sun, 24 Feb 2013 12:38:32 +0100	[thread overview]
Message-ID: <5129FBB8.1080505@hauke-m.de> (raw)
In-Reply-To: <A47087626F2942499CF47E79803E771E0431BF4D@SJEXCHMB13.corp.ad.broadcom.com>

On 02/24/2013 11:21 AM, Arend Van Spriel wrote:
> On Sunday, February 24, 2013 2:05 AM, Hauke Mehrtens wrote:
>> This patch series contains some cleanup patches for brcmsmac and then
>> adds beacon and probe response template upload.
>> With these features AP mode support is added in the last patch.
> 
> Someone was bound to start on this and we are lately too focussed on
> brcmfmac. We will review the patches and found out whether our test
> framework can cover AP mode.

Yes this needs some review and more testing, I hope this also works with
power saving stations and so on.

>> When running AP mode in 5GHz band on my BCM43224 I get the following
>> errors, and I do not see the network with my Intel IWL6300, the
>> regulation restrictions in channel.c where changed before:
> 
> 5GHz is a bit tricky. I will need to find out whether AP mode can work with
> the current ucode.

Currently brcmsmac completely denies beaconing on 5GHz in channel.c, how
could that be changed and still compatible with the interpretation of
the regulation rules by your lawyers?

>> [  829.608000] brcmsmac bcma1:0: wl0: wlc_suspend_mac_and_wait:
>> waited 83000 uS and MI_MACSSPNDD is still not on.
>> [  829.616000] brcmsmac bcma1:0: wl0: psmdebug 0x00ff808d, phydebug
>> 0x0000000d, psm_brc 0x0000
> 
> It generally indicates a hang in the ucode. Are you using the firmware from
> the linux-firmware repository?

Instead of these error messages I also got a complete system hang when
compiling a kernel without lock debugging, the difference between this
result with lock debugging and the hang without lock debugging is
probably resulted from different timings.

I used the ucode extracted from the proprietary driver, because only
this ucode works with my BCM4716, this is ucode 666.2 from driver
5.100.138. I will try the ucode from linux-firmware today.

>> The probe responses are currently send by the ucode based on the
>> template and by mac80211. I was searching for a switch so disable probe
>> request forwarding from the ucode to the driver.
> 
> I am pretty sure there is. I will look into this and let you know.

That would be nice.

>> The structure of brcmsmac is pretty complicated, because it copies many
>> addresses into its own structs and does not use mac80211 structs in
>> main.c.
> 
> Yeah. Basically, a lot of conversions are done at mac80211 interface to keep
> the low-level driver code similar to the code base it came from. That is the
> path taken. I would like to see a replacement driver some day that shares more
> structure definitions with the linux wireless subsystem, but for now that is just
> me daydreaming ;-)

I saw your code for beaconing and probe response templates, but I mostly
replaced it with a new version because this architecture was not
compatible with mac80211. For the Phy code it makes sense and it is
probably not so hard to stay near your proprietary code base, but I do
not think this works very well with the rest of the code mostly in main.c.

Hauke

  reply	other threads:[~2013-02-24 11:38 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-24  1:05 [RFC 00/13] brcmsmac: add AP mode Hauke Mehrtens
2013-02-24  1:05 ` [RFC 01/13] brcmsmac: implement ieee80211_ops get_tsf and set_tsf Hauke Mehrtens
2013-02-24  1:06 ` [RFC 02/13] brcmsmac: add interface type to brcms_bss_cfg Hauke Mehrtens
2013-02-24  1:06 ` [RFC 03/13] brcmsmac: remove brcms_bss_cfg->BSS Hauke Mehrtens
2013-02-24  1:06 ` [RFC 04/13] brcmsmac: remove brcms_bss_cfg->associated Hauke Mehrtens
2013-02-24  1:06 ` [RFC 05/13] brcmsmac: remove brcms_bss_cfg->enable Hauke Mehrtens
2013-02-24  1:06 ` [RFC 06/13] brcmsmac: remove brcms_bss_cfg->up Hauke Mehrtens
2013-02-24  1:06 ` [RFC 07/13] brcmsmac: remove brcms_bss_cfg->cur_etheraddr Hauke Mehrtens
2013-02-24  1:06 ` [RFC 08/13] brcmsmac: remove brcms_pub->bcmerr Hauke Mehrtens
2013-02-24  1:06 ` [RFC 09/13] brcmsmac: write beacon period to hardware Hauke Mehrtens
2013-02-24  1:06 ` [RFC 10/13] brcmsmac: add beacon template support Hauke Mehrtens
2013-02-24  1:06 ` [RFC 11/13] brcmsmac: react on changing SSID Hauke Mehrtens
2013-02-24  1:06 ` [RFC 12/13] brcmsmac: add support for probe response template Hauke Mehrtens
2013-02-24  2:30   ` W. Trevor King
2013-02-24  9:39     ` Hauke Mehrtens
2013-02-24 15:06       ` W. Trevor King
2013-02-24  1:06 ` [RFC 13/13] brcmsmac: activate AP support Hauke Mehrtens
2013-02-24  2:30   ` W. Trevor King
2013-02-24  9:41     ` Hauke Mehrtens
2013-02-24 10:21 ` [RFC 00/13] brcmsmac: add AP mode Arend Van Spriel
2013-02-24 11:38   ` Hauke Mehrtens [this message]
2013-02-24 15:25     ` Hauke Mehrtens
2013-02-24 17:22     ` Johannes Berg
2013-02-24 22:31       ` Hauke Mehrtens

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=5129FBB8.1080505@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=arend@broadcom.com \
    --cc=brcm80211-dev-list@broadcom.com \
    --cc=linux-wireless@vger.kernel.org \
    /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).