diff options
author | sam <sam@FreeBSD.org> | 2009-06-02 20:51:59 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-06-02 20:51:59 +0000 |
commit | 8eb6b295587a46f778ced1f98b741a80e99a5124 (patch) | |
tree | 4aedcead511f977c91f0a65ea965a3c2a81c0839 /sys/net80211/ieee80211_proto.c | |
parent | 72f8358403bf9ff985ed2a67d082feead841c3cc (diff) | |
download | FreeBSD-src-8eb6b295587a46f778ced1f98b741a80e99a5124.zip FreeBSD-src-8eb6b295587a46f778ced1f98b741a80e99a5124.tar.gz |
remove another vestige of the null if_softc on detach hack
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r-- | sys/net80211/ieee80211_proto.c | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c index 99b995c8..7e69929 100644 --- a/sys/net80211/ieee80211_proto.c +++ b/sys/net80211/ieee80211_proto.c @@ -1220,22 +1220,12 @@ ieee80211_init(void *arg) { struct ieee80211vap *vap = arg; - /* - * This routine is publicly accessible through the vap's - * if_init method so guard against calls during detach. - * ieee80211_vap_detach null's the backpointer before - * tearing down state to signal any callback should be - * rejected/ignored. - */ - if (vap != NULL) { - IEEE80211_DPRINTF(vap, - IEEE80211_MSG_STATE | IEEE80211_MSG_DEBUG, - "%s\n", __func__); - - IEEE80211_LOCK(vap->iv_ic); - ieee80211_start_locked(vap); - IEEE80211_UNLOCK(vap->iv_ic); - } + IEEE80211_DPRINTF(vap, IEEE80211_MSG_STATE | IEEE80211_MSG_DEBUG, + "%s\n", __func__); + + IEEE80211_LOCK(vap->iv_ic); + ieee80211_start_locked(vap); + IEEE80211_UNLOCK(vap->iv_ic); } /* |