Use generic driver events for TX status and RX reporting
[libeap.git] / hostapd / ieee802_11_auth.c
index 5ae3ac3..981067c 100644 (file)
@@ -21,6 +21,7 @@
 
 #ifndef CONFIG_NATIVE_WINDOWS
 
+#include "common.h"
 #include "hostapd.h"
 #include "config.h"
 #include "ieee802_11.h"
@@ -465,13 +466,12 @@ hostapd_acl_recv_radius(struct radius_msg *msg, struct radius_msg *req,
        hostapd_set_radius_acl_auth(hapd, query->addr, cache->accepted,
                                    cache->session_timeout);
 #else /* CONFIG_DRIVER_RADIUS_ACL */
-#ifdef NEED_MLME
+#ifdef NEED_AP_MLME
        /* Re-send original authentication frame for 802.11 processing */
        wpa_printf(MSG_DEBUG, "Re-sending authentication frame after "
                   "successful RADIUS ACL query");
-       ieee802_11_mgmt(hapd, query->auth_msg, query->auth_msg_len,
-                       WLAN_FC_STYPE_AUTH, NULL);
-#endif /* NEED_MLME */
+       ieee802_11_mgmt(hapd, query->auth_msg, query->auth_msg_len, NULL);
+#endif /* NEED_AP_MLME */
 #endif /* CONFIG_DRIVER_RADIUS_ACL */
 
  done:
@@ -528,15 +528,4 @@ void hostapd_acl_deinit(struct hostapd_data *hapd)
        }
 }
 
-
-int hostapd_acl_reconfig(struct hostapd_data *hapd,
-                        struct hostapd_config *oldconf)
-{
-       if (!hapd->radius_client_reconfigured)
-               return 0;
-
-       hostapd_acl_deinit(hapd);
-       return hostapd_acl_init(hapd);
-}
-
 #endif /* CONFIG_NATIVE_WINDOWS */