[pkg-wpa-devel] Bug#835648: wpasupplicant: suspend takes very long due to problematic system-sleep hook

Alban Browaeys prahal at yahoo.com
Thu Nov 24 18:24:17 UTC 2016


Package: wpasupplicant
Version: 2.5-2+v2.4-3+b1
Followup-For: Bug #835648


Nevermind the previous "fix" is a red herring.

Otherwise the test on /run_wpasupplicant helps at times (but I confirm
there are instances when the it is still available at system-sleep time).
But it is a bit weird: if we expect the directory never to be there at
system-sleep time then the whole wpasupplicant script has no use.

If we expect it to always exists at this stage then the test is
useless.

All in all system-sleep script are run last, so even when NetworkManager
has not turned wpa_supplicant down completely, wpa_cli cannot do its
job. (ie when /run/wpa_supplicant is not deleted but happens that the sockets
in there are partially deleted). Even if the wlan0 socket exists at test time, 
we are so late that it could have vanished by the time wpa_cli process
the request.

Could we bind those wpa_cli commands to wpa_supplicant events ?
Or an nm-dispatcher script / down script ?


Alban



More information about the Pkg-wpa-devel mailing list