Sending data frames
How would I send Data frames with your code? Or can it only send Beacons?
Unfortunately the wifi_send_pkt_freedomfunction is very limited. It can only send the ieee80211 header (as discussed here), and in later releases it can only send unencrypted data packet, unencrypted beacon/probe req/probe resp. And cannot send: all encrypted packets (the encrypt bit in the packet has to be 0, otherwise it is not supported), control packet, other management packet except unencrypted beacon/probe req/probe resp. (as discussed here).
If you are fine with unencrypted data packets, then you can try. Simply change the packet array in BasicBeacon.ino, and delete lines 44-60 (since you don't want to randomly change parts of your packet). You might need to keep the first two bytes 0x80, 0x00, as discussed in the second link above.