1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

power save mode state changes should not require clocking the 802.11

state machine; use the reset method instead

MFC after:	2 weeks
This commit is contained in:
Sam Leffler 2006-07-16 19:10:41 +00:00
parent 70326a6eb6
commit 0eda166b8f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=160407

View File

@ -2321,6 +2321,13 @@ ieee80211_ioctl_set80211(struct ieee80211com *ic, u_long cmd, struct ieee80211re
error = EINVAL;
break;
}
if (error == ENETRESET) {
/*
* Switching in+out of power save mode
* should not require a state change.
*/
error = IS_UP(ic) ? ic->ic_reset(ic->ic_ifp) : 0;
}
break;
case IEEE80211_IOC_POWERSAVESLEEP:
if (ireq->i_val < 0)