Lines Matching +full:ieee80211 +full:- +full:freq +full:- +full:limit

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
5 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting
46 #include <net80211/ieee80211.h>
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)
106 * 1-1 to a physical device and one or more "Virtual AP's" (VAP)
116 * e.g. device-specific callbacks.
123 uint8_t ie_data[]; /* user-specified IE's */
144 enum ieee80211_phytype ic_phytype; /* XXX wrong for multi-mode */
166 /* driver-supported software crypto caps */
181 uint16_t ic_txpowlimit; /* global tx power limit */
194 * ic_chan_avail that reflects any mode setting or user-specified
195 * limit on the set of channels to use/scan
197 * be different from ic_bsschan when we are off-channel scanning
235 /* XXX multi-bss: split out common/vap parts */
342 * of A-MPDU tx aggregation is provided; the driver may
344 * A-MPDU rx re-ordering happens automatically if the
345 * driver passes out-of-order frames to ieee80211_input
353 /* check if A-MPDU should be enabled this station+ac */
356 /* start/stop doing A-MPDU tx aggregation for a station */
371 /* start/stop doing A-MPDU rx processing for a station */
378 /* The channel width has changed (20<->2040) */
457 /* sta-mode roaming state */
468 int iv_ampdu_rxmax; /* A-MPDU rx limit (bytes) */
469 int iv_ampdu_density;/* A-MPDU density */
470 int iv_ampdu_limit; /* A-MPDU tx limit (bytes) */
471 int iv_amsdu_limit; /* A-MSDU tx limit (bytes) */
482 uint8_t *iv_tim_bitmap; /* power-save stations w/ data*/
499 /* application-specified IE's to attach to mgt frames */
538 /* operate-mode detach hook */
591 uint16_t iv_nonerpsta; /* # non-ERP stations */
595 int iv_lastnonerp; /* last time non-ERP sta noted*/
596 int iv_lastnonht; /* last time non-HT sta noted */
611 /* per-vap U-APSD state */
666 /* Atheros protocol-specific flags */
671 ((vap)->iv_flags & (ni)->ni_ath_flags & (bit))
682 #define IEEE80211_FEXT_4ADDR 0x00000100 /* CONF: apply 4-addr encap */
683 #define IEEE80211_FEXT_NONERP_PR 0x00000200 /* STATUS: non-ERP sta present*/
699 #define IEEE80211_FEXT_UAPSD 0x01000000 /* CONF: enable U-APSD */
709 #define IEEE80211_FHT_NONHT_PR 0x00000001 /* STATUS: non-HT sta present */
714 #define IEEE80211_FHT_AMPDU_TX 0x00100000 /* CONF: A-MPDU tx supported */
715 #define IEEE80211_FHT_AMPDU_RX 0x00200000 /* CONF: A-MPDU rx supported */
716 #define IEEE80211_FHT_AMSDU_TX 0x00400000 /* CONF: A-MSDU tx supported */
717 #define IEEE80211_FHT_AMSDU_RX 0x00800000 /* CONF: A-MSDU rx supported */
820 int freq, int flags);
831 #define ieee80211_get_current_channel(_ic) ((_ic)->ic_curchan)
832 #define ieee80211_get_home_channel(_ic) ((_ic)->ic_bsschan)
833 #define ieee80211_get_vap_desired_channel(_iv) ((_iv)->iv_des_chan)
861 return (ic->ic_flags_ext & IEEE80211_FEXT_BPF) != 0;
867 return (vap->iv_flags_ext & IEEE80211_FEXT_BPF) ||
868 vap->iv_ic->ic_montaps != 0;
877 taskqueue_enqueue(ic->ic_tq, task);
886 taskqueue_drain(ic->ic_tq, task);
895 vap->iv_key_update_begin(vap);
900 vap->iv_key_update_end(vap);
916 if (ic->ic_flags & IEEE80211_F_DATAPAD)
928 if (ic->ic_flags & IEEE80211_F_DATAPAD)
939 if (vap->iv_state == IEEE80211_S_RUN)
940 vap->iv_update_beacon(vap, what);
979 * This includes the node and ic/vap TX power limit as needed,
980 * but it doesn't take into account any per-rate limit.
985 struct ieee80211com *ic = ni->ni_ic;
988 txpower = ni->ni_txpower;
989 txpower = MIN(txpower, ic->ic_txpowlimit);
990 if (ic->ic_curchan != NULL) {
991 txpower = MIN(txpower, 2 * ic->ic_curchan->ic_maxregpower);
992 txpower = MIN(txpower, ic->ic_curchan->ic_maxpower);
1033 #define IEEE80211_MSG_ROAM 0x00000040 /* sta-mode roaming */
1053 #define ieee80211_msg(_vap, _m) ((_vap)->iv_debug & (_m))
1060 ieee80211_note_mac(_vap, (_ni)->ni_macaddr, _fmt, __VA_ARGS__);\
1076 ((_vap)->iv_debug & IEEE80211_MSG_DEBUG)
1078 ((_vap)->iv_debug & IEEE80211_MSG_DUMPPKTS)
1080 ((_vap)->iv_debug & IEEE80211_MSG_INPUT)
1082 ((_vap)->iv_debug & IEEE80211_MSG_RADIUS)
1084 ((_vap)->iv_debug & IEEE80211_MSG_RADDUMP)
1086 ((_vap)->iv_debug & IEEE80211_MSG_RADKEYS)
1088 ((_vap)->iv_debug & IEEE80211_MSG_SCAN)
1090 ((_vap)->iv_debug & IEEE80211_MSG_ASSOC)
1099 if ((_vap)->iv_debug & (_m)) \
1104 if ((_vap)->iv_debug & (_m)) \
1109 if ((_vap)->iv_debug & (_m)) \