on transition to SLEEP state mark the station in power save, not awake

MFC after:	3 days
This commit is contained in:
sam 2009-09-03 16:24:21 +00:00
parent ef39f869d5
commit c26c3edd6e

View File

@ -431,7 +431,7 @@ sta_newstate(struct ieee80211vap *vap, enum ieee80211_state nstate, int arg)
goto invalid;
break;
case IEEE80211_S_SLEEP:
ieee80211_sta_pwrsave(vap, 0);
ieee80211_sta_pwrsave(vap, 1);
break;
default:
invalid: