mirror of
https://review.haiku-os.org/haiku
synced 2024-11-23 07:18:40 +01:00
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.)
This commit is contained in:
parent
99dcbd9716
commit
f42bea3139
@ -772,13 +772,11 @@ ieee80211_output(struct ifnet *ifp, struct mbuf *m,
|
|||||||
* a raw 802.11 frame.
|
* a raw 802.11 frame.
|
||||||
*/
|
*/
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
// FIXME why is this different on Haiku?
|
|
||||||
if (!dst || dst->sa_family != AF_IEEE80211)
|
if (!dst || dst->sa_family != AF_IEEE80211)
|
||||||
return ieee80211_vap_xmitpkt(vap, m);
|
|
||||||
#else
|
#else
|
||||||
if (dst->sa_family != AF_IEEE80211)
|
if (dst->sa_family != AF_IEEE80211)
|
||||||
return vap->iv_output(ifp, m, dst, ro);
|
|
||||||
#endif
|
#endif
|
||||||
|
return vap->iv_output(ifp, m, dst, ro);
|
||||||
#ifdef MAC
|
#ifdef MAC
|
||||||
error = mac_ifnet_check_transmit(ifp, m);
|
error = mac_ifnet_check_transmit(ifp, m);
|
||||||
if (error)
|
if (error)
|
||||||
|
Loading…
Reference in New Issue
Block a user