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:
parent
73a26c51b6
commit
bf43acfd93
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user