Skip to content

Commit

Permalink
fix for removed REGULATORY_IGNORE_STALE_KICKOFF
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-boger committed Nov 19, 2023
1 parent 2c785f9 commit 2db4753
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion os_dep/linux/wifi_regd.c
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,12 @@ int rtw_regd_init(struct wiphy *wiphy)
wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
#endif

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0)) \
&& ((LINUX_VERSION_CODE < KERNEL_VERSION(6, 1, 39)) \
|| (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))) \
&& ((LINUX_VERSION_CODE < KERNEL_VERSION(6, 3, 13)) \
|| (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 4, 0))) \
&& (LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 4))
wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
#endif

Expand Down

0 comments on commit 2db4753

Please sign in to comment.