3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

hwsim: Use new mpdu.h structs

This commit is contained in:
Andrew Zaborowski 2017-08-31 04:04:43 +02:00 committed by Denis Kenzior
parent 76dd86d816
commit c8854d9a4c

View File

@ -1292,7 +1292,7 @@ static void process_frame(struct hwsim_frame *frame)
static void unicast_handler(struct l_genl_msg *msg, void *user_data)
{
struct hwsim_frame *frame;
const struct mpdu *mpdu;
const struct mmpdu_header *mpdu;
struct l_genl_attr attr;
uint16_t type, len;
const void *data;
@ -1391,10 +1391,10 @@ static void unicast_handler(struct l_genl_msg *msg, void *user_data)
frame->frequency = *(uint32_t *) freq;
frame->flags = *(uint32_t *) flags;
mpdu = (struct mpdu *) frame->payload;
mpdu = (const struct mmpdu_header *) frame->payload;
memcpy(frame->src_ether_addr, mpdu->mgmt_hdr.address_2, ETH_ALEN);
memcpy(frame->dst_ether_addr, mpdu->mgmt_hdr.address_1, ETH_ALEN);
memcpy(frame->src_ether_addr, mpdu->address_2, ETH_ALEN);
memcpy(frame->dst_ether_addr, mpdu->address_1, ETH_ALEN);
process_frame(frame);
}