mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
iwlwifi: unregister LEDs if mac80211 registration fails
Otherwise the LEDs stick around and cause issues the next time around since they're still there but not really hooked up. Cc: [email protected] Signed-off-by: Johannes Berg <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
f69a23b795
commit
0e1fa7ef25
1 changed files with 1 additions and 0 deletions
|
|
@ -251,6 +251,7 @@ int iwlagn_mac_setup_register(struct iwl_priv *priv,
|
|||
ret = ieee80211_register_hw(priv->hw);
|
||||
if (ret) {
|
||||
IWL_ERR(priv, "Failed to register hw (error %d)\n", ret);
|
||||
iwl_leds_exit(priv);
|
||||
return ret;
|
||||
}
|
||||
priv->mac80211_registered = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue