Need Help For Installing Realtek Wifi Drivers

I’m trying to install driver for my usb wifi Realtek rtl8188ftv wireless lan 802.11n, but I’m getting error with dkms.

    ~  pamac build 8188eu-dkms                                                                                                             1 ✘  5s  
Preparing...
Checking 8188eu-dkms dependencies...
Resolving dependencies...
Checking inter-conflicts...

To build (1):
  8188eu-dkms  v4.3.0.8_13968-16    AUR


Edit build files : [e] 
Apply transaction ? [e/y/N] y

Cloning 8188eu-dkms build files...
Generating 8188eu-dkms information...

Building 8188eu-dkms...
==> Making package: 8188eu-dkms v4.3.0.8_13968-16 (Saturday 18 June 2022 01:54:59 AM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 8188eu-v4.3.0.8_13968.tar.xz?dl=1...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   152    0   152    0     0    149      0 --:--:--  0:00:01 --:--:--   149
100   342  100   342    0     0    196      0  0:00:01  0:00:01 --:--:--     0
100 1006k  100 1006k    0     0   174k      0  0:00:05  0:00:05 --:--:--  324k
  -> Found blacklist-r8188eu.conf
  -> Found date_time_macro.patch
  -> Found dkms.conf
  -> Found led.patch
  -> Found linux-4.0.patch
  -> Found linux-4.2.patch
  -> Found linux-4.3.patch
  -> Found linux-4.6.patch
  -> Found linux-4.11.patch
  -> Found linux-4.15.patch
  -> Found linux-4.19.patch
  -> Found linux-5.0.patch
  -> Found linux-5.1.patch
  -> Found linux-5.2.patch
  -> Found linux-5.6.patch
  -> Found linux-5.8.patch
  -> Found linux-5.10.patch
  -> Found no_debug.patch
==> Validating source files with md5sums...
    8188eu-v4.3.0.8_13968.tar.xz?dl=1 ... Passed
    blacklist-r8188eu.conf ... Passed
    date_time_macro.patch ... Passed
    dkms.conf ... Passed
    led.patch ... Passed
    linux-4.0.patch ... Passed
    linux-4.2.patch ... Passed
    linux-4.3.patch ... Passed
    linux-4.6.patch ... Passed
    linux-4.11.patch ... Passed
    linux-4.15.patch ... Passed
    linux-4.19.patch ... Passed
    linux-5.0.patch ... Passed
    linux-5.1.patch ... Passed
    linux-5.2.patch ... Passed
    linux-5.6.patch ... Passed
    linux-5.8.patch ... Passed
    linux-5.10.patch ... Passed
    no_debug.patch ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 8188eu-v4.3.0.8_13968.tar.xz?dl=1 with bsdtar
==> Starting prepare()...
Applying patch date_time_macro.patch
patching file core/rtw_debug.c
Applying patch led.patch
patching file include/autoconf.h
Applying patch linux-4.0.patch
patching file os_dep/linux/rtw_android.c
Applying patch linux-4.2.patch
patching file hal/hal_com_phycfg.c
Applying patch linux-4.3.patch
patching file include/rtw_debug.h
Applying patch linux-4.6.patch
patching file os_dep/linux/rtw_android.c
Applying patch linux-4.11.patch
patching file include/osdep_service_linux.h
Applying patch linux-4.15.patch
patching file hal/OUTSRC/odm_types.h
patching file include/osdep_service.h
patching file include/osdep_service_linux.h
Applying patch linux-4.19.patch
patching file os_dep/linux/os_intfs.c
Applying patch linux-5.0.patch
patching file os_dep/linux/rtw_android.c
Applying patch linux-5.1.patch
patching file os_dep/osdep_service.c
Applying patch linux-5.2.patch
patching file os_dep/linux/os_intfs.c
Applying patch linux-5.6.patch
patching file os_dep/linux/rtw_proc.c
Applying patch linux-5.8.patch
patching file core/rtw_security.c
patching file include/rtw_security.h
Applying patch linux-5.10.patch
patching file core/efuse/rtw_efuse.c
patching file core/rtw_wlan_util.c
patching file hal/rtl8188e/usb/usb_halinit.c
patching file os_dep/osdep_service.c
Applying patch no_debug.patch
patching file include/autoconf.h
==> Entering fakeroot environment...
==> Starting package()...
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issues...
==> Creating package "8188eu-dkms"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: 8188eu-dkms v4.3.0.8_13968-16 (Saturday 18 June 2022 01:55:27 AM)
==> Cleaning up...

Checking keyring...                                                                                                                                    [1/1]
Checking integrity...                                                                                                                                  [1/1]
Loading packages files...                                                                                                                              [1/1]
Checking file conflicts...                                                                                                                             [1/1]
Checking available disk space...                                                                                                                       [1/1]
Installing 8188eu-dkms (v4.3.0.8_13968-16)...                                                                                                          [1/1]
Running post-transaction hooks...
Arming ConditionNeedsUpdate...                                                                                                                         [1/3]
Install DKMS modules                                                                                                                                   [2/3]
==> dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.18.0-1-rt11-MANJARO
Error! Bad return status for module build on kernel: 5.18.0-1-rt11-MANJARO (x86_64)
Consult /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.18.0-1-rt11-MANJARO' exited 10
==> dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.15.48-1-MANJARO
Error! Bad return status for module build on kernel: 5.15.48-1-MANJARO (x86_64)
Consult /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.15.48-1-MANJARO' exited 10
==> dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.15.44-1-rt46-MANJARO
Error! Bad return status for module build on kernel: 5.15.44-1-rt46-MANJARO (x86_64)
Consult /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log for more information.
==> WARNING: `dkms install --no-depmod 8188eu/v4.3.0.8_13968 -k 5.15.44-1-rt46-MANJARO' exited 10
==> ERROR: Missing 4.19.248-1-MANJARO kernel modules tree for module 8188eu/v4.3.0.8_13968.
Refreshing PackageKit...                                               [3/3]
Transaction successfully finished.

I tried checking the saved log but found nothing helpful.

    ~  cat /var/lib/dkms/8188eu/v4.3.0.8_13968/build/make.log       ✔ 
DKMS make.log for 8188eu-v4.3.0.8_13968 for kernel 5.15.44-1-rt46-MANJARO (x86_64)
Saturday 18 June 2022 01:59:41 AM IST
make: Entering directory '/usr/lib/modules/5.15.44-1-rt46-MANJARO/build'
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.o
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c: In function ‘aes_cipher’:
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c:1598:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
 1598 |     for (j = 0; j < 8; j++)
      |     ^~~
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c:1601:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
 1601 |         payload_index = hdrlen + 8;
      |         ^~~~~~~~~~~~~
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c: In function ‘aes_decipher’:
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c:1983:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
 1983 |     for (j = 0; j < 8; j++)
      |     ^~~
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_security.c:1986:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
 1986 |         payload_index = hdrlen + 8;
      |         ^~~~~~~~~~~~~
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_mlme_ext.o
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_mlme_ext.c:780:27: warning: this statement may fall through [-Wimplicit-fallthrough=]
  780 |                         if(check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |                           ^
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_mlme_ext.c:785:17: note: here
  785 |                 case WIFI_ASSOCREQ:
      |                 ^~~~
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_sta_mgt.o
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_sta_mgt.c: In function ‘rtw_mfree_stainfo’:
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_sta_mgt.c:211:24: warning: the comparison will always evaluate as ‘true’ for the address of ‘lock’ will never be NULL [-Waddress]
  211 |         if(&psta->lock != NULL)
      |                        ^~
In file included from /var/lib/dkms/8188eu/v4.3.0.8_13968/build/include/drv_types.h:107,
                 from /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_sta_mgt.c:22:
/var/lib/dkms/8188eu/v4.3.0.8_13968/build/include/sta_info.h:92:17: note: ‘lock’ declared here
   92 |         _lock   lock;
      |                 ^~~~
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/8188eu/v4.3.0.8_13968/build/core/rtw_p2p.o

for your wifi: rtl8188ftv
are available these drivers:

8188fu-kelebek333-dkms-git 
8188fu-dkms-git                                                                                                                            

the 8188eu-dkms is for RTL8188EUS, RTL8188ETV
so uninstall them first…
then install kernel headers for your kernels from official repos and then install one of the two listed above, reboot and check

2 Likes