ivanovborislav / rtl8188eu

Realtek RTL8188EU v5.13.3 (2021-06-15) Wireless Lan Driver for Linux
GNU General Public License v2.0
113 stars 29 forks source link

Build error in Fedora 36 #3

Closed BabaJi-0 closed 1 year ago

BabaJi-0 commented 1 year ago

make[1]: Entering directory '/usr/src/kernels/5.19.4-200.fc36.x86_64'
  CC [M]  /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.o
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:478:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  478 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/d4v1d/Downloads/rtl8188eu/include/osdep_service_linux.h:98,
                 from /home/d4v1d/Downloads/rtl8188eu/include/osdep_service.h:54,
                 from /home/d4v1d/Downloads/rtl8188eu/include/drv_types.h:27,
                 from /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:7967:6: note: declared here
 7967 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10419:20: error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’ [-Werror=incompatible-pointer-types]
10419 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10419:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10463:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int,  struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10463 |         .get_channel = cfg80211_rtw_get_channel,
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10463:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.c:10699:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10699 |         if (wdev->current_bss) {
      |                 ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/d4v1d/Downloads/rtl8188eu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1851: /home/d4v1d/Downloads/rtl8188eu] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.19.4-200.fc36.x86_64'
make: *** [Makefile:2489: modules] Error 2```
ivanovborislav commented 1 year ago

Hi! Try this.

cd /home/d4v1d/Downloads/rtl8188eu/ wget https://raw.githubusercontent.com/ivanovborislav/document/main/patch/rtl8188EU_v5.13.3_kernel_5.19.2.patch patch -p1 < rtl8188EU_v5.13.3_kernel_5.19.2.patch sudo make uninstall make clean make sudo make install

BabaJi-0 commented 1 year ago

Thank you, it worked.

ivanovborislav commented 1 year ago

You're welcome!