freebsd_network: Use if_transmit in ether_output.

This is what FreeBSD does. The default implementation (in this
same file) does what ether_output did before, but the FreeBSD
net80211 stack overrides the method.
This commit is contained in:
Augustin Cavalier 2024-11-20 18:45:44 -05:00
parent 551a9b9a01
commit 99dcbd9716

View File

@ -775,9 +775,7 @@ int
ether_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *dst,
struct route *ro)
{
int error = 0;
IFQ_HANDOFF(ifp, m, error);
return error;
return ifp->if_transmit(ifp, m);
}