mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-26 17:28:29 -05:00
31 lines
683 B
C
31 lines
683 B
C
|
/*
|
||
|
* Common driver-related functions
|
||
|
* Copyright (c) 2003-2011, Jouni Malinen <j@w1.fi>
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* Alternatively, this software may be distributed under the terms of BSD
|
||
|
* license.
|
||
|
*
|
||
|
* See README and COPYING for more details.
|
||
|
*/
|
||
|
|
||
|
#include "includes.h"
|
||
|
#include "utils/common.h"
|
||
|
#include "driver.h"
|
||
|
|
||
|
void wpa_scan_results_free(struct wpa_scan_results *res)
|
||
|
{
|
||
|
size_t i;
|
||
|
|
||
|
if (res == NULL)
|
||
|
return;
|
||
|
|
||
|
for (i = 0; i < res->num; i++)
|
||
|
os_free(res->res[i]);
|
||
|
os_free(res->res);
|
||
|
os_free(res);
|
||
|
}
|