Po aktualizacji nie widzi adaptera WIFI
: 20 lut 2023, 09:03
Cześć,
Po wczorajszej aktualizacji, Ubuntu nie widzi adaptera WIFI. Mam przygotowaną ściągę, jak ponownie zainstalować sterownik tego adaptera, jednak komenda sudo make kończy się niepowodzeniem:
Znalazłem temat z podobnym błędem: https://github.com/tomaspinho/rtl8821ce/issues/289, jendak nie czuję się wystarczająco "adventurous" aby zastosować proponowane rozwiązanie. Z resztą nawet nie wiem, jak je zastosować.
Po wczorajszej aktualizacji, Ubuntu nie widzi adaptera WIFI. Mam przygotowaną ściągę, jak ponownie zainstalować sterownik tego adaptera, jednak komenda sudo make kończy się niepowodzeniem:
Kod: Zaznacz cały
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.19.0-32-generic/build M=/home/slawomirlewczyk/WiFi/rtl88x2bu modules
make[1]: Wejście do katalogu '/usr/src/linux-headers-5.19.0-32-generic'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
You are using: gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0
CC [M] /home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.o
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:452:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
452 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/slawomirlewczyk/WiFi/rtl88x2bu/include/osdep_service_linux.h:94,
from /home/slawomirlewczyk/WiFi/rtl88x2bu/include/osdep_service.h:53,
from /home/slawomirlewczyk/WiFi/rtl88x2bu/include/drv_types.h:27,
from /home/slawomirlewczyk/WiFi/rtl88x2bu/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/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: In function ‘_cfg80211_check_bss’:
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:951:19: error: ‘struct wireless_dev’ has no member named ‘ssid_len’
951 | if ((!wdev->ssid_len) || (wdev->ssid_len != network->Ssid.SsidLength)
| ^~
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:951:39: error: ‘struct wireless_dev’ has no member named ‘ssid_len’
951 | if ((!wdev->ssid_len) || (wdev->ssid_len != network->Ssid.SsidLength)
| ^~
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:952:33: error: ‘struct wireless_dev’ has no member named ‘ssid’
952 | || (_rtw_memcmp(wdev->ssid, network->Ssid.Ssid,
| ^~
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:10173: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]
10173 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:10173:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.c:10456:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
10456 | if (wdev->current_bss) {
| ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:257: /home/slawomirlewczyk/WiFi/rtl88x2bu/os_dep/linux/ioctl_cfg80211.o] Błąd 1
make[1]: *** [Makefile:1850: /home/slawomirlewczyk/WiFi/rtl88x2bu] Błąd 2
make[1]: Opuszczenie katalogu '/usr/src/linux-headers-5.19.0-32-generic'
make: *** [Makefile:2391: modules] Błąd 2