Open Dowafu opened 6 days ago
Hmm, I see that this can be unexpected. When implementing it, I didn't look at it from that perspective. I guess, it was just more natural to implement it that way. On TX side, the MAC sets the CRC; on RX, the decoder checks and removes it. You're right, it might have been better to keep the CRC, but changing it now would probably break some code :-/
Hello,
I used Scapy to generate the Wi-Fi frames and send them through the loopback flow. When I generate Dot11FCS frames, the received messages no longer match the messages generated by Scapy, and in fact, the Frame Check Sequence gets removed. I am comparing against mac_out.
I tried to trace the behavior and found that decode_mac.cc line 155 truncates the FCS after checking it.
My expectation was that the loopback retains the FCS, and for captures with Wi-Fi cards, I have seen so far the FCS in the pcap. Do I have it the wrong way around and removing the FCS is the expected behavior?
Example