Deleted Added
full compact
28c28
< __FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 295126 2016-02-01 17:41:21Z glebius $");
---
> __FBSDID("$FreeBSD: head/sys/net80211/ieee80211_ioctl.c 296169 2016-02-28 23:35:03Z avos $");
3292c3292
< int error = 0;
---
> int error = 0, wait = 0;
3311c3311,3313
< if (vap->iv_state == IEEE80211_S_INIT)
---
> if (vap->iv_state == IEEE80211_S_INIT) {
> if (ic->ic_nrunning == 0)
> wait = 1;
3312a3315
> }
3317a3321,3322
> if (ic->ic_nrunning == 1)
> wait = 1;
3322c3327,3328
< ieee80211_waitfor_parent(ic);
---
> if (wait)
> ieee80211_waitfor_parent(ic);