sys/net8021: Add missing braces in setcurchan().

Obtained from:	DragonFlyBSD (git c69e37d6)
MFC after:	3 days
This commit is contained in:
Pedro F. Giffuni 2017-08-01 03:13:43 +00:00
parent f41e0df406
commit d2ffc7af30
2 changed files with 3 additions and 2 deletions

View File

@ -2014,9 +2014,10 @@ setcurchan(struct ieee80211vap *vap, struct ieee80211_channel *c)
/* XXX need state machine for other vap's to follow */ /* XXX need state machine for other vap's to follow */
ieee80211_setcurchan(ic, vap->iv_des_chan); ieee80211_setcurchan(ic, vap->iv_des_chan);
vap->iv_bss->ni_chan = ic->ic_curchan; vap->iv_bss->ni_chan = ic->ic_curchan;
} else } else {
ic->ic_curchan = vap->iv_des_chan; ic->ic_curchan = vap->iv_des_chan;
ic->ic_rt = ieee80211_get_ratetable(ic->ic_curchan); ic->ic_rt = ieee80211_get_ratetable(ic->ic_curchan);
}
} else { } else {
/* /*
* Need to go through the state machine in case we * Need to go through the state machine in case we