mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
wifi: iwlwifi: mld: fix OMI time protection logic
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>
This commit is contained in:
parent
29b0ca82c1
commit
b807dec3e8
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user