Tl-wn823n

Hi all!

hope this is the right place for this !

I’m on ubuntu 17.04 64bit latest kernel

I’ve purchased this :
http://www.tp-link.com/us/download/TL-WN823N.html

(and I saw this thread but if I’m not mistaken I have to successfully install the driver first and o nothing shows up in “additional drivers”)

can’t get it to work for the life of me.
their devs don’t exactly make it easy : a make thingy which break on the first few steps of the instructions.

Can I have a enlightened guide on how to do this ?

t@tsu:~/Downloads/driver/Driver$ sudo make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.0-35-generic/build M=/home/t/Downloads/driver/Driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.0-35-generic'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /home/t/Downloads/driver/Driver/core/rtw_cmd.o
In file included from /home/t/Downloads/driver/Driver/include/drv_types.h:95:0,
                 from /home/t/Downloads/driver/Driver/core/rtw_cmd.c:22:
/home/t/Downloads/driver/Driver/include/hal_com.h:413:13: error: ‘file_path’ redeclared as different kind of symbol
 extern char file_path[PATH_LENGTH_MAX];
             ^~~~~~~~~
In file included from ./include/linux/seq_file.h:10:0,
                 from ./include/linux/pinctrl/consumer.h:17,
                 from ./include/linux/pinctrl/devinfo.h:21,
                 from ./include/linux/device.h:24,
                 from ./include/linux/dmaengine.h:20,
                 from ./include/linux/netdevice.h:38,
                 from /home/t/Downloads/driver/Driver/include/osdep_service_linux.h:35,
                 from /home/t/Downloads/driver/Driver/include/osdep_service.h:41,
                 from /home/t/Downloads/driver/Driver/include/drv_types.h:32,
                 from /home/t/Downloads/driver/Driver/core/rtw_cmd.c:22:
./include/linux/fs.h:2680:14: note: previous declaration of ‘file_path’ was here
 extern char *file_path(struct file *, char *, int);
              ^~~~~~~~~
In file included from /home/t/Downloads/driver/Driver/include/drv_types.h:65:0,
                 from /home/t/Downloads/driver/Driver/core/rtw_cmd.c:22:
/home/t/Downloads/driver/Driver/core/rtw_cmd.c: In function ‘btinfo_evt_dump’:
/home/t/Downloads/driver/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/t/Downloads/driver/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^~~~~~~~
/home/t/Downloads/driver/Driver/core/rtw_cmd.c:3293:2: note: in expansion of macro ‘DBG_871X_SEL_NL’
  DBG_871X_SEL_NL(sel, "cid:0x%02x, len:%u\n", info->cid, info->len);
  ^~~~~~~~~~~~~~~
/home/t/Downloads/driver/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/t/Downloads/driver/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^~~~~~~~
/home/t/Downloads/driver/Driver/core/rtw_cmd.c:3296:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte2:%s%s%s%s%s%s%s%s\n"
   ^~~~~~~~~~~~~~~
/home/t/Downloads/driver/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/t/Downloads/driver/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^~~~~~~~
/home/t/Downloads/driver/Driver/core/rtw_cmd.c:3308:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "retry_cnt:%u\n", info->retry_cnt);
   ^~~~~~~~~~~~~~~
/home/t/Downloads/driver/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/t/Downloads/driver/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^~~~~~~~
/home/t/Downloads/driver/Driver/core/rtw_cmd.c:3311:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "rssi:%u\n", info->rssi);
   ^~~~~~~~~~~~~~~
/home/t/Downloads/driver/Driver/include/rtw_debug.h:187:19: error: void value not ignored as it ought to be
  #define _seqdump seq_printf
                   ^
/home/t/Downloads/driver/Driver/include/rtw_debug.h:242:7: note: in expansion of macro ‘_seqdump’
    if(_seqdump(sel, fmt, ##arg)) /*rtw_warn_on(1)*/; \
       ^~~~~~~~
/home/t/Downloads/driver/Driver/core/rtw_cmd.c:3314:3: note: in expansion of macro ‘DBG_871X_SEL_NL’
   DBG_871X_SEL_NL(sel, "byte5:%s%s\n"
   ^~~~~~~~~~~~~~~
scripts/Makefile.build:294: recipe for target '/home/t/Downloads/driver/Driver/core/rtw_cmd.o' failed
make[2]: *** [/home/t/Downloads/driver/Driver/core/rtw_cmd.o] Error 1
Makefile:1524: recipe for target '_module_/home/t/Downloads/driver/Driver' failed
make[1]: *** [_module_/home/t/Downloads/driver/Driver] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.0-35-generic'
Makefile:1696: recipe for target 'modules' failed
make: *** [modules] Error 2

The end goal here is to connect my xbox one controller. so if I can’t and I’m wasting my time tell me :stuck_out_tongue:

  1. don’t run builds as root
  2. it looks like the driver is not meant to work with the version of the kernel you’re giving it headers for.

which version of the kernel are you actually using (as opposed to building against).

and what’s the lsusb on it?

hey thanks for answering

I’ve no idea :

t@tsu:~/Downloads/driver/Driver$ lsusb
Bus 002 Device 006: ID 1908:2070 GEMBIRD 
Bus 002 Device 005: ID 04b4:121f Cypress Semiconductor Corp. 
Bus 002 Device 069: ID 045e:02d1 Microsoft Corp. XBOX One Controller for Windows
Bus 002 Device 003: ID 046d:c24d Logitech, Inc. G710 Gaming Keyboard
Bus 002 Device 072: ID 2357:0109  
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 17a0:0100 Samson Technologies Corp. C03U multi-pattern microphone
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

and :

t@tsu:~/Downloads/driver/Driver$ uname -a
Linux tsu 4.10.0-35-generic #39-Ubuntu SMP Wed Sep 13 07:46:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

and they recommend building with :
System version: Ubuntu 14.04.1
Kernel v ersion: 3.16.0-30-generic
Gcc version: 4.8.2

but I don’t think I can meet that. and shouldn’t it be okay if it’s all above?

that’s your wifi

try the driver from here:

2 Likes

Thanks !

well now i see networks and I connect but when I try to browse there’s no internet

Also all of this is just to connect my xbox one controller. do I create another thread for that?

not sure what that a thread would accomplish, … I’ve never used wifi direct for anything, not sure if there’s some special ubuntu ui thing for that or if you have to go through wpa_supplicant

1 Like

after some googling turn out it’s a WIP :

with that you’ll be able to use any 5Ghz (+ ?) usb wifi dongle and pair it.

That thing doesen’t work properly on Linux. I have the V1.3 and the V2. The V1.3 is plug and play, works without any hassle, the V2 I didn’t manage to make it work. If you can send that back and buy this that works out of the box with Linux, no hassle.

Regarding connecting the Xbox controller through wifi I don’t know how to help you.

Theres more elegant ways to do this. Look up xboxdrv its a lifesaver.