aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2011-10-05 05:56:01 -0400
committerLuciano Coelho <coelho@ti.com>2011-10-07 01:32:51 -0400
commit6ec45dc282f6983d5685758c5e8993bc2c818d3c (patch)
treed8197257f61fff38fcce32baae3cc08548e8d6ce /drivers
parent252efa4f978a2901039fffc934060fb8ccf82ac7 (diff)
wl12xx: move ps_compl into wlvif
move ps_compl into the per-interface data, rather than being global. Signed-off-by: Eliad Peller <eliad@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/wl12xx/event.c6
-rw-r--r--drivers/net/wireless/wl12xx/main.c2
-rw-r--r--drivers/net/wireless/wl12xx/wl12xx.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/wl12xx/event.c b/drivers/net/wireless/wl12xx/event.c
index 4e3474c11e05..7a9913a3f71c 100644
--- a/drivers/net/wireless/wl12xx/event.c
+++ b/drivers/net/wireless/wl12xx/event.c
@@ -149,9 +149,9 @@ static int wl1271_event_ps_report(struct wl1271 *wl,
149 /* enable beacon early termination */ 149 /* enable beacon early termination */
150 ret = wl1271_acx_bet_enable(wl, wlvif, true); 150 ret = wl1271_acx_bet_enable(wl, wlvif, true);
151 151
152 if (wl->ps_compl) { 152 if (wlvif->ps_compl) {
153 complete(wl->ps_compl); 153 complete(wlvif->ps_compl);
154 wl->ps_compl = NULL; 154 wlvif->ps_compl = NULL;
155 } 155 }
156 break; 156 break;
157 default: 157 default:
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 76f466380667..cb2355354bf0 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -1636,7 +1636,7 @@ static int wl1271_configure_suspend_sta(struct wl1271 *wl,
1636 if (!test_bit(WL1271_FLAG_PSM, &wl->flags)) { 1636 if (!test_bit(WL1271_FLAG_PSM, &wl->flags)) {
1637 DECLARE_COMPLETION_ONSTACK(compl); 1637 DECLARE_COMPLETION_ONSTACK(compl);
1638 1638
1639 wl->ps_compl = &compl; 1639 wlvif->ps_compl = &compl;
1640 ret = wl1271_ps_set_mode(wl, wlvif, STATION_POWER_SAVE_MODE, 1640 ret = wl1271_ps_set_mode(wl, wlvif, STATION_POWER_SAVE_MODE,
1641 wlvif->basic_rate, true); 1641 wlvif->basic_rate, true);
1642 if (ret < 0) 1642 if (ret < 0)
diff --git a/drivers/net/wireless/wl12xx/wl12xx.h b/drivers/net/wireless/wl12xx/wl12xx.h
index d6d5a7bff315..7166a79e00e4 100644
--- a/drivers/net/wireless/wl12xx/wl12xx.h
+++ b/drivers/net/wireless/wl12xx/wl12xx.h
@@ -509,7 +509,6 @@ struct wl1271 {
509 struct timer_list rx_streaming_timer; 509 struct timer_list rx_streaming_timer;
510 510
511 struct completion *elp_compl; 511 struct completion *elp_compl;
512 struct completion *ps_compl;
513 struct delayed_work elp_work; 512 struct delayed_work elp_work;
514 513
515 /* counter for ps-poll delivery failures */ 514 /* counter for ps-poll delivery failures */
@@ -651,6 +650,7 @@ struct wl12xx_vif {
651 /* Session counter for the chipset */ 650 /* Session counter for the chipset */
652 int session_counter; 651 int session_counter;
653 652
653 struct completion *ps_compl;
654 struct delayed_work pspoll_work; 654 struct delayed_work pspoll_work;
655}; 655};
656 656