Hello Everyone:
I am using the file /ns-3-dev/examples/wireless/wifi-eth-network.cc to generate a pcap file for studying the specifics of the 802.11 protocol. However, when I use Wireshark to read the pcap file, the wireshark shows 'Malformed Packet' errors for Beacon frames, Association Requests, and Association Responses.(Picture 1)
In the first screenshot, Wireshark fails to recognize the byte after the 'Ext Tag: HE Capabilities' field and generates an error.
but after I copy the simulation file to /ns-allinone-3.40/ns-3.40/scratch/wifi-eht-network.cc and run it using version 3.40 of ns-3, Wireshark no longer display 'Malformed Packet' errors when reading the generated pcap file.(Picture 2)
Below is the code I added to the file wifi-eth-network.cc
phy.EnablePcap("eht-wifi-network", staDevices, true);
Simulator::Stop(Seconds(simulationTime + 1));
Simulator::Run();
I'm sorry, English is not my native language, so my English expression might not be good.
Best regards
poi