aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/wl12xx/acx.c
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2012-02-22 14:44:50 -0500
committerJohn W. Linville <linville@tuxdriver.com>2012-02-22 14:44:50 -0500
commit8715d941b2fa8591474e7d0dad66589fce1892d2 (patch)
treeec228ec158bb5b4424f898d336279c29de4cf81f /drivers/net/wireless/wl12xx/acx.c
parentca994a36f585432458ead9133fcfe05440edbb7b (diff)
parent51c4ed95a857ded6017537fd53fa00db64908954 (diff)
Merge branch 'for-linville' of git://git.kernel.org/pub/scm/linux/kernel/git/luca/wl12xx
Diffstat (limited to 'drivers/net/wireless/wl12xx/acx.c')
-rw-r--r--drivers/net/wireless/wl12xx/acx.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/drivers/net/wireless/wl12xx/acx.c b/drivers/net/wireless/wl12xx/acx.c
index 7537c401a448..bc96db0683a5 100644
--- a/drivers/net/wireless/wl12xx/acx.c
+++ b/drivers/net/wireless/wl12xx/acx.c
@@ -34,12 +34,14 @@
34#include "reg.h" 34#include "reg.h"
35#include "ps.h" 35#include "ps.h"
36 36
37int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif) 37int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif,
38 u8 wake_up_event, u8 listen_interval)
38{ 39{
39 struct acx_wake_up_condition *wake_up; 40 struct acx_wake_up_condition *wake_up;
40 int ret; 41 int ret;
41 42
42 wl1271_debug(DEBUG_ACX, "acx wake up conditions"); 43 wl1271_debug(DEBUG_ACX, "acx wake up conditions (wake_up_event %d listen_interval %d)",
44 wake_up_event, listen_interval);
43 45
44 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); 46 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL);
45 if (!wake_up) { 47 if (!wake_up) {
@@ -48,8 +50,8 @@ int wl1271_acx_wake_up_conditions(struct wl1271 *wl, struct wl12xx_vif *wlvif)
48 } 50 }
49 51
50 wake_up->role_id = wlvif->role_id; 52 wake_up->role_id = wlvif->role_id;
51 wake_up->wake_up_event = wl->conf.conn.wake_up_event; 53 wake_up->wake_up_event = wake_up_event;
52 wake_up->listen_interval = wl->conf.conn.listen_interval; 54 wake_up->listen_interval = listen_interval;
53 55
54 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS, 56 ret = wl1271_cmd_configure(wl, ACX_WAKE_UP_CONDITIONS,
55 wake_up, sizeof(*wake_up)); 57 wake_up, sizeof(*wake_up));
@@ -1459,9 +1461,10 @@ out:
1459 return ret; 1461 return ret;
1460} 1462}
1461 1463
1462int wl1271_acx_tsf_info(struct wl1271 *wl, u64 *mactime) 1464int wl12xx_acx_tsf_info(struct wl1271 *wl, struct wl12xx_vif *wlvif,
1465 u64 *mactime)
1463{ 1466{
1464 struct wl1271_acx_fw_tsf_information *tsf_info; 1467 struct wl12xx_acx_fw_tsf_information *tsf_info;
1465 int ret; 1468 int ret;
1466 1469
1467 tsf_info = kzalloc(sizeof(*tsf_info), GFP_KERNEL); 1470 tsf_info = kzalloc(sizeof(*tsf_info), GFP_KERNEL);
@@ -1470,6 +1473,8 @@ int wl1271_acx_tsf_info(struct wl1271 *wl, u64 *mactime)
1470 goto out; 1473 goto out;
1471 } 1474 }
1472 1475
1476 tsf_info->role_id = wlvif->role_id;
1477
1473 ret = wl1271_cmd_interrogate(wl, ACX_TSF_INFO, 1478 ret = wl1271_cmd_interrogate(wl, ACX_TSF_INFO,
1474 tsf_info, sizeof(*tsf_info)); 1479 tsf_info, sizeof(*tsf_info));
1475 if (ret < 0) { 1480 if (ret < 0) {