mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-09 00:20:30 +01:00
wifi: do not print dump inconsistency error for get scan command
Avoid printing "nl_recvmsgs() error: (-33) Dump inconsistency detected, interrupted". DUMP_INTR error is harmless for scan (see in code comments). Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
parent
0cb256f5d7
commit
28dfb2e4a2
1 changed files with 9 additions and 0 deletions
|
|
@ -132,6 +132,15 @@ _nl80211_send_and_recv (struct nl_sock *nl_sock,
|
|||
while (!done) {
|
||||
err = nl_recvmsgs (nl_sock, cb);
|
||||
if (err && err != -NLE_AGAIN) {
|
||||
/* Kernel scan list can change while we are dumping it, as new scan
|
||||
* results from H/W can arrive. BSS info is assured to be consistent
|
||||
* and we don't need consistent view of whole scan list. Hence do
|
||||
* not warn on DUMP_INTR error for get scan command.
|
||||
*/
|
||||
if (err == -NLE_DUMP_INTR &&
|
||||
genlmsg_hdr(nlmsg_hdr(msg))->cmd == NL80211_CMD_GET_SCAN)
|
||||
break;
|
||||
|
||||
nm_log_warn (LOGD_WIFI, "nl_recvmsgs() error: (%d) %s",
|
||||
err, nl_geterror (err));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue