Changed argument pointer to correct data

This commit is contained in:
Tomáš Bravenec
2021-11-25 09:55:25 +01:00
committed by Ondrej Kosta
parent f23dcd3555
commit 762031424b

View File

@ -143,7 +143,7 @@ static void wifi_sniffer_cb(void *recv_buf, wifi_promiscuous_pkt_type_t type)
/* For now, the sniffer only dumps the length of the MISC type frame */ /* For now, the sniffer only dumps the length of the MISC type frame */
if (type != WIFI_PKT_MISC && !sniffer->rx_ctrl.rx_state) { if (type != WIFI_PKT_MISC && !sniffer->rx_ctrl.rx_state) {
packet_info.length -= SNIFFER_PAYLOAD_FCS_LEN; packet_info.length -= SNIFFER_PAYLOAD_FCS_LEN;
queue_packet(recv_buf, &packet_info); queue_packet(sniffer->payload, &packet_info);
} }
} }