aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2011-10-22 19:09:40 (GMT)
committerJouni Malinen <j@w1.fi>2011-10-22 19:09:40 (GMT)
commit9e0e6902a26be6594f81c1b53b1b1ea19e27c1df (patch)
treee7028b75a0a6bd7a23c2a5bc73c955e14db4cc8e /wpa_supplicant
parentd01b20537838ef640c341b51f1ddb883a4c37331 (diff)
downloadhostap-9e0e6902a26be6594f81c1b53b1b1ea19e27c1df.zip
hostap-9e0e6902a26be6594f81c1b53b1b1ea19e27c1df.tar.gz
hostap-9e0e6902a26be6594f81c1b53b1b1ea19e27c1df.tar.bz2
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.
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/scan.c14
-rw-r--r--wpa_supplicant/scan.h1
2 files changed, 0 insertions, 15 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index fab43f1..47f2206 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -1139,17 +1139,3 @@ int wpa_supplicant_update_scan_results(struct wpa_supplicant *wpa_s)
return 0;
}
-
-
-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);
-}
diff --git a/wpa_supplicant/scan.h b/wpa_supplicant/scan.h
index 81dee01..7fb84e6 100644
--- a/wpa_supplicant/scan.h
+++ b/wpa_supplicant/scan.h
@@ -38,6 +38,5 @@ struct wpabuf * wpa_scan_get_vendor_ie_multi(const struct wpa_scan_res *res,
u32 vendor_type);
struct wpabuf * wpa_scan_get_vendor_ie_multi_beacon(
const struct wpa_scan_res *res, u32 vendor_type);
-void wpa_scan_results_free(struct wpa_scan_results *res);
#endif /* SCAN_H */