Skip to content

Commit 5223916

Browse files
committed
wifi: mac80211: wake the queues in case of failure in resume
JIRA: https://issues.redhat.com/browse/RHEL-73817 commit 220bf00 Author: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Date: Tue Nov 19 17:35:39 2024 +0200 wifi: mac80211: wake the queues in case of failure in resume In case we fail to resume, we'll WARN with "Hardware became unavailable during restart." and we'll wait until user space does something. It'll typically bring the interface down and up to recover. This won't work though because the queues are still stopped on IEEE80211_QUEUE_STOP_REASON_SUSPEND reason. Make sure we clear that reason so that we give a chance to the recovery to succeed. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219447 Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com> Link: https://patch.msgid.link/20241119173108.cd628f560f97.I76a15fdb92de450e5329940125f3c58916be3942@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
1 parent e0b3591 commit 5223916

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

net/mac80211/util.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1825,6 +1825,9 @@ int ieee80211_reconfig(struct ieee80211_local *local)
18251825
WARN(1, "Hardware became unavailable upon resume. This could be a software issue prior to suspend or a hardware issue.\n");
18261826
else
18271827
WARN(1, "Hardware became unavailable during restart.\n");
1828+
ieee80211_wake_queues_by_reason(hw, IEEE80211_MAX_QUEUE_MAP,
1829+
IEEE80211_QUEUE_STOP_REASON_SUSPEND,
1830+
false);
18281831
ieee80211_handle_reconfig_failure(local);
18291832
return res;
18301833
}

0 commit comments

Comments
 (0)