Remove direct driver calls from sta_info.c
[libeap.git] / hostapd / hostapd.c
index 8af1c04..07b9423 100644 (file)
@@ -441,8 +441,8 @@ static int hostapd_flush_old_stations(struct hostapd_data *hapd)
        if (hapd->driver && os_strcmp(hapd->driver->name, "hostap") != 0) {
                u8 addr[ETH_ALEN];
                os_memset(addr, 0xff, ETH_ALEN);
-               hostapd_sta_deauth(hapd, addr,
-                                  WLAN_REASON_PREV_AUTH_NOT_VALID);
+               hapd->drv.sta_deauth(hapd, addr,
+                                    WLAN_REASON_PREV_AUTH_NOT_VALID);
        }
 
        return ret;
@@ -1549,8 +1549,8 @@ void hostapd_new_assoc_sta(struct hostapd_data *hapd, struct sta_info *sta,
                           int reassoc)
 {
        if (hapd->tkip_countermeasures) {
-               hostapd_sta_deauth(hapd, sta->addr,
-                                  WLAN_REASON_MICHAEL_MIC_FAILURE);
+               hapd->drv.sta_deauth(hapd, sta->addr,
+                                    WLAN_REASON_MICHAEL_MIC_FAILURE);
                return;
        }