Fix couple of forgotten wpa_hw_modes -> hostapd_hw_modes
[wpasupplicant] / hostapd / vlan_init.c
index 2af786f..7e25815 100644 (file)
@@ -661,10 +661,9 @@ int vlan_setup_encryption_dyn(struct hostapd_data *hapd,
         * functions for setting up dynamic broadcast keys. */
        for (i = 0; i < 4; i++) {
                if (mssid->wep.key[i] &&
-                   hostapd_set_encryption(dyn_vlan, hapd, "WEP", NULL,
-                                          i, mssid->wep.key[i],
-                                          mssid->wep.len[i],
-                                          i == mssid->wep.idx)) {
+                   hostapd_set_key(dyn_vlan, hapd, WPA_ALG_WEP, NULL, i,
+                                   i == mssid->wep.idx, NULL, 0,
+                                   mssid->wep.key[i], mssid->wep.len[i])) {
                        printf("VLAN: Could not set WEP encryption for "
                               "dynamic VLAN.\n");
                        return -1;