Share a single wpa_scan_results_free() implementation
There is not really a very good location for this anywhere, but the function is small enough to live as an inline function for now.
This commit is contained in:
parent
d01b205378
commit
9e0e6902a2
5 changed files with 13 additions and 43 deletions
|
@ -407,20 +407,6 @@ static int ieee80211n_check_40mhz_2g4(struct hostapd_iface *iface,
|
|||
}
|
||||
|
||||
|
||||
static 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);
|
||||
}
|
||||
|
||||
|
||||
static void ieee80211n_check_scan(struct hostapd_iface *iface)
|
||||
{
|
||||
struct wpa_scan_results *scan_res;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue