Remove src/drivers/scan_helpers.c
Most of this file was already moved into wpa_supplicant/scan.c and we can remove the file completely by having couple of small helper functions copied to the remaining users outside core wpa_supplicant code.
This commit is contained in:
parent
9ba9fa07cc
commit
d1f9c410c1
10 changed files with 84 additions and 58 deletions
|
@ -792,6 +792,25 @@ static int wpa_driver_ndis_scan(void *priv,
|
|||
}
|
||||
|
||||
|
||||
static const u8 * wpa_scan_get_ie(const struct wpa_scan_res *res, u8 ie)
|
||||
{
|
||||
const u8 *end, *pos;
|
||||
|
||||
pos = (const u8 *) (res + 1);
|
||||
end = pos + res->ie_len;
|
||||
|
||||
while (pos + 1 < end) {
|
||||
if (pos + 2 + pos[1] > end)
|
||||
break;
|
||||
if (pos[0] == ie)
|
||||
return pos;
|
||||
pos += 2 + pos[1];
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
static struct wpa_scan_res * wpa_driver_ndis_add_scan_ssid(
|
||||
struct wpa_scan_res *r, NDIS_802_11_SSID *ssid)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue