Networkmanager cannot wifi scan callback after S3 or S4 resume



Hello  all

I found the NM didn't trigger scan_done probabilistically after S3 or S4 resume .
I traced the NM do_sleep_wake  is normal and trigger scan by dbus to wpa ,the wpa push scan result to dbus.
but NM didn't trigger scan_done signal and fetch scan result on dbus.
and I debug the device state change swap found the normal has complete whole state switch but abnormal device state changed was broken.

## LOG
### Abnormal:

NetworkManager[3449]: <info>  [1612253858.5131] device (wlan0): device changed state 10 old_state 30 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253858.6840] device (wlan0): device changed state 20 old_state 10 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253858.9756] device (wlan0): device changed state 30 old_state 20 src/devices/nm-device.c

The changed link: 30->10->20->30

### Normal:
NetworkManager[3449]: <info>  [1612253208.4739] device (wlan0): device changed state 10 old_state 100 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253208.7593] device (wlan0): device changed state 20 old_state 10 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253209.0477] device (wlan0): device changed state 30 old_state 20 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.1055] device (wlan0): device changed state 40 old_state 30 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.1062] device (wlan0): device changed state 50 old_state 40 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.1067] device (wlan0): device changed state 60 old_state 50 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.1470] device (wlan0): device changed state 40 old_state 60 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.1488] device (wlan0): device changed state 50 old_state 40 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.2118] device (wlan0): device changed state 70 old_state 50 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.2437] device (wlan0): device changed state 80 old_state 70 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.2475] device (wlan0): device changed state 90 old_state 80 src/devices/nm-device.c
NetworkManager[3449]: <info>  [1612253210.2483] device (wlan0): device changed state 100 old_state 90 src/devices/nm-device.c

The changed link: 100->10->20->30->40->50->60->70->80->90->100

Could you tell me where NM got the signal and what it working for ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]