Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 256213
b: refs/heads/master
c: 0e44eb2
h: refs/heads/master
i:
  256211: f232ecd
v: v3
  • Loading branch information
Shahar Levi authored and Luciano Coelho committed Jun 27, 2011
1 parent 885fc7d commit 6916f0c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 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: c84368e01a00f449d97e8a59e1b0c24dcf70a8b3
refs/heads/master: 0e44eb209343663ad7041ebf9f5d4c393bd89ae9
11 changes: 7 additions & 4 deletions trunk/drivers/net/wireless/wl12xx/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@ static int wl1271_event_ps_report(struct wl1271 *wl,
if (ret < 0)
break;

/* enable beacon early termination */
ret = wl1271_acx_bet_enable(wl, true);
if (ret < 0)
break;
/*
* BET has only a minor effect in 5GHz and masks
* channel switch IEs, so we only enable BET on 2.4GHz
*/
if (wl->band == IEEE80211_BAND_2GHZ)
/* enable beacon early termination */
ret = wl1271_acx_bet_enable(wl, true);

if (wl->ps_compl) {
complete(wl->ps_compl);
Expand Down
8 changes: 5 additions & 3 deletions trunk/drivers/net/wireless/wl12xx/ps.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ int wl1271_ps_set_mode(struct wl1271 *wl, enum wl1271_cmd_ps_mode mode,
wl1271_debug(DEBUG_PSM, "leaving psm");

/* disable beacon early termination */
ret = wl1271_acx_bet_enable(wl, false);
if (ret < 0)
return ret;
if (wl->band == IEEE80211_BAND_2GHZ) {
ret = wl1271_acx_bet_enable(wl, false);
if (ret < 0)
return ret;
}

/* disable beacon filtering */
ret = wl1271_acx_beacon_filter_opt(wl, false);
Expand Down

0 comments on commit 6916f0c

Please sign in to comment.