How to get TP-Link TL-WN722N(EU) Ver 2.0 wifi dongle working on RPi 3 + NAVIO2

I am using Rpi 3 + NAVIO2 (emlid-raspbian-20170922.img.xz)

I have alreay made some changes to the system get intwifi0 as AP using:

I have inserted TP-Link TL-WN722N(EU) Ver 2.0 wifi dongle expecting it to connect to the network that I have spcified in wpa_supplicant file. That config worked with intwifi0 before I changed it to be access point.

Ifconfig shows,

pi@navio:~ $ ifconfig
enxb827eb05e185: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:05:e1:85  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

intwifi0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.10  netmask 255.255.255.0  broadcast 10.10.10.255
        inet6 fe80::27b3:a375:e5d6:7bb0  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:50:b4:d0  txqueuelen 1000  (Ethernet)
        RX packets 1421  bytes 118234 (115.4 KiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 749  bytes 77276 (75.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1  (Local Loopback)
        RX packets 1384  bytes 123326 (120.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1384  bytes 123326 (120.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlxd46e0e028dcf: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether d4:6e:0e:02:8d:cf  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

iwconfig shows,

pi@navio:~ $ iwconfig
intwifi0  IEEE 802.11  Mode:Master  Tx-Power=31 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

enxb827eb05e185  no wireless extensions.

lo        no wireless extensions.

wlxd46e0e028dcf  unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lsusb shows,

pi@navio:~ $ lsusb
Bus 001 Device 005: ID 0e8f:00a7 GreenAsia Inc.
Bus 001 Device 004: ID 2357:010c
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

My interfaces file,

pi@navio:~ $ cat /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

#allow-hotplug intwifi0
#iface intwifi0 inet manual
#    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Hello.

From tutorial I found string nohook wpa_supplicant which does not allow connection using dhcpcd hooks.
Also I see that your device has name wlxd46e0e028dcf, not wlan0 as specified in /etc/network/interfaces. So you can try to change name to wlxd46e0e028dcf.

1 Like

Thanks Alexey,

It seems that adding an entry for wlxd46e0e028dcf in interfaces file solved the problem. I didn’t have to remove no-hook wap_supplicant.

Regards,

Mohammad