From 45d274fe182fe270d147e9335c27353cfa0696b2 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 13 Jul 2025 16:10:19 +0100 Subject: Stop manually adding FCS --- src/transmit.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/transmit.c b/src/transmit.c index 2c0fbc8..26bec05 100644 --- a/src/transmit.c +++ b/src/transmit.c @@ -41,14 +41,11 @@ int send_packet_with_radiotap(int sock, int device_index, const unsigned char ds unsigned char radiotap_buffer[256]; int radiotap_size = libwifi_create_radiotap(&radiotap_info, radiotap_buffer); - uint32_t fcs = libwifi_calculate_fcs(packet, packet_size); - - int buffer_size = radiotap_size + packet_size + sizeof(uint32_t); + int buffer_size = radiotap_size + packet_size; unsigned char* buffer = (unsigned char*)malloc(buffer_size); memcpy(buffer, radiotap_buffer, radiotap_size); memcpy(buffer + radiotap_size, packet, packet_size); - memcpy(buffer + radiotap_size + packet_size, (unsigned char*)&fcs, sizeof(uint32_t)); int ret = send_packet(sock, device_index, dst_addr, buffer, buffer_size); -- cgit 1.4.1