Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


wlan not activated
#6
All,

thanks a lot for all your replies!

A couple of comments
  • ESSID/PSK are ok, otherwise it would not connect from command line Tongue
  • wpa_supplicant starts with a different commandline compared to what @TheOldPresbyope  mentioned, see my systemctl output below
Code:
  CGroup: /system.slice/wpa_supplicant.service
          └─400 /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant
 
So, no options -iwlan0, -B, -D... why? @TheOldPresbyope , which version are you using? I am on the 7.0.1.

Btw, before reading your posts I already modified the systemd script
Code:
[Service]
Type=dbus
BusName=fi.w1.wpa_supplicant1
ExecStart=/sbin/wpa_supplicant -Dwext -u -s -O /run/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0

adding the driver wext, at the nl80211 showed errors in the syslog. Now it works, although not as nice as yours (7€ dongle, not the highest quality)

Code:
pi@moode:~ $ systemctl status wpa_supplicant
● wpa_supplicant.service - WPA supplicant
  Loaded: loaded (/lib/systemd/system/wpa_supplicant.service; enabled; vendor preset: enabled)
  Active: active (running) since Sat 2021-02-06 19:18:39 CET; 3s ago
Main PID: 2847 (wpa_supplicant)
   Tasks: 1 (limit: 2063)
  CGroup: /system.slice/wpa_supplicant.service
          └─2847 /sbin/wpa_supplicant -Dnl80211,wext -u -s -O /run/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -iwlan0

Feb 06 19:18:39 moode wpa_supplicant[2847]: rfkill: Cannot get wiphy information
Feb 06 19:18:39 moode wpa_supplicant[2847]: ioctl[SIOCSIWAP]: Operation not permitted
Feb 06 19:18:39 moode wpa_supplicant[2847]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Feb 06 19:18:39 moode wpa_supplicant[2847]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Feb 06 19:18:40 moode wpa_supplicant[2847]: wlan0: Trying to associate with 5c:49:79:37:47:be (SSID='MyNet' freq=2462 MHz)
Feb 06 19:18:40 moode wpa_supplicant[2847]: Failed to add supported operating classes IE
Feb 06 19:18:40 moode wpa_supplicant[2847]: wlan0: Association request to the driver failed
Feb 06 19:18:41 moode wpa_supplicant[2847]: wlan0: Associated with 5c:49:79:37:47:be
Feb 06 19:18:42 moode wpa_supplicant[2847]: wlan0: WPA: Key negotiation completed with 5c:49:79:37:47:be [PTK=CCMP GTK=CCMP]
Feb 06 19:18:42 moode wpa_supplicant[2847]: wlan0: CTRL-EVENT-CONNECTED - Connection to 5c:49:79:37:47:be completed [id=0 id_str=]


Is this a bug in the systemd script I can report? I did not mess around with that file before Angel  

Thanks
Max
Reply


Messages In This Thread
wlan not activated - by didomax - 02-06-2021, 09:00 AM
RE: wlan not activated - by Tim Curtis - 02-06-2021, 01:44 PM
RE: wlan not activated - by TheOldPresbyope - 02-06-2021, 02:36 PM
RE: wlan not activated - by Tim Curtis - 02-06-2021, 02:48 PM
RE: wlan not activated - by TheOldPresbyope - 02-06-2021, 02:58 PM
RE: wlan not activated - by didomax - 02-06-2021, 06:23 PM
RE: wlan not activated - by Tim Curtis - 02-06-2021, 07:54 PM
RE: wlan not activated - by TheOldPresbyope - 02-06-2021, 07:22 PM
RE: wlan not activated - by didomax - 02-06-2021, 07:52 PM

Forum Jump: