Wifi adapter

Jerry Snitselaar dev at snitselaar.org
Thu Apr 13 15:04:37 MST 2017


Stephen M @ 2017-04-13 04:45 GMT:

I went and picked one of these up at Fry's since they were $10.
Using usb passthrough from my fedora host to the ubuntu vm, I
can get the device to come up with either the r8188eu driver that
comes with Ubuntu, or the 8188eu driver that tp-link provides.

One thing I had to do when rebooting the vm was remove and reinsert
the device, but that could just be an issue with using it through
usb passthrough.

This is with 14.04.3 running 3.19.0-25-generic

Perhaps if you want to use the tp-link provided one, maybe blacklist
the Ubuntu driver.

snits



jsnitsel at ubuntu14-32:~$ lsmod | grep 8188
jsnitsel at ubuntu14-32:~$ lsusb
Bus 001 Device 004: ID 0bda:8179 Realtek Semiconductor Corp. 
Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
jsnitsel at ubuntu14-32:~$ find /lib/modules -type f -name 8188eu.ko
jsnitsel at ubuntu14-32:~$ cd Downloads/Driver/
jsnitsel at ubuntu14-32:~/Downloads/Driver$ ls
8188eu.ko     8188eu.o  core         include   modules.order   platform   wpa_0_8.conf
8188eu.mod.c  bin       hal          Kconfig   Module.symvers  runwpa
8188eu.mod.o  clean     ifcfg-wlan0  Makefile  os_dep          wlan0dhcp
jsnitsel at ubuntu14-32:~/Downloads/Driver$ sudo cp 8188eu.ko /lib/modules/`uname -r`/extra/
[sudo] password for jsnitsel: 
jsnitsel at ubuntu14-32:~/Downloads/Driver$ sudo depmod -a
jsnitsel at ubuntu14-32:~/Downloads/Driver$ 
jsnitsel at ubuntu14-32:~/Downloads/Driver$ sudo modprobe 8188eu
jsnitsel at ubuntu14-32:~/Downloads/Driver$ ip a show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 52:54:00:e0:39:64 brd ff:ff:ff:ff:ff:ff
    inet6 fe80::5054:ff:fee0:3964/64 scope link 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d4:6e:0e:19:87:a3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.163/24 brd 192.168.1.255 scope global wlan0
       valid_lft forever preferred_lft forever
    inet6 fe80::d66e:eff:fe19:87a3/64 scope link 
       valid_lft forever preferred_lft forever
jsnitsel at ubuntu14-32:~/Downloads/Driver$ cd /sys/class/net/wlan0/device
jsnitsel at ubuntu14-32:/sys/class/net/wlan0/device$ cat uevent 
DEVTYPE=usb_interface
DRIVER=rtl8188eu
PRODUCT=bda/8179/0
TYPE=0/0/0
INTERFACE=255/255/255
MODALIAS=usb:v0BDAp8179d0000dc00dsc00dp00icFFiscFFipFFin00
jsnitsel at ubuntu14-32:/sys/class/net/wlan0/device$ lsmod | grep 8188
8188eu                933888  0 
cfg80211              450560  1 8188eu
jsnitsel at ubuntu14-32:/sys/class/net/wlan0/device$ ping -c 5 google.com
PING google.com (216.58.217.206) 56(84) bytes of data.
64 bytes from lax17s05-in-f14.1e100.net (216.58.217.206): icmp_seq=1 ttl=55 time=23.6 ms
64 bytes from lax17s05-in-f14.1e100.net (216.58.217.206): icmp_seq=2 ttl=55 time=29.9 ms
64 bytes from lax17s05-in-f14.1e100.net (216.58.217.206): icmp_seq=3 ttl=55 time=28.3 ms
64 bytes from lax17s05-in-f14.1e100.net (216.58.217.206): icmp_seq=4 ttl=55 time=22.0 ms
64 bytes from lax17s05-in-f14.1e100.net (216.58.217.206): icmp_seq=5 ttl=55 time=22.6 ms

--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 22.064/25.314/29.975/3.209 ms
jsnitsel at ubuntu14-32:/sys/class/net/wlan0/device$ uname -r
3.19.0-25-generic
jsnitsel at ubuntu14-32:/sys/class/net/wlan0/device$ find /lib/modules -type f -name 8188eu.ko
/lib/modules/3.19.0-25-generic/extra/8188eu.ko
jsnitsel at ubuntu14-32:~$ cd /etc/modprobe.d/
jsnitsel at ubuntu14-32:/etc/modprobe.d$ cat blacklist-r8188eu.conf 
blacklist r8188eu



More information about the PLUG-discuss mailing list