lwfinger / rtl8188eu

Repository for stand-alone RTL8188EU driver.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation fails on 5.19.2 release

muasim opened this issue · comments

Changes coming with 5.19.2 stable release breaks the build. Here is make.log (trimmed)

8188eu/5.2.2.4.r806.0a5e815/build/ioctl_cfg80211.c:6755: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]
 6755 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
8188eu/5.2.2.4.r806.0a5e815/build/ioctl_cfg80211.c:6755:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
8188eu/5.2.2.4.r806.0a5e815/build/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
8188eu/5.2.2.4.r806.0a5e815/build/ioctl_cfg80211.c:6987:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
 6987 |         if (wdev->current_bss) {
      |                 ^~
cc1: some warnings being treated as errors

I believe v6.0 fix 0a5e815 should have been v5.19.2. I haven't tested yet.

After somebody braindead needlessly backported the change to 5.19.2, then the change you suggest is correct. I had no way of knowing that 5.19.2 would include that change!!!!! Fix pushed.