Move hostapd_set_drv_ieee8021x() into ap_drv_ops
[libeap.git] / hostapd / ieee802_1x.c
index 9340709..a6c934a 100644 (file)
@@ -233,7 +233,7 @@ ieee802_1x_group_alloc(struct hostapd_data *hapd, const char *ifname)
                              NULL, 0, key->key[key->idx], key->len[key->idx]))
                printf("Could not set dynamic VLAN WEP encryption key.\n");
 
-       hostapd_set_drv_ieee8021x(hapd, ifname, 1);
+       hapd->drv.set_drv_ieee8021x(hapd, ifname, 1);
 
        return key;
 }
@@ -1644,7 +1644,7 @@ int ieee802_1x_init(struct hostapd_data *hapd)
                return -1;
 
        if ((hapd->conf->ieee802_1x || hapd->conf->wpa) &&
-           hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 1))
+           hapd->drv.set_drv_ieee8021x(hapd, hapd->conf->iface, 1))
                return -1;
 
 #ifndef CONFIG_NO_RADIUS
@@ -1675,7 +1675,7 @@ void ieee802_1x_deinit(struct hostapd_data *hapd)
 
        if (hapd->driver != NULL &&
            (hapd->conf->ieee802_1x || hapd->conf->wpa))
-               hostapd_set_drv_ieee8021x(hapd, hapd->conf->iface, 0);
+               hapd->drv.set_drv_ieee8021x(hapd, hapd->conf->iface, 0);
 
        eapol_auth_deinit(hapd->eapol_auth);
        hapd->eapol_auth = NULL;