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 83b1612e84bf..ec16cd08aead 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, | |||
707 | ret = libertas_prepare_and_send_command(priv, cmd_802_11_scan, 0, | 707 | ret = libertas_prepare_and_send_command(priv, cmd_802_11_scan, 0, |
708 | 0, 0, pscancfgout); | 708 | 0, 0, pscancfgout); |
709 | if (scanned >= 2 && !full_scan) { | 709 | if (scanned >= 2 && !full_scan) { |
710 | priv->adapter->last_scanned_channel = ptmpchan->channumber; | ||
711 | ret = 0; | 710 | ret = 0; |
712 | goto done; | 711 | goto done; |
713 | } | 712 | } |
714 | scanned = 0; | 713 | scanned = 0; |
715 | } | 714 | } |
716 | 715 | ||
716 | done: | ||
717 | priv->adapter->last_scanned_channel = ptmpchan->channumber; | 717 | priv->adapter->last_scanned_channel = ptmpchan->channumber; |
718 | 718 | ||
719 | /* Tell userspace the scan table has been updated */ | ||
719 | memset(&wrqu, 0, sizeof(union iwreq_data)); | 720 | memset(&wrqu, 0, sizeof(union iwreq_data)); |
720 | wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); | 721 | wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); |
721 | 722 | ||
722 | done: | ||
723 | lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret); | 723 | lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret); |
724 | return ret; | 724 | return ret; |
725 | } | 725 | } |