1STRUCT IEEE80211_STA(9) Advanced driver interface STRUCT IEEE80211_STA(9)
2
3
4
6 struct_ieee80211_sta - station table entry
7
9 struct ieee80211_sta {
10 u32 supp_rates[NUM_NL80211_BANDS];
11 u8 addr[ETH_ALEN];
12 u16 aid;
13 struct ieee80211_sta_ht_cap ht_cap;
14 struct ieee80211_sta_vht_cap vht_cap;
15 u8 max_rx_aggregation_subframes;
16 bool wme;
17 u8 uapsd_queues;
18 u8 max_sp;
19 u8 rx_nss;
20 enum ieee80211_sta_rx_bandwidth bandwidth;
21 enum ieee80211_smps_mode smps_mode;
22 struct ieee80211_sta_rates __rcu * rates;
23 bool tdls;
24 bool tdls_initiator;
25 bool mfp;
26 u8 max_amsdu_subframes;
27 bool support_p2p_ps;
28 u16 max_rc_amsdu_len;
29 struct ieee80211_txq * txq[IEEE80211_NUM_TIDS];
30 u8 drv_priv[0];
31 };
32
34 supp_rates[NUM_NL80211_BANDS]
35 Bitmap of supported rates (per band)
36
37 addr[ETH_ALEN]
38 MAC address
39
40 aid
41 AID we assigned to the station if we're an AP
42
43 ht_cap
44 HT capabilities of this STA; restricted to our own capabilities
45
46 vht_cap
47 VHT capabilities of this STA; restricted to our own capabilities
48
49 max_rx_aggregation_subframes
50 maximal amount of frames in a single AMPDU that this station is
51 allowed to transmit to us. Can be modified by driver.
52
53 wme
54 indicates whether the STA supports QoS/WME (if local devices does,
55 otherwise always false)
56
57 uapsd_queues
58 bitmap of queues configured for uapsd. Only valid if wme is
59 supported. The bits order is like in
60 IEEE80211_WMM_IE_STA_QOSINFO_AC_*.
61
62 max_sp
63 max Service Period. Only valid if wme is supported.
64
65 rx_nss
66 in HT/VHT, the maximum number of spatial streams the station can
67 receive at the moment, changed by operating mode notifications and
68 capabilities. The value is only valid after the station moves to
69 associated state.
70
71 bandwidth
72 current bandwidth the station can receive with
73
74 smps_mode
75 current SMPS mode (off, static or dynamic)
76
77 rates
78 rate control selection table
79
80 tdls
81 indicates whether the STA is a TDLS peer
82
83 tdls_initiator
84 indicates the STA is an initiator of the TDLS link. Only valid if
85 the STA is a TDLS peer in the first place.
86
87 mfp
88 indicates whether the STA uses management frame protection or not.
89
90 max_amsdu_subframes
91 indicates the maximal number of MSDUs in a single A-MSDU. Taken
92 from the Extended Capabilities element. 0 means unlimited.
93
94 support_p2p_ps
95 indicates whether the STA supports P2P PS mechanism or not.
96
97 max_rc_amsdu_len
98 Maximum A-MSDU size in bytes recommended by rate control.
99
100 txq[IEEE80211_NUM_TIDS]
101 per-TID data TX queues (if driver uses the TXQ abstraction)
102
103 drv_priv[0]
104 data area for driver use, will always be aligned to sizeof(void
105 \*), size is determined in hw information.
106
108 A station table entry represents a station we are possibly
109 communicating with. Since stations are RCU-managed in mac80211, any
110 ieee80211_sta pointer you get access to must either be protected by
111 rcu_read_lock explicitly or implicitly, or you must take good care to
112 not use such a pointer after a call to your sta_remove callback that
113 removed it.
114
116 Johannes Berg <johannes@sipsolutions.net>
117 Author.
118
120Kernel Hackers Manual 3.10 June 2019 STRUCT IEEE80211_STA(9)