Protocol and transmit interfaces¶
Defines
-
IEEE80211_S_MAX¶
-
IEEE80211_SEND_MGMT(_ni, _type, _arg)¶
-
ieee80211_input(ni, m, rssi, nf)¶
-
IEEE80211_SEND_LEGACY_11B¶
-
IEEE80211_SEND_LEGACY_11¶
-
IEEE80211_SEND_LEGACY¶
-
IEEE80211_F_DOSORT¶
-
IEEE80211_F_DOFRATE¶
-
IEEE80211_F_DONEGO¶
-
IEEE80211_F_DODEL¶
-
IEEE80211_F_DOBRS¶
-
IEEE80211_F_JOIN¶
-
IEEE80211_F_DOFMCS¶
-
IEEE80211_TXOP_TO_US(_txop)¶
-
IEEE80211_US_TO_TXOP(_us)¶
-
WME_F_AGGRMODE¶
Enums
-
enum ieee80211_state¶
Values:
-
enumerator IEEE80211_S_INIT¶
-
enumerator IEEE80211_S_SCAN¶
-
enumerator IEEE80211_S_AUTH¶
-
enumerator IEEE80211_S_ASSOC¶
-
enumerator IEEE80211_S_CAC¶
-
enumerator IEEE80211_S_RUN¶
-
enumerator IEEE80211_S_CSA¶
-
enumerator IEEE80211_S_SLEEP¶
-
enumerator IEEE80211_S_INIT¶
-
enum [anonymous]¶
Values:
-
enumerator IEEE80211_BEACON_CAPS¶
-
enumerator IEEE80211_BEACON_TIM¶
-
enumerator IEEE80211_BEACON_WME¶
-
enumerator IEEE80211_BEACON_ERP¶
-
enumerator IEEE80211_BEACON_HTINFO¶
-
enumerator IEEE80211_BEACON_APPIE¶
-
enumerator IEEE80211_BEACON_CFP¶
-
enumerator IEEE80211_BEACON_CSA¶
-
enumerator IEEE80211_BEACON_TDMA¶
-
enumerator IEEE80211_BEACON_ATH¶
-
enumerator IEEE80211_BEACON_MESHCONF¶
-
enumerator IEEE80211_BEACON_QUIET¶
-
enumerator IEEE80211_BEACON_VHTINFO¶
-
enumerator IEEE80211_BEACON_CAPS¶
Functions
-
__inline static const char *ieee80211_mgt_subtype_name(uint8_t subtype)¶
-
__inline static const char *ieee80211_ctl_subtype_name(uint8_t subtype)¶
-
const char *ieee80211_reason_to_string(uint16_t)¶
-
void ieee80211_proto_attach(struct ieee80211com*)¶
-
void ieee80211_proto_detach(struct ieee80211com*)¶
-
void ieee80211_proto_vattach(struct ieee80211vap*)¶
-
void ieee80211_proto_vdetach(struct ieee80211vap*)¶
-
void ieee80211_promisc(struct ieee80211vap*, bool)¶
-
void ieee80211_allmulti(struct ieee80211vap*, bool)¶
-
void ieee80211_syncflag(struct ieee80211vap*, int flag)¶
-
void ieee80211_syncflag_ht(struct ieee80211vap*, int flag)¶
-
void ieee80211_syncflag_vht(struct ieee80211vap*, int flag)¶
-
void ieee80211_syncflag_ext(struct ieee80211vap*, int flag)¶
-
int ieee80211_input_all(struct ieee80211com*, struct mbuf*, int, int)¶
-
int ieee80211_input_mimo(struct ieee80211_node*, struct mbuf*)¶
-
int ieee80211_input_mimo_all(struct ieee80211com*, struct mbuf*)¶
-
int ieee80211_mgmt_output(struct ieee80211_node*, struct mbuf*, int, struct ieee80211_bpf_params*)¶
-
int ieee80211_raw_xmit(struct ieee80211_node*, struct mbuf*, const struct ieee80211_bpf_params*)¶
-
int ieee80211_output(struct ifnet*, struct mbuf*, const struct sockaddr*, struct route *ro)¶
-
int ieee80211_vap_pkt_send_dest(struct ieee80211vap*, struct mbuf*, struct ieee80211_node*)¶
-
int ieee80211_raw_output(struct ieee80211vap*, struct ieee80211_node*, struct mbuf*, const struct ieee80211_bpf_params*)¶
-
void ieee80211_send_setup(struct ieee80211_node*, struct mbuf*, int, int, const uint8_t[IEEE80211_ADDR_LEN], const uint8_t[IEEE80211_ADDR_LEN], const uint8_t[IEEE80211_ADDR_LEN])¶
-
int ieee80211_vap_transmit(struct ifnet *ifp, struct mbuf *m)¶
-
void ieee80211_vap_qflush(struct ifnet *ifp)¶
-
int ieee80211_send_nulldata(struct ieee80211_node*)¶
-
int ieee80211_classify(struct ieee80211_node*, struct mbuf *m)¶
-
struct mbuf *ieee80211_mbuf_adjust(struct ieee80211vap*, int, struct ieee80211_key*, struct mbuf*)¶
-
struct mbuf *ieee80211_encap(struct ieee80211vap*, struct ieee80211_node*, struct mbuf*)¶
-
void ieee80211_free_mbuf(struct mbuf*)¶
Free an 802.11 frame mbuf.
Note that since a “frame” may consist of an mbuf packet list containing the 802.11 fragments that make up said frame, it will free everything in the mbuf packet list.
- Parameters:
m – mbuf packet list to free
-
int ieee80211_send_mgmt(struct ieee80211_node*, int, int)¶
-
int ieee80211_probereq_ie(struct ieee80211vap*, struct ieee80211com*, uint8_t**, uint32_t*, const uint8_t*, size_t, bool)¶
-
int ieee80211_send_probereq(struct ieee80211_node *ni, const uint8_t sa[IEEE80211_ADDR_LEN], const uint8_t da[IEEE80211_ADDR_LEN], const uint8_t bssid[IEEE80211_ADDR_LEN], const uint8_t *ssid, size_t ssidlen)¶
-
struct mbuf *ieee80211_ff_encap1(struct ieee80211vap*, struct mbuf*, const struct ether_header*)¶
-
void ieee80211_tx_complete(struct ieee80211_node*, struct mbuf*, int)¶
-
void ieee80211_output_seqno_assign(struct ieee80211_node*, int, struct mbuf*)¶
Assign a sequence number to the given frame.
Check the frame type and TID and assign a suitable sequence number from the correct sequence number space.
This implements the components of 802.11-2020 10.3.2.14.2 (Transmitter Requirements) that net80211 currently supports.
It assumes the mbuf has been encapsulated, and has the TID assigned if it is a QoS frame.
Note this also clears any existing fragment ID in the header, so it must be called first before assigning fragment IDs.
- Parameters:
ni – ieee80211_node this frame will be transmitted to
arg_tid – A temporary check, existing callers may set this to a TID variable they were using, and this routine will verify it against what’s in the frame and complain if they don’t match. For new callers, use -1.
m – mbuf to populate the sequence number into
-
void ieee80211_output_beacon_seqno_assign(struct ieee80211_node*, struct mbuf*)¶
Assign a sequence number to the given beacon frame.
TODO: update to 802.11-2020 10.3.2.14.2 (Transmitter Requirements)
- Parameters:
ni – ieee80211_node this frame will be transmitted to
m – mbuf to populate the sequence number into
-
struct mbuf *ieee80211_alloc_proberesp(struct ieee80211_node*, int)¶
-
int ieee80211_send_proberesp(struct ieee80211vap*, const uint8_t da[IEEE80211_ADDR_LEN], int)¶
-
struct mbuf *ieee80211_alloc_rts(struct ieee80211com *ic, const uint8_t[IEEE80211_ADDR_LEN], const uint8_t[IEEE80211_ADDR_LEN], uint16_t)¶
-
struct mbuf *ieee80211_alloc_cts(struct ieee80211com*, const uint8_t[IEEE80211_ADDR_LEN], uint16_t)¶
-
struct mbuf *ieee80211_alloc_prot(struct ieee80211_node*, const struct mbuf*, uint8_t, int)¶
-
uint8_t *ieee80211_add_rates(uint8_t*, const struct ieee80211_rateset*)¶
-
uint8_t *ieee80211_add_xrates(uint8_t*, const struct ieee80211_rateset*)¶
-
uint8_t *ieee80211_add_ssid(uint8_t*, const uint8_t*, u_int)¶
-
uint8_t *ieee80211_add_wpa(uint8_t*, const struct ieee80211vap*)¶
-
uint8_t *ieee80211_add_rsn(uint8_t*, const struct ieee80211vap*)¶
-
uint8_t *ieee80211_add_qos(uint8_t*, const struct ieee80211_node*)¶
-
uint16_t ieee80211_getcapinfo(struct ieee80211vap*, struct ieee80211_channel*)¶
-
uint8_t *ieee80211_add_wme_info(uint8_t *frm, struct ieee80211_wme_state *wme, struct ieee80211_node *ni)¶
-
void ieee80211_vap_reset_erp(struct ieee80211vap*)¶
-
void ieee80211_reset_erp(struct ieee80211com*)¶
-
void ieee80211_vap_set_shortslottime(struct ieee80211vap*, int onoff)¶
-
int ieee80211_iserp_rateset(const struct ieee80211_rateset*)¶
-
void ieee80211_setbasicrates(struct ieee80211_rateset*, enum ieee80211_phymode)¶
-
void ieee80211_addbasicrates(struct ieee80211_rateset*, enum ieee80211_phymode)¶
-
__inline static int ieee80211_hdrsize(const void *data)¶
-
__inline static int ieee80211_anyhdrsize(const void *data)¶
-
void ieee80211_authenticator_register(int type, const struct ieee80211_authenticator*)¶
-
void ieee80211_authenticator_unregister(int type)¶
-
const struct ieee80211_authenticator *ieee80211_authenticator_get(int auth)¶
-
void ieee80211_aclator_register(const struct ieee80211_aclator*)¶
-
void ieee80211_aclator_unregister(const struct ieee80211_aclator*)¶
-
const struct ieee80211_aclator *ieee80211_aclator_get(const char *name)¶
-
int ieee80211_fix_rate(struct ieee80211_node*, struct ieee80211_rateset*, int)¶
-
void ieee80211_wme_initparams(struct ieee80211vap*)¶
-
void ieee80211_wme_updateparams(struct ieee80211vap*)¶
-
void ieee80211_wme_updateparams_locked(struct ieee80211vap*)¶
-
void ieee80211_wme_vap_getparams(struct ieee80211vap *vap, struct chanAccParams*)¶
-
void ieee80211_wme_ic_getparams(struct ieee80211com *ic, struct chanAccParams*)¶
-
int ieee80211_wme_vap_ac_is_noack(struct ieee80211vap *vap, int ac)¶
-
void ieee80211_vap_update_preamble(struct ieee80211vap *vap)¶
-
void ieee80211_vap_update_erp_protmode(struct ieee80211vap *vap)¶
-
void ieee80211_vap_update_ht_protmode(struct ieee80211vap *vap)¶
-
__inline static uint8_t *ieee80211_getqos(void *data)¶
-
__inline static uint8_t ieee80211_gettid(const struct ieee80211_frame *wh)¶
-
void ieee80211_waitfor_parent(struct ieee80211com*)¶
-
void ieee80211_start_locked(struct ieee80211vap*)¶
-
void ieee80211_init(void*)¶
-
void ieee80211_start_all(struct ieee80211com*)¶
-
void ieee80211_stop_locked(struct ieee80211vap*)¶
-
void ieee80211_stop(struct ieee80211vap*)¶
-
void ieee80211_stop_all(struct ieee80211com*)¶
-
void ieee80211_suspend_all(struct ieee80211com*)¶
-
void ieee80211_resume_all(struct ieee80211com*)¶
-
void ieee80211_restart_all(struct ieee80211com*)¶
-
void ieee80211_dturbo_switch(struct ieee80211vap*, int newflags)¶
-
void ieee80211_swbmiss(void *arg)¶
-
void ieee80211_beacon_miss(struct ieee80211com*)¶
-
int ieee80211_new_state(struct ieee80211vap*, enum ieee80211_state, int)¶
-
int ieee80211_new_state_locked(struct ieee80211vap*, enum ieee80211_state, int)¶
-
void ieee80211_print_essid(const uint8_t*, int)¶
-
void ieee80211_dump_pkt(struct ieee80211com*, const uint8_t*, int, int, int)¶
-
struct mbuf *ieee80211_beacon_alloc(struct ieee80211_node*)¶
-
int ieee80211_beacon_update(struct ieee80211_node*, struct mbuf*, int mcast)¶
-
void ieee80211_csa_startswitch(struct ieee80211com*, struct ieee80211_channel*, int mode, int count)¶
-
void ieee80211_csa_completeswitch(struct ieee80211com*)¶
-
void ieee80211_csa_cancelswitch(struct ieee80211com*)¶
-
void ieee80211_cac_completeswitch(struct ieee80211vap*)¶
-
void ieee80211_notify_node_join(struct ieee80211_node*, int newassoc)¶
-
void ieee80211_notify_node_leave(struct ieee80211_node*)¶
-
void ieee80211_notify_scan_done(struct ieee80211vap*)¶
-
void ieee80211_notify_wds_discover(struct ieee80211_node*)¶
-
void ieee80211_notify_csa(struct ieee80211com*, const struct ieee80211_channel*, int mode, int count)¶
-
void ieee80211_notify_radar(struct ieee80211com*, const struct ieee80211_channel*)¶
-
void ieee80211_notify_cac(struct ieee80211com*, const struct ieee80211_channel*, enum ieee80211_notify_cac_event)¶
-
void ieee80211_notify_node_deauth(struct ieee80211_node*)¶
-
void ieee80211_notify_node_auth(struct ieee80211_node*)¶
-
void ieee80211_notify_country(struct ieee80211vap*, const uint8_t[IEEE80211_ADDR_LEN], const uint8_t cc[2])¶
-
void ieee80211_notify_radio(struct ieee80211com*, int)¶
-
void ieee80211_notify_ifnet_change(struct ieee80211vap*, int)¶
Variables
-
const char *mgt_subtype_name[]¶
-
const char *ctl_subtype_name[]¶
-
const char *ieee80211_phymode_name[IEEE80211_MODE_MAX]¶
-
const int ieee80211_opcap[IEEE80211_OPMODE_MAX]¶
-
const char *ieee80211_opmode_name[]¶
-
const char *ieee80211_state_name[IEEE80211_S_MAX]¶
-
const char *ieee80211_wme_acnames[]¶
-
struct ieee80211_authenticator¶
- #include <ieee80211_proto.h>
Public Members
-
const char *ia_name¶
-
int (*ia_attach)(struct ieee80211vap*)¶
-
void (*ia_detach)(struct ieee80211vap*)¶
-
void (*ia_node_join)(struct ieee80211_node*)¶
-
void (*ia_node_leave)(struct ieee80211_node*)¶
-
const char *ia_name¶
-
struct ieee80211_aclator¶
- #include <ieee80211_proto.h>
Public Members
-
const char *iac_name¶
-
int (*iac_attach)(struct ieee80211vap*)¶
-
void (*iac_detach)(struct ieee80211vap*)¶
-
int (*iac_check)(struct ieee80211vap*, const struct ieee80211_frame *wh)¶
-
int (*iac_add)(struct ieee80211vap*, const uint8_t mac[IEEE80211_ADDR_LEN])¶
-
int (*iac_remove)(struct ieee80211vap*, const uint8_t mac[IEEE80211_ADDR_LEN])¶
-
int (*iac_flush)(struct ieee80211vap*)¶
-
int (*iac_setpolicy)(struct ieee80211vap*, int)¶
-
int (*iac_getpolicy)(struct ieee80211vap*)¶
-
int (*iac_setioctl)(struct ieee80211vap*, struct ieee80211req*)¶
-
int (*iac_getioctl)(struct ieee80211vap*, struct ieee80211req*)¶
-
const char *iac_name¶
-
struct wmeParams¶
- #include <ieee80211_proto.h>
-
struct chanAccParams¶
- #include <ieee80211_proto.h>
-
struct ieee80211_wme_state¶
- #include <ieee80211_proto.h>
Public Members
-
u_int wme_flags¶
-
u_int wme_hipri_traffic¶
-
u_int wme_hipri_switch_thresh¶
-
u_int wme_hipri_switch_hysteresis¶
-
struct chanAccParams wme_wmeChanParams¶
-
struct chanAccParams wme_wmeBssChanParams¶
-
struct chanAccParams wme_chanParams¶
-
struct chanAccParams wme_bssChanParams¶
-
int (*wme_update)(struct ieee80211com*)¶
-
u_int wme_flags¶
-
struct ieee80211_beacon_offsets¶
- #include <ieee80211_proto.h>
Public Members
-
uint8_t bo_flags[4]¶
-
uint16_t *bo_caps¶
-
uint8_t *bo_cfp¶
-
uint8_t *bo_tim¶
-
uint8_t *bo_wme¶
-
uint8_t *bo_tdma¶
-
uint8_t *bo_tim_trailer¶
-
uint16_t bo_tim_len¶
-
uint16_t bo_tim_trailer_len¶
-
uint8_t *bo_erp¶
-
uint8_t *bo_htinfo¶
-
uint8_t *bo_ath¶
-
uint8_t *bo_appie¶
-
uint16_t bo_appie_len¶
-
uint16_t bo_csa_trailer_len¶
-
uint8_t *bo_csa¶
-
uint8_t *bo_quiet¶
-
uint8_t *bo_meshconf¶
-
uint8_t *bo_vhtinfo¶
-
uint8_t *bo_spare[2]¶
-
uint8_t bo_flags[4]¶