]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: do not attempt FW recovery if interface is down
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Tue, 28 Oct 2014 14:50:06 +0000 (16:50 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 30 Oct 2014 19:26:49 +0000 (15:26 -0400)
commitb5ee5cded43d5adeedc78c8d9a7c148be15c3cd4
tree6b6307efdcf38f598d20ad7e27c9a49f84976f6a
parent14bfb0f2f4e27ecbef939be5d0291d04c3681eec
wil6210: do not attempt FW recovery if interface is down

When interface is down, recovery flow should not be attempted.
Next ndo_open() will trigger target reset, that is FW recovery.

Doing recovery while interface is down cause internal "up", leaving
internal driver state in conflict with network stack. Then, when network
stack will call ndo_open(), kernel oops will be triggered.

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