First pass at converting the net80211 infrastrcture from FreeBSD.