Fix IEEE 802.11r key derivation function to match with the standard
[wpasupplicant] / hostapd / driver_prism54.c
index 76bfcd2..02c18af 100644 (file)
@@ -933,8 +933,8 @@ static void handle_802_3(int sock, void *eloop_ctx, void *sock_ctx)
                 return;
         }
         if (hdr->type == htons(ETH_P_PAE)) {
-                ieee802_1x_receive(hapd, (u8 *) &hdr->sa[0], (u8 *) &hdr[1],
-                                  len - sizeof(*hdr));
+                hostapd_eapol_receive(hapd, (u8 *) &hdr->sa[0], (u8 *) &hdr[1],
+                                     len - sizeof(*hdr));
         }
        free(hdr);
 }
@@ -1052,7 +1052,7 @@ static void * prism54_driver_init(struct hostapd_data *hapd)
        }
        prism54_init_1x(drv);
        /* must clean previous elems */
-       hostapd_set_generic_elem(hapd, NULL, 0);
+       prism54_set_generic_elem(drv->iface, drv, NULL, 0);
 
        return drv;
 }