Is an example packet injection utility for use with mac80211 drivers. To inject frames it uses a monitor interface and uses radiotap headers to tune the wireless device per package. For details please see the kernel documentation:
git clone git://git.warmcat.com/packetspammer.git