]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: rtw89: fix spelling mistake of RTW89_FLAG_FORBIDDEN_TRACK_WORK
authorFedor Pchelkin <pchelkin@ispras.ru>
Tue, 3 Jun 2025 15:31:23 +0000 (18:31 +0300)
committerPing-Ke Shih <pkshih@realtek.com>
Tue, 10 Jun 2025 01:32:57 +0000 (09:32 +0800)
Rename RTW89_FLAG_FORBIDDEN_TRACK_WROK -> RTW89_FLAG_FORBIDDEN_TRACK_WORK.

Found by Linux Verification Center (linuxtesting.org).

Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250603153124.188755-1-pchelkin@ispras.ru
drivers/net/wireless/realtek/rtw89/core.c
drivers/net/wireless/realtek/rtw89/core.h
drivers/net/wireless/realtek/rtw89/mac80211.c

index 3604a8e15df06e56b2cfd0202fe068077d6a3527..d45a0b8134163ff67243886ec54a27ab6e8167d6 100644 (file)
@@ -3742,7 +3742,7 @@ static void rtw89_track_work(struct wiphy *wiphy, struct wiphy_work *work)
 
        lockdep_assert_wiphy(wiphy);
 
-       if (test_bit(RTW89_FLAG_FORBIDDEN_TRACK_WROK, rtwdev->flags))
+       if (test_bit(RTW89_FLAG_FORBIDDEN_TRACK_WORK, rtwdev->flags))
                return;
 
        if (!test_bit(RTW89_FLAG_RUNNING, rtwdev->flags))
index 1c8f3b9b7c4c661224634b6dfb43d3cbc02e7d5e..a081fce1466f3530e33fd4dad8ff70e93cad4f02 100644 (file)
@@ -4912,7 +4912,7 @@ enum rtw89_flags {
        RTW89_FLAG_CRASH_SIMULATING,
        RTW89_FLAG_SER_HANDLING,
        RTW89_FLAG_WOWLAN,
-       RTW89_FLAG_FORBIDDEN_TRACK_WROK,
+       RTW89_FLAG_FORBIDDEN_TRACK_WORK,
        RTW89_FLAG_CHANGING_INTERFACE,
        RTW89_FLAG_HW_RFKILL_STATE,
 
index a47971003bd422f3bc093c03b3e90ea6fed9a9e4..a8e8b098cc9ccf9279a0d64f5f2db858146e5773 100644 (file)
@@ -1698,13 +1698,13 @@ static int rtw89_ops_suspend(struct ieee80211_hw *hw,
 
        lockdep_assert_wiphy(hw->wiphy);
 
-       set_bit(RTW89_FLAG_FORBIDDEN_TRACK_WROK, rtwdev->flags);
+       set_bit(RTW89_FLAG_FORBIDDEN_TRACK_WORK, rtwdev->flags);
        wiphy_delayed_work_cancel(hw->wiphy, &rtwdev->track_work);
 
        ret = rtw89_wow_suspend(rtwdev, wowlan);
        if (ret) {
                rtw89_warn(rtwdev, "failed to suspend for wow %d\n", ret);
-               clear_bit(RTW89_FLAG_FORBIDDEN_TRACK_WROK, rtwdev->flags);
+               clear_bit(RTW89_FLAG_FORBIDDEN_TRACK_WORK, rtwdev->flags);
                return 1;
        }
 
@@ -1722,7 +1722,7 @@ static int rtw89_ops_resume(struct ieee80211_hw *hw)
        if (ret)
                rtw89_warn(rtwdev, "failed to resume for wow %d\n", ret);
 
-       clear_bit(RTW89_FLAG_FORBIDDEN_TRACK_WROK, rtwdev->flags);
+       clear_bit(RTW89_FLAG_FORBIDDEN_TRACK_WORK, rtwdev->flags);
        wiphy_delayed_work_queue(hw->wiphy, &rtwdev->track_work,
                                 RTW89_TRACK_WORK_PERIOD);