mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-16 11:38:11 +00:00
iwl4965: reset firmware after rfkill off
Using rfkill switch can make firmware unstable, what cause various Microcode errors and kernel warnings. Reseting firmware just after rfkill off (radio on) helped with that. Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=977053 Reported-and-tested-by: Justin Pearce <whitefox@guardianfox.net> Cc: stable@vger.kernel.org Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
eca396d7a5
commit
788f7a56fc
2 changed files with 6 additions and 5 deletions
|
@ -4460,12 +4460,12 @@ il4965_irq_tasklet(struct il_priv *il)
|
||||||
* is killed. Hence update the killswitch state here. The
|
* is killed. Hence update the killswitch state here. The
|
||||||
* rfkill handler will care about restarting if needed.
|
* rfkill handler will care about restarting if needed.
|
||||||
*/
|
*/
|
||||||
if (!test_bit(S_ALIVE, &il->status)) {
|
if (hw_rf_kill) {
|
||||||
if (hw_rf_kill)
|
|
||||||
set_bit(S_RFKILL, &il->status);
|
set_bit(S_RFKILL, &il->status);
|
||||||
else
|
} else {
|
||||||
clear_bit(S_RFKILL, &il->status);
|
clear_bit(S_RFKILL, &il->status);
|
||||||
wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill);
|
wiphy_rfkill_set_hw_state(il->hw->wiphy, hw_rf_kill);
|
||||||
|
il_force_reset(il, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
handled |= CSR_INT_BIT_RF_KILL;
|
handled |= CSR_INT_BIT_RF_KILL;
|
||||||
|
|
|
@ -4660,6 +4660,7 @@ il_force_reset(struct il_priv *il, bool external)
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL(il_force_reset);
|
||||||
|
|
||||||
int
|
int
|
||||||
il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
il_mac_change_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||||
|
|
Loading…
Add table
Reference in a new issue