From 1d95605a030158347edf23d037296e2bdda8875e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Wed, 15 Feb 2012 23:06:06 +0100 Subject: [PATCH] FreeBSD compat layer: net80211 workaround for Haiku. * directly call the output hook as before the net80211 code merge --- src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c b/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c index bcd3c2bdac..eb5ccb309d 100644 --- a/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c +++ b/src/libs/compat/freebsd_wlan/net80211/ieee80211_output.c @@ -401,6 +401,10 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m, senderr(ENETDOWN); } vap = ifp->if_softc; + +#ifdef __HAIKU__ + return vap->iv_output(ifp, m, dst, ro); +#else /* * Hand to the 802.3 code if not tagged as * a raw 802.11 frame. @@ -490,6 +494,7 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m, return vap->iv_ic->ic_raw_xmit(ni, m, (const struct ieee80211_bpf_params *)(dst->sa_len ? dst->sa_data : NULL)); +#endif bad: if (m != NULL) m_freem(m);