aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest/wlantest.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2010-11-18 15:36:08 (GMT)
committerJouni Malinen <j@w1.fi>2010-11-18 15:36:08 (GMT)
commitd356bd630b6876866ca70e177a2b9eca13fb1e35 (patch)
treeb70652d7f2843e301b0277ae59fac0cd77f728da /wlantest/wlantest.c
parent6f2346c144f8f7ee8973f0db841558e339fb9b15 (diff)
downloadhostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.zip
hostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.tar.gz
hostap-d356bd630b6876866ca70e177a2b9eca13fb1e35.tar.bz2
wlantest: Add flush command for dropping all BSS data
Diffstat (limited to 'wlantest/wlantest.c')
-rw-r--r--wlantest/wlantest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wlantest/wlantest.c b/wlantest/wlantest.c
index d43379f..a98513a 100644
--- a/wlantest/wlantest.c
+++ b/wlantest/wlantest.c
@@ -78,7 +78,6 @@ void radius_deinit(struct wlantest_radius *r)
static void wlantest_deinit(struct wlantest *wt)
{
- struct wlantest_bss *bss, *n;
struct wlantest_passphrase *p, *pn;
struct wlantest_radius_secret *s, *sn;
struct wlantest_radius *r, *rn;
@@ -88,8 +87,7 @@ static void wlantest_deinit(struct wlantest *wt)
ctrl_deinit(wt);
if (wt->monitor_sock >= 0)
monitor_deinit(wt);
- dl_list_for_each_safe(bss, n, &wt->bss, struct wlantest_bss, list)
- bss_deinit(bss);
+ bss_flush(wt);
dl_list_for_each_safe(p, pn, &wt->passphrase,
struct wlantest_passphrase, list)
passphrase_deinit(p);