Skip to content

Commit

Permalink
Added latest upstream commits + fix build for rhel9.4 kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
virer committed Jun 18, 2024
1 parent d8c1431 commit d8ce809
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions os_dep/linux/ioctl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 9, 0)
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false);
#else
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 1, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
cfg80211_ch_switch_started_notify(adapter->pnetdev, &chdef, 0, 0, false, 0);
#else
Expand All @@ -491,7 +491,7 @@ u8 rtw_cfg80211_ch_switch_notify(_adapter *adapter, u8 ch, u8 bw, u8 offset,
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 9, 0))
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
#else
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 19, 2) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 3, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0, 0);
#else
Expand Down Expand Up @@ -5400,7 +5400,7 @@ static int rtw_cfg80211_set_assocresp_ies(struct net_device *net, const u8 *buf,
}

static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *ndev,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
struct cfg80211_ap_update *info)
#else
struct cfg80211_beacon_data *info)
Expand All @@ -5417,7 +5417,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
* frames or %NULL
* @proberesp_ies_len: length of proberesp_ies in octets
*/
#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
if (info->beacon.proberesp_ies_len > 0)
rtw_cfg80211_set_proberesp_ies(ndev, info->beacon.proberesp_ies, info->beacon.proberesp_ies_len);
#else
Expand All @@ -5426,15 +5426,15 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
#endif
#endif /* not_yet */

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
if (info->beacon.assocresp_ies_len > 0)
rtw_cfg80211_set_assocresp_ies(ndev, info->beacon.assocresp_ies, info->beacon.assocresp_ies_len);
#else
if (info->assocresp_ies_len > 0)
rtw_cfg80211_set_assocresp_ies(ndev, info->assocresp_ies, info->assocresp_ies_len);
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0) || (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(9, 0)))
ret = rtw_add_beacon(adapter, info->beacon.head, info->beacon.head_len, info->beacon.tail, info->beacon.tail_len);
#else
ret = rtw_add_beacon(adapter, info->head, info->head_len, info->tail, info->tail_len);
Expand Down

0 comments on commit d8ce809

Please sign in to comment.