]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: iwlwifi: mld: fix OMI time protection logic
authorJohannes Berg <johannes.berg@intel.com>
Sun, 9 Mar 2025 05:36:46 +0000 (07:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Mar 2025 15:29:25 +0000 (16:29 +0100)
We're allowed to enter OMI only 5 seconds after the last
exit, so the logic needs to be inverted. Fix that.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250309073442.58efb4c91655.Id596fcda2fb28f5945548d780be9ff90aee76b7e@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/link.c

index 64ebafc35c9bfa6cafa209de9def7947e15be8f6..f6d482817f1b78fea023dc648a124b4eb9917f9e 100644 (file)
@@ -760,8 +760,8 @@ void iwl_mld_check_omi_bw_reduction(struct iwl_mld *mld)
                return;
        }
 
-       if (time_is_before_jiffies(mld_link->rx_omi.exit_ts +
-                                  msecs_to_jiffies(IWL_MLD_OMI_EXIT_PROTECTION)))
+       if (time_is_after_jiffies(mld_link->rx_omi.exit_ts +
+                                 msecs_to_jiffies(IWL_MLD_OMI_EXIT_PROTECTION)))
                return;
 
        /* reduce bandwidth to 80 MHz to save power */