* [PATCH] softmac: report SIOCGIWAP event upon association
@ 2006-04-19 0:02 Daniel Drake
2006-04-19 6:02 ` Johannes Berg
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Drake @ 2006-04-19 0:02 UTC (permalink / raw)
To: johannes; +Cc: softmac-dev, netdev
wpa_supplicant requires some notification when association has completed, and
this is the way to do it.
Before this patch, wpa_supplicant just times out when trying to associate,
even though the association completed successfully in the background. This was
reported at
http://www.mail-archive.com/bcm43xx-dev@lists.berlios.de/msg00959.html
After this patch, wpa_supplicant works for me. I have tested connecting to a
WEP network.
Signed-off-by: Daniel Drake <dsd@gentoo.org>
--- linux/net/ieee80211/softmac/ieee80211softmac_assoc.c.orig 2006-04-16 23:55:23.000000000 +0100
+++ linux/net/ieee80211/softmac/ieee80211softmac_assoc.c 2006-04-19 01:08:40.000000000 +0100
@@ -282,6 +282,8 @@ ieee80211softmac_associated(struct ieee8
struct ieee80211_assoc_response * resp,
struct ieee80211softmac_network *net)
{
+ union iwreq_data wrqu;
+
mac->associnfo.associating = 0;
mac->associated = 1;
if (mac->set_bssid_filter)
@@ -290,6 +292,10 @@ ieee80211softmac_associated(struct ieee8
netif_carrier_on(mac->dev);
mac->association_id = le16_to_cpup(&resp->aid);
+
+ wrqu.ap_addr.sa_family = ARPHRD_ETHER;
+ memcpy(wrqu.ap_addr.sa_data, net->bssid, ETH_ALEN);
+ wireless_send_event(mac->dev, SIOCGIWAP, &wrqu, NULL);
}
/* received frame handling functions */
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] softmac: report SIOCGIWAP event upon association
2006-04-19 0:02 [PATCH] softmac: report SIOCGIWAP event upon association Daniel Drake
@ 2006-04-19 6:02 ` Johannes Berg
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Berg @ 2006-04-19 6:02 UTC (permalink / raw)
To: Daniel Drake; +Cc: netdev, softmac-dev
[-- Attachment #1: Type: text/plain, Size: 457 bytes --]
On Wed, 2006-04-19 at 01:02 +0100, Daniel Drake wrote:
> wpa_supplicant requires some notification when association has completed, and
> this is the way to do it.
Check out the patches I posted earlier:
http://softmac.sipsolutions.net/patches/
Specifically, this one by Dan Williams:
http://softmac.sipsolutions.net/patches/softmac-events.patch
I think that's what you're doing here, but can't do an in-depth check at
the moment.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 793 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-04-19 6:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-19 0:02 [PATCH] softmac: report SIOCGIWAP event upon association Daniel Drake
2006-04-19 6:02 ` Johannes Berg
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).