mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Solve compatibility issues for some of wifi patches (#4087)
* Solve compatibility issues for some of wifi patches, disable those that needs more work * Fix 8812au * Update to re-enable RTL88x2CS driver for 5.19.2+ * Add 8723ds and rename others * Following naming convention * Name * Adjust UWE5622 for 5.19.2 * Update UWE5622 patch for sunxi * Enable last one * Fixes for 8723DU Co-authored-by: Vyacheslav Bocharov <adeep@lexina.in>
This commit is contained in:
105
patch/misc/wireless-rtl8723du-5.19.2.patch
Normal file
105
patch/misc/wireless-rtl8723du-5.19.2.patch
Normal file
@@ -0,0 +1,105 @@
|
||||
From 40ac7e29eca7d71da118a0f727b9e22456453425 Mon Sep 17 00:00:00 2001
|
||||
From: Igor Pecovnik <igor.pecovnik@gmail.com>
|
||||
Date: Sat, 20 Aug 2022 07:21:47 +0200
|
||||
Subject: [PATCH] fix
|
||||
|
||||
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
|
||||
---
|
||||
.../wireless/rtl8723du/os_dep/ioctl_cfg80211.c | 16 ++++++++--------
|
||||
1 file changed, 8 insertions(+), 8 deletions(-)
|
||||
|
||||
diff --git a/drivers/net/wireless/rtl8723du/Kconfig b/drivers/net/wireless/rtl8723du/Kconfig
|
||||
new file mode 100644
|
||||
index 000000000..63bbe8e63
|
||||
--- /dev/null
|
||||
+++ b/drivers/net/wireless/rtl8723du/Kconfig
|
||||
@@ -0,0 +1,4 @@
|
||||
+config RTL8723DU
|
||||
+ tristate "Realtek 8723D USB WiFi"
|
||||
+ help
|
||||
+ Help message of RTL8723DU
|
||||
diff --git a/drivers/net/wireless/rtl8723du/Makefile b/drivers/net/wireless/rtl8723du/Makefile
|
||||
index 9de45eddd..172f597e1 100644
|
||||
--- a/drivers/net/wireless/rtl8723du/Makefile
|
||||
+++ b/drivers/net/wireless/rtl8723du/Makefile
|
||||
@@ -25,7 +25,7 @@ CONFIG_WAKEUP_TYPE = 0x7 #bit2: deauth, bit1: unicast, bit0: magic pkt.
|
||||
|
||||
CONFIG_DRVEXT_MODULE = n
|
||||
|
||||
-export TopDIR ?= $(shell pwd)
|
||||
+export TopDIR ?= $(src)
|
||||
|
||||
########### COMMON #################################
|
||||
HCI_NAME = usb
|
||||
diff --git a/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c b/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c
|
||||
index 3a74d29cb..e399cfb60 100644
|
||||
--- a/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c
|
||||
+++ b/drivers/net/wireless/rtl8723du/os_dep/ioctl_cfg80211.c
|
||||
@@ -134,7 +134,7 @@ static u8 rtw_chbw_to_cfg80211_chan_def(struct wiphy *wiphy, struct cfg80211_cha
|
||||
if (!chan)
|
||||
goto exit;
|
||||
|
||||
- if (bw == CHANNEL_WIDTH_20)
|
||||
+ if (bw == CHANNEL_WIDTH_20)
|
||||
chdef->width = ht ? NL80211_CHAN_WIDTH_20 : NL80211_CHAN_WIDTH_20_NOHT;
|
||||
else if (bw == CHANNEL_WIDTH_40)
|
||||
chdef->width = NL80211_CHAN_WIDTH_40;
|
||||
@@ -171,7 +171,7 @@ u8 rtw_cfg80211_ch_switch_notify(struct adapter *adapter, u8 ch, u8 bw, u8 offse
|
||||
if (ret != _SUCCESS)
|
||||
goto exit;
|
||||
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
|
||||
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
|
||||
#else
|
||||
cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
|
||||
@@ -1186,8 +1186,8 @@ static int rtw_cfg80211_set_encryption(struct net_device *dev, struct ieee_param
|
||||
memcpy(adapt->securitypriv.dot118021XGrptxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[16]), 8);
|
||||
memcpy(adapt->securitypriv.dot118021XGrprxmickey[param->u.crypt.idx].skey, &(param->u.crypt.key[24]), 8);
|
||||
adapt->securitypriv.binstallGrpkey = true;
|
||||
- if (param->u.crypt.idx < 4)
|
||||
- memcpy(adapt->securitypriv.iv_seq[param->u.crypt.idx], param->u.crypt.seq, 8);
|
||||
+ if (param->u.crypt.idx < 4)
|
||||
+ memcpy(adapt->securitypriv.iv_seq[param->u.crypt.idx], param->u.crypt.seq, 8);
|
||||
adapt->securitypriv.dot118021XGrpKeyid = param->u.crypt.idx;
|
||||
rtw_set_key(adapt, &adapt->securitypriv, param->u.crypt.idx, 1, true);
|
||||
|
||||
@@ -1391,7 +1391,7 @@ static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
|| (MLME_IS_STA(adapter) && !pairwise)
|
||||
#endif
|
||||
- ) {
|
||||
+ ) {
|
||||
/* WEP key, TX GTK/IGTK, RX GTK/IGTK(for STA mode) */
|
||||
if (is_wep_enc(sec->dot118021XGrpPrivacy)) {
|
||||
if (keyid >= WEP_KEYS)
|
||||
@@ -1465,7 +1465,7 @@ static int cfg80211_rtw_get_key(struct wiphy *wiphy, struct net_device *ndev
|
||||
}
|
||||
|
||||
ret = 0;
|
||||
-
|
||||
+
|
||||
exit:
|
||||
RTW_INFO(FUNC_NDEV_FMT
|
||||
GET_KEY_PARAM_FMT_S
|
||||
@@ -3783,7 +3783,7 @@ static int cfg80211_rtw_change_beacon(struct wiphy *wiphy, struct net_device *nd
|
||||
return ret;
|
||||
}
|
||||
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
|
||||
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev)
|
||||
#else
|
||||
static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id)
|
||||
@@ -5832,7 +5832,7 @@ void rtw_wdev_unregister(struct wireless_dev *wdev)
|
||||
rtw_cfg80211_indicate_scan_done(adapter, true);
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 11, 0)) || defined(COMPAT_KERNEL_RELEASE)
|
||||
-#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
||||
+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 19, 2)
|
||||
if (wdev->current_bss) {
|
||||
#else
|
||||
if (wdev->connected) {
|
||||
--
|
||||
Created with Armbian build tools https://github.com/armbian/build
|
||||
|
||||
Reference in New Issue
Block a user