'\" t .\" Title: ieee80211_find_sta_by_ifaddr .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Advanced driver interface .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "IEEE80211_FIND_STA_B" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Advanced driver interface" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ieee80211_find_sta_by_ifaddr \- find a station on hardware .SH "SYNOPSIS" .HP \w'struct\ ieee80211_sta\ *\ ieee80211_find_sta_by_ifaddr('u .BI "struct ieee80211_sta * ieee80211_find_sta_by_ifaddr(struct\ ieee80211_hw\ *\ " "hw" ", const\ u8\ *\ " "addr" ", const\ u8\ *\ " "localaddr" ");" .SH "ARGUMENTS" .PP \fIhw\fR .RS 4 pointer as obtained from \fBieee80211_alloc_hw\fR .RE .PP \fIaddr\fR .RS 4 remote station\*(Aqs address .RE .PP \fIlocaladdr\fR .RS 4 local address (vif\->sdata\->vif\&.addr)\&. Use NULL for \*(Aqany\*(Aq\&. .RE .SH "RETURN" .PP The station, if found\&. \fBNULL\fR otherwise\&. .SH "NOTE" .PP This function must be called under RCU lock and the resulting pointer is only valid under RCU lock as well\&. .SH "NOTE" .PP You may pass NULL for localaddr, but then you will just get the first STA that matches the remote address \*(Aqaddr\*(Aq\&. We can have multiple STA associated with multiple logical stations (e\&.g\&. consider a station connecting to another BSSID on the same AP hardware without disconnecting first)\&. In this case, the result of this method with localaddr NULL is not reliable\&. .PP DO NOT USE THIS FUNCTION with localaddr NULL if at all possible\&. .SH "AUTHOR" .PP \fBJohannes Berg\fR <\&johannes@sipsolutions.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br