Lines 1658-1663
Link Here
|
1658 |
ieee80211_state_name[vap->iv_state], |
1658 |
ieee80211_state_name[vap->iv_state], |
1659 |
ieee80211_state_name[nstate]); |
1659 |
ieee80211_state_name[nstate]); |
1660 |
|
1660 |
|
|
|
1661 |
if (vap->iv_state == IEEE80211_S_RUN && nstate != IEEE80211_S_RUN) { |
1662 |
if ((error = wpi_set_pslevel(sc, 0, 0, 1)) != 0) { |
1663 |
device_printf(sc->sc_dev, |
1664 |
"%s: could not set power saving level\n", |
1665 |
__func__); |
1666 |
return error; |
1667 |
} |
1668 |
} |
1669 |
|
1661 |
switch (nstate) { |
1670 |
switch (nstate) { |
1662 |
case IEEE80211_S_SCAN: |
1671 |
case IEEE80211_S_SCAN: |
1663 |
WPI_RXON_LOCK(sc); |
1672 |
WPI_RXON_LOCK(sc); |
Lines 4326-4333
Link Here
|
4326 |
if ((vap->iv_flags & IEEE80211_F_PMGTON) && |
4335 |
if ((vap->iv_flags & IEEE80211_F_PMGTON) && |
4327 |
vap->iv_opmode != IEEE80211_M_IBSS) |
4336 |
vap->iv_opmode != IEEE80211_M_IBSS) |
4328 |
(void)wpi_set_pslevel(sc, 0, 3, 1); |
4337 |
(void)wpi_set_pslevel(sc, 0, 3, 1); |
4329 |
else |
|
|
4330 |
(void)wpi_set_pslevel(sc, 0, 0, 1); |
4331 |
|
4338 |
|
4332 |
DPRINTF(sc, WPI_DEBUG_TRACE, TRACE_STR_END, __func__); |
4339 |
DPRINTF(sc, WPI_DEBUG_TRACE, TRACE_STR_END, __func__); |
4333 |
|
4340 |
|