FreeBSD kernel WLAN code
|
#include <net80211/ieee80211_freebsd.h>
#include <net80211/_ieee80211.h>
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_ageq.h>
#include <net80211/ieee80211_crypto.h>
#include <net80211/ieee80211_dfs.h>
#include <net80211/ieee80211_ioctl.h>
#include <net80211/ieee80211_phy.h>
#include <net80211/ieee80211_power.h>
#include <net80211/ieee80211_node.h>
#include <net80211/ieee80211_proto.h>
#include <net80211/ieee80211_radiotap.h>
#include <net80211/ieee80211_scan.h>
Go to the source code of this file.
Data Structures | |
struct | ieee80211_appie |
struct | ieee80211com |
struct | ieee80211vap |
Macros | |
#define | IEEE80211_TXPOWER_MAX 100 /* .5 dBm (XXX units?) */ |
#define | IEEE80211_TXPOWER_MIN 0 /* kill radio */ |
#define | IEEE80211_DTIM_DEFAULT 1 /* default DTIM period */ |
#define | IEEE80211_BINTVAL_DEFAULT 100 /* default beacon interval (TU's) */ |
#define | IEEE80211_BMISS_MAX 2 /* maximum consecutive bmiss allowed */ |
#define | IEEE80211_HWBMISS_DEFAULT 7 /* h/w bmiss threshold (beacons) */ |
#define | IEEE80211_BGSCAN_INTVAL_MIN 15 /* min bg scan intvl (secs) */ |
#define | IEEE80211_BGSCAN_INTVAL_DEFAULT (5*60) /* default bg scan intvl */ |
#define | IEEE80211_BGSCAN_IDLE_MIN 100 /* min idle time (ms) */ |
#define | IEEE80211_BGSCAN_IDLE_DEFAULT 250 /* default idle time (ms) */ |
#define | IEEE80211_SCAN_VALID_MIN 10 /* min scan valid time (secs) */ |
#define | IEEE80211_SCAN_VALID_DEFAULT 60 /* default scan valid time */ |
#define | IEEE80211_PS_SLEEP 0x1 /* STA is in power saving mode */ |
#define | IEEE80211_PS_MAX_QUEUE 50 /* maximum saved packets */ |
#define | IEEE80211_FIXED_RATE_NONE 0xff |
#define | IEEE80211_TXMAX_DEFAULT 6 /* default ucast max retries */ |
#define | IEEE80211_RTS_DEFAULT IEEE80211_RTS_MAX |
#define | IEEE80211_FRAG_DEFAULT IEEE80211_FRAG_MAX |
#define | IEEE80211_MS_TO_TU(x) (((x) * 1000) / 1024) |
#define | IEEE80211_TU_TO_MS(x) (((x) * 1024) / 1000) |
#define | IEEE80211_TU_TO_TICKS(x) (((uint64_t)(x) * 1024 * hz) / (1000 * 1000)) |
#define | IEEE80211_CONF_VHT(ic) ((ic)->ic_flags_ext & IEEE80211_FEXT_VHT) |
#define | IEEE80211_CONF_SEQNO_OFFLOAD(ic) ((ic)->ic_flags_ext & IEEE80211_FEXT_SEQNO_OFFLOAD) |
#define | IEEE80211_CONF_FRAG_OFFLOAD(ic) ((ic)->ic_flags_ext & IEEE80211_FEXT_FRAG_OFFLOAD) |
#define | IEEE80211_ADDR_EQ(a1, a2) (memcmp(a1,a2,IEEE80211_ADDR_LEN) == 0) |
#define | IEEE80211_ADDR_COPY(dst, src) memcpy(dst,src,IEEE80211_ADDR_LEN) |
#define | IEEE80211_F_TURBOP 0x00000001 /* CONF: ATH Turbo enabled*/ |
#define | IEEE80211_F_COMP 0x00000002 /* CONF: ATH comp enabled */ |
#define | IEEE80211_F_FF 0x00000004 /* CONF: ATH FF enabled */ |
#define | IEEE80211_F_BURST 0x00000008 /* CONF: bursting enabled */ |
#define | IEEE80211_F_PRIVACY 0x00000010 /* CONF: privacy enabled */ |
#define | IEEE80211_F_PUREG 0x00000020 /* CONF: 11g w/o 11b sta's */ |
#define | IEEE80211_F_SCAN 0x00000080 /* STATUS: scanning */ |
#define | IEEE80211_F_SHSLOT 0x00000400 /* STATUS: use short slot time*/ |
#define | IEEE80211_F_PMGTON 0x00000800 /* CONF: Power mgmt enable */ |
#define | IEEE80211_F_DESBSSID 0x00001000 /* CONF: des_bssid is set */ |
#define | IEEE80211_F_WME 0x00002000 /* CONF: enable WME use */ |
#define | IEEE80211_F_BGSCAN 0x00004000 /* CONF: bg scan enabled (???)*/ |
#define | IEEE80211_F_SWRETRY 0x00008000 /* CONF: sw tx retry enabled */ |
#define | IEEE80211_F_SHPREAMBLE 0x00040000 /* STATUS: use short preamble */ |
#define | IEEE80211_F_DATAPAD 0x00080000 /* CONF: do alignment pad */ |
#define | IEEE80211_F_USEPROT 0x00100000 /* STATUS: protection enabled */ |
#define | IEEE80211_F_USEBARKER 0x00200000 /* STATUS: use barker preamble*/ |
#define | IEEE80211_F_CSAPENDING 0x00400000 /* STATUS: chan switch pending*/ |
#define | IEEE80211_F_WPA1 0x00800000 /* CONF: WPA enabled */ |
#define | IEEE80211_F_WPA2 0x01000000 /* CONF: WPA2 enabled */ |
#define | IEEE80211_F_WPA 0x01800000 /* CONF: WPA/WPA2 enabled */ |
#define | IEEE80211_F_DROPUNENC 0x02000000 /* CONF: drop unencrypted */ |
#define | IEEE80211_F_COUNTERM 0x04000000 /* CONF: TKIP countermeasures */ |
#define | IEEE80211_F_HIDESSID 0x08000000 /* CONF: hide SSID in beacon */ |
#define | IEEE80211_F_NOBRIDGE 0x10000000 /* CONF: dis. internal bridge */ |
#define | IEEE80211_F_PCF 0x20000000 /* CONF: PCF enabled */ |
#define | IEEE80211_F_DOTH 0x40000000 /* CONF: 11h enabled */ |
#define | IEEE80211_F_DWDS 0x80000000 /* CONF: Dynamic WDS enabled */ |
#define | IEEE80211_F_BITS |
#define | IEEE80211_F_ATHEROS (IEEE80211_F_FF | IEEE80211_F_COMP | IEEE80211_F_TURBOP) |
#define | IEEE80211_ATH_CAP(vap, ni, bit) ((vap)->iv_flags & (ni)->ni_ath_flags & (bit)) |
#define | IEEE80211_FEXT_INACT 0x00000002 /* CONF: sta inact handling */ |
#define | IEEE80211_FEXT_SCANWAIT 0x00000004 /* STATUS: awaiting scan */ |
#define | IEEE80211_FEXT_BGSCAN 0x00000008 /* STATUS: complete bgscan */ |
#define | IEEE80211_FEXT_WPS 0x00000010 /* CONF: WPS enabled */ |
#define | IEEE80211_FEXT_TSN 0x00000020 /* CONF: TSN enabled */ |
#define | IEEE80211_FEXT_SCANREQ 0x00000040 /* STATUS: scan req params */ |
#define | IEEE80211_FEXT_RESUME 0x00000080 /* STATUS: start on resume */ |
#define | IEEE80211_FEXT_4ADDR 0x00000100 /* CONF: apply 4-addr encap */ |
#define | IEEE80211_FEXT_NONERP_PR 0x00000200 /* STATUS: non-ERP sta present*/ |
#define | IEEE80211_FEXT_SWBMISS 0x00000400 /* CONF: do bmiss in s/w */ |
#define | IEEE80211_FEXT_DFS 0x00000800 /* CONF: DFS enabled */ |
#define | IEEE80211_FEXT_DOTD 0x00001000 /* CONF: 11d enabled */ |
#define | IEEE80211_FEXT_STATEWAIT 0x00002000 /* STATUS: awaiting state chg */ |
#define | IEEE80211_FEXT_REINIT 0x00004000 /* STATUS: INIT state first */ |
#define | IEEE80211_FEXT_BPF 0x00008000 /* STATUS: BPF tap present */ |
#define | IEEE80211_FEXT_WDSLEGACY 0x00010000 /* CONF: legacy WDS operation */ |
#define | IEEE80211_FEXT_PROBECHAN 0x00020000 /* CONF: probe passive channel*/ |
#define | IEEE80211_FEXT_UNIQMAC 0x00040000 /* CONF: user or computed mac */ |
#define | IEEE80211_FEXT_SCAN_OFFLOAD 0x00080000 /* CONF: scan is fully offloaded */ |
#define | IEEE80211_FEXT_SEQNO_OFFLOAD 0x00100000 /* CONF: driver does seqno insertion/allocation */ |
#define | IEEE80211_FEXT_FRAG_OFFLOAD 0x00200000 /* CONF: hardware does 802.11 fragmentation + assignment */ |
#define | IEEE80211_FEXT_VHT 0x00400000 /* CONF: VHT support */ |
#define | IEEE80211_FEXT_QUIET_IE 0x00800000 /* STATUS: quiet IE in a beacon has been added */ |
#define | IEEE80211_FEXT_UAPSD 0x01000000 /* CONF: enable U-APSD */ |
#define | IEEE80211_FEXT_BITS |
#define | IEEE80211_FHT_NONHT_PR 0x00000001 /* STATUS: non-HT sta present */ |
#define | IEEE80211_FHT_LDPC_TX 0x00010000 /* CONF: LDPC tx enabled */ |
#define | IEEE80211_FHT_LDPC_RX 0x00020000 /* CONF: LDPC rx enabled */ |
#define | IEEE80211_FHT_GF 0x00040000 /* CONF: Greenfield enabled */ |
#define | IEEE80211_FHT_HT 0x00080000 /* CONF: HT supported */ |
#define | IEEE80211_FHT_AMPDU_TX 0x00100000 /* CONF: A-MPDU tx supported */ |
#define | IEEE80211_FHT_AMPDU_RX 0x00200000 /* CONF: A-MPDU rx supported */ |
#define | IEEE80211_FHT_AMSDU_TX 0x00400000 /* CONF: A-MSDU tx supported */ |
#define | IEEE80211_FHT_AMSDU_RX 0x00800000 /* CONF: A-MSDU rx supported */ |
#define | IEEE80211_FHT_USEHT40 0x01000000 /* CONF: 20/40 use enabled */ |
#define | IEEE80211_FHT_PUREN 0x02000000 /* CONF: 11n w/o legacy sta's */ |
#define | IEEE80211_FHT_SHORTGI20 0x04000000 /* CONF: short GI in HT20 */ |
#define | IEEE80211_FHT_SHORTGI40 0x08000000 /* CONF: short GI in HT40 */ |
#define | IEEE80211_FHT_HTCOMPAT 0x10000000 /* CONF: HT vendor OUI's */ |
#define | IEEE80211_FHT_RIFS 0x20000000 /* CONF: RIFS enabled */ |
#define | IEEE80211_FHT_STBC_TX 0x40000000 /* CONF: STBC tx enabled */ |
#define | IEEE80211_FHT_STBC_RX 0x80000000 /* CONF: STBC rx enabled */ |
#define | IEEE80211_FHT_BITS |
#define | IEEE80211_FVEN_BITS "\20" |
#define | IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */ |
#define | IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */ |
#define | IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */ |
#define | IEEE80211_FVHT_USEVHT160 0x000000008 /* CONF: Use VHT160 */ |
#define | IEEE80211_FVHT_USEVHT80P80 0x000000010 /* CONF: Use VHT 80+80 */ |
#define | IEEE80211_FVHT_MASK |
#define | IEEE80211_VFHT_BITS "\20\1VHT\2VHT40\3VHT80\4VHT160\5VHT80P80" |
#define | IEEE80211_COM_DETACHED 0x00000001 /* ieee80211_ifdetach called */ |
#define | IEEE80211_COM_REF_ADD 0x00000002 /* add / remove reference */ |
#define | IEEE80211_COM_REF 0xfffffffe /* reference counter bits */ |
#define | IEEE80211_COM_REF_S 1 |
#define | IEEE80211_COM_REF_MAX (IEEE80211_COM_REF >> IEEE80211_COM_REF_S) |
#define | NET80211_CBW_FLAG_HT40 0x01 |
#define | NET80211_CBW_FLAG_VHT80 0x02 |
#define | NET80211_CBW_FLAG_VHT160 0x04 |
#define | NET80211_CBW_FLAG_VHT80P80 0x08 |
#define | ieee80211_get_current_channel(_ic) ((_ic)->ic_curchan) |
#define | ieee80211_get_home_channel(_ic) ((_ic)->ic_bsschan) |
#define | ieee80211_get_vap_desired_channel(_iv) ((_iv)->iv_des_chan) |
#define | IEEE80211_MSG_11N 0x80000000 /* 11n mode debug */ |
#define | IEEE80211_MSG_DEBUG 0x40000000 /* IFF_DEBUG equivalent */ |
#define | IEEE80211_MSG_DUMPPKTS 0x20000000 /* IFF_LINK2 equivalant */ |
#define | IEEE80211_MSG_CRYPTO 0x10000000 /* crypto work */ |
#define | IEEE80211_MSG_INPUT 0x08000000 /* input handling */ |
#define | IEEE80211_MSG_XRATE 0x04000000 /* rate set handling */ |
#define | IEEE80211_MSG_ELEMID 0x02000000 /* element id parsing */ |
#define | IEEE80211_MSG_NODE 0x01000000 /* node handling */ |
#define | IEEE80211_MSG_ASSOC 0x00800000 /* association handling */ |
#define | IEEE80211_MSG_AUTH 0x00400000 /* authentication handling */ |
#define | IEEE80211_MSG_SCAN 0x00200000 /* scanning */ |
#define | IEEE80211_MSG_OUTPUT 0x00100000 /* output handling */ |
#define | IEEE80211_MSG_STATE 0x00080000 /* state machine */ |
#define | IEEE80211_MSG_POWER 0x00040000 /* power save handling */ |
#define | IEEE80211_MSG_HWMP 0x00020000 /* hybrid mesh protocol */ |
#define | IEEE80211_MSG_DOT1XSM 0x00010000 /* 802.1x state machine */ |
#define | IEEE80211_MSG_RADIUS 0x00008000 /* 802.1x radius client */ |
#define | IEEE80211_MSG_RADDUMP 0x00004000 /* dump 802.1x radius packets */ |
#define | IEEE80211_MSG_MESH 0x00002000 /* mesh networking */ |
#define | IEEE80211_MSG_WPA 0x00001000 /* WPA/RSN protocol */ |
#define | IEEE80211_MSG_ACL 0x00000800 /* ACL handling */ |
#define | IEEE80211_MSG_WME 0x00000400 /* WME protocol */ |
#define | IEEE80211_MSG_SUPERG 0x00000200 /* Atheros SuperG protocol */ |
#define | IEEE80211_MSG_DOTH 0x00000100 /* 802.11h support */ |
#define | IEEE80211_MSG_INACT 0x00000080 /* inactivity handling */ |
#define | IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */ |
#define | IEEE80211_MSG_RATECTL 0x00000020 /* tx rate control */ |
#define | IEEE80211_MSG_ACTION 0x00000010 /* action frame handling */ |
#define | IEEE80211_MSG_WDS 0x00000008 /* WDS handling */ |
#define | IEEE80211_MSG_IOCTL 0x00000004 /* ioctl handling */ |
#define | IEEE80211_MSG_TDMA 0x00000002 /* TDMA handling */ |
#define | IEEE80211_MSG_ANY 0xffffffff /* anything */ |
#define | IEEE80211_MSG_BITS |
#define | _IEEE80211_MASKSHIFT(_v, _f) (((_v) & _f) >> _f##_S) |
#define | _IEEE80211_SHIFTMASK(_v, _f) (((_v) << _f##_S) & _f) |
#define | IEEE80211_DPRINTF(_vap, _m, _fmt, ...) |
#define | IEEE80211_NOTE(_vap, _m, _ni, _fmt, ...) |
#define | IEEE80211_NOTE_FRAME(_vap, _m, _wh, _fmt, ...) |
#define | IEEE80211_NOTE_MAC(_vap, _m, _mac, _fmt, ...) |
#define | ieee80211_msg_dumppkts(_vap) 0 |
#define | ieee80211_msg(_vap, _m) 0 |
#define | IEEE80211_DISCARD(_vap, _m, _wh, _type, _fmt, ...) |
#define | IEEE80211_DISCARD_IE(_vap, _m, _wh, _type, _fmt, ...) |
#define | IEEE80211_DISCARD_MAC(_vap, _m, _mac, _type, _fmt, ...) |
Typedefs | |
typedef void(* | ieee80211vap_attach) (struct ieee80211vap *) |
typedef void | ieee80211_com_iter_func(void *, struct ieee80211com *) |
#define _IEEE80211_MASKSHIFT | ( | _v, | |
_f | |||
) | (((_v) & _f) >> _f##_S) |
Definition at line 1019 of file ieee80211_var.h.
#define _IEEE80211_SHIFTMASK | ( | _v, | |
_f | |||
) | (((_v) << _f##_S) & _f) |
Definition at line 1020 of file ieee80211_var.h.
#define IEEE80211_ADDR_COPY | ( | dst, | |
src | |||
) | memcpy(dst,src,IEEE80211_ADDR_LEN) |
Definition at line 613 of file ieee80211_var.h.
#define IEEE80211_ADDR_EQ | ( | a1, | |
a2 | |||
) | (memcmp(a1,a2,IEEE80211_ADDR_LEN) == 0) |
Definition at line 612 of file ieee80211_var.h.
#define IEEE80211_ATH_CAP | ( | vap, | |
ni, | |||
bit | |||
) | ((vap)->iv_flags & (ni)->ni_ath_flags & (bit)) |
Definition at line 660 of file ieee80211_var.h.
#define IEEE80211_BGSCAN_IDLE_DEFAULT 250 /* default idle time (ms) */ |
Definition at line 73 of file ieee80211_var.h.
#define IEEE80211_BGSCAN_IDLE_MIN 100 /* min idle time (ms) */ |
Definition at line 72 of file ieee80211_var.h.
#define IEEE80211_BGSCAN_INTVAL_DEFAULT (5*60) /* default bg scan intvl */ |
Definition at line 70 of file ieee80211_var.h.
#define IEEE80211_BGSCAN_INTVAL_MIN 15 /* min bg scan intvl (secs) */ |
Definition at line 69 of file ieee80211_var.h.
#define IEEE80211_BINTVAL_DEFAULT 100 /* default beacon interval (TU's) */ |
Definition at line 64 of file ieee80211_var.h.
#define IEEE80211_BMISS_MAX 2 /* maximum consecutive bmiss allowed */ |
Definition at line 66 of file ieee80211_var.h.
#define IEEE80211_COM_DETACHED 0x00000001 /* ieee80211_ifdetach called */ |
Definition at line 736 of file ieee80211_var.h.
#define IEEE80211_COM_REF 0xfffffffe /* reference counter bits */ |
Definition at line 738 of file ieee80211_var.h.
#define IEEE80211_COM_REF_ADD 0x00000002 /* add / remove reference */ |
Definition at line 737 of file ieee80211_var.h.
#define IEEE80211_COM_REF_MAX (IEEE80211_COM_REF >> IEEE80211_COM_REF_S) |
Definition at line 740 of file ieee80211_var.h.
#define IEEE80211_COM_REF_S 1 |
Definition at line 739 of file ieee80211_var.h.
#define IEEE80211_CONF_FRAG_OFFLOAD | ( | ic | ) | ((ic)->ic_flags_ext & IEEE80211_FEXT_FRAG_OFFLOAD) |
Definition at line 103 of file ieee80211_var.h.
#define IEEE80211_CONF_SEQNO_OFFLOAD | ( | ic | ) | ((ic)->ic_flags_ext & IEEE80211_FEXT_SEQNO_OFFLOAD) |
Definition at line 101 of file ieee80211_var.h.
#define IEEE80211_CONF_VHT | ( | ic | ) | ((ic)->ic_flags_ext & IEEE80211_FEXT_VHT) |
Definition at line 98 of file ieee80211_var.h.
#define IEEE80211_DISCARD | ( | _vap, | |
_m, | |||
_wh, | |||
_type, | |||
_fmt, | |||
... | |||
) |
Definition at line 1099 of file ieee80211_var.h.
#define IEEE80211_DISCARD_IE | ( | _vap, | |
_m, | |||
_wh, | |||
_type, | |||
_fmt, | |||
... | |||
) |
Definition at line 1100 of file ieee80211_var.h.
#define IEEE80211_DISCARD_MAC | ( | _vap, | |
_m, | |||
_mac, | |||
_type, | |||
_fmt, | |||
... | |||
) |
Definition at line 1101 of file ieee80211_var.h.
#define IEEE80211_DPRINTF | ( | _vap, | |
_m, | |||
_fmt, | |||
... | |||
) |
Definition at line 1092 of file ieee80211_var.h.
#define IEEE80211_DTIM_DEFAULT 1 /* default DTIM period */ |
Definition at line 63 of file ieee80211_var.h.
#define IEEE80211_F_ATHEROS (IEEE80211_F_FF | IEEE80211_F_COMP | IEEE80211_F_TURBOP) |
Definition at line 657 of file ieee80211_var.h.
#define IEEE80211_F_BGSCAN 0x00004000 /* CONF: bg scan enabled (???)*/ |
Definition at line 630 of file ieee80211_var.h.
#define IEEE80211_F_BITS |
Definition at line 649 of file ieee80211_var.h.
#define IEEE80211_F_BURST 0x00000008 /* CONF: bursting enabled */ |
Definition at line 619 of file ieee80211_var.h.
#define IEEE80211_F_COMP 0x00000002 /* CONF: ATH comp enabled */ |
Definition at line 617 of file ieee80211_var.h.
#define IEEE80211_F_COUNTERM 0x04000000 /* CONF: TKIP countermeasures */ |
Definition at line 642 of file ieee80211_var.h.
#define IEEE80211_F_CSAPENDING 0x00400000 /* STATUS: chan switch pending*/ |
Definition at line 637 of file ieee80211_var.h.
#define IEEE80211_F_DATAPAD 0x00080000 /* CONF: do alignment pad */ |
Definition at line 634 of file ieee80211_var.h.
#define IEEE80211_F_DESBSSID 0x00001000 /* CONF: des_bssid is set */ |
Definition at line 628 of file ieee80211_var.h.
#define IEEE80211_F_DOTH 0x40000000 /* CONF: 11h enabled */ |
Definition at line 646 of file ieee80211_var.h.
#define IEEE80211_F_DROPUNENC 0x02000000 /* CONF: drop unencrypted */ |
Definition at line 641 of file ieee80211_var.h.
#define IEEE80211_F_DWDS 0x80000000 /* CONF: Dynamic WDS enabled */ |
Definition at line 647 of file ieee80211_var.h.
#define IEEE80211_F_FF 0x00000004 /* CONF: ATH FF enabled */ |
Definition at line 618 of file ieee80211_var.h.
#define IEEE80211_F_HIDESSID 0x08000000 /* CONF: hide SSID in beacon */ |
Definition at line 643 of file ieee80211_var.h.
#define IEEE80211_F_NOBRIDGE 0x10000000 /* CONF: dis. internal bridge */ |
Definition at line 644 of file ieee80211_var.h.
#define IEEE80211_F_PCF 0x20000000 /* CONF: PCF enabled */ |
Definition at line 645 of file ieee80211_var.h.
#define IEEE80211_F_PMGTON 0x00000800 /* CONF: Power mgmt enable */ |
Definition at line 627 of file ieee80211_var.h.
#define IEEE80211_F_PRIVACY 0x00000010 /* CONF: privacy enabled */ |
Definition at line 621 of file ieee80211_var.h.
#define IEEE80211_F_PUREG 0x00000020 /* CONF: 11g w/o 11b sta's */ |
Definition at line 622 of file ieee80211_var.h.
#define IEEE80211_F_SCAN 0x00000080 /* STATUS: scanning */ |
Definition at line 623 of file ieee80211_var.h.
#define IEEE80211_F_SHPREAMBLE 0x00040000 /* STATUS: use short preamble */ |
Definition at line 633 of file ieee80211_var.h.
#define IEEE80211_F_SHSLOT 0x00000400 /* STATUS: use short slot time*/ |
Definition at line 626 of file ieee80211_var.h.
#define IEEE80211_F_SWRETRY 0x00008000 /* CONF: sw tx retry enabled */ |
Definition at line 631 of file ieee80211_var.h.
#define IEEE80211_F_TURBOP 0x00000001 /* CONF: ATH Turbo enabled*/ |
Definition at line 616 of file ieee80211_var.h.
#define IEEE80211_F_USEBARKER 0x00200000 /* STATUS: use barker preamble*/ |
Definition at line 636 of file ieee80211_var.h.
#define IEEE80211_F_USEPROT 0x00100000 /* STATUS: protection enabled */ |
Definition at line 635 of file ieee80211_var.h.
#define IEEE80211_F_WME 0x00002000 /* CONF: enable WME use */ |
Definition at line 629 of file ieee80211_var.h.
#define IEEE80211_F_WPA 0x01800000 /* CONF: WPA/WPA2 enabled */ |
Definition at line 640 of file ieee80211_var.h.
#define IEEE80211_F_WPA1 0x00800000 /* CONF: WPA enabled */ |
Definition at line 638 of file ieee80211_var.h.
#define IEEE80211_F_WPA2 0x01000000 /* CONF: WPA2 enabled */ |
Definition at line 639 of file ieee80211_var.h.
#define IEEE80211_FEXT_4ADDR 0x00000100 /* CONF: apply 4-addr encap */ |
Definition at line 672 of file ieee80211_var.h.
#define IEEE80211_FEXT_BGSCAN 0x00000008 /* STATUS: complete bgscan */ |
Definition at line 667 of file ieee80211_var.h.
#define IEEE80211_FEXT_BITS |
Definition at line 691 of file ieee80211_var.h.
#define IEEE80211_FEXT_BPF 0x00008000 /* STATUS: BPF tap present */ |
Definition at line 679 of file ieee80211_var.h.
#define IEEE80211_FEXT_DFS 0x00000800 /* CONF: DFS enabled */ |
Definition at line 675 of file ieee80211_var.h.
#define IEEE80211_FEXT_DOTD 0x00001000 /* CONF: 11d enabled */ |
Definition at line 676 of file ieee80211_var.h.
#define IEEE80211_FEXT_FRAG_OFFLOAD 0x00200000 /* CONF: hardware does 802.11 fragmentation + assignment */ |
Definition at line 686 of file ieee80211_var.h.
#define IEEE80211_FEXT_INACT 0x00000002 /* CONF: sta inact handling */ |
Definition at line 664 of file ieee80211_var.h.
#define IEEE80211_FEXT_NONERP_PR 0x00000200 /* STATUS: non-ERP sta present*/ |
Definition at line 673 of file ieee80211_var.h.
#define IEEE80211_FEXT_PROBECHAN 0x00020000 /* CONF: probe passive channel*/ |
Definition at line 682 of file ieee80211_var.h.
#define IEEE80211_FEXT_QUIET_IE 0x00800000 /* STATUS: quiet IE in a beacon has been added */ |
Definition at line 688 of file ieee80211_var.h.
#define IEEE80211_FEXT_REINIT 0x00004000 /* STATUS: INIT state first */ |
Definition at line 678 of file ieee80211_var.h.
#define IEEE80211_FEXT_RESUME 0x00000080 /* STATUS: start on resume */ |
Definition at line 671 of file ieee80211_var.h.
#define IEEE80211_FEXT_SCAN_OFFLOAD 0x00080000 /* CONF: scan is fully offloaded */ |
Definition at line 684 of file ieee80211_var.h.
#define IEEE80211_FEXT_SCANREQ 0x00000040 /* STATUS: scan req params */ |
Definition at line 670 of file ieee80211_var.h.
#define IEEE80211_FEXT_SCANWAIT 0x00000004 /* STATUS: awaiting scan */ |
Definition at line 665 of file ieee80211_var.h.
#define IEEE80211_FEXT_SEQNO_OFFLOAD 0x00100000 /* CONF: driver does seqno insertion/allocation */ |
Definition at line 685 of file ieee80211_var.h.
#define IEEE80211_FEXT_STATEWAIT 0x00002000 /* STATUS: awaiting state chg */ |
Definition at line 677 of file ieee80211_var.h.
#define IEEE80211_FEXT_SWBMISS 0x00000400 /* CONF: do bmiss in s/w */ |
Definition at line 674 of file ieee80211_var.h.
#define IEEE80211_FEXT_TSN 0x00000020 /* CONF: TSN enabled */ |
Definition at line 669 of file ieee80211_var.h.
#define IEEE80211_FEXT_UAPSD 0x01000000 /* CONF: enable U-APSD */ |
Definition at line 689 of file ieee80211_var.h.
#define IEEE80211_FEXT_UNIQMAC 0x00040000 /* CONF: user or computed mac */ |
Definition at line 683 of file ieee80211_var.h.
#define IEEE80211_FEXT_VHT 0x00400000 /* CONF: VHT support */ |
Definition at line 687 of file ieee80211_var.h.
#define IEEE80211_FEXT_WDSLEGACY 0x00010000 /* CONF: legacy WDS operation */ |
Definition at line 681 of file ieee80211_var.h.
#define IEEE80211_FEXT_WPS 0x00000010 /* CONF: WPS enabled */ |
Definition at line 668 of file ieee80211_var.h.
#define IEEE80211_FHT_AMPDU_RX 0x00200000 /* CONF: A-MPDU rx supported */ |
Definition at line 704 of file ieee80211_var.h.
#define IEEE80211_FHT_AMPDU_TX 0x00100000 /* CONF: A-MPDU tx supported */ |
Definition at line 703 of file ieee80211_var.h.
#define IEEE80211_FHT_AMSDU_RX 0x00800000 /* CONF: A-MSDU rx supported */ |
Definition at line 706 of file ieee80211_var.h.
#define IEEE80211_FHT_AMSDU_TX 0x00400000 /* CONF: A-MSDU tx supported */ |
Definition at line 705 of file ieee80211_var.h.
#define IEEE80211_FHT_BITS |
Definition at line 716 of file ieee80211_var.h.
#define IEEE80211_FHT_GF 0x00040000 /* CONF: Greenfield enabled */ |
Definition at line 701 of file ieee80211_var.h.
#define IEEE80211_FHT_HT 0x00080000 /* CONF: HT supported */ |
Definition at line 702 of file ieee80211_var.h.
#define IEEE80211_FHT_HTCOMPAT 0x10000000 /* CONF: HT vendor OUI's */ |
Definition at line 711 of file ieee80211_var.h.
#define IEEE80211_FHT_LDPC_RX 0x00020000 /* CONF: LDPC rx enabled */ |
Definition at line 700 of file ieee80211_var.h.
#define IEEE80211_FHT_LDPC_TX 0x00010000 /* CONF: LDPC tx enabled */ |
Definition at line 699 of file ieee80211_var.h.
#define IEEE80211_FHT_NONHT_PR 0x00000001 /* STATUS: non-HT sta present */ |
Definition at line 698 of file ieee80211_var.h.
#define IEEE80211_FHT_PUREN 0x02000000 /* CONF: 11n w/o legacy sta's */ |
Definition at line 708 of file ieee80211_var.h.
#define IEEE80211_FHT_RIFS 0x20000000 /* CONF: RIFS enabled */ |
Definition at line 712 of file ieee80211_var.h.
#define IEEE80211_FHT_SHORTGI20 0x04000000 /* CONF: short GI in HT20 */ |
Definition at line 709 of file ieee80211_var.h.
#define IEEE80211_FHT_SHORTGI40 0x08000000 /* CONF: short GI in HT40 */ |
Definition at line 710 of file ieee80211_var.h.
#define IEEE80211_FHT_STBC_RX 0x80000000 /* CONF: STBC rx enabled */ |
Definition at line 714 of file ieee80211_var.h.
#define IEEE80211_FHT_STBC_TX 0x40000000 /* CONF: STBC tx enabled */ |
Definition at line 713 of file ieee80211_var.h.
#define IEEE80211_FHT_USEHT40 0x01000000 /* CONF: 20/40 use enabled */ |
Definition at line 707 of file ieee80211_var.h.
#define IEEE80211_FIXED_RATE_NONE 0xff |
Definition at line 81 of file ieee80211_var.h.
#define IEEE80211_FRAG_DEFAULT IEEE80211_FRAG_MAX |
Definition at line 85 of file ieee80211_var.h.
#define IEEE80211_FVEN_BITS "\20" |
Definition at line 722 of file ieee80211_var.h.
#define IEEE80211_FVHT_MASK |
Definition at line 729 of file ieee80211_var.h.
#define IEEE80211_FVHT_USEVHT160 0x000000008 /* CONF: Use VHT160 */ |
Definition at line 727 of file ieee80211_var.h.
#define IEEE80211_FVHT_USEVHT40 0x000000002 /* CONF: Use VHT40 */ |
Definition at line 725 of file ieee80211_var.h.
#define IEEE80211_FVHT_USEVHT80 0x000000004 /* CONF: Use VHT80 */ |
Definition at line 726 of file ieee80211_var.h.
#define IEEE80211_FVHT_USEVHT80P80 0x000000010 /* CONF: Use VHT 80+80 */ |
Definition at line 728 of file ieee80211_var.h.
#define IEEE80211_FVHT_VHT 0x000000001 /* CONF: VHT supported */ |
Definition at line 724 of file ieee80211_var.h.
#define ieee80211_get_current_channel | ( | _ic | ) | ((_ic)->ic_curchan) |
Definition at line 806 of file ieee80211_var.h.
#define ieee80211_get_home_channel | ( | _ic | ) | ((_ic)->ic_bsschan) |
Definition at line 807 of file ieee80211_var.h.
#define ieee80211_get_vap_desired_channel | ( | _iv | ) | ((_iv)->iv_des_chan) |
Definition at line 808 of file ieee80211_var.h.
#define IEEE80211_HWBMISS_DEFAULT 7 /* h/w bmiss threshold (beacons) */ |
Definition at line 67 of file ieee80211_var.h.
#define IEEE80211_MS_TO_TU | ( | x | ) | (((x) * 1000) / 1024) |
Definition at line 87 of file ieee80211_var.h.
#define ieee80211_msg | ( | _vap, | |
_m | |||
) | 0 |
Definition at line 1097 of file ieee80211_var.h.
#define IEEE80211_MSG_11N 0x80000000 /* 11n mode debug */ |
Definition at line 978 of file ieee80211_var.h.
#define IEEE80211_MSG_ACL 0x00000800 /* ACL handling */ |
Definition at line 998 of file ieee80211_var.h.
#define IEEE80211_MSG_ACTION 0x00000010 /* action frame handling */ |
Definition at line 1005 of file ieee80211_var.h.
#define IEEE80211_MSG_ANY 0xffffffff /* anything */ |
Definition at line 1010 of file ieee80211_var.h.
#define IEEE80211_MSG_ASSOC 0x00800000 /* association handling */ |
Definition at line 986 of file ieee80211_var.h.
#define IEEE80211_MSG_AUTH 0x00400000 /* authentication handling */ |
Definition at line 987 of file ieee80211_var.h.
#define IEEE80211_MSG_BITS |
Definition at line 1012 of file ieee80211_var.h.
#define IEEE80211_MSG_CRYPTO 0x10000000 /* crypto work */ |
Definition at line 981 of file ieee80211_var.h.
#define IEEE80211_MSG_DEBUG 0x40000000 /* IFF_DEBUG equivalent */ |
Definition at line 979 of file ieee80211_var.h.
#define IEEE80211_MSG_DOT1XSM 0x00010000 /* 802.1x state machine */ |
Definition at line 993 of file ieee80211_var.h.
#define IEEE80211_MSG_DOTH 0x00000100 /* 802.11h support */ |
Definition at line 1001 of file ieee80211_var.h.
#define IEEE80211_MSG_DUMPPKTS 0x20000000 /* IFF_LINK2 equivalant */ |
Definition at line 980 of file ieee80211_var.h.
#define ieee80211_msg_dumppkts | ( | _vap | ) | 0 |
Definition at line 1096 of file ieee80211_var.h.
#define IEEE80211_MSG_ELEMID 0x02000000 /* element id parsing */ |
Definition at line 984 of file ieee80211_var.h.
#define IEEE80211_MSG_HWMP 0x00020000 /* hybrid mesh protocol */ |
Definition at line 992 of file ieee80211_var.h.
#define IEEE80211_MSG_INACT 0x00000080 /* inactivity handling */ |
Definition at line 1002 of file ieee80211_var.h.
#define IEEE80211_MSG_INPUT 0x08000000 /* input handling */ |
Definition at line 982 of file ieee80211_var.h.
#define IEEE80211_MSG_IOCTL 0x00000004 /* ioctl handling */ |
Definition at line 1007 of file ieee80211_var.h.
#define IEEE80211_MSG_MESH 0x00002000 /* mesh networking */ |
Definition at line 996 of file ieee80211_var.h.
#define IEEE80211_MSG_NODE 0x01000000 /* node handling */ |
Definition at line 985 of file ieee80211_var.h.
#define IEEE80211_MSG_OUTPUT 0x00100000 /* output handling */ |
Definition at line 989 of file ieee80211_var.h.
#define IEEE80211_MSG_POWER 0x00040000 /* power save handling */ |
Definition at line 991 of file ieee80211_var.h.
#define IEEE80211_MSG_RADDUMP 0x00004000 /* dump 802.1x radius packets */ |
Definition at line 995 of file ieee80211_var.h.
#define IEEE80211_MSG_RADIUS 0x00008000 /* 802.1x radius client */ |
Definition at line 994 of file ieee80211_var.h.
#define IEEE80211_MSG_RATECTL 0x00000020 /* tx rate control */ |
Definition at line 1004 of file ieee80211_var.h.
#define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */ |
Definition at line 1003 of file ieee80211_var.h.
#define IEEE80211_MSG_SCAN 0x00200000 /* scanning */ |
Definition at line 988 of file ieee80211_var.h.
#define IEEE80211_MSG_STATE 0x00080000 /* state machine */ |
Definition at line 990 of file ieee80211_var.h.
#define IEEE80211_MSG_SUPERG 0x00000200 /* Atheros SuperG protocol */ |
Definition at line 1000 of file ieee80211_var.h.
#define IEEE80211_MSG_TDMA 0x00000002 /* TDMA handling */ |
Definition at line 1008 of file ieee80211_var.h.
#define IEEE80211_MSG_WDS 0x00000008 /* WDS handling */ |
Definition at line 1006 of file ieee80211_var.h.
#define IEEE80211_MSG_WME 0x00000400 /* WME protocol */ |
Definition at line 999 of file ieee80211_var.h.
#define IEEE80211_MSG_WPA 0x00001000 /* WPA/RSN protocol */ |
Definition at line 997 of file ieee80211_var.h.
#define IEEE80211_MSG_XRATE 0x04000000 /* rate set handling */ |
Definition at line 983 of file ieee80211_var.h.
#define IEEE80211_NOTE | ( | _vap, | |
_m, | |||
_ni, | |||
_fmt, | |||
... | |||
) |
Definition at line 1093 of file ieee80211_var.h.
#define IEEE80211_NOTE_FRAME | ( | _vap, | |
_m, | |||
_wh, | |||
_fmt, | |||
... | |||
) |
Definition at line 1094 of file ieee80211_var.h.
#define IEEE80211_NOTE_MAC | ( | _vap, | |
_m, | |||
_mac, | |||
_fmt, | |||
... | |||
) |
Definition at line 1095 of file ieee80211_var.h.
#define IEEE80211_PS_MAX_QUEUE 50 /* maximum saved packets */ |
Definition at line 79 of file ieee80211_var.h.
#define IEEE80211_PS_SLEEP 0x1 /* STA is in power saving mode */ |
Definition at line 78 of file ieee80211_var.h.
#define IEEE80211_RTS_DEFAULT IEEE80211_RTS_MAX |
Definition at line 84 of file ieee80211_var.h.
#define IEEE80211_SCAN_VALID_DEFAULT 60 /* default scan valid time */ |
Definition at line 76 of file ieee80211_var.h.
#define IEEE80211_SCAN_VALID_MIN 10 /* min scan valid time (secs) */ |
Definition at line 75 of file ieee80211_var.h.
#define IEEE80211_TU_TO_MS | ( | x | ) | (((x) * 1024) / 1000) |
Definition at line 88 of file ieee80211_var.h.
#define IEEE80211_TU_TO_TICKS | ( | x | ) | (((uint64_t)(x) * 1024 * hz) / (1000 * 1000)) |
Definition at line 90 of file ieee80211_var.h.
#define IEEE80211_TXMAX_DEFAULT 6 /* default ucast max retries */ |
Definition at line 82 of file ieee80211_var.h.
#define IEEE80211_TXPOWER_MAX 100 /* .5 dBm (XXX units?) */ |
Definition at line 60 of file ieee80211_var.h.
#define IEEE80211_TXPOWER_MIN 0 /* kill radio */ |
Definition at line 61 of file ieee80211_var.h.
#define IEEE80211_VFHT_BITS "\20\1VHT\2VHT40\3VHT80\4VHT160\5VHT80P80" |
Definition at line 733 of file ieee80211_var.h.
#define NET80211_CBW_FLAG_HT40 0x01 |
Definition at line 784 of file ieee80211_var.h.
#define NET80211_CBW_FLAG_VHT160 0x04 |
Definition at line 786 of file ieee80211_var.h.
#define NET80211_CBW_FLAG_VHT80 0x02 |
Definition at line 785 of file ieee80211_var.h.
#define NET80211_CBW_FLAG_VHT80P80 0x08 |
Definition at line 787 of file ieee80211_var.h.
typedef void ieee80211_com_iter_func(void *, struct ieee80211com *) |
Definition at line 763 of file ieee80211_var.h.
typedef void(* ieee80211vap_attach) (struct ieee80211vap *) |
Definition at line 121 of file ieee80211_var.h.
int ic_printf | ( | struct ieee80211com * | , |
const char * | , | ||
... | |||
) |
int ieee80211_add_channel | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
uint8_t | ieee, | ||
uint16_t | freq, | ||
int8_t | maxregpower, | ||
uint32_t | chan_flags, | ||
const uint8_t | bands[] | ||
) |
Definition at line 1472 of file ieee80211.c.
References ieee80211_add_channel_cbw().
int ieee80211_add_channel_cbw | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
uint8_t | ieee, | ||
uint16_t | freq, | ||
int8_t | maxregpower, | ||
uint32_t | chan_flags, | ||
const uint8_t | bands[], | ||
int | cbw_flags | ||
) |
Definition at line 1451 of file ieee80211.c.
References addchan(), copychan_prev(), getflags(), and IEEE80211_MODE_MAX.
Referenced by ieee80211_add_channel().
int ieee80211_add_channel_ht40 | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
uint8_t | ieee, | ||
int8_t | maxregpower, | ||
uint32_t | flags | ||
) |
Definition at line 1504 of file ieee80211.c.
References addchan(), findchannel(), ieee80211_channel::ic_freq, ieee80211_channel::ic_ieee, IEEE80211_CHAN_HT20, IEEE80211_CHAN_HT40D, IEEE80211_CHAN_HT40U, and ieee80211_ieee2mhz().
int ieee80211_add_channel_list_2ghz | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
const uint8_t | ieee[], | ||
int | nieee, | ||
const uint8_t | bands[], | ||
int | cbw_flags | ||
) |
Definition at line 1697 of file ieee80211.c.
References add_chanlist(), getflags_2ghz(), and IEEE80211_MODE_MAX.
Referenced by ieee80211_add_channels_default_2ghz(), and ieee80211_init_channels().
int ieee80211_add_channel_list_5ghz | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
const uint8_t | ieee[], | ||
int | nieee, | ||
const uint8_t | bands[], | ||
int | cbw_flags | ||
) |
Definition at line 1722 of file ieee80211.c.
References add_chanlist(), getflags_5ghz(), and IEEE80211_MODE_MAX.
Referenced by ieee80211_init_channels().
int ieee80211_add_channels_default_2ghz | ( | struct ieee80211_channel | chans[], |
int | maxchans, | ||
int * | nchans, | ||
const uint8_t | bands[], | ||
int | cbw_flags | ||
) |
Definition at line 1711 of file ieee80211.c.
References ieee80211_add_channel_list_2ghz().
void ieee80211_announce | ( | struct ieee80211com * | ic | ) |
Definition at line 2031 of file ieee80211.c.
References ieee80211com::ic_modecaps, ic_printf(), ieee80211com::ic_sup_rates, ieee80211_ht_announce(), ieee80211_media2rate(), IEEE80211_MODE_11NA, IEEE80211_MODE_AUTO, ieee80211_phymode_name, ieee80211_rate2media(), ieee80211_vht_announce(), ieee80211_rateset::rs_nrates, and ieee80211_rateset::rs_rates.
void ieee80211_announce_channels | ( | struct ieee80211com * | ic | ) |
Definition at line 2058 of file ieee80211.c.
References ieee80211com::ic_channels, ieee80211_channel::ic_freq, ieee80211_channel::ic_ieee, ieee80211_channel::ic_maxpower, ieee80211_channel::ic_maxregpower, ieee80211_channel::ic_minpower, ieee80211com::ic_nchans, IEEE80211_IS_CHAN_108A, IEEE80211_IS_CHAN_108G, IEEE80211_IS_CHAN_A, IEEE80211_IS_CHAN_ANYG, IEEE80211_IS_CHAN_B, IEEE80211_IS_CHAN_HALF, IEEE80211_IS_CHAN_HT, IEEE80211_IS_CHAN_HT40, IEEE80211_IS_CHAN_HT40D, IEEE80211_IS_CHAN_HT40U, IEEE80211_IS_CHAN_QUARTER, IEEE80211_IS_CHAN_ST, and IEEE80211_IS_CHAN_TURBO.
|
static |
Definition at line 895 of file ieee80211_var.h.
References ieee80211com::ic_flags, ieee80211_anyhdrsize(), and IEEE80211_F_DATAPAD.
Referenced by ieee80211_dump_pkt().
|
static |
Definition at line 907 of file ieee80211_var.h.
References IEEE80211_S_RUN, ieee80211vap::iv_state, and ieee80211vap::iv_update_beacon.
Referenced by ieee80211_csa_startswitch(), ieee80211_htinfo_notify(), ieee80211_ioctl_setappie_locked(), ieee80211_notify_erp_locked(), mesh_linkchange(), and vap_update_wme().
int ieee80211_chan2ieee | ( | struct ieee80211com * | ic, |
const struct ieee80211_channel * | c | ||
) |
Definition at line 1076 of file ieee80211.c.
References ieee80211_channel::ic_ieee, ic_printf(), IEEE80211_CHAN_ANY, and IEEE80211_CHAN_ANYC.
Referenced by adhoc_newstate(), check_bss(), hostap_newstate(), ieee80211_add_csa(), ieee80211_add_htinfo_body(), ieee80211_alloc_proberesp(), ieee80211_beacon_construct(), ieee80211_create_ibss(), ieee80211_create_wds(), ieee80211_ht_update_beacon(), ieee80211_ioctl_get80211(), ieee80211_mgmt_output(), ieee80211_parse_beacon(), ieee80211_parse_csaparams(), ieee80211_scan_dump_channels(), ieee80211_send_nulldata(), ieee80211_send_probereq(), ieee80211_send_proberesp(), ieee80211_swscan_add_scan(), match_bss(), mesh_newstate(), scan_curchan_task(), and sta_newstate().
enum ieee80211_phymode ieee80211_chan2mode | ( | const struct ieee80211_channel * | chan | ) |
Definition at line 2302 of file ieee80211.c.
References ieee80211_channel::ic_flags, ieee80211_channel::ic_freq, IEEE80211_IS_CHAN_108G, IEEE80211_IS_CHAN_A, IEEE80211_IS_CHAN_ANYG, IEEE80211_IS_CHAN_B, IEEE80211_IS_CHAN_FHSS, IEEE80211_IS_CHAN_HALF, IEEE80211_IS_CHAN_HTA, IEEE80211_IS_CHAN_HTG, IEEE80211_IS_CHAN_QUARTER, IEEE80211_IS_CHAN_ST, IEEE80211_IS_CHAN_TURBO, IEEE80211_IS_CHAN_VHT_2GHZ, IEEE80211_IS_CHAN_VHT_5GHZ, IEEE80211_MODE_11A, IEEE80211_MODE_11B, IEEE80211_MODE_11G, IEEE80211_MODE_11NA, IEEE80211_MODE_11NG, IEEE80211_MODE_FH, IEEE80211_MODE_HALF, IEEE80211_MODE_QUARTER, IEEE80211_MODE_STURBO_A, IEEE80211_MODE_TURBO_A, IEEE80211_MODE_TURBO_G, IEEE80211_MODE_VHT_2GHZ, and IEEE80211_MODE_VHT_5GHZ.
Referenced by check_rate(), ieee80211_alloc_countryie(), ieee80211_alloc_node(), ieee80211_create_ibss(), ieee80211_fix_rate(), ieee80211_get_suprates(), ieee80211_media_status(), ieee80211_node_set_chan(), ieee80211_send_probereq(), ieee80211_setupcurchan(), ieee80211_sync_curchan(), ieee80211_wme_initparams_locked(), ieee80211_wme_updateparams_locked(), sta_roam_check(), and sweepchannels().
void ieee80211_chan_init | ( | struct ieee80211com * | ic | ) |
Definition at line 133 of file ieee80211.c.
References DEFAULTRATES, ieee80211com::ic_bsschan, ieee80211com::ic_chan_active, ieee80211com::ic_chan_avail, ieee80211com::ic_channels, ieee80211com::ic_csa_newchan, ieee80211com::ic_curchan, ieee80211_channel::ic_extieee, ieee80211_channel::ic_flags, ieee80211_channel::ic_freq, ieee80211_channel::ic_ieee, ieee80211_channel::ic_maxpower, ieee80211_channel::ic_maxregpower, ieee80211com::ic_modecaps, ieee80211com::ic_nchans, ieee80211com::ic_prevchan, ieee80211com::ic_rt, ieee80211com::ic_rxstream, ieee80211com::ic_txstream, IEEE80211_CHAN_ANYC, IEEE80211_CHAN_MAX, ieee80211_get_ratetable(), ieee80211_init_suphtrates(), IEEE80211_IS_CHAN_108A, IEEE80211_IS_CHAN_108G, IEEE80211_IS_CHAN_A, IEEE80211_IS_CHAN_ANYG, IEEE80211_IS_CHAN_B, IEEE80211_IS_CHAN_FHSS, IEEE80211_IS_CHAN_HALF, IEEE80211_IS_CHAN_HT40, IEEE80211_IS_CHAN_HT40U, IEEE80211_IS_CHAN_HTA, IEEE80211_IS_CHAN_HTG, IEEE80211_IS_CHAN_QUARTER, IEEE80211_IS_CHAN_ST, IEEE80211_IS_CHAN_VHTA, IEEE80211_IS_CHAN_VHTG, ieee80211_mhz2ieee(), IEEE80211_MODE_11A, IEEE80211_MODE_11B, IEEE80211_MODE_11G, IEEE80211_MODE_11NA, IEEE80211_MODE_11NG, IEEE80211_MODE_AUTO, IEEE80211_MODE_FH, IEEE80211_MODE_HALF, IEEE80211_MODE_QUARTER, IEEE80211_MODE_STURBO_A, IEEE80211_MODE_TURBO_A, IEEE80211_MODE_TURBO_G, IEEE80211_MODE_VHT_2GHZ, IEEE80211_MODE_VHT_5GHZ, ieee80211_rateset_11a, ieee80211_rateset_11b, ieee80211_rateset_11g, ieee80211_rateset_half, ieee80211_rateset_quarter, ieee80211_setmode(), ieee80211_sort_channels(), and set_vht_extchan().
Referenced by ieee80211_ifattach(), and ieee80211_setregdomain().
char ieee80211_channel_type_char | ( | const struct ieee80211_channel * | c | ) |
Definition at line 2626 of file ieee80211.c.
References IEEE80211_IS_CHAN_108A, IEEE80211_IS_CHAN_108G, IEEE80211_IS_CHAN_A, IEEE80211_IS_CHAN_ANYG, IEEE80211_IS_CHAN_B, IEEE80211_IS_CHAN_HT, IEEE80211_IS_CHAN_ST, and IEEE80211_IS_CHAN_VHT.
Referenced by ieee80211_create_ibss(), ieee80211_scan_dump_channels(), ieee80211_swscan_add_scan(), and scan_curchan_task().
void ieee80211_drain | ( | struct ieee80211com * | ic | ) |
Definition at line 2465 of file ieee80211_node.c.
References ieee80211com::ic_node_drain, ieee80211com::ic_sta, IEEE80211_M_HOSTAP, IEEE80211_M_STA, IEEE80211_NODE_AREF, IEEE80211_NODE_LOCK, IEEE80211_NODE_UNLOCK, IEEE80211_S_RUN, ieee80211vap::iv_opmode, ieee80211vap::iv_state, ieee80211_node::ni_flags, ieee80211_node::ni_rxfrag, and ieee80211_node::ni_vap.
|
static |
Definition at line 854 of file ieee80211_var.h.
References ieee80211com::ic_tq.
Referenced by ieee80211_swscan_detach(), ieee80211_vap_detach(), and ieee80211_waitfor_parent().
struct ieee80211_channel * ieee80211_find_channel | ( | struct ieee80211com * | ic, |
int | freq, | ||
int | flags | ||
) |
Definition at line 1744 of file ieee80211.c.
References findchannel(), ieee80211com::ic_channels, ieee80211_channel::ic_flags, ieee80211_channel::ic_freq, ieee80211com::ic_nchans, ieee80211com::ic_prevchan, and IEEE80211_CHAN_ALLTURBO.
Referenced by add_channels(), ap_end(), demote11b(), findhtchan(), findvhtchan(), htinfo_update_chw(), ieee80211_ht_adjust_channel(), ieee80211_ioctl_chanswitch(), ieee80211_ioctl_setcurchan(), ieee80211_lookup_channel_rxstatus(), ieee80211_node_create_wds(), ieee80211_setregdomain(), ieee80211_vht_adjust_channel(), and sta_add().
struct ieee80211_channel * ieee80211_find_channel_byieee | ( | struct ieee80211com * | ic, |
int | ieee, | ||
int | flags | ||
) |
Definition at line 1763 of file ieee80211.c.
References ieee80211com::ic_channels, ieee80211_channel::ic_flags, ieee80211_channel::ic_ieee, ieee80211com::ic_nchans, ieee80211com::ic_prevchan, and IEEE80211_CHAN_ALLTURBO.
Referenced by ieee80211_parse_csaparams(), and sta_add().
struct ieee80211com * ieee80211_find_com | ( | const char * | name | ) |
Definition at line 438 of file ieee80211.c.
References ieee80211com::ic_name.
Referenced by wlan_clone_create().
struct ieee80211com * ieee80211_find_vap | ( | const uint8_t | mac[IEEE80211_ADDR_LEN] | ) |
uint32_t ieee80211_get_channel_center_freq | ( | const struct ieee80211_channel * | c | ) |
Definition at line 1542 of file ieee80211.c.
References ieee80211_channel::ic_freq.
uint32_t ieee80211_get_channel_center_freq1 | ( | const struct ieee80211_channel * | c | ) |
Definition at line 1561 of file ieee80211.c.
References ieee80211_channel::ic_flags, ieee80211_channel::ic_freq, ieee80211_channel::ic_vht_ch_freq1, ieee80211_ieee2mhz(), IEEE80211_IS_CHAN_HT40D, IEEE80211_IS_CHAN_HT40U, and IEEE80211_IS_CHAN_VHT.
uint32_t ieee80211_get_channel_center_freq2 | ( | const struct ieee80211_channel * | c | ) |
Definition at line 1585 of file ieee80211.c.
References ieee80211_channel::ic_flags, ieee80211_channel::ic_vht_ch_freq2, ieee80211_ieee2mhz(), and IEEE80211_IS_CHAN_VHT.
|
static |
Definition at line 953 of file ieee80211_var.h.
References ieee80211com::ic_curchan, ieee80211_channel::ic_maxpower, ieee80211_channel::ic_maxregpower, ieee80211com::ic_txpowlimit, ieee80211_node::ni_ic, and ieee80211_node::ni_txpower.
const struct ieee80211_htrateset * ieee80211_get_suphtrates | ( | struct ieee80211com * | ic, |
const struct ieee80211_channel * | c | ||
) |
Definition at line 2024 of file ieee80211.c.
References ieee80211com::ic_sup_htrates.
Referenced by ieee80211_fix_rate(), and ieee80211_node_set_chan().
const struct ieee80211_rateset * ieee80211_get_suprates | ( | struct ieee80211com * | ic, |
const struct ieee80211_channel * | c | ||
) |
Definition at line 2016 of file ieee80211.c.
References ieee80211com::ic_sup_rates, and ieee80211_chan2mode().
Referenced by check_rate(), ieee80211_alloc_proberesp(), ieee80211_fix_rate(), ieee80211_node_set_chan(), ieee80211_probereq_ie(), ieee80211_probereq_ie_len(), mesh_send_action_meshpeering_confirm(), and mesh_send_action_meshpeering_open().
|
static |
Definition at line 883 of file ieee80211_var.h.
References ieee80211com::ic_flags, IEEE80211_F_DATAPAD, and ieee80211_hdrsize().
Referenced by adhoc_input(), ccmp_encap(), hostap_input(), mesh_forward(), mesh_input(), sta_input(), tkip_demic(), tkip_encap(), tkip_enmic(), wds_input(), and wep_encap().
|
static |
Definition at line 918 of file ieee80211_var.h.
References IEEE80211_FHT_HT, IEEE80211_FHT_USEHT40, IEEE80211_IS_CHAN_HT, and IEEE80211_IS_CHAN_HT40.
Referenced by gethtadjustflags(), hostap_newstate(), ieee80211_ht_wds_init(), ieee80211_setupcurchan(), and mesh_newstate().
u_int ieee80211_ieee2mhz | ( | u_int | chan, |
u_int | flags | ||
) |
Definition at line 1089 of file ieee80211.c.
References IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_5GHZ, IEEE80211_CHAN_GSM, IEEE80211_CHAN_HALF, and IEEE80211_CHAN_QUARTER.
Referenced by add_chanlist(), addchan(), ieee80211_add_channel_ht40(), ieee80211_get_channel_center_freq1(), and ieee80211_get_channel_center_freq2().
int void ieee80211_ifattach | ( | struct ieee80211com * | ic | ) |
Definition at line 328 of file ieee80211.c.
References ieee80211com::ic_bintval, ieee80211com::ic_hash_key, ieee80211com::ic_ierrors, ieee80211com::ic_lintval, ieee80211com::ic_name, ieee80211com::ic_oerrors, ieee80211com::ic_tq, ieee80211com::ic_txpowlimit, ieee80211com::ic_update_chw, ieee80211com::ic_update_mcast, ieee80211com::ic_update_promisc, IEEE80211_BINTVAL_DEFAULT, ieee80211_chan_init(), ieee80211_crypto_attach(), ieee80211_dfs_attach(), ieee80211_ht_attach(), IEEE80211_LOCK_INIT, ieee80211_node_attach(), ieee80211_power_attach(), ieee80211_proto_attach(), ieee80211_regdomain_attach(), ieee80211_scan_attach(), ieee80211_superg_attach(), ieee80211_sysctl_attach(), IEEE80211_TX_LOCK_INIT, IEEE80211_TXPOWER_MAX, ieee80211_vht_attach(), null_update_chw(), null_update_mcast(), and null_update_promisc().
void ieee80211_ifdetach | ( | struct ieee80211com * | ic | ) |
Definition at line 385 of file ieee80211.c.
References ieee80211com::ic_ierrors, ieee80211com::ic_oerrors, ieee80211com::ic_restart_task, ieee80211com::ic_tq, ieee80211_com_vdetach(), ieee80211_crypto_detach(), ieee80211_dfs_detach(), ieee80211_ht_detach(), IEEE80211_LOCK_DESTROY, ieee80211_node_detach(), ieee80211_power_detach(), ieee80211_proto_detach(), ieee80211_regdomain_detach(), ieee80211_scan_detach(), ieee80211_superg_detach(), ieee80211_sysctl_detach(), IEEE80211_TX_LOCK_DESTROY, ieee80211_vap_destroy(), ieee80211_vht_detach(), and ieee80211_waitfor_parent().
int ieee80211_ioctl | ( | struct ifnet * | ifp, |
u_long | cmd, | ||
caddr_t | data | ||
) |
Definition at line 3537 of file ieee80211_ioctl.c.
References ieee80211com::ic_ioctl, ieee80211com::ic_mcast_task, ieee80211com::ic_nrunning, IEEE80211_ADDR_COPY, IEEE80211_ADDR_EQ, ieee80211_allmulti(), IEEE80211_C_TDMA, ieee80211_com_vdecref(), ieee80211_com_vincref(), ieee80211_ioctl(), ieee80211_ioctl_get80211(), ieee80211_ioctl_set80211(), IEEE80211_LOCK, IEEE80211_M_AHDEMO, IEEE80211_M_MONITOR, IEEE80211_MTU_MAX, ieee80211_priv_check_vap_manage(), ieee80211_priv_check_vap_setmac(), ieee80211_promisc(), ieee80211_runtask(), IEEE80211_S_INIT, ieee80211_start_locked(), ieee80211_stop_locked(), IEEE80211_UNLOCK, ieee80211_waitfor_parent(), ieee80211vap::iv_caps, ieee80211vap::iv_ic, ieee80211vap::iv_ifflags, ieee80211vap::iv_media, ieee80211vap::iv_myaddr, ieee80211vap::iv_opmode, ieee80211vap::iv_state, ieee80211vap::iv_stats, SIOCG80211, SIOCG80211STATS, and SIOCS80211.
Referenced by ieee80211_ioctl(), and ieee80211_vap_setup().
void ieee80211_iterate_coms | ( | ieee80211_com_iter_func * | f, |
void * | arg | ||
) |
Definition at line 452 of file ieee80211.c.
|
static |
Definition at line 863 of file ieee80211_var.h.
References ieee80211vap::iv_key_update_begin.
Referenced by ieee80211_crypto_delglobalkeys(), ieee80211_crypto_delkey(), ieee80211_ioctl_set80211(), and ieee80211_ioctl_setkey().
|
static |
Definition at line 868 of file ieee80211_var.h.
References ieee80211vap::iv_key_update_end.
Referenced by ieee80211_crypto_delglobalkeys(), ieee80211_crypto_delkey(), ieee80211_ioctl_set80211(), and ieee80211_ioctl_setkey().
struct ieee80211_channel * ieee80211_lookup_channel_rxstatus | ( | struct ieee80211vap * | vap, |
const struct ieee80211_rx_stats * | rxs | ||
) |
Definition at line 1802 of file ieee80211.c.
References ieee80211_rx_stats::c_band, ieee80211_rx_stats::c_freq, ieee80211_rx_stats::c_ieee, IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_5GHZ, IEEE80211_CHAN_A, IEEE80211_CHAN_G, IEEE80211_DPRINTF, ieee80211_find_channel(), IEEE80211_MSG_INPUT, IEEE80211_R_BAND, IEEE80211_R_FREQ, IEEE80211_R_IEEE, ieee80211vap::iv_ic, and ieee80211_rx_stats::r_flags.
Referenced by adhoc_recv_mgmt(), mesh_recv_mgmt(), and sta_recv_mgmt().
uint32_t ieee80211_mac_hash | ( | const struct ieee80211com * | ic, |
const uint8_t | addr[IEEE80211_ADDR_LEN] | ||
) |
Definition at line 2607 of file ieee80211.c.
References ieee80211com::ic_hash_key, and mix.
Referenced by hwmp_discover(), hwmp_recv_prep(), ieee80211_dwds_discover(), ieee80211_mesh_forward_to_gates(), ieee80211_mesh_proxy_check(), mesh_vdetach_peers(), and wds_flush().
int ieee80211_media2rate | ( | int | mword | ) |
Definition at line 2555 of file ieee80211.c.
Referenced by ieee80211_announce().
int ieee80211_media_change | ( | struct ifnet * | ifp | ) |
Definition at line 2160 of file ieee80211.c.
References ieee80211vap::iv_des_mode, ieee80211vap::iv_flags, ieee80211vap::iv_media, and media2mode().
void ieee80211_media_status | ( | struct ifnet * | ifp, |
struct ifmediareq * | imr | ||
) |
Definition at line 2234 of file ieee80211.c.
References ieee80211com::ic_curchan, ieee80211_chan2mode(), IEEE80211_FIXED_RATE_NONE, IEEE80211_M_STA, IEEE80211_MODE_AUTO, ieee80211_rate2media(), IEEE80211_S_RUN, IEEE80211_S_SLEEP, ieee80211vap::iv_bss, ieee80211vap::iv_ic, ieee80211vap::iv_opmode, ieee80211vap::iv_state, ieee80211vap::iv_txparms, media_status(), ieee80211_node::ni_txrate, and ieee80211_txparam::ucastrate.
Referenced by ieee80211_vap_attach().
int ieee80211_mhz2ieee | ( | u_int | freq, |
u_int | flags | ||
) |
Definition at line 1031 of file ieee80211.c.
References IEEE80211_CHAN_2GHZ, IEEE80211_CHAN_5GHZ, IEEE80211_CHAN_GSM, IS_FREQ_IN_PSB, mapgsm(), and mappsb().
Referenced by ieee80211_chan_init(), ieee80211_setregdomain(), and set_vht_extchan().
|
static |
Definition at line 829 of file ieee80211_var.h.
References ieee80211com::ic_flags_ext, and IEEE80211_FEXT_BPF.
|
static |
Definition at line 835 of file ieee80211_var.h.
References ieee80211com::ic_montaps, IEEE80211_FEXT_BPF, ieee80211vap::iv_flags_ext, and ieee80211vap::iv_ic.
Referenced by adhoc_input(), hostap_input(), ieee80211_radiotap_rx_all(), mesh_input(), monitor_input(), sta_input(), and wds_input().
void ieee80211_radiotap_attach | ( | struct ieee80211com * | ic, |
struct ieee80211_radiotap_header * | th, | ||
int | tlen, | ||
uint32_t | tx_radiotap, | ||
struct ieee80211_radiotap_header * | rh, | ||
int | rlen, | ||
uint32_t | rx_radiotap | ||
) |
Definition at line 56 of file ieee80211_radiotap.c.
References ieee80211_radiotap_attachv().
void ieee80211_radiotap_attachv | ( | struct ieee80211com * | ic, |
struct ieee80211_radiotap_header * | th, | ||
int | tlen, | ||
int | n_tx_v, | ||
uint32_t | tx_radiotap, | ||
struct ieee80211_radiotap_header * | rh, | ||
int | rlen, | ||
int | n_rx_v, | ||
uint32_t | rx_radiotap | ||
) |
Definition at line 65 of file ieee80211_radiotap.c.
References B, ic_printf(), ieee80211com::ic_rh, ieee80211com::ic_rxchan, ieee80211com::ic_th, ieee80211com::ic_txchan, IEEE80211_RADIOTAP_CHANNEL, IEEE80211_RADIOTAP_XCHANNEL, ieee80211_radiotap_header::it_len, ieee80211_radiotap_header::it_present, and radiotap_offset().
Referenced by ieee80211_radiotap_attach().
void ieee80211_radiotap_chan_change | ( | struct ieee80211com * | ic | ) |
Definition at line 165 of file ieee80211_radiotap.c.
References ieee80211com::ic_curchan, ieee80211com::ic_rh, ieee80211com::ic_rxchan, ieee80211com::ic_th, ieee80211com::ic_txchan, IEEE80211_RADIOTAP_CHANNEL, IEEE80211_RADIOTAP_XCHANNEL, ieee80211_radiotap_header::it_present, set_channel(), and set_xchannel().
Referenced by ieee80211_sync_curchan(), scan_curchan_task(), scan_end(), and update_channel().
void ieee80211_radiotap_detach | ( | struct ieee80211com * | ic | ) |
Definition at line 109 of file ieee80211_radiotap.c.
void ieee80211_radiotap_rx | ( | struct ieee80211vap * | vap0, |
struct mbuf * | m | ||
) |
Definition at line 231 of file ieee80211_radiotap.c.
References ieee80211com::ic_montaps, ieee80211com::ic_rh, IEEE80211_FEXT_BPF, ieee80211_radiotap_header::it_len, ieee80211vap::iv_flags_ext, ieee80211vap::iv_ic, ieee80211vap::iv_rawbpf, and spam_vaps().
Referenced by adhoc_input(), hostap_input(), mesh_input(), monitor_input(), sta_input(), and wds_input().
void ieee80211_radiotap_rx_all | ( | struct ieee80211com * | ic, |
struct mbuf * | m | ||
) |
Definition at line 257 of file ieee80211_radiotap.c.
References ieee80211com::ic_rh, ieee80211_radiotap_active_vap(), IEEE80211_S_INIT, ieee80211_radiotap_header::it_len, ieee80211vap::iv_rawbpf, and ieee80211vap::iv_state.
void ieee80211_radiotap_tx | ( | struct ieee80211vap * | vap0, |
struct mbuf * | m | ||
) |
Definition at line 209 of file ieee80211_radiotap.c.
References ieee80211com::ic_montaps, ieee80211com::ic_th, IEEE80211_FEXT_BPF, ieee80211_radiotap_header::it_len, ieee80211vap::iv_flags_ext, ieee80211vap::iv_ic, ieee80211vap::iv_rawbpf, and spam_vaps().
void ieee80211_radiotap_vattach | ( | struct ieee80211vap * | vap | ) |
Definition at line 114 of file ieee80211_radiotap.c.
References DLT_IEEE802_11_RADIO, ieee80211com::ic_rh, ieee80211com::ic_th, ieee80211_radiotap_header::it_len, ieee80211vap::iv_ic, ieee80211vap::iv_ifp, and ieee80211vap::iv_rawbpf.
Referenced by ieee80211_vap_setup().
void ieee80211_radiotap_vdetach | ( | struct ieee80211vap * | vap | ) |
Definition at line 128 of file ieee80211_radiotap.c.
Referenced by ieee80211_vap_detach().
int ieee80211_rate2media | ( | struct ieee80211com * | ic, |
int | rate, | ||
enum | ieee80211_phymode | ||
) |
Definition at line 2360 of file ieee80211.c.
References findmedia(), ieee80211com::ic_phytype, IEEE80211_MODE_11A, IEEE80211_MODE_11B, IEEE80211_MODE_11G, IEEE80211_MODE_11NA, IEEE80211_MODE_11NG, IEEE80211_MODE_AUTO, IEEE80211_MODE_FH, IEEE80211_MODE_HALF, IEEE80211_MODE_QUARTER, IEEE80211_MODE_STURBO_A, IEEE80211_MODE_TURBO_A, IEEE80211_MODE_TURBO_G, IEEE80211_MODE_VHT_2GHZ, IEEE80211_MODE_VHT_5GHZ, IEEE80211_RATE_MCS, IEEE80211_RATE_VAL, and IEEE80211_T_FH.
Referenced by ht_getrate(), ieee80211_announce(), ieee80211_media_setup(), and ieee80211_media_status().
|
static |
Definition at line 845 of file ieee80211_var.h.
References ieee80211com::ic_tq.
Referenced by ieee80211_allmulti(), ieee80211_beacon_miss(), ieee80211_ioctl(), ieee80211_new_state_locked(), ieee80211_promisc(), ieee80211_setcurchan(), ieee80211_start_locked(), ieee80211_stop_locked(), ieee80211_swbmiss(), ieee80211_swscan_bg_scan(), ieee80211_swscan_start_scan_locked(), ieee80211_update_chw(), ieee80211_vap_set_shortslottime(), ieee80211_vap_update_erp_protmode(), ieee80211_vap_update_ht_protmode(), ieee80211_vap_update_preamble(), ieee80211_wme_updateparams_locked(), and scan_end().
int ieee80211_setmode | ( | struct ieee80211com * | ic, |
enum | ieee80211_phymode | ||
) |
Definition at line 2281 of file ieee80211.c.
References ieee80211com::ic_curmode, ieee80211com::ic_sup_rates, IEEE80211_MODE_11B, IEEE80211_MODE_11G, ieee80211_reset_erp(), and ieee80211_setbasicrates().
Referenced by ieee80211_chan_init().
int ieee80211_vap_attach | ( | struct ieee80211vap * | vap, |
ifm_change_cb_t | media_change, | ||
ifm_stat_cb_t | media_stat, | ||
const uint8_t | macaddr[IEEE80211_ADDR_LEN] | ||
) |
Definition at line 665 of file ieee80211.c.
References ieee80211com::ic_name, IEEE80211_ADDR_COPY, IEEE80211_DPRINTF, IEEE80211_F_BURST, IEEE80211_F_PCF, IEEE80211_F_TURBOP, IEEE80211_F_WME, IEEE80211_FHT_HT, IEEE80211_FHT_USEHT40, IEEE80211_FVHT_USEVHT160, IEEE80211_FVHT_USEVHT40, IEEE80211_FVHT_USEVHT80, IEEE80211_FVHT_USEVHT80P80, IEEE80211_FVHT_VHT, IEEE80211_LOCK, IEEE80211_M_STA, ieee80211_media_setup(), ieee80211_media_status(), IEEE80211_MSG_STATE, ieee80211_node_latevattach(), ieee80211_opmode_name, ieee80211_output(), ieee80211_power_latevattach(), ieee80211_syncflag_ht_locked(), ieee80211_syncflag_locked(), ieee80211_syncflag_vht_locked(), IEEE80211_UNLOCK, ieee80211vap::iv_caps, ieee80211vap::iv_flags, ieee80211vap::iv_flags_ext, ieee80211vap::iv_ic, ieee80211vap::iv_ifp, ieee80211vap::iv_media, ieee80211vap::iv_myaddr, ieee80211vap::iv_opmode, ieee80211vap::iv_output, and maxrate().
void ieee80211_vap_detach | ( | struct ieee80211vap * | vap | ) |
Definition at line 729 of file ieee80211.c.
References ieee80211com::ic_name, ieee80211com::ic_parent_task, ieee80211_allmulti(), ieee80211_crypto_vdetach(), IEEE80211_DPRINTF, ieee80211_draintask(), IEEE80211_F_BURST, IEEE80211_F_PCF, IEEE80211_F_TURBOP, IEEE80211_F_WME, IEEE80211_FEXT_BPF, IEEE80211_FHT_HT, IEEE80211_FHT_USEHT40, IEEE80211_FVHT_USEVHT160, IEEE80211_FVHT_USEVHT40, IEEE80211_FVHT_USEVHT80, IEEE80211_FVHT_USEVHT80P80, IEEE80211_FVHT_VHT, ieee80211_ht_vdetach(), IEEE80211_LOCK, IEEE80211_MSG_STATE, ieee80211_node_vdetach(), ieee80211_opmode_name, ieee80211_power_vdetach(), ieee80211_promisc(), ieee80211_proto_vdetach(), ieee80211_radiotap_vdetach(), ieee80211_regdomain_vdetach(), IEEE80211_S_INIT, ieee80211_scan_vdetach(), ieee80211_stop(), ieee80211_superg_vdetach(), ieee80211_syncflag_ext_locked(), ieee80211_syncflag_ht_locked(), ieee80211_syncflag_locked(), ieee80211_syncflag_vht_locked(), ieee80211_sysctl_vdetach(), IEEE80211_UNLOCK, ieee80211_vht_vdetach(), ieee80211vap::iv_ic, ieee80211vap::iv_ifflags, ieee80211vap::iv_ifp, ieee80211vap::iv_media, ieee80211vap::iv_nstate_task, ieee80211vap::iv_opmode, ieee80211vap::iv_state, ieee80211vap::iv_swbmiss_task, and ieee80211vap::iv_wme_task.
int ieee80211_vap_setup | ( | struct ieee80211com * | ic, |
struct ieee80211vap * | vap, | ||
const char | name[IFNAMSIZ], | ||
int | unit, | ||
enum ieee80211_opmode | opmode, | ||
int | flags, | ||
const uint8_t | bssid[IEEE80211_ADDR_LEN] | ||
) |
Definition at line 524 of file ieee80211.c.
References default_reset(), default_update_deftxkey(), ieee80211com::ic_caps, ieee80211com::ic_flags, ieee80211com::ic_flags_ext, ieee80211com::ic_flags_ven, ieee80211com::ic_htcaps, ieee80211com::ic_htextcaps, ieee80211com::ic_macaddr, ic_printf(), ieee80211com::ic_vhtcaps, ieee80211com::ic_vhtextcaps, IEEE80211_ADDR_COPY, IEEE80211_C_BGSCAN, IEEE80211_C_BURST, IEEE80211_C_DFS, IEEE80211_C_TDMA, IEEE80211_C_UAPSD, IEEE80211_C_WME, IEEE80211_CHAN_ANYC, IEEE80211_CLONE_BSSID, IEEE80211_CLONE_MACADDR, IEEE80211_CLONE_NOBEACONS, IEEE80211_CLONE_TDMA, IEEE80211_CLONE_WDSLEGACY, ieee80211_crypto_vattach(), IEEE80211_DTIM_DEFAULT, IEEE80211_F_BGSCAN, IEEE80211_F_BURST, IEEE80211_F_DESBSSID, IEEE80211_F_DOTH, IEEE80211_F_WME, IEEE80211_FEXT_DFS, IEEE80211_FEXT_SWBMISS, IEEE80211_FEXT_UAPSD, IEEE80211_FEXT_UNIQMAC, IEEE80211_FEXT_WDSLEGACY, ieee80211_get_counter(), ieee80211_ht_vattach(), IEEE80211_HWBMISS_DEFAULT, ieee80211_init(), ieee80211_ioctl(), IEEE80211_M_AHDEMO, IEEE80211_M_HOSTAP, IEEE80211_M_STA, IEEE80211_M_WDS, ieee80211_node_vattach(), ieee80211_opcap, ieee80211_power_vattach(), ieee80211_proto_vattach(), ieee80211_radiotap_vattach(), IEEE80211_RATECTL_NONE, ieee80211_ratectl_set(), ieee80211_regdomain_vattach(), ieee80211_scan_vattach(), ieee80211_superg_vattach(), ieee80211_sysctl_vattach(), ieee80211_vap_qflush(), ieee80211_vap_reset_erp(), ieee80211_vap_transmit(), ieee80211_vht_vattach(), ieee80211vap::iv_bmissthreshold, ieee80211vap::iv_caps, ieee80211vap::iv_des_bssid, ieee80211vap::iv_des_chan, ieee80211vap::iv_dtim_period, ieee80211vap::iv_flags, ieee80211vap::iv_flags_ext, ieee80211vap::iv_flags_ven, ieee80211vap::iv_htcaps, ieee80211vap::iv_htextcaps, ieee80211vap::iv_ic, ieee80211vap::iv_ifp, ieee80211vap::iv_myaddr, ieee80211vap::iv_opmode, ieee80211vap::iv_reset, ieee80211vap::iv_update_deftxkey, ieee80211vap::iv_vhtcaps, and ieee80211vap::iv_vhtextcaps.
|
static |
Definition at line 930 of file ieee80211_var.h.
References IEEE80211_FVHT_USEVHT160, IEEE80211_FVHT_USEVHT40, IEEE80211_FVHT_USEVHT80, IEEE80211_FVHT_USEVHT80P80, IEEE80211_FVHT_VHT, IEEE80211_IS_CHAN_VHT, IEEE80211_IS_CHAN_VHT160, IEEE80211_IS_CHAN_VHT40, IEEE80211_IS_CHAN_VHT80, and IEEE80211_IS_CHAN_VHT80P80.
Referenced by getvhtadjustflags(), and ieee80211_setupcurchan().
MALLOC_DECLARE | ( | M_80211_VAP | ) |