[opensuse-factory] Wicked and wpa_supplicant
Hi, I used to have ifcfg-wlan0 configuration that turned up my WiFi interface and called wpa_supplicant on that interface with configuration file I had prepared. It was long time ago. Now I lost it and I have no idea how to recreate it. Tried various options, but I always get wpa_supplicant running like this: /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log and not connecting to any WiFi defined in configuration file. Does anybody know what to write to ifcfg-wlan0 to run wpa_supplicant normally: /usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0 -f /var/log/wpa_supplicant.log I'm not even sure whether it is even still possible as it might be that this setup of mine was last working before Wicked came. Anybody using the same setup or have an idea how to get it working with wicked? Probably irrelevant, but I'm running Tumbleweed. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On Sat, 12 Mar 2016 09:43:10 +0100 Michal Hrusecky <Michal.Hrusecky@opensuse.org> wrote:
Hi,
Hi,
I used to have ifcfg-wlan0 configuration that turned up my WiFi interface and called wpa_supplicant on that interface with configuration file I had prepared. It was long time ago. Now I lost it and I have no idea how to recreate it. Tried various options, but I always get wpa_supplicant running like this:
/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log
Run wpa_supplicant using system from it's default service file. Make sure the service Type=dbus etc. Wicked reads up ifcfg file and talks to wpa_supplicant over dbus. Thus there is no need to start wpa_supplicant specifically (at least unless you need some special configuration wicked does not support yet).
and not connecting to any WiFi defined in configuration file.
There is a man page with examples, see: man ifcfg-wireless. So create you ifcfg file accordingly and then 'wicked ifup wlan0' should do the trick. Note: only basic configuration (single network, WPA/WPA2 or EAP) is supported by wicked as of yet. - -- Best Regards, Pawel Wieczorkiewicz SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg Email: pawelw@suse.com | Phone: +49-911-740 53 - 613 GPG Fingerprint = 2E50 AA20 7A5C 2AAC 7A9C 4367 65B1 F079 D155 6665 -----BEGIN PGP SIGNATURE----- iQEcBAEBCgAGBQJW5pAZAAoJEIgpEzNan4VozesH/inf0URc7LtSzHkYyO94i2GZ 1m3OR/vioHgFLevi9FeZqT+JjTOF/KZp9gjnfTvKk9hjbAgUSLY9tuXq2aEYO/r4 gYvMORFuo50fkBjU4mSM1DzfbLAdSmHHcbp5LEaRrDsLK/wQN6Oa9rWZnZC6fwhi Sfpbw+4duMBTB2AWMD/Sd72OczvqTD+n+lMSpgpDU4kZw9E4XZJcaMw6FqhCZASE T0PbHAHmPqXuBMesDT/GZpuiHwTKmzgFU6MAzchQug2Sw4zvHMhglYU11YfWGujp hNrAmce2bSIsuxl5Unsh8cE/4cJzz+63vqVdhZWBpBXO1B5z34BvwVa/zt7ETq4= =+AgM -----END PGP SIGNATURE----- N�����r��y隊Z)z{.���r�+�맲��r��z�^�ˬz��N�(�֜��^� ޭ隊Z)z{.���r�+��0�����Ǩ�
Pawel Wieczorkiewicz - 11:19 14.03.16 wrote:
On Sat, 12 Mar 2016 09:43:10 +0100 Michal Hrusecky <Michal.Hrusecky@opensuse.org> wrote:
Hi,
Hi,
I used to have ifcfg-wlan0 configuration that turned up my WiFi interface and called wpa_supplicant on that interface with configuration file I had prepared. It was long time ago. Now I lost it and I have no idea how to recreate it. Tried various options, but I always get wpa_supplicant running like this:
/usr/sbin/wpa_supplicant -c /etc/wpa_supplicant/wpa_supplicant.conf -u -f /var/log/wpa_supplicant.log
Run wpa_supplicant using system from it's default service file. Make sure the service Type=dbus etc. Wicked reads up ifcfg file and talks to wpa_supplicant over dbus. Thus there is no need to start wpa_supplicant specifically (at least unless you need some special configuration wicked does not support yet).
and not connecting to any WiFi defined in configuration file.
There is a man page with examples, see: man ifcfg-wireless.
So create you ifcfg file accordingly and then 'wicked ifup wlan0' should do the trick.
Note: only basic configuration (single network, WPA/WPA2 or EAP) is supported by wicked as of yet.
Yep, looks like documentation doesn't mention the option I used to be using (WIRELESS_WPA_CONF) and wicked doesn't support my use-case - basically just calling wpa_supplicatant and let it pick the network and configure it by itself as wpa_supplicant supports multiple networks, which is what I was after. Thanks. Looks like I will have to hack around it somehow. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (2)
-
Michal Hrusecky
-
Pawel Wieczorkiewicz