diff options
author | thompsa <thompsa@FreeBSD.org> | 2008-05-10 20:25:59 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2008-05-10 20:25:59 +0000 |
commit | 0b0263691d05495f691fc7677caa8a94be8c89ef (patch) | |
tree | ab4d0f466cf93d370bf1dfd3b117b1ae00fa6f46 /sys/dev/ral | |
parent | a00c8b6db2a17d2cd7ba1f6aff6ccdb439f1d2ab (diff) | |
download | FreeBSD-src-0b0263691d05495f691fc7677caa8a94be8c89ef.zip FreeBSD-src-0b0263691d05495f691fc7677caa8a94be8c89ef.tar.gz |
Only start the vaps if the init routine completed.
Diffstat (limited to 'sys/dev/ral')
-rw-r--r-- | sys/dev/ral/rt2560.c | 3 | ||||
-rw-r--r-- | sys/dev/ral/rt2661.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ral/rt2560.c b/sys/dev/ral/rt2560.c index 17a7201..9fd4346 100644 --- a/sys/dev/ral/rt2560.c +++ b/sys/dev/ral/rt2560.c @@ -2726,7 +2726,8 @@ rt2560_init(void *priv) rt2560_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 */ } static void 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 |