]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove some unneeded header file inclusions
authorJouni Malinen <j@w1.fi>
Sun, 29 Nov 2009 16:07:08 +0000 (18:07 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 29 Nov 2009 16:07:08 +0000 (18:07 +0200)
src/drivers/driver_hostap.c
src/drivers/driver_test.c

index 6963de4858f15df05162a86587885b0eec28e001..ff344f23cac513113dfc74df619d034bf11fd9d7 100644 (file)
@@ -30,8 +30,6 @@
 
 #include "priv_netlink.h"
 #include "common/ieee802_11_defs.h"
-#include "../../hostapd/hostapd.h"
-#include "../../hostapd/hw_features.h"
 #include "../../hostapd/sta_flags.h"
 
 
@@ -1200,7 +1198,9 @@ static struct hostapd_hw_modes * hostap_get_hw_feature_data(void *priv,
        mode->channels = os_zalloc(clen);
        mode->rates = os_zalloc(rlen);
        if (mode->channels == NULL || mode->rates == NULL) {
-               hostapd_free_hw_features(mode, *num_modes);
+               os_free(mode->channels);
+               os_free(mode->rates);
+               os_free(mode);
                return NULL;
        }
 
index 439f72622506f3f8b3f20c2c0cae92a25d494488..546adb922d7824ae09e3206ed23b11918d0d2d44 100644 (file)
@@ -36,7 +36,6 @@
 
 #include "../../hostapd/hostapd.h"
 #include "../../hostapd/wpa.h"
-#include "../../hostapd/hw_features.h"
 
 
 struct test_client_socket {