3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-27 02:32:52 +01:00

scan: Add scan_bss_free

This commit is contained in:
Denis Kenzior 2015-04-30 22:21:31 -05:00
parent 73a26c51b6
commit bf43acfd93
3 changed files with 10 additions and 3 deletions

View File

@ -98,3 +98,10 @@ enum scan_ssid_security scan_get_ssid_security(
return SCAN_SSID_SECURITY_NONE;
}
void scan_bss_free(struct scan_bss *bss)
{
l_free(bss->rsne);
l_free(bss->wpa);
l_free(bss);
}

View File

@ -52,3 +52,4 @@ void scan_get_results(struct l_genl_family *nl80211, uint32_t ifindex,
enum scan_ssid_security scan_get_ssid_security(enum ie_bss_capability bss_cap,
const struct ie_rsn_info *info);
void scan_bss_free(struct scan_bss *bss);

View File

@ -436,9 +436,8 @@ static void bss_free(void *data)
l_debug("Freeing BSS %02X:%02X:%02X:%02X:%02X:%02X",
bss->addr[0], bss->addr[1], bss->addr[2],
bss->addr[3], bss->addr[4], bss->addr[5]);
l_free(bss->rsne);
l_free(bss->wpa);
l_free(bss);
scan_bss_free(bss);
}
static void network_free(void *data)