Write global header to PCAP file
Create a default PCAP file writer object. Specify the link type for WLAN packet.
pcapObj = pcapWriter; wlanLinkType = 105;
Using the PCAP file writer object and the WLAN link type, write a global header to the PCAP file.
pcapWriter object does not overwrite the existing PCAP file. During
each call of this object, specify a unique PCAP file name.
pcapObj— PCAP file writer object
PCAP file writer object, specified as a
linkType— Unique identifier for a protocol
Unique identifier for a protocol, specified as an integer in the range [0, 65535].
 “Radiotap - Introduction.” Accessed May 20, 2020. https://www.radiotap.org/.
 Group, The Tcpdump. “Tcpdump/Libpcap Public Repository.” Accessed May 20, 2020. https://www.tcpdump.org.
 “Development/LibpcapFileFormat - The Wireshark Wiki.” Accessed May 20, 2020. https://www.wireshark.org/.