From: Dan Williams <dcbw@redhat.com>
To: linux-wireless <linux-wireless@vger.kernel.org>
Cc: Arend van Spriel <arend.vanspriel@broadcom.com>
Subject: brcmfmac MAC address change delay and 500ms down delay
Date: Thu, 15 Sep 2016 09:42:17 -0500 [thread overview]
Message-ID: <1473950537.25907.8.camel@redhat.com> (raw)
Hi,
While refining NetworkManager's MAC address randomization behavior we
came across two issues with brcmfmac:
1) when changing the MAC address, the driver schedules work for the new
change and returns success, but doesn't actually change the MAC until
the work is scheduled. Because it returns 0 from the
ndo_set_mac_address hook the net core will generate a NETDEV_CHANGEADDR
event and rtnetlink will send out an RTM_NEWLINK with the old MAC
address. No event for the new address will be sent. So it's pretty
hard to figure out when the address actually changed, and when its safe
to associate, without polling the device's MAC address. Ugly.
2) when closing the device (eg, set !IFF_UP) the driver unconditionally
blocks for 500ms in __brcmf_cfg80211_down():
if (check_vif_up(ifp->vif)) {
brcmf_link_down(ifp->vif, WLAN_REASON_UNSPECIFIED);
/* Make sure WPA_Supplicant receives all the event
generated due to DISASSOC call to the fw to keep
the state fw and WPA_Supplicant state consistent
*/
brcmf_delay(500);
}
Should I dump these into kernel bugzilla, or is there some internal bug
tracker they could get stuffed into?
Thanks!
Dan
next reply other threads:[~2016-09-15 14:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 14:42 Dan Williams [this message]
2016-09-16 9:58 ` brcmfmac MAC address change delay and 500ms down delay Arend Van Spriel
2016-09-19 14:48 ` Dan Williams
2016-09-19 18:34 ` Arend Van Spriel
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=1473950537.25907.8.camel@redhat.com \
--to=dcbw@redhat.com \
--cc=arend.vanspriel@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).