Hi,

On Sun, 2021-02-07 at 11:53 +0800, Heysion Yuan via networkmanager-list
wrote:
> 
> 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

these log messages are not from any upstream version, are there? Which
version were you testing? If these are from some printf debugging of
yours, it is not enough to understand what is happening.


also, scan_done() is no longer part of upstream. You should mention
which version you are using.

Wi-Fi handling was significantly reworked. Please try the latest
version whether it still has the issue.

> ### 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 ?

Look at all the logs by enabling level=TRACE level.

See
https://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/contrib/fedora/rpm/NetworkManager.conf#n28
for infos about logging.


best,
Thomas

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
networkmanager-list mailing list
networkmanager-list@gnome.org
https://mail.gnome.org/mailman/listinfo/networkmanager-list

Reply via email to