[pkg-wpa-devel] wpa_supplicant's control socket disappears after suspend (regression?)

Andrew Shadura andrew at shadura.me
Wed Nov 16 20:37:03 UTC 2016


On 16/11/16 21:30, Andrew Shadura wrote:
> Hello,
> 
> Shortly after wpa_supplicant 2.6 was released, I uploaded it to Debian
> experimental and started using it on my work machine (which runs
> Ubuntu). I soon noticed I often have no wireless connection upon resume
> from suspend, much more often than what I had with either 2.4 or 2.5.
> Also, previously wpa_cli scan would reconnect to the network, now it
> fails to talk to wpa_supplicant:
> 
> Could not connect to wpa_supplicant: (nil) - re-trying
> 
> Restarting both wpa_supplicant and network manager often helps, but
> drives nm-applet crazy for some reason, and I have to restart it. Until
> I restart NM, the interface shows as unmanaged in the applet's menu.
> 
> I attempted to run wpa_supplicant manually using the command line from
> its .service file and use wpa_cli, and found out it stopped creating the
> control socket.
> 
> In Debian, we use the following patch by Kel Modderman:
> 
> https://sources.debian.net/src/wpa/2.6-1/debian/patches/07_dbus_service_syslog.patch/
> 
> Unfortunately, when I prepared 2.6-1 upload, I dropped the description
> by mistake, here is it:
> 
> Description: Tweak D-Bus/systemd service activation configuration files:
>  * log wpa_supplicant messages to syslog
>  * activate control socket interface so that wpa_cli can be used by
>    D-Bus activated wpa_supplicant daemon
> 
> I ran wpa_supplicant with this command line and a couple of -d appended,
> attempted wpa_cli again, and again it failed, as there was nothing at
> /run/wpa_supplicant.
> 
> Then I restarted network-manager and saw this in the logs:

[snip]

I have realised my mail client has rewrapped the logs, so I'm attaching
them as a separate file for clarity.

> So somehow NM enables the control socket, but until NM prods
> wpa_supplicant in some magic way, wpa_supplicant doesn't think it's
> necessary to create it.
> 
> Are we doing something wrong in Debian, am I doing something wrong when
> investigating, or is it a regression?
> 
> Thanks in advance.
> 


-- 
Cheers,
  Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wpa.log
Type: text/x-log
Size: 22462 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20161116/54d0c54d/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-wpa-devel/attachments/20161116/54d0c54d/attachment.sig>


More information about the Pkg-wpa-devel mailing list