summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral/rt2661.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2008-05-10 20:25:59 +0000
committerthompsa <thompsa@FreeBSD.org>2008-05-10 20:25:59 +0000
commit0b0263691d05495f691fc7677caa8a94be8c89ef (patch)
treeab4d0f466cf93d370bf1dfd3b117b1ae00fa6f46 /sys/dev/ral/rt2661.c
parenta00c8b6db2a17d2cd7ba1f6aff6ccdb439f1d2ab (diff)
downloadFreeBSD-src-0b0263691d05495f691fc7677caa8a94be8c89ef.zip
FreeBSD-src-0b0263691d05495f691fc7677caa8a94be8c89ef.tar.gz
Only start the vaps if the init routine completed.
Diffstat (limited to 'sys/dev/ral/rt2661.c')
-rw-r--r--sys/dev/ral/rt2661.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ral/rt2661.c b/sys/dev/ral/rt2661.c
index 691ac38..a197f4d 100644
--- a/sys/dev/ral/rt2661.c
+++ b/sys/dev/ral/rt2661.c
@@ -2471,7 +2471,8 @@ rt2661_init(void *priv)
rt2661_init_locked(sc);
RAL_UNLOCK(sc);
- ieee80211_start_all(ic);
+ if (ifp->if_drv_flags & IFF_DRV_RUNNING)
+ ieee80211_start_all(ic); /* start all vap's */
}
void
OpenPOWER on IntegriCloud