Saturday, February 27, 2016

raspi edimax wlan

WLAN on raspberry pi with edimax usb adapter


Installed new NOOBS on a raspi that was laying around on my desk ... 
I went for a headless aka silentinstall installation. The raspi still had some EDIMAX wireless usb adapter installed.


Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

So ... that little thing worked before ... pretty sure about that. Now I did not get wifi connection to my access point :(

Some of the strange log messages include:

$ sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands

wlan0: Failed to initialize driver interface

Google says there's others with this issue ... but really it took quite a while to find a working solution ... so what helped me is from this source:
 
 http://ratgeber-community.com/wlan-mit-raspberry-pi-raspbian-und-edimax-ew-7811un-44527d2f

When I ran wpa_supplicant with -dd I was wondering  why my access point got ignored, yes SSID is hidden but so what?

So from the page above the hint was to add stuff to the /etc/network/interfaces
auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
wpa-ap-scan 1
wpa-scan-ssid 1

wpa-ssid "MYSSID"
wpa-proto RSN
wpa-pairwise CCMP
wpa-key-mgmt WPA-PSK
wpa-psk "mytotallysecurepassphrase"
iface default inet dhcp


The auth stuff and proto and such is actually all in wpa_supplicant.conf as well but for some reason connecting to AP without wpa-ap-scan and wpa-scan-ssid does not work here (anymore).


No comments: