Remove direct driver calls from ieee802_11.c
[libeap.git] / hostapd / iapp.c
index 1451aa4..806dc19 100644 (file)
@@ -52,7 +52,6 @@
 #include "ieee802_11.h"
 #include "iapp.h"
 #include "eloop.h"
-#include "sta_flags.h"
 #include "sta_info.h"
 
 
@@ -307,10 +306,7 @@ static void iapp_process_add_notify(struct iapp_data *iapp,
        hostapd_logger(iapp->hapd, add->mac_addr, HOSTAPD_MODULE_IAPP,
                       HOSTAPD_LEVEL_DEBUG,
                       "Removing STA due to IAPP ADD-notify");
-       sta->flags &= ~(WLAN_STA_AUTH | WLAN_STA_ASSOC | WLAN_STA_AUTHORIZED);
-       eloop_cancel_timeout(ap_handle_timer, iapp->hapd, sta);
-       eloop_register_timeout(0, 0, ap_handle_timer, iapp->hapd, sta);
-       sta->timeout_next = STA_REMOVE;
+       ap_sta_disconnect(iapp->hapd, sta, NULL, 0);
 }
 
 
@@ -536,21 +532,3 @@ void iapp_deinit(struct iapp_data *iapp)
        }
        os_free(iapp);
 }
-
-int iapp_reconfig(struct hostapd_data *hapd, struct hostapd_config *oldconf,
-                 struct hostapd_bss_config *oldbss)
-{
-       if (hapd->conf->ieee802_11f != oldbss->ieee802_11f ||
-           os_strcmp(hapd->conf->iapp_iface, oldbss->iapp_iface) != 0) {
-               iapp_deinit(hapd->iapp);
-               hapd->iapp = NULL;
-
-               if (hapd->conf->ieee802_11f) {
-                       hapd->iapp = iapp_init(hapd, hapd->conf->iapp_iface);
-                       if (hapd->iapp == NULL)
-                               return -1;
-               }
-       }
-
-       return 0;
-}