wifi: cancel get-secrets request in wifi device

System Internals / NetworkManager - Thomas Haller [redhat.com] - 20 December 2016 09:53 UTC

I got an assertion failure: wifi_secrets_cb: assertion 'nm_device_get_state (device) == NM_DEVICE_STATE_NEED_AUTH' failed with backtrace [1].

I think, we have to keep track of the pending secrets request and cancel it when the device state changes.

[1]: #0 0x00007fad615a7a21 _g_log_abort (libglib-2.0.so.0) #1 0x00007fad615a8e2d g_logv (libglib-2.0.so.0) #2 0x00007fad615a8f8f g_log (libglib-2.0.so.0) #3 0x000055e45e3fc718 get_secrets_cb (NetworkManager) #4 0x000055e45e3dfada _get_secrets_info_callback (NetworkManager) #5 0x000055e45e460d8d req_complete_release (NetworkManager) #6 0x000055e45e462a7f _con_get_try_complete_early (NetworkManager) #7 0x000055e45e462cb6 request_start (NetworkManager) #8 0x00007fad6159e8e7 g_idle_dispatch (libglib-2.0.so.0) #9 0x00007fad615a1e42 g_main_dispatch (libglib-2.0.so.0) #10 0x00007fad615a21c0 g_main_context_iterate (libglib-2.0.so.0) #11 0x00007fad615a24e2 g_main_loop_run (libglib-2.0.so.0) #12 0x000055e45e2bf561 main (NetworkManager) #13 0x00007fad60d97401 __libc_start_main (libc.so.6) #14 0x000055e45e2bfc6a _start (NetworkManager)

e6bf047 wifi: cancel get-secrets request in wifi device
src/devices/wifi/nm-device-wifi.c | 82 +++++++++++++++++++++++++++++----------
1 file changed, 62 insertions(+), 20 deletions(-)

Upstream: cgit.freedesktop.org


  • Share