[PATCH] hostapd: Remove redundant freeing of STA list entries

Mohammed Shafi Shajakhan mohammed
Thu May 16 04:14:04 PDT 2013


From: Mohammed Shafi Shajakhan <mohammed at qca.qualcomm.com>

hostapd_flush_old_stations does this appropriately
after flushing the STA entries in the driver.

Signed-hostap: Mohammed Shafi Shajakhan <mohammed at qca.qualcomm.com>
---
 src/ap/hostapd.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c
index bd91ad1..df9f6fa 100644
--- a/src/ap/hostapd.c
+++ b/src/ap/hostapd.c
@@ -1057,7 +1057,6 @@ void hostapd_interface_deinit(struct hostapd_iface *iface)
 	hostapd_cleanup_iface_pre(iface);
 	for (j = 0; j < iface->num_bss; j++) {
 		struct hostapd_data *hapd = iface->bss[j];
-		hostapd_free_stas(hapd);
 		hostapd_flush_old_stations(hapd, WLAN_REASON_DEAUTH_LEAVING);
 		hostapd_clear_wep(hapd);
 		hostapd_cleanup(hapd);
@@ -1151,7 +1150,6 @@ int hostapd_disable_iface(struct hostapd_iface *hapd_iface)
 	/* whatever hostapd_interface_deinit does */
 	for (j = 0; j < hapd_iface->num_bss; j++) {
 		struct hostapd_data *hapd = hapd_iface->bss[j];
-		hostapd_free_stas(hapd);
 		hostapd_flush_old_stations(hapd, WLAN_REASON_DEAUTH_LEAVING);
 		hostapd_clear_wep(hapd);
 		hostapd_free_hapd_data(hapd);
-- 
1.7.9.5




More information about the Hostap mailing list