partially fix mode setting; this no longer returns an error but still

needs to handle the case where the vap is up+running

Noticed by:	"Paul B. Mahol" <onemda@gmail.com>
This commit is contained in:
Sam Leffler 2009-06-02 20:00:43 +00:00
parent e13e19fa23
commit 0a310468af

View File

@ -1186,7 +1186,7 @@ ieee80211_media_change(struct ifnet *ifp)
return EINVAL;
if (vap->iv_des_mode != newmode) {
vap->iv_des_mode = newmode;
return ENETRESET;
/* XXX kick state machine if up+running */
}
return 0;
}