diff options
author | Dan Williams <dcbw@redhat.com> | 2007-05-25 22:38:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:44 -0400 |
commit | d9ad2f5df89c66b5eae6ac5aaabe62508baba4ef (patch) | |
tree | aac786092aaea67b98da401ad553f0599a1bb6ee /drivers/net/wireless | |
parent | aeea0ab45ae3d761064ca926863bb41f0ad167ce (diff) |
[PATCH] libertas: send SIOCGIWSCAN event after partial scans too
Any time the driver gets new scan results, even from partial scans,
it should send the scan event to userspace.
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/libertas/scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/scan.c b/drivers/net/wireless/libertas/scan.c index 83b1612e84b..ec16cd08aea 100644 --- a/drivers/net/wireless/libertas/scan.c +++ b/drivers/net/wireless/libertas/scan.c @@ -707,19 +707,19 @@ static int wlan_scan_channel_list(wlan_private * priv, ret = libertas_prepare_and_send_command(priv, cmd_802_11_scan, 0, 0, 0, pscancfgout); if (scanned >= 2 && !full_scan) { - priv->adapter->last_scanned_channel = ptmpchan->channumber; ret = 0; goto done; } scanned = 0; } +done: priv->adapter->last_scanned_channel = ptmpchan->channumber; + /* Tell userspace the scan table has been updated */ memset(&wrqu, 0, sizeof(union iwreq_data)); wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); -done: lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret); return ret; } |