diff options
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r-- | sys/net80211/ieee80211.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c index 33cea93..ebce2c6 100644 --- a/sys/net80211/ieee80211.c +++ b/sys/net80211/ieee80211.c @@ -126,6 +126,8 @@ ieee80211_ifattach(struct ieee80211com *ic) int i; ether_ifattach(ifp, ic->ic_myaddr); + ifp->if_output = ieee80211_output; + bpfattach2(ifp, DLT_IEEE802_11, sizeof(struct ieee80211_frame_addr4), &ic->ic_rawbpf); @@ -209,6 +211,9 @@ ieee80211_ifattach(struct ieee80211com *ic) */ if (ic->ic_reset == NULL) ic->ic_reset = ieee80211_default_reset; + + KASSERT(ifp->if_spare2 == NULL, ("oops, hosed")); + ifp->if_spare2 = ic; /* XXX temp backpointer */ } void |