• R/O
  • HTTP
  • SSH
  • HTTPS

immortalwrt: 提交

Mirror only - Please move to https://github.com/immortalwrt/immortalwrt


Commit MetaInfo

修订版8e06858f10107706f824273725c7742b70b107ae (tree)
时间2022-01-23 12:53:25
作者AmadeusGhost <42570690+AmadeusGhost@user...>
CommiterTianling Shen

Log Message

rtl88x2bu: fixes ap mode not working

Remember to restart after completing any related settings.

(cherry picked from commit 444d02835203b2eef9dd45a557edefa829c66737)

更改概述

差异

--- a/package/kernel/rtl88x2bu/Makefile
+++ b/package/kernel/rtl88x2bu/Makefile
@@ -11,15 +11,14 @@ include $(TOPDIR)/rules.mk
1111 PKG_NAME:=rtl88x2bu
1212 PKG_RELEASE:=1
1313
14-PKG_SOURCE_URL:=https://github.com/cilynx/rtl88x2bu.git
14+PKG_SOURCE_URL:=https://github.com/morrownr/88x2bu.git
1515 PKG_SOURCE_PROTO:=git
16-PKG_SOURCE_DATE:=2021-01-21
17-PKG_SOURCE_VERSION:=48e7c19c92a77554403e1347447f8e2cfd780228
18-PKG_MIRROR_HASH:=2991028fb7bd7e31d041b1e99d0e0d86781fff95fc70e4560ca9fcbe038f063f
16+PKG_SOURCE_DATE:=2021-11-09
17+PKG_SOURCE_VERSION:=47a666315d0a5ff37b53adb48ca21404787565cf
18+PKG_MIRROR_HASH:=454449d0d11dec7cfc4196899ddbb6cd4851dcc767b7f40e293820952a12b024
1919
2020 PKG_LICENSE:=GPL-2.0
2121 PKG_LICENSE_FILES:=LICENSE
22-PKG_MAINTAINTER:=ElonH <elonh@immortalwrt.org>
2322
2423 PKG_BUILD_PARALLEL:=1
2524
@@ -50,14 +49,11 @@ NOSTDINC_FLAGS = \
5049 EXTRA_CFLAGS:= \
5150 -DRTW_SINGLE_WIPHY \
5251 -DRTW_USE_CFG80211_STA_EVENT \
53- -DCONFIG_RADIO_WORK \
5452 -DCONFIG_IOCTL_CFG80211 \
5553 -DCONFIG_CONCURRENT_MODE \
5654 -DBUILD_OPENWRT
5755
5856 EXTRA_KCONFIG:= \
59- CONFIG_POWER_SAVING=n \
60- CONFIG_RTW_DEBUG=y \
6157 CONFIG_RTL8822BU=m \
6258 USER_MODULE_NAME=rtl88x2bu
6359
--- a/package/kernel/rtl88x2bu/patches/010-remove-repeat-flies.patch
+++ b/package/kernel/rtl88x2bu/patches/010-remove-repeat-flies.patch
@@ -27,8 +27,8 @@ index 0d20a7e..f0a9f88 100644
2727 +#include <generated/autoconf.h>
2828 +#include "rtl_autoconf.h"
2929 #include "hal_ic_cfg.h"
30- #if defined(PLATFORM_LINUX) && defined (PLATFORM_WINDOWS)
3130
31+ #define CONFIG_RSSI_PRIORITY
3232 diff --git a/include/linux/wireless.h b/include/linux/old_unused_rtl_wireless.h
3333 similarity index 100%
3434 rename from include/linux/wireless.h
--- /dev/null
+++ b/package/kernel/rtl88x2bu/patches/020-change-value-of-vht-enable-and-usb-mode.patch
@@ -0,0 +1,20 @@
1+--- a/os_dep/linux/os_intfs.c
2++++ b/os_dep/linux/os_intfs.c
3+@@ -309,7 +309,7 @@ int rtw_bfee_rf_number = 0; /*BeamformeeCapRfNum Rf path number, 0 for auto, ot
4+ #endif /* CONFIG_80211N_HT */
5+
6+ #ifdef CONFIG_80211AC_VHT
7+-int rtw_vht_enable = 1; /* 0:disable, 1:enable, 2:force auto enable */
8++int rtw_vht_enable = 2; /* 0:disable, 1:enable, 2:force auto enable */
9+ module_param(rtw_vht_enable, int, 0644);
10+
11+ int rtw_ampdu_factor = 7;
12+@@ -392,7 +392,7 @@ int rtw_drv_ant_band_switch = 1; /* 0:OFF , 1:ON, Driver control antenna band sw
13+ int rtw_single_ant_path; /*0:main ant , 1:aux ant , Fixed single antenna path, default main ant*/
14+
15+ /* 0: doesn't switch, 1: switch from usb2.0 to usb 3.0 2: switch from usb3.0 to usb 2.0 */
16+-int rtw_switch_usb_mode = 0;
17++int rtw_switch_usb_mode = 1;
18+
19+ #ifdef CONFIG_USB_AUTOSUSPEND
20+ int rtw_enusbss = 1;/* 0:disable,1:enable */
--- a/package/kernel/rtl88x2bu/patches/020-wireless-5.8.patch
+++ b/package/kernel/rtl88x2bu/patches/020-wireless-5.8.patch
@@ -1,38 +1,20 @@
11 --- a/os_dep/linux/ioctl_cfg80211.c
22 +++ b/os_dep/linux/ioctl_cfg80211.c
3-@@ -7325,7 +7325,7 @@ exit:
3+@@ -7808,7 +7808,7 @@ exit:
44 return ret;
55 }
66
77 -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
88 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)) && !defined(BUILD_OPENWRT)
9-
109 static void cfg80211_rtw_mgmt_frame_register(struct wiphy *wiphy,
1110 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 6, 0))
12-@@ -7341,7 +7341,7 @@ static void cfg80211_rtw_update_mgmt_frame_register(struct wiphy *wiphy,
13- struct mgmt_frame_regs *upd)
14- #endif
15- {
16--#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))
17-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0)) || defined(BUILD_OPENWRT)
18- u32 rtw_mask = BIT(IEEE80211_STYPE_PROBE_REQ >> 4);
19- #endif
20-
21-@@ -7371,7 +7371,7 @@ static void cfg80211_rtw_update_mgmt_frame_register(struct wiphy *wiphy,
22- /* Wait QC Verify */
23- return;
11+ struct wireless_dev *wdev,
12+@@ -10286,7 +10286,7 @@ static struct cfg80211_ops rtw_cfg80211_ops = {
2413
25--#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
26-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)) && !defined(BUILD_OPENWRT)
27- switch (frame_type) {
28- case IEEE80211_STYPE_PROBE_REQ: /* 0x0040 */
29- SET_CFG80211_REPORT_MGMT(pwdev_priv, IEEE80211_STYPE_PROBE_REQ, reg);
30-@@ -9672,7 +9672,7 @@ static struct cfg80211_ops rtw_cfg80211_ops = {
3114 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)) || defined(COMPAT_KERNEL_RELEASE)
3215 .mgmt_tx = cfg80211_rtw_mgmt_tx,
33-
3416 -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0))
3517 +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 8, 0)) && !defined(BUILD_OPENWRT)
3618 .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,
3719 #else
38- .update_mgmt_frame_registrations =
20+ .update_mgmt_frame_registrations = cfg80211_rtw_update_mgmt_frame_register,
Show on old repository browser