diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-12 14:33:28 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-04-12 14:33:28 +0000 |
commit | 56a7514c237879904c363ceae7bb1f2756b6f1e3 (patch) | |
tree | b83c266bdbf3707c430d1f9dc29cc065fff9da07 /sys/net80211/ieee80211_output.c | |
parent | a8172eba13e6fb07012ffdb5867de534c9682202 (diff) |
Call if_enqueue() and if_start() instead of dereferencing the ifp
pointers.
These functions have been introduced to abstract some of the MP-
safeness^Wmadness and should be use everywhere.
Prodded by a comment from jsg@.
ok mikeb@, stsp@
Diffstat (limited to 'sys/net80211/ieee80211_output.c')
-rw-r--r-- | sys/net80211/ieee80211_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_output.c b/sys/net80211/ieee80211_output.c index 7659106ee76..1107e221f16 100644 --- a/sys/net80211/ieee80211_output.c +++ b/sys/net80211/ieee80211_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_output.c,v 1.110 2016/02/05 19:11:31 stsp Exp $ */ +/* $OpenBSD: ieee80211_output.c,v 1.111 2016/04/12 14:33:27 mpi Exp $ */ /* $NetBSD: ieee80211_output.c,v 1.13 2004/05/31 11:02:55 dyoung Exp $ */ /*- @@ -241,7 +241,7 @@ ieee80211_mgmt_output(struct ifnet *ifp, struct ieee80211_node *ni, #endif mq_enqueue(&ic->ic_mgtq, m); ifp->if_timer = 1; - (*ifp->if_start)(ifp); + if_start(ifp); return 0; } |