Device management

The way to describe an ieee80211 device to the ieee80211 layer is by using a struct ieee80211com , declared in <sys/net80211/ieee80211_var.h> . You use it to register a device to the ieee80211 from the device driver by calling ieee80211_ifattach() . Fill in the underlying struct ifnet pointer, function callbacks, and device-capability flags. If a device is detached, the ieee80211 layer can be notified with ieee80211_ifdetach() .