summaryrefslogtreecommitdiffstats
path: root/net/ieee80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2006-04-13 11:41:28 +0200
committerJohn W. Linville <linville@tuxdriver.com>2006-04-19 17:25:40 -0400
commit6788a07f8faeb373967cd97b79fb3abec8fccb90 (patch)
tree9abda33b4abcaf882265deab59a1b9d73ae252f2 /net/ieee80211
parentfeeeaa87e8e6702f57ed3be7904ffd87cc044b82 (diff)
downloadop-kernel-dev-6788a07f8faeb373967cd97b79fb3abec8fccb90.zip
op-kernel-dev-6788a07f8faeb373967cd97b79fb3abec8fccb90.tar.gz
[PATCH] softmac: report when scanning has finished
Make softmac report a scan event when scanning has finished, that way userspace can wait for the event to happen instead of polling for the results. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_event.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_event.c b/net/ieee80211/softmac/ieee80211softmac_event.c
index 5bdd5ed..8cc8f3f 100644
--- a/net/ieee80211/softmac/ieee80211softmac_event.c
+++ b/net/ieee80211/softmac/ieee80211softmac_event.c
@@ -152,6 +152,12 @@ ieee80211softmac_call_events_locked(struct ieee80211softmac_device *mac, int eve
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
we_event = SIOCGIWAP;
break;
+ case IEEE80211SOFTMAC_EVENT_SCAN_FINISHED:
+ wrqu.data.length = 0;
+ wrqu.data.flags = 0;
+ memset(&wrqu, '\0', sizeof (union iwreq_data));
+ we_event = SIOCGIWSCAN;
+ break;
default:
msg = event_descriptions[event];
wrqu.data.length = strlen(msg);
OpenPOWER on IntegriCloud