Fix segfaults in 802.11 code/test