Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107141051
D47490.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47490.diff
View Options
diff --git a/sys/compat/linuxkpi/common/src/linux_80211.c b/sys/compat/linuxkpi/common/src/linux_80211.c
--- a/sys/compat/linuxkpi/common/src/linux_80211.c
+++ b/sys/compat/linuxkpi/common/src/linux_80211.c
@@ -2763,6 +2763,10 @@
* we do use a per-[l]vif event handler to be sure we exist as we
* cannot assume that from every vap derives a vif and we have a hard
* time checking based on net80211 information.
+ * Should this ever become a real problem we could add a callback function
+ * to wlan_iflladdr() to be set optionally but that would be for a
+ * single-consumer (or needs a list) -- was just too complicated for an
+ * otherwise perfect mechanism FreeBSD already provides.
*/
static void
lkpi_vif_iflladdr(void *arg, struct ifnet *ifp)
@@ -2771,8 +2775,9 @@
struct ieee80211_vif *vif;
NET_EPOCH_ENTER(et);
- /* NB: identify vap's by if_init; left as an extra check. */
- if (ifp->if_init != ieee80211_init || (ifp->if_flags & IFF_UP) != 0) {
+ /* NB: identify vap's by if_transmit; left as an extra check. */
+ if (if_gettransmitfn(ifp) != ieee80211_vap_transmit ||
+ (if_getflags(ifp) & IFF_UP) != 0) {
NET_EPOCH_EXIT(et);
return;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 6:21 PM (20 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14566474
Default Alt Text
D47490.diff (1 KB)
Attached To
Mode
D47490: LinuxKPI: 802.11: improve lladdr change to not use ifnet internals
Attached
Detach File
Event Timeline
Log In to Comment