Can't connect to Wifi network after suspend and resume

Bug #1635907 reported by Steven Seed
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
New
Undecided
Unassigned

Bug Description

Beginning in Ubuntu 16.04 and getting worse after upgrading to 16.10, I can't connect to wifi networks after suspending and resuming my laptop. I have a Sony Vaio SVP112A1CL with wireless network controller Intel Corporation Wireless 7260 (rev 6b).

Typically I have to restart NetworkManager to recover from the problem (sudo systemctl restart NetworkManager). This seemed to be a reliable way to recover in 16.04, but it doesn't always work in 16.10 and may require a reboot.

In some related bug reports they requested we run `sudo iw dev wlan0 scan` which resulted initially in an error but after running it a few times returned successfully. I'll attach the output below. Even though it did return, the wifi network still was unable to reconnect. I'll try to grab the errors next time, but if I do it now, I'll lose connectivity.

$ apt-cache policy network-manager
network-manager:
  Installed: 1.2.4-0ubuntu1
  Candidate: 1.2.4-0ubuntu1
  Version table:
 *** 1.2.4-0ubuntu1 500
        500 http://us.archive.ubuntu.com/ubuntu yakkety/main amd64 Packages
        100 /var/lib/dpkg/status

$ sudo iw dev wlan0 scan
BSS d4:05:98:46:d9:40(on wlan0) -- associated
 TSF: 2690064842954 usec (31d, 03:14:24)
 freq: 2457
 beacon interval: 100 TUs
 capability: ESS Privacy ShortPreamble ShortSlotTime APSD (0x0c31)
 signal: -68.00 dBm
 last seen: 3728 ms ago
 Information elements from Probe Response frame:
 SSID: stevens-2G
 Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
 DS Parameter set: channel 10
 ERP: <no flags>
 Extended supported rates: 6.0 12.0 24.0 48.0
 Country: US Environment: Indoor/Outdoor
  Channels [1 - 11] @ 36 dBm
 HT capabilities:
  Capabilities: 0x1ec
   HT20
   SM Power Save disabled
   RX HT20 SGI
   RX HT40 SGI
   TX STBC
   RX STBC 1-stream
   Max AMSDU length: 3839 bytes
   No DSSS/CCK HT40
  Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
  Minimum RX AMPDU time spacing: 4 usec (0x05)
  HT RX MCS rate indexes supported: 0-23
  HT TX MCS rate indexes are undefined
 HT operation:
   * primary channel: 10
   * secondary channel offset: no secondary
   * STA channel width: 20 MHz
   * RIFS: 0
   * HT protection: no
   * non-GF present: 1
   * OBSS non-GF present: 0
   * dual beacon: 0
   * dual CTS protection: 0
   * STBC beacon: 0
   * L-SIG TXOP Prot: 0
   * PCO active: 0
   * PCO phase: 0
 WPA: * Version: 1
   * Group cipher: TKIP
   * Pairwise ciphers: TKIP CCMP
   * Authentication suites: PSK
 RSN: * Version: 1
   * Group cipher: TKIP
   * Pairwise ciphers: TKIP CCMP
   * Authentication suites: PSK
   * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 WMM: * Parameter version 1
   * u-APSD
   * BE: CW 15-1023, AIFSN 3
   * BK: CW 15-1023, AIFSN 7
   * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
   * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 BSS Load:
   * station count: 5
   * channel utilisation: 28/255
   * available admission capacity: 31250 [*32us]
 Extended capabilities: HT Information Exchange Supported
 Country: US Environment: Indoor/Outdoor
  Channels [1 - 11] @ 16 dBm
 WPS: * Version: 1.0
   * Wi-Fi Protected Setup State: 2 (Configured)
   * Response Type: 3 (AP)
   * UUID: bc329e00-1dd8-11b2-8601-d4059846d940
   * Manufacturer: Celeno Communication, Inc.
   * Model: Celeno Wireless AP 2.4G
   * Model Number: CL1800
   * Serial Number: 12345678
   * Primary Device Type: 6-0050f204-1
   * Device name: CELENOAP24G
   * Config methods: Label, Display, Keypad
   * RF Bands: 0x1
   * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS 52:f5:da:94:bf:f3(on wlan0)
 TSF: 155449958912 usec (1d, 19:10:49)
 freq: 2457
 beacon interval: 100 TUs
 capability: ESS Privacy ShortSlotTime (0x0411)
 signal: -66.00 dBm
 last seen: 3736 ms ago
 Information elements from Probe Response frame:
 SSID: \x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00
 Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
 DS Parameter set: channel 10
 TIM: DTIM Count 1 DTIM Period 2 Bitmap Control 0x0 Bitmap[0] 0x2
 ERP: <no flags>
 RSN: * Version: 1
   * Group cipher: CCMP
   * Pairwise ciphers: CCMP
   * Authentication suites: PSK
   * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)
 HT capabilities:
  Capabilities: 0x1ad
   RX LDPC
   HT20
   SM Power Save disabled
   RX HT20 SGI
   TX STBC
   RX STBC 1-stream
   Max AMSDU length: 3839 bytes
   No DSSS/CCK HT40
  Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
  Minimum RX AMPDU time spacing: 4 usec (0x05)
  HT RX MCS rate indexes supported: 0-15
  HT TX MCS rate indexes are undefined
 HT operation:
   * primary channel: 10
   * secondary channel offset: no secondary
   * STA channel width: 20 MHz
   * RIFS: 0
   * HT protection: non-HT mixed
   * non-GF present: 0
   * OBSS non-GF present: 1
   * dual beacon: 0
   * dual CTS protection: 0
   * STBC beacon: 0
   * L-SIG TXOP Prot: 0
   * PCO active: 0
   * PCO phase: 0
 Extended capabilities: Extended Channel Switching
 WPS: * Version: 1.0
   * Wi-Fi Protected Setup State: 2 (Configured)
   * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
   * Device name: Steven's Fire TV stick
   * Primary Device Type: 1-0050f204-9
 WMM: * Parameter version 1
   * u-APSD
   * BE: CW 15-1023, AIFSN 3
   * BK: CW 15-1023, AIFSN 7
   * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
   * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 P2P: * Group capa: 0x25, Device capa: 0xab
   * Unknown TLV (0x03, 6 bytes): f5 da 94 3f f3 00
BSS d4:05:98:46:d9:45(on wlan0)
 TSF: 2690065103372 usec (31d, 03:14:25)
 freq: 5200
 beacon interval: 100 TUs
 capability: ESS Privacy ShortPreamble APSD (0x0831)
 signal: -66.00 dBm
 last seen: 3520 ms ago
 SSID: stevens
 Supported rates: 6.0* 9.0 12.0* 18.0 24.0* 36.0 48.0 54.0
 DS Parameter set: channel 40
 Country: US Environment: Indoor/Outdoor
  Channels [36 - 64] @ 36 dBm
 HT capabilities:
  Capabilities: 0x1ee
   HT20/HT40
   SM Power Save disabled
   RX HT20 SGI
   RX HT40 SGI
   TX STBC
   RX STBC 1-stream
   Max AMSDU length: 3839 bytes
   No DSSS/CCK HT40
  Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
  Minimum RX AMPDU time spacing: 4 usec (0x05)
  HT RX MCS rate indexes supported: 0-23, 32
  HT TX MCS rate indexes are undefined
 HT operation:
   * primary channel: 40
   * secondary channel offset: below
   * STA channel width: any
   * RIFS: 0
   * HT protection: no
   * non-GF present: 1
   * OBSS non-GF present: 0
   * dual beacon: 0
   * dual CTS protection: 0
   * STBC beacon: 0
   * L-SIG TXOP Prot: 0
   * PCO active: 0
   * PCO phase: 0
 RSN: * Version: 1
   * Group cipher: CCMP
   * Pairwise ciphers: CCMP
   * Authentication suites: PSK
   * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 WMM: * Parameter version 1
   * u-APSD
   * BE: CW 15-1023, AIFSN 3
   * BK: CW 15-1023, AIFSN 7
   * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
   * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 BSS Load:
   * station count: 8
   * channel utilisation: 0/255
   * available admission capacity: 31250 [*32us]
 Country: US Environment: Indoor/Outdoor
  Channels [36 - 64] @ 16 dBm
 WPS: * Version: 1.0
   * Wi-Fi Protected Setup State: 2 (Configured)
   * Response Type: 3 (AP)
   * UUID: bc329e00-1dd8-11b2-8601-d4059846d945
   * Manufacturer: Celeno Communication, Inc.
   * Model: Celeno Wireless AP 5G
   * Model Number: CL1800
   * Serial Number: 12345678
   * Primary Device Type: 6-0050f204-1
   * Device name: CelenoAP5G
   * Config methods: Label, Display, Keypad
   * RF Bands: 0x2
   * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20

Revision history for this message
Steven Seed (slseed1969) wrote :
Download full text (10.7 KiB)

Here are the command outputs after a suspend/resume. This time I was lucky and the wifi came back after restarting NetworkManager:

$ sudo iw dev wlan0 scan
scan aborted!
$ sudo iw dev wlan0 scan
BSS d4:05:98:46:d9:40(on wlan0)
 TSF: 2690367640929 usec (31d, 03:19:27)
 freq: 2457
 beacon interval: 100 TUs
 capability: ESS Privacy ShortPreamble ShortSlotTime APSD (0x0c31)
 signal: -68.00 dBm
 last seen: 3000 ms ago
 Information elements from Probe Response frame:
 SSID: stevens-2G
 Supported rates: 1.0* 2.0* 5.5* 11.0* 9.0 18.0 36.0 54.0
 DS Parameter set: channel 10
 ERP: <no flags>
 Extended supported rates: 6.0 12.0 24.0 48.0
 Country: US Environment: Indoor/Outdoor
  Channels [1 - 11] @ 36 dBm
 HT capabilities:
  Capabilities: 0x1ec
   HT20
   SM Power Save disabled
   RX HT20 SGI
   RX HT40 SGI
   TX STBC
   RX STBC 1-stream
   Max AMSDU length: 3839 bytes
   No DSSS/CCK HT40
  Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
  Minimum RX AMPDU time spacing: 4 usec (0x05)
  HT RX MCS rate indexes supported: 0-23
  HT TX MCS rate indexes are undefined
 HT operation:
   * primary channel: 10
   * secondary channel offset: no secondary
   * STA channel width: 20 MHz
   * RIFS: 0
   * HT protection: no
   * non-GF present: 1
   * OBSS non-GF present: 0
   * dual beacon: 0
   * dual CTS protection: 0
   * STBC beacon: 0
   * L-SIG TXOP Prot: 0
   * PCO active: 0
   * PCO phase: 0
 WPA: * Version: 1
   * Group cipher: TKIP
   * Pairwise ciphers: TKIP CCMP
   * Authentication suites: PSK
 RSN: * Version: 1
   * Group cipher: TKIP
   * Pairwise ciphers: TKIP CCMP
   * Authentication suites: PSK
   * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)
 WMM: * Parameter version 1
   * u-APSD
   * BE: CW 15-1023, AIFSN 3
   * BK: CW 15-1023, AIFSN 7
   * VI: CW 7-15, AIFSN 2, TXOP 3008 usec
   * VO: CW 3-7, AIFSN 2, TXOP 1504 usec
 BSS Load:
   * station count: 4
   * channel utilisation: 21/255
   * available admission capacity: 31250 [*32us]
 Extended capabilities: HT Information Exchange Supported
 Country: US Environment: Indoor/Outdoor
  Channels [1 - 11] @ 16 dBm
 WPS: * Version: 1.0
   * Wi-Fi Protected Setup State: 2 (Configured)
   * Response Type: 3 (AP)
   * UUID: bc329e00-1dd8-11b2-8601-d4059846d940
   * Manufacturer: Celeno Communication, Inc.
   * Model: Celeno Wireless AP 2.4G
   * Model Number: CL1800
   * Serial Number: 12345678
   * Primary Device Type: 6-0050f204-1
   * Device name: CELENOAP24G
   * Config methods: Label, Display, Keypad
   * RF Bands: 0x1
   * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20
BSS cc:03:fa:ae:7a:3d(on wlan0)
 TSF: 200713627314 usec (2d, 07:45:13)
 freq: 2412
 beacon interval: 100 TUs
 capability: ESS Privacy ShortSlotTime RadioMeasure (0x1411)
 signal: -72.00 dBm
 last seen: 14640 ms ago
 Information elements from Probe Response frame:
 SSID: Huckleberry
 Supported rates: 1.0* 2.0* 5.5* 11.0* 18.0 24.0 36.0 54.0
 DS Parameter set: channel 1
 TIM: DTIM Count 0 DTIM Period 1 Bitmap Control 0x0 Bitmap[0] 0x0
 ERP: <no flags>
 ERP D4.0: <no flags>
 RSN: * Version: 1
   * Group cipher: CCMP
   * Pairwise ciphers: CCMP
   * Authentication suites: PSK
   * Capabilities: 16-PTKSA-RC 1-GTKSA-RC MFP-ca...

Revision history for this message
Steven Seed (slseed1969) wrote :
Revision history for this message
Steven Seed (slseed1969) wrote :

Note, in the kern.log above which shows the last hour of usage, there is a Call Trace for NetworkManager from the previous time I booted up after I was no longer able to reconnect. It's probably worth looking at this crash, however, in the most recent reboot, a restart of NetworkManager did bring back the wifi network after a resume.

Revision history for this message
Wolf Rogner (war-rsb) wrote :

It seems I have a similar issue.

After resume a connection dialog appears where the (correct) password is given. Connecting is still not possible (the dialog reappears in a loop, no connection established).

Cancelling and connecting from the menu works fine.

This looks like a similar old issue where the reconnect logon dialog messed up the encryption.
(just my impression).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.