Merge pull request #192 from misha4gps/main

Added support for rhel9.3
This commit is contained in:
morrownr 2023-11-28 20:18:15 -06:00 committed by GitHub
commit c7fd4eb637
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -67,6 +67,9 @@ ifeq (${RHEL_VER},9)
ifeq ($(shell test $(RHEL_SVER) -ge 284; echo $$?),0) ifeq ($(shell test $(RHEL_SVER) -ge 284; echo $$?),0)
EXTRA_CFLAGS += -DRHEL92 -DRHEL88 EXTRA_CFLAGS += -DRHEL92 -DRHEL88
endif endif
ifeq ($(shell test $(RHEL_SVER) -ge 362; echo $$?),0)
EXTRA_CFLAGS += -DRHEL93
endif
endif endif
endif endif

View File

@ -465,7 +465,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
*/ */
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) || defined(RHEL88)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) || defined(RHEL88))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || defined(RHEL93))
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0); cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
#else #else
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false); cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
@ -484,7 +484,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
goto exit; goto exit;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2) || defined(RHEL88)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2) || defined(RHEL88))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0)) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || defined(RHEL93))
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0); cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
#else #else
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0); cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);