summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/main.c
diff options
context:
space:
mode:
authorMaya Erez <qca_merez@qca.qualcomm.com>2016-05-09 21:57:11 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2016-05-11 22:45:20 +0300
commit10d599ad84a1b98450c8867ce548ea4bf0f6df1a (patch)
treeadcab3f7f9c4cd8f8574e1e7c4cc148c2bc1c209 /drivers/net/wireless/ath/wil6210/main.c
parent41842dc1f072d69ca40f36ce5032ccfd23488f51 (diff)
downloadlinux-stable-10d599ad84a1b98450c8867ce548ea4bf0f6df1a.tar.gz
linux-stable-10d599ad84a1b98450c8867ce548ea4bf0f6df1a.tar.bz2
linux-stable-10d599ad84a1b98450c8867ce548ea4bf0f6df1a.zip
wil6210: add support for device led configuration
Add the ability to configure the device led to be used for notifying the AP activity (60G device supports leds 0-2). The host can also configure the blinking frequency of the led in three states. Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c
index f7ed65144742..8e31d755bbee 100644
--- a/drivers/net/wireless/ath/wil6210/main.c
+++ b/drivers/net/wireless/ath/wil6210/main.c
@@ -841,6 +841,9 @@ int wil_reset(struct wil6210_priv *wil, bool load_fw)
wil6210_disconnect(wil, NULL, WLAN_REASON_DEAUTH_LEAVING, false);
wil_bcast_fini(wil);
+ /* Disable device led before reset*/
+ wmi_led_cfg(wil, false);
+
/* prevent NAPI from being scheduled and prevent wmi commands */
mutex_lock(&wil->wmi_mutex);
bitmap_zero(wil->status, wil_status_last);