55 lines
1.9 KiB
Diff
55 lines
1.9 KiB
Diff
--- a/os_dep/linux/ioctl_cfg80211.c
|
|
+++ b/os_dep/linux/ioctl_cfg80211.c
|
|
@@ -7149,7 +7149,7 @@ static void cfg80211_rtw_mgmt_frame_regi
|
|
#else
|
|
struct net_device *ndev,
|
|
#endif
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0))
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
|
|
struct mgmt_frame_regs *upd)
|
|
#else
|
|
u16 frame_type, bool reg)
|
|
@@ -7178,7 +7178,7 @@ static void cfg80211_rtw_mgmt_frame_regi
|
|
/* Wait QC Verify */
|
|
return;
|
|
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0))
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
|
|
SET_CFG80211_REPORT_MGMT(pwdev_priv, IEEE80211_STYPE_PROBE_REQ, upd->interface_stypes & BIT(IEEE80211_STYPE_PROBE_REQ >> 4));
|
|
#else
|
|
switch (frame_type) {
|
|
@@ -9467,7 +9467,7 @@ static struct cfg80211_ops rtw_cfg80211_
|
|
|
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
|
.mgmt_tx = cfg80211_rtw_mgmt_tx,
|
|
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0))
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,8,0)) || defined(BUILD_OPENWRT)
|
|
.update_mgmt_frame_registrations = cfg80211_rtw_mgmt_frame_register,
|
|
#else
|
|
.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
|
|
--- a/os_dep/linux/os_intfs.c
|
|
+++ b/os_dep/linux/os_intfs.c
|
|
@@ -1306,6 +1306,14 @@ unsigned int rtw_classify8021d(struct sk
|
|
}
|
|
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,19,0))
|
|
+static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
|
+ , struct net_device *sb_dev
|
|
+ #if (LINUX_VERSION_CODE < KERNEL_VERSION(5,2,0))
|
|
+ , select_queue_fallback_t fallback
|
|
+ #endif
|
|
+)
|
|
+#else
|
|
static u16 rtw_select_queue(struct net_device *dev, struct sk_buff *skb
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 13, 0)
|
|
, void *accel_priv
|
|
@@ -1314,6 +1322,7 @@ static u16 rtw_select_queue(struct net_d
|
|
#endif
|
|
#endif
|
|
)
|
|
+#endif
|
|
{
|
|
_adapter *padapter = rtw_netdev_priv(dev);
|
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|