From f42bea31392fb4aa39b6c52a276d55b8cd1679d4 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 20 Nov 2024 18:46:32 -0500 Subject: [PATCH] freebsd_wlan: Use vap->iv_output as on FreeBSD. We pass a NULL destination address, so we need to keep the added NULL check, but after the previous commit we can now use the real hook function here. WiFi still works (tested with realtekwifi.) --- src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c b/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c index bafb20608e..08354fc8f5 100644 --- a/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c +++ b/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c @@ -772,13 +772,11 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m, * a raw 802.11 frame. */ #ifdef __HAIKU__ - // FIXME why is this different on Haiku? if (!dst || dst->sa_family != AF_IEEE80211) - return ieee80211_vap_xmitpkt(vap, m); #else if (dst->sa_family != AF_IEEE80211) - return vap->iv_output(ifp, m, dst, ro); #endif + return vap->iv_output(ifp, m, dst, ro); #ifdef MAC error = mac_ifnet_check_transmit(ifp, m); if (error)