wil6210: fix interface-up check
authorHamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Tue, 8 Aug 2017 11:16:47 +0000 (14:16 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Aug 2017 18:44:14 +0000 (21:44 +0300)
commit9b2a4c2d534ca45c74488bace32323b26633ff66
tree2ae1466a168138fc1f746ab7f43539f435b18ce6
parentd1fbf07540b7d35df693e2e1d7528d8ca9bdb2c2
wil6210: fix interface-up check

While wil_open is executed, any call to netif_running
would return a success. In case there are failures
within wil_open, should not treat the device as if it
is already opened in relevant functions (like FW recovery
and runtime suspend check).

Fix that by checking the device up flag instead.

Signed-off-by: Hamad Kadmany <qca_hkadmany@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/pm.c