提交 68469341 编写于 作者: K Kalle Valo

ath6kl: fix WLAN_ENABLE usage in ath6kl_close()

If ath6kl_init_hw_stop() failed with an error WLAN_ENABLED would not
be cleared. Found during code review and just a theoretical issue.
Signed-off-by: NKalle Valo <kvalo@qca.qualcomm.com>
上级 5fe4dffb
...@@ -1147,7 +1147,6 @@ static int ath6kl_close(struct net_device *dev) ...@@ -1147,7 +1147,6 @@ static int ath6kl_close(struct net_device *dev)
0, 0, 0, 0, 0, 0, 0, 0, 0)) 0, 0, 0, 0, 0, 0, 0, 0, 0))
return -EIO; return -EIO;
clear_bit(WLAN_ENABLED, &vif->flags);
} }
ath6kl_cfg80211_scan_complete_event(vif, -ECANCELED); ath6kl_cfg80211_scan_complete_event(vif, -ECANCELED);
...@@ -1157,6 +1156,8 @@ static int ath6kl_close(struct net_device *dev) ...@@ -1157,6 +1156,8 @@ static int ath6kl_close(struct net_device *dev)
if (ret) if (ret)
return ret; return ret;
clear_bit(WLAN_ENABLED, &vif->flags);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册