mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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: Kalle Valo <[email protected]>
This commit is contained in:
parent
5fe4dffbc1
commit
68469341f3
1 changed files with 2 additions and 1 deletions
|
|
@ -1147,7 +1147,6 @@ static int ath6kl_close(struct net_device *dev)
|
|||
0, 0, 0, 0, 0, 0, 0, 0, 0))
|
||||
return -EIO;
|
||||
|
||||
clear_bit(WLAN_ENABLED, &vif->flags);
|
||||
}
|
||||
|
||||
ath6kl_cfg80211_scan_complete_event(vif, -ECANCELED);
|
||||
|
|
@ -1157,6 +1156,8 @@ static int ath6kl_close(struct net_device *dev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
clear_bit(WLAN_ENABLED, &vif->flags);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue