nick9859 / tl-wn823N-drivers-for-ubuntu

TP-LINK tl-wn823N drivers for ubuntu
11 stars 1 forks source link

Build Error on `sudo make` #3

Open ccostel opened 4 years ago

ccostel commented 4 years ago
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.4.0-42-generic/build M=/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu modules
make[1]: Entering directory '/usr/src/linux-headers-5.4.0-42-generic'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/core/rtw_cmd.o
In file included from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service.h:41,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/drv_types.h:32,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/core/rtw_cmd.c:22:
/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service_linux.h: In function ‘_init_timer’:
/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service_linux.h:267:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
  267 |  ptimer->data = (unsigned long)cntx;
      |        ^~
/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service_linux.h:268:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
  268 |  init_timer(ptimer);
      |  ^~~~~~~~~~
      |  _init_timer
In file included from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/drv_types.h:35,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/core/rtw_cmd.c:22:
/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/wifi.h: At top level:
/hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/wifi.h:994: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
  994 | #define IEEE80211_MAX_AMPDU_BUF 0x40
      | 
In file included from ./include/net/cfg80211.h:21,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service_linux.h:81,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/osdep_service.h:41,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/include/drv_types.h:32,
                 from /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/core/rtw_cmd.c:22:
./include/linux/ieee80211.h:1460: note: this is the location of the previous definition
 1460 | #define IEEE80211_MAX_AMPDU_BUF  0x100
      | 
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:275: /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu/core/rtw_cmd.o] Error 1
make[1]: *** [Makefile:1731: /hdd/hoard/soft/tl-wn823N-drivers-for-ubuntu] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.4.0-42-generic'
make: *** [Makefile:1696: modules] Error 2
dcolley commented 2 years ago

I used this repo: https://github.com/Mange/rtl8192eu-linux-driver works for me on ubuntu 18

villagerrrrrrrrr commented 2 years ago

do you have the same device? TL-WN823N ? because i'm having the same error as his and the project you gave the link does not support this device

dcolley commented 2 years ago

I managed to get it working sometimes, but always needed manual commands. The problem seems to be when the dongle is inserted at the time of boot. When I insert the dongle after booted, then it's recognised ok.

Frankly, I can't manage to get an automatic wifi connection after reboot and I gave up in the end...

For my needs a simple fix is to get one of these wifi=ethernet bridges: https://amzn.to/3v5BjrJ

villagerrrrrrrrr commented 2 years ago

Ok so, you are basically saying that the drivers do not work automatically when the dongle is inserted and you reboot. you can just simply make the os realise the dongle after some seconds of boot, just create a systemctl service which does that. well, you have buyed a ethernet wireless extendor so it does not matter. i have returned my product anyways, my internal wifi adaptor have a higher speed that this product. lol