Skip to content

Commit

Permalink
[PATCH] libertas: send SIOCGIWSCAN event after partial scans too
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Williams authored and John W. Linville committed Jun 11, 2007
1 parent aeea0ab commit d9ad2f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/libertas/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d9ad2f5

Please sign in to comment.