diff options
author | Shan Palanisamy <shanp@qca.qualcomm.com> | 2012-02-16 19:47:54 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-16 19:47:54 +0200 |
commit | 4b8a59e40e98ee0a698b3fe5b3d0bf724d2188fe (patch) | |
tree | 4dc3206d2d08bbdb07aa800dc0be333fe05b37e3 | |
parent | ed53dec02315d0221c9e02473a9d1201a5948a56 (diff) | |
download | external_wpa_supplicant_8_ti-4b8a59e40e98ee0a698b3fe5b3d0bf724d2188fe.zip external_wpa_supplicant_8_ti-4b8a59e40e98ee0a698b3fe5b3d0bf724d2188fe.tar.gz external_wpa_supplicant_8_ti-4b8a59e40e98ee0a698b3fe5b3d0bf724d2188fe.tar.bz2 |
Split hostapd_cleanup_iface() into two parts
Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
-rw-r--r-- | src/ap/hostapd.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/ap/hostapd.c b/src/ap/hostapd.c index 21a7358..aae2563 100644 --- a/src/ap/hostapd.c +++ b/src/ap/hostapd.c @@ -295,6 +295,18 @@ static void hostapd_cleanup_iface_pre(struct hostapd_iface *iface) } +static void hostapd_cleanup_iface_partial(struct hostapd_iface *iface) +{ + hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); + iface->hw_features = NULL; + os_free(iface->current_rates); + iface->current_rates = NULL; + os_free(iface->basic_rates); + iface->basic_rates = NULL; + ap_list_deinit(iface); +} + + /** * hostapd_cleanup_iface - Complete per-interface cleanup * @iface: Pointer to interface data @@ -304,13 +316,7 @@ static void hostapd_cleanup_iface_pre(struct hostapd_iface *iface) */ static void hostapd_cleanup_iface(struct hostapd_iface *iface) { - hostapd_free_hw_features(iface->hw_features, iface->num_hw_features); - iface->hw_features = NULL; - os_free(iface->current_rates); - iface->current_rates = NULL; - os_free(iface->basic_rates); - iface->basic_rates = NULL; - ap_list_deinit(iface); + hostapd_cleanup_iface_partial(iface); hostapd_config_free(iface->conf); iface->conf = NULL; |