]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: manual FW error recovery mode
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Wed, 1 Oct 2014 12:05:24 +0000 (15:05 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 2 Oct 2014 18:23:14 +0000 (14:23 -0400)
commit5cc5e2a577fa4217fb08e9f02789547e2f84f8a1
treec4be2eee3ece31482e46388bd4873c62e8d69d4d
parentdf6aba2ad201ac165f05682f8cc69a7da5d7b28e
wil6210: manual FW error recovery mode

Introduce manual FW recovery mode. It is activated if module parameter
@no_fw_recovery set to true. May be changed at runtime.

Recovery information provided by new "recovery" debugfs file. It prints:

mode = [auto|manual]
state = [idle|pending|running]

In manual mode, after FW error, recovery won't start automatically. Instead,
after notification to user space, recovery waits in "pending" state, as indicated by the
"recovery" debugfs file. User space tools may perform data collection and allow to
continue recovery by writing "run" to the "recovery" debugfs file.
Alternatively, recovery pending may be canceled by stopping network interface
i.e. 'ifconfig wlan0 down'

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/cfg80211.c
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c