projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea17730
)
mac80211: send association event on IBSS create
author
Dan Williams
<dcbw@redhat.com>
Wed, 4 Jun 2008 03:39:55 +0000
(23:39 -0400)
committer
John W. Linville
<linville@tuxdriver.com>
Mon, 9 Jun 2008 19:50:19 +0000
(15:50 -0400)
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>
net/mac80211/mlme.c
patch
|
blob
|
blame
|
history
diff --git
a/net/mac80211/mlme.c
b/net/mac80211/mlme.c
index 841278f1df8e75dda14dbe1e6c571f01f192e64e..af375da9df21d55be750cf4fabb5c01cc2bf18b3 100644
(file)
--- a/
net/mac80211/mlme.c
+++ b/
net/mac80211/mlme.c
@@
-2336,6
+2336,7
@@
static int ieee80211_sta_join_ibss(struct net_device *dev,
u8 *pos;
struct ieee80211_sub_if_data *sdata;
struct ieee80211_supported_band *sband;
+ union iwreq_data wrqu;
sband = local->hw.wiphy->bands[local->hw.conf.channel->band];
@@
-2479,6
+2480,10
@@
static int ieee80211_sta_join_ibss(struct net_device *dev,
ifsta->state = IEEE80211_IBSS_JOINED;
mod_timer(&ifsta->timer, jiffies + IEEE80211_IBSS_MERGE_INTERVAL);
+ memset(&wrqu, 0, sizeof(wrqu));
+ memcpy(wrqu.ap_addr.sa_data, bss->bssid, ETH_ALEN);
+ wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
+
return res;
}