RinCat / RTL88x2BU-Linux-Driver

Realtek RTL88x2BU WiFi USB Driver for Linux
GNU General Public License v2.0
1.26k stars 198 forks source link

Support for kernel 5.17rc? #128

Open pagkly opened 2 years ago

pagkly commented 2 years ago

Hi Ive used your driver since 5.16 on ArchLinux and they work fine. I recently installed 5.17rc since they have patches for my bluetooth adapter.

I know its too early for 5.17 but I did try to make -i and shows:

cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:288: /home/user/RTL88x2BU-Linux-Driver/os_dep/osdep_service.o] Error 1 (ignored)
cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:288: /home/user/RTL88x2BU-Linux-Driver/os_dep/linux/rtw_proc.o] Error 1 (ignored)
  LD [M]  /home/user/RTL88x2BU-Linux-Driver/88x2bu.o
ld: cannot find /home/user/RTL88x2BU-Linux-Driver/os_dep/osdep_service.o: No such file or directory
ld: cannot find /home/user/RTL88x2BU-Linux-Driver/os_dep/linux/rtw_proc.o: No such file or directory
make[2]: [scripts/Makefile.build:484: /home/user/RTL88x2BU-Linux-Driver/88x2bu.o] Error 1 (ignored)
make[2]: *** No rule to make target '/home/user/RTL88x2BU-Linux-Driver/88x2bu.o', needed by '/home/user/RTL88x2BU-Linux-Driver/Module.symvers'.  Stop.
make[1]: [Makefile:1746: modules] Error 2 (ignored)
make[1]: Leaving directory '/usr/lib/modules/5.17.0-rc2-1-mainline-anbox/build'

with dkms:

==> dkms install --no-depmod rtl88x2bu/5.13.1.r154.fde3499 -k 5.16.10-zen1-1-zen
==> dkms install --no-depmod rtl88x2bu/5.13.1.r154.fde3499 -k 5.17.0-rc2-1-mainline-anbox
Error! Bad return status for module build on kernel: 5.17.0-rc2-1-mainline-anbox (x86_64)
Consult /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl88x2bu/5.13.1.r154.fde3499 -k 5.17.0-rc2-1-mainline-anbox' exited 10
==> dkms install --no-depmod rtl88x2bu/5.13.1.r154.fde3499 -k 5.16.10-arch1-1
==> depmod 5.16.10-arch1-1
==> depmod 5.16.10-zen1-1-zen

From dkms build you can see that 5.16 installation is fine. From make.log:

DKMS make.log for rtl88x2bu-5.13.1.r154.fde3499 for kernel 5.16.10-arch1-1 (x86_64)
Tue Feb 22 07:59:12 PM AEDT 2022
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.16.10-arch1-1/build M=/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build  modules
make[1]: Entering directory '/usr/lib/modules/5.16.10-arch1-1/build'
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mi.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_wlan_util.o
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c: In function ‘rtw_txpwr_init_regd’:
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c:299:20: warning: this statement may fall through [-Wimplicit-fallthrough=]
  299 |                 if (rfctl->regd_name)
      |                    ^
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c:302:9: note: here
  302 |         default:
      |         ^~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c:1670:38: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1670 |                         ptable->func = &OnAuthClient;
      |                         ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mlme_ext.c:1672:9: note: here
 1672 |         case WIFI_ASSOCREQ:
      |         ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_chplan.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/monitor/rtw_radiotap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/wds/rtw_wds.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/mesh/rtw_mesh.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_rson.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_btcoex_wifionly.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_btcoex.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_beamforming.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_odm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_rm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_rm_fsm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_ft.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_wnm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_mbo.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_rm_util.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_roch.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-internal-enc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-gcm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-ccm.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-omac1.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/ccmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/gcmp.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-siv.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/aes-ctr.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/sha256-internal.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/sha256.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/sha256-prf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/crypto/rtw_crypto_wrap.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/core/rtw_swcrypto.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/os_intfs.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/usb_intf.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/usb_ops_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/xmit_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/mlme_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/recv_linux.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/wifi_regd.o
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_get_chbwoff_from_cfg80211_chan_def’:
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_cfg80211.c:6796:21: warning: this statement may fall through [-Wimplicit-fallthrough=]
 6796 |                 *ht = 0;
      |                 ~~~~^~~
/var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_cfg80211.c:6798:9: note: here
 6798 |         case NL80211_CHAN_WIDTH_20:
      |         ^~~~
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/rtw_android.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/rtw_proc.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/nlrtw.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/rtw_rhashtable.o
  CC [M]  /var/lib/dkms/rtl88x2bu/5.13.1.r154.fde3499/build/os_dep/linux/ioctl_mp.o
RinCat commented 2 years ago

It should works now.