Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183259
b: refs/heads/master
c: 478fdf2
h: refs/heads/master
i:
  183257: ec94877
  183255: a2c912e
v: v3
  • Loading branch information
Kalle Valo authored and John W. Linville committed Dec 21, 2009
1 parent e307ff9 commit 48af4f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d67e261829d405ed19a6c2e648f224e352012f52
refs/heads/master: 478fdf2bcef73747eb99bc6dd3565f093942647a
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1251_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,20 +645,25 @@ static int wl1251_op_config(struct ieee80211_hw *hw, u32 changed)
* through the bss_info_changed() hook.
*/
ret = wl1251_ps_set_mode(wl, STATION_POWER_SAVE_MODE);
if (ret < 0)
goto out_sleep;
} else if (!(conf->flags & IEEE80211_CONF_PS) &&
wl->psm_requested) {
wl1251_debug(DEBUG_PSM, "psm disabled");

wl->psm_requested = false;

if (wl->psm)
if (wl->psm) {
ret = wl1251_ps_set_mode(wl, STATION_ACTIVE_MODE);
if (ret < 0)
goto out_sleep;
}
}

if (conf->power_level != wl->power_level) {
ret = wl1251_acx_tx_power(wl, conf->power_level);
if (ret < 0)
goto out;
goto out_sleep;

wl->power_level = conf->power_level;
}
Expand Down

0 comments on commit 48af4f0

Please sign in to comment.