Package: wpasupplicant
Version: 2:2.7-3
Severity: normal

wpasupplicant does not promptly restart dhclient after suspending and
resuming my laptop.

Expected behaviour: if I suspend my laptop, move to a different
location, and resume my laptop, wpasupplicant should associate to the
new network and promptly get a new DHCP lease.

Current behaviour: wpasupplicant associates to the new network but takes
several minutes to attempt to get a new lease. (It is not clear to me
whether dhclient gets a new lease on its own or because it gets prodded
by wpa_supplicant.) Practically speaking, this means I end up having to
manually put the interface down and up again.

Notice the significant lag between associating (11:16:17) and dhclient
finally attempting to get a lease (11:18:43) in the output of journalctl
below. This was after suspending my laptop and moving it from work to
home.

-----------------journalctl-------------------------------------
rak@zeta:~$ sudo journalctl -xe --since=2019-02-02 | egrep -i '(wpa|wlp2)'
Feb 02 11:16:14 zeta kernel: wlp2s0: deauthenticating from b4:5d:50:cc:f3:f3 by 
local choice (Reason: 3=DEAUTH_LEAVING)
Feb 02 11:16:14 zeta wpa_supplicant[1006]: wlp2s0: CTRL-EVENT-DISCONNECTED 
bssid=b4:5d:50:cc:f3:f3 reason=0
Feb 02 11:16:14 zeta wpa_supplicant[1006]: wlp2s0: PMKSA-CACHE-REMOVED 
b4:5d:50:cc:f3:f3 0
Feb 02 11:16:17 zeta wpa_supplicant[1006]: wlp2s0: Trying to associate with 
c4:e9:84:e2:28:8e (SSID='MySSID' freq=2422 MHz)
Feb 02 11:16:17 zeta wpa_supplicant[1006]: Failed to add supported operating 
classes IE
Feb 02 11:16:17 zeta kernel: wlp2s0: authenticate with c4:e9:84:e2:28:8e
Feb 02 11:16:17 zeta kernel: wlp2s0: send auth to c4:e9:84:e2:28:8e (try 1/3)
Feb 02 11:16:17 zeta kernel: wlp2s0: authenticated
Feb 02 11:16:17 zeta kernel: wlp2s0: associate with c4:e9:84:e2:28:8e (try 1/3)
Feb 02 11:16:17 zeta wpa_supplicant[1006]: wlp2s0: Associated with 
c4:e9:84:e2:28:8e
Feb 02 11:16:17 zeta kernel: wlp2s0: RX AssocResp from c4:e9:84:e2:28:8e 
(capab=0x31 status=0 aid=2)
Feb 02 11:16:17 zeta kernel: wlp2s0: associated
Feb 02 11:16:17 zeta wpa_supplicant[1006]: wlp2s0: CTRL-EVENT-EAP-SUCCESS EAP 
authentication completed successfully (based on lower layer success)
Feb 02 11:16:17 zeta wpa_supplicant[1006]: wlp2s0: WPA: Key negotiation 
completed with c4:e9:84:e2:28:8e [PTK=CCMP GTK=CCMP]
Feb 02 11:16:17 zeta wpa_supplicant[1006]: wlp2s0: CTRL-EVENT-CONNECTED - 
Connection to c4:e9:84:e2:28:8e completed [id=2 id_str=]
Feb 02 11:17:20 zeta dhclient[1505]: XMT: Solicit on wlp2s0, interval 123840ms.
Feb 02 11:18:43 zeta charon[6269]: 09[KNL] 128.237.183.78 disappeared from 
wlp2s0
Feb 02 11:18:43 zeta charon-systemd[1137]: 128.237.183.78 disappeared from 
wlp2s0
Feb 02 11:18:43 zeta dhclient[1367]: DHCPDISCOVER on wlp2s0 to 255.255.255.255 
port 67 interval 7
Feb 02 11:18:44 zeta dhclient[1367]: DHCPREQUEST for 192.168.0.51 on wlp2s0 to 
255.255.255.255 port 67
Feb 02 11:18:44 zeta charon[6269]: 11[KNL] 192.168.0.51 appeared on wlp2s0
Feb 02 11:18:44 zeta charon-systemd[1137]: 192.168.0.51 appeared on wlp2s0
Feb 02 11:19:24 zeta dhclient[1505]: XMT: Solicit on wlp2s0, interval 123140ms.
Feb 02 11:21:27 zeta dhclient[1505]: XMT: Solicit on wlp2s0, interval 115530ms.
-----------------------------------------------------------------

----------------/etc/network/interfaces--------------------------
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eno1
iface eno1 inet dhcp

auto wlp2s0
allow-hotplug wlp2s0
iface wlp2s0 inet manual
        wpa-driver wext
        wpa-roam /home/rak/.config/wpa_supplicant.conf
iface default inet dhcp
iface default inet6 dhcp
-----------------------------------------------------------------


------------/home/rak/.config/wpa_supplicant.conf----------------
# Use the following command to generate a new network block:
# wpa_passphrase SSID PASSPHRASE
ap_scan=1
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
network={
        ssid="CMU-SECURE"
        priority=10
        scan_ssid=1
        proto=RSN
        key_mgmt=WPA-EAP
        pairwise=CCMP
        eap=PEAP
        domain_suffix_match="cmu.edu"
        identity=XXXXXXXXXXXXXXXXXXX
        password=XXXXXXXXXXXXXXXXXXX
        ca_path="/etc/ssl/certs"
}
network={
        ssid="eduroam"
        priority=5
        scan_ssid=1
        key_mgmt=WPA-EAP
        eap=PEAP
        phase2="auth=MSCHAPV2"
        domain_suffix_match="queensu.ca"
        identity=XXXXXXXXXXXXXXXXXXX
        password=XXXXXXXXXXXXXXXXXXX
        ca_path="/etc/ssl/certs"
}
network={
        ssid="MySSID"
        priority=2
        scan_ssid=1
        psk=XXXXXXXXXXXXXXXXXXXXXXX
}
network={
        ssid="FlyPittsburgh"
        scan_ssid=1
}
network={
        ssid="VIA_WIFI_VIDEO"
        scan_ssid=1
}
-----------------------------------------------------------------
-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_CA.UTF-8), LANGUAGE=en_CA.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set 
to en_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wpasupplicant depends on:
ii  adduser            3.118
ii  libc6              2.28-5
ii  libdbus-1-3        1.12.12-1
ii  libnl-3-200        3.4.0-1
ii  libnl-genl-3-200   3.4.0-1
ii  libnl-route-3-200  3.4.0-1
ii  libpcsclite1       1.8.24-1
ii  libreadline7       7.0-5
ii  libssl1.1          1.1.1a-1
ii  lsb-base           10.2018112800

wpasupplicant recommends no packages.

Versions of packages wpasupplicant suggests:
pn  libengine-pkcs11-openssl  <none>
pn  wpagui                    <none>

-- no debconf information

-- 
|)|/  Ryan Kavanagh      | GPG: 4E46 9519 ED67 7734 268F
|\|\  https://rak.ac     |      BD95 8F7B F8FC 4A11 C97A

Attachment: signature.asc
Description: PGP signature

Reply via email to