Hi Folks,
i like to connect my RPi 1B+ to a wireless network. I am using an EDIMAX USB wifi adapter for it, it seems to be detected correctly:
$this->bbcode_second_pass_code('', 'Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]')
I have created a /etc/wpa_supplicant/wpa_supplicant.conf for it:
$this->bbcode_second_pass_code('', 'network={
ssid="myssid"
psk="mysupersecretkey"
}')
I also created a /etc/systemd/network/wlan0.network because i wanted to use systemd-networkd for that and as the usb wifi interface seems to be named wlan0 that seemed correctly to me:
$this->bbcode_second_pass_code('', '[Match]
Name=wlan0
[Network]
DHCP=yes')
So, my wpa_supplicant.service is running
$this->bbcode_second_pass_code('', '* wpa_supplicant.service - WPA supplicant
Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2019-08-21 10:15:11 UTC; 1min 9s ago
Main PID: 212 (wpa_supplicant)
Tasks: 1 (limit: 987)
Memory: 2.4M
CGroup: /system.slice/wpa_supplicant.service
`-212 /usr/bin/wpa_supplicant -u
Aug 21 10:14:26 mitt151 systemd[1]: Starting WPA supplicant...
Aug 21 10:14:27 mitt151 wpa_supplicant[212]: Successfully initialized wpa_supplicant
Aug 21 10:15:11 mitt151 systemd[1]: Started WPA supplicant.')
Unfortunately it does not seem to work, when i start wpa_supplicant manually like
$this->bbcode_second_pass_code('', 'wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf')
it works, so i guess the config of wpa_supplicant is ok. It seems more like a missing activation of a service in systemd.
ip addr says:
$this->bbcode_second_pass_code('', '3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 01:02:03:04:05:06 brd ff:ff:ff:ff:ff:ff')
I would be very thankful for any suggestions, it looks like i am missing an essential point in my configuration of this little board. I just cannot see where (maybe situation-blind for now )