-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to compile program #283
Comments
6.6.30-gentoo-dist |
Hello, I have been able to successfully compile through your method, but I still cannot recognize the network card。 |
i've googled for you and found the following: also you might try to use already in-kernel module: |
rtl8xxxu should work since kernel 6.4. Unfortunately the driver in Larry Finger's repository is broken. If you don't want to use rtl8xxxu, try this one: https://github.com/McMCCRU/rtl8188gu Also, iwconfig has been deprecated for a long time. You should use iw instead ( |
hello
I got this error while compiling the driver,
make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/6.6.15-amd64/build M=/home/kali/Desktop/wangka/rtl8188gu modules
make[1]: Entering directory '/usr/src/linux-headers-6.6.15-amd64'
CC [M] /home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.o
/home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:398:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
398 | cfg80211_ch_switch_notify(adapter->pnetdev, &chdef, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/kali/Desktop/wangka/rtl8188gu/include/osdep_service_linux.h:93,
from /home/kali/Desktop/wangka/rtl8188gu/include/osdep_service.h:47,
from /home/kali/Desktop/wangka/rtl8188gu/include/drv_types.h:27,
from /home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:17:
/usr/src/linux-headers-6.6.15-common/include/net/cfg80211.h:8597:6: note: declared here
8597 | void cfg80211_ch_switch_notify(struct net_device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.c:2619:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
2619 | if (ssids->ssid != NULL
| ^~
/usr/src/linux-headers-6.6.15-common/include/net/cfg80211.h:2441:12: note: ‘ssid’ declared here
2441 | u8 ssid[IEEE80211_MAX_SSID_LEN];
| ^~~~
make[3]: *** [/usr/src/linux-headers-6.6.15-common/scripts/Makefile.build:248: /home/kali/Desktop/wangka/rtl8188gu/os_dep/linux/ioctl_cfg80211.o] Error 1
make[2]: *** [/usr/src/linux-headers-6.6.15-common/Makefile:1938: /home/kali/Desktop/wangka/rtl8188gu] Error 2
make[1]: *** [/usr/src/linux-headers-6.6.15-common/Makefile:246: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.6.15-amd64'
make: *** [Makefile:1895: modules] Error 2
uname -r
6.6.15-amd64
How should this problem be solved?
The text was updated successfully, but these errors were encountered: