Carte wifi edimax ew-7811-uac

Bonjour

J’ai installé une carte wifi Edimax ew-7811-uac sur ubuntu en suivant ce [tuto](http://How to install EW-7811 AC600 & EW-7822UAC in Linux with kernel higher than v4.1), tout va bien tout marche bien

J’ai voulu faire la même sur un raspberry, en utilisant ce tuto pour installer les driver : tuto. La compilation se passe bien tout à l’air d’aller bien.

Le but est d’arriver à faire un point d’accès wifi en passant par la carte Edimax plutot que par la carte wifi interne du raspberry. J’y arrive sur mon portable sous ubuntu mais pas sur le raspberry

Voici les sorties de quelques commandes sur le raspberry :

uname -a
Linux raspberrypi 4.14.70-v7+ #1144 SMP Tue Sep 18 17:34:46 BST 2018 armv7l GNU/Linux

enx74da38e74b73 : carte wifi edimax
wlan0 : carte wifi interne du raspberry
enxb827ebbd1bc8 : carte ethernet du raspberry

ifconfig

enx74da38e74b73: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether 74:da:38:e7:4b:73  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 12  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enxb827ebbd1bc8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.176  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::288e:6e1e:d2f2:9a31  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:bd:1b:c8  txqueuelen 1000  (Ethernet)
        RX packets 21826  bytes 1604448 (1.5 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 14871  bytes 1054283 (1.0 MiB)
        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 1000  (Boucle locale)
        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

wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether b8:27:eb:e8:4e:9d  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

tout à l’air d’aller bien, mais la carte wifi est nommée par e… alors que j’aurais attendu un w…
la carte wifi wlan0 n’a pas d’IP, j’ai volontairement pas rentré de connexion à mon réseau.

iwconfig

enx74da38e74b73  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
          
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=31 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

La carte edimax semble bien détectée comme periphérique wifi. MAIS pourquoi est-ce que la sortie des deux cartes est si différente ? Sur ubuntu, j’avais 802.11 à la place de unassociated. On dirait qu’il y a un problème de configuration.

sudo iwlist scan | grep ESSID
enx74da38e74b73
		ESSID:"Bbox-7718268B"
		... 18 à 20 en tout
		ESSID:"Bbox-04EF0CDD-5GHz"
wlan0
		ESSID:"Bbox-04EF0CDD"
		... 9 en tout
		ESSID:"SFR-9f5c_5GHz"

Les deux cartes détectent tout un tas de réseau… tout à l’air d’aller bien. La carte edimax a l’air d’en détecter plus (20 contre 9)

Les problèmes commencent avec iw xxx info :

iw wlan0 info
Interface wlan0
	ifindex 4
	wdev 0x1
	addr b8:27:eb:e8:4e:9d
	type managed
	wiphy 0
	channel 36 (5180 MHz), width: 20 MHz, center1: 5180 MHz
	txpower 31.00 dBm

iw enx74da38e74b73 info
command failed: No such device (-19)

Bon ya bien un problème de détection de la carte.

voici mes questions :

*Est ce grave si le nom de la carte commence par e et pas par w ?
*Est-ce grave si avec iwconfig, la carte est indiquée « unassociated » plutôt que 802.11 ?
*Comment régler le problème de détection avec iw ?
*Bref … comment rendre la carte fonctionnelle ?

Pour info, je suis parti d'une installation fraiche de raspbian, les fichiers /etc/network/interfaces et /etc/wpa_supplicant/wpa_supplicant.conf n'ont pas été touchés.

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:

cat /etc/wpa_supplicant/wpa_supplicant.conf 
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR