Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194202
b: refs/heads/master
c: 50c500a
h: refs/heads/master
v: v3
  • Loading branch information
Juuso Oikarinen authored and John W. Linville committed Apr 6, 2010
1 parent d403542 commit 8425a3c
Show file tree
Hide file tree
Showing 3 changed files with 12 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: 606c1487ac894798121bc2c64d27c1953c5a6210
refs/heads/master: 50c500ad3da49f866628d60d49645f4f8f4ff92c
7 changes: 7 additions & 0 deletions trunk/drivers/net/wireless/wl12xx/wl1271_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,13 @@ struct conf_conn_settings {
* Range: 1000 - 3600000
*/
u32 keep_alive_interval;

/*
* Maximum listen interval supported by the driver in units of beacons.
*
* Range: u16
*/
u8 max_listen_interval;
};

enum {
Expand Down
6 changes: 4 additions & 2 deletions trunk/drivers/net/wireless/wl12xx/wl1271_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static struct conf_drv_settings default_conf = {
},
.conn = {
.wake_up_event = CONF_WAKE_UP_EVENT_DTIM,
.listen_interval = 0,
.listen_interval = 1,
.bcn_filt_mode = CONF_BCN_FILT_MODE_ENABLED,
.bcn_filt_ie_count = 1,
.bcn_filt_ie = {
Expand Down Expand Up @@ -266,7 +266,8 @@ static struct conf_drv_settings default_conf = {
.bet_enable = CONF_BET_MODE_ENABLE,
.bet_max_consecutive = 10,
.psm_entry_retries = 3,
.keep_alive_interval = 55000
.keep_alive_interval = 55000,
.max_listen_interval = 20,
},
.init = {
.radioparam = {
Expand Down Expand Up @@ -2253,6 +2254,7 @@ int wl1271_init_ieee80211(struct wl1271 *wl)
/* unit us */
/* FIXME: find a proper value */
wl->hw->channel_change_time = 10000;
wl->hw->max_listen_interval = wl->conf.conn.max_listen_interval;

wl->hw->flags = IEEE80211_HW_SIGNAL_DBM |
IEEE80211_HW_NOISE_DBM |
Expand Down

0 comments on commit 8425a3c

Please sign in to comment.