1IEEE80211_FIND_STA_B(9) Advanced driver interface IEEE80211_FIND_STA_B(9)
2
3
4
6 ieee80211_find_sta_by_ifaddr - find a station on hardware
7
9 struct ieee80211_sta *
10 ieee80211_find_sta_by_ifaddr(struct ieee80211_hw * hw,
11 const u8 * addr,
12 const u8 * localaddr);
13
15 hw
16 pointer as obtained from ieee80211_alloc_hw
17
18 addr
19 remote station's address
20
21 localaddr
22 local address (vif->sdata->vif.addr). Use NULL for 'any'.
23
25 The station, if found. NULL otherwise.
26
28 This function must be called under RCU lock and the resulting pointer
29 is only valid under RCU lock as well.
30
32 You may pass NULL for localaddr, but then you will just get the first
33 STA that matches the remote address 'addr'. We can have multiple STA
34 associated with multiple logical stations (e.g. consider a station
35 connecting to another BSSID on the same AP hardware without
36 disconnecting first). In this case, the result of this method with
37 localaddr NULL is not reliable.
38
39 DO NOT USE THIS FUNCTION with localaddr NULL if at all possible.
40
42 Johannes Berg <johannes@sipsolutions.net>
43 Author.
44
46Kernel Hackers Manual 3.10 June 2019 IEEE80211_FIND_STA_B(9)