Commit d9ad2f5d authored by Dan Williams's avatar Dan Williams Committed by John W. Linville

[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: default avatarDan Williams <dcbw@redhat.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent aeea0ab4
...@@ -707,19 +707,19 @@ static int wlan_scan_channel_list(wlan_private * priv, ...@@ -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, ret = libertas_prepare_and_send_command(priv, cmd_802_11_scan, 0,
0, 0, pscancfgout); 0, 0, pscancfgout);
if (scanned >= 2 && !full_scan) { if (scanned >= 2 && !full_scan) {
priv->adapter->last_scanned_channel = ptmpchan->channumber;
ret = 0; ret = 0;
goto done; goto done;
} }
scanned = 0; scanned = 0;
} }
done:
priv->adapter->last_scanned_channel = ptmpchan->channumber; priv->adapter->last_scanned_channel = ptmpchan->channumber;
/* Tell userspace the scan table has been updated */
memset(&wrqu, 0, sizeof(union iwreq_data)); memset(&wrqu, 0, sizeof(union iwreq_data));
wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL); wireless_send_event(priv->dev, SIOCGIWSCAN, &wrqu, NULL);
done:
lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret); lbs_deb_leave_args(LBS_DEB_SCAN, "ret %d", ret);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment