Lines Matching +full:txpower +full:- +full:5 +full:g

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
58 #define IEEE80211_TXPOWER_MAX 100 /* .5 dBm (XXX units?) */
68 #define IEEE80211_BGSCAN_INTVAL_DEFAULT (5*60) /* default bg scan intvl */
93 * says that VHT is supported - and then this macro can be
97 ((ic)->ic_flags_ext & IEEE80211_FEXT_VHT)
100 ((ic)->ic_flags_ext & IEEE80211_FEXT_SEQNO_OFFLOAD)
102 ((ic)->ic_flags_ext & IEEE80211_FEXT_FRAG_OFFLOAD)
104 ((ic)->ic_flags_ext & IEEE80211_FEXT_AMPDU_OFFLOAD)
108 * 1-1 to a physical device and one or more "Virtual AP's" (VAP)
118 * e.g. device-specific callbacks.
125 uint8_t ie_data[]; /* user-specified IE's */
146 enum ieee80211_phytype ic_phytype; /* XXX wrong for multi-mode */
168 /* driver-supported software crypto caps */
196 * ic_chan_avail that reflects any mode setting or user-specified
199 * be different from ic_bsschan when we are off-channel scanning
205 * (e.g. for dynamic turbo)
237 /* XXX multi-bss: split out common/vap parts */
241 enum ieee80211_protmode ic_protmode; /* 802.11g protection mode */
344 * of A-MPDU tx aggregation is provided; the driver may
346 * A-MPDU rx re-ordering happens automatically if the
347 * driver passes out-of-order frames to ieee80211_input
355 /* check if A-MPDU should be enabled this station+ac */
358 /* start/stop doing A-MPDU tx aggregation for a station */
373 /* start/stop doing A-MPDU rx processing for a station */
380 /* The channel width has changed (20<->2040) */
459 /* sta-mode roaming state */
470 int iv_ampdu_rxmax; /* A-MPDU rx limit (bytes) */
471 int iv_ampdu_density;/* A-MPDU density */
472 int iv_ampdu_limit; /* A-MPDU tx limit (bytes) */
473 int iv_amsdu_limit; /* A-MSDU tx limit (bytes) */
484 uint8_t *iv_tim_bitmap; /* power-save stations w/ data*/
501 /* application-specified IE's to attach to mgt frames */
540 /* operate-mode detach hook */
589 enum ieee80211_protmode iv_protmode; /* 802.11g protection mode */
593 uint16_t iv_nonerpsta; /* # non-ERP stations */
597 int iv_lastnonerp; /* last time non-ERP sta noted*/
598 int iv_lastnonht; /* last time non-HT sta noted */
613 /* per-vap U-APSD state */
634 #define IEEE80211_F_PUREG 0x00000020 /* CONF: 11g w/o 11b sta's */
662 "\20\1TURBOP\2COMP\3FF\4BURST\5PRIVACY\6PUREG\10SCAN" \
668 /* Atheros protocol-specific flags */
673 ((vap)->iv_flags & (ni)->ni_ath_flags & (bit))
684 #define IEEE80211_FEXT_4ADDR 0x00000100 /* CONF: apply 4-addr encap */
685 #define IEEE80211_FEXT_NONERP_PR 0x00000200 /* STATUS: non-ERP sta present*/
701 #define IEEE80211_FEXT_UAPSD 0x01000000 /* CONF: enable U-APSD */
702 #define IEEE80211_FEXT_AMPDU_OFFLOAD 0x02000000 /* CONF: driver/fw handles AMPDU[-TX] itself */
706 "\20\2INACT\3SCANWAIT\4BGSCAN\5WPS\6TSN\7SCANREQ\10RESUME" \
713 #define IEEE80211_FHT_NONHT_PR 0x00000001 /* STATUS: non-HT sta present */
718 #define IEEE80211_FHT_AMPDU_TX 0x00100000 /* CONF: A-MPDU tx supported */
719 #define IEEE80211_FHT_AMPDU_RX 0x00200000 /* CONF: A-MPDU rx supported */
720 #define IEEE80211_FHT_AMSDU_TX 0x00400000 /* CONF: A-MSDU tx supported */
721 #define IEEE80211_FHT_AMSDU_RX 0x00800000 /* CONF: A-MSDU rx supported */
761 "\20\1VHT\2VHT40\3VHT80\4VHT80P80\5VHT160\6STBC_TX\7STBC_RX"
842 #define ieee80211_get_current_channel(_ic) ((_ic)->ic_curchan)
843 #define ieee80211_get_home_channel(_ic) ((_ic)->ic_bsschan)
844 #define ieee80211_get_vap_desired_channel(_iv) ((_iv)->iv_des_chan)
875 return (ic->ic_flags_ext & IEEE80211_FEXT_BPF) != 0; in ieee80211_radiotap_active()
881 return (vap->iv_flags_ext & IEEE80211_FEXT_BPF) || in ieee80211_radiotap_active_vap()
882 vap->iv_ic->ic_montaps != 0; in ieee80211_radiotap_active_vap()
891 taskqueue_enqueue(ic->ic_tq, task); in ieee80211_runtask()
900 taskqueue_drain(ic->ic_tq, task); in ieee80211_draintask()
909 vap->iv_key_update_begin(vap); in ieee80211_key_update_begin()
914 vap->iv_key_update_end(vap); in ieee80211_key_update_end()
930 if (ic->ic_flags & IEEE80211_F_DATAPAD) in ieee80211_hdrspace()
942 if (ic->ic_flags & IEEE80211_F_DATAPAD) in ieee80211_anyhdrspace()
953 if (vap->iv_state == IEEE80211_S_RUN) in ieee80211_beacon_notify()
954 vap->iv_update_beacon(vap, what); in ieee80211_beacon_notify()
994 * but it doesn't take into account any per-rate limit.
999 struct ieee80211com *ic = ni->ni_ic; in ieee80211_get_node_txpower()
1000 uint16_t txpower; in ieee80211_get_node_txpower() local
1002 txpower = ni->ni_txpower; in ieee80211_get_node_txpower()
1003 txpower = MIN(txpower, ic->ic_txpowlimit); in ieee80211_get_node_txpower()
1004 if (ic->ic_curchan != NULL) { in ieee80211_get_node_txpower()
1005 txpower = MIN(txpower, 2 * ic->ic_curchan->ic_maxregpower); in ieee80211_get_node_txpower()
1006 txpower = MIN(txpower, ic->ic_curchan->ic_maxpower); in ieee80211_get_node_txpower()
1009 return (txpower); in ieee80211_get_node_txpower()
1020 * that are no longer part of net80211 (e.g. IEEE80211_MSG_DOT1XSM).
1047 #define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */
1057 "\20\2TDMA\3IOCTL\4WDS\5ACTION\6RATECTL\7ROAM\10INACT\11DOTH\12SUPERG" \
1067 #define ieee80211_msg(_vap, _m) ((_vap)->iv_debug & (_m))
1074 ieee80211_note_mac(_vap, (_ni)->ni_macaddr, _fmt, __VA_ARGS__);\
1090 ((_vap)->iv_debug & IEEE80211_MSG_DEBUG)
1092 ((_vap)->iv_debug & IEEE80211_MSG_DUMPPKTS)
1094 ((_vap)->iv_debug & IEEE80211_MSG_INPUT)
1096 ((_vap)->iv_debug & IEEE80211_MSG_RADIUS)
1098 ((_vap)->iv_debug & IEEE80211_MSG_RADDUMP)
1100 ((_vap)->iv_debug & IEEE80211_MSG_RADKEYS)
1102 ((_vap)->iv_debug & IEEE80211_MSG_SCAN)
1104 ((_vap)->iv_debug & IEEE80211_MSG_ASSOC)
1113 if ((_vap)->iv_debug & (_m)) \
1118 if ((_vap)->iv_debug & (_m)) \
1123 if ((_vap)->iv_debug & (_m)) \