summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2012-08-20 16:34:58 -0700
committerEric Nelson <eric.nelson@boundarydevices.com>2013-02-12 10:46:51 -0700
commitc5a2e580f8b84556227ef11e868a7d358ec76c33 (patch)
tree4fbd791f8740d910c954870265c8b6fe6f01e071
parent222475dc2b5f40c3133ddf85807d31f28b4bd373 (diff)
wl12xx_sdio: reset during op_remove_interface
-rw-r--r--drivers/net/wireless/wl12xx/main.c2
-rw-r--r--drivers/net/wireless/wl12xx/sdio.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c
index 81e31344640f..f1ffec0b3bb6 100644
--- a/drivers/net/wireless/wl12xx/main.c
+++ b/drivers/net/wireless/wl12xx/main.c
@@ -1767,6 +1767,8 @@ static void wl1271_op_remove_interface(struct ieee80211_hw *hw,
mutex_unlock(&wl->mutex);
cancel_work_sync(&wl->recovery_work);
+ if (wl->set_power)
+ wl->set_power(0);
}
void wl1271_configure_filters(struct wl1271 *wl, unsigned int filters)
diff --git a/drivers/net/wireless/wl12xx/sdio.c b/drivers/net/wireless/wl12xx/sdio.c
index 536e5065454b..5bd82f2c15ca 100644
--- a/drivers/net/wireless/wl12xx/sdio.c
+++ b/drivers/net/wireless/wl12xx/sdio.c
@@ -303,6 +303,7 @@ static int __devinit wl1271_probe(struct sdio_func *func,
/* Tell PM core that we don't need the card to be powered now */
pm_runtime_put_noidle(&func->dev);
+ wl->set_power = wlan_data->set_power;
wl1271_notice("initialized");
return 0;