diff options
author | Dan Williams <dcbw@redhat.com> | 2008-06-03 23:39:55 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-06-16 13:20:07 -0700 |
commit | 6a8096e5c154cecbb2b2a25f4c0c9013b3372b03 (patch) | |
tree | 0795933426757ad4db059d970d472b3ba0cb8ecf /net | |
parent | dbeda1b14c51a1490d43975e506252cbe4964e21 (diff) | |
download | lwn-6a8096e5c154cecbb2b2a25f4c0c9013b3372b03.tar.gz lwn-6a8096e5c154cecbb2b2a25f4c0c9013b3372b03.zip |
mac80211: send association event on IBSS create
patch 507b06d0622480f8026d49a94f86068bb0fd6ed6 upstream
Otherwise userspace has no idea the IBSS creation succeeded.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r-- | net/mac80211/ieee80211_sta.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211_sta.c b/net/mac80211/ieee80211_sta.c index c1706855460a..7d5c2631caf3 100644 --- a/net/mac80211/ieee80211_sta.c +++ b/net/mac80211/ieee80211_sta.c @@ -2723,6 +2723,7 @@ static int ieee80211_sta_join_ibss(struct net_device *dev, struct rate_selection ratesel; u8 *pos; struct ieee80211_sub_if_data *sdata; + union iwreq_data wrqu; /* Remove possible STA entries from other IBSS networks. */ sta_info_flush(local, NULL); @@ -2863,6 +2864,10 @@ static int ieee80211_sta_join_ibss(struct net_device *dev, ieee80211_rx_bss_put(dev, bss); + memset(&wrqu, 0, sizeof(wrqu)); + memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN); + wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL); + return res; } |