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:
parent
e13e19fa23
commit
0a310468af
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user