Import generic 802.11 layer. Choose netproto/802_11 instead of net80211 as source location. Use token API instead mutexing. The locking heavenly depends on atomic Operations and needs additional work. Use POSIX int types. Add dev/wi/if_wavelan_ieee.h as netproto/802_11/if_wavelan_ieee.h, since this is used by all wireless interfaces and beside the variable and constant naming mostly wi(4) indepedent. Obtained-from: FreeBSD