aboutsummaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/libertas/scan.c4
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;
}