Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scan locks forever when connected to Wi-Fi #297

Open
bragma opened this issue Sep 22, 2022 · 1 comment
Open

Scan locks forever when connected to Wi-Fi #297

bragma opened this issue Sep 22, 2022 · 1 comment

Comments

@bragma
Copy link

bragma commented Sep 22, 2022

Hi,
I am testing this driver and found out a serious problem. It seems that scan is not working when connected to a network. Not much to report though, there are no logs on dmesg. Simply, the command:

iw dev wlp3s0 scan

Locks forever without results. Same happens scanning with wpa_cli:

scan
OK
<3>CTRL-EVENT-SCAN-STARTED
<3>CTRL-EVENT-SCAN-RESULTS

SCAN-RESULTS returns immediately and command "scan_results" shows only the initial scan values (those read by wpa_supplicant before connecting).

@bragma
Copy link
Author

bragma commented Sep 22, 2022

If i run iw with --debug option, it locks at the end of the log. Seems similar to a working run, but it never receives scan results.

-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 25 <0x19>
.flags = 5 <REQUEST,ACK>
.seq = 1663836496
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 33
.version = 0
.unused = 0
[PAYLOAD] 16 octets
08 00 03 00 04 00 00 00 08 00 2d 00 04 00 01 00 ..........-.....
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836496
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 25 <0x19>
.flags = 5 <REQUEST,ACK>
.seq = 1663836496
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836497
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836497
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836497
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836497
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836498
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836499
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836499
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836499
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836499
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836500
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836501
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836501
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836501
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836501
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836502
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836503
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836503
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836503
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836503
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836504
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836505
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836505
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836505
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836505
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836506
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836507
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 1
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 116
.type = 16 <genl/family::nlctrl>
.flags = 0 <>
.seq = 1663836507
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 1
.version = 2
.unused = 0
[ATTR 02] 7 octets
6e 6c 63 74 72 6c 00 nlctrl.
[PADDING] 1 octets
00 .
[ATTR 01] 2 octets
10 00 ..
[PADDING] 2 octets
00 00 ..
[ATTR 03] 4 octets
02 00 00 00 ....
[ATTR 04] 4 octets
00 00 00 00 ....
[ATTR 05] 4 octets
07 00 00 00 ....
[ATTR 06] 20 octets
14 00 01 00 08 00 01 00 03 00 00 00 08 00 02 00 ................
0e 00 00 00 ....
[ATTR 07] 24 octets
18 00 01 00 08 00 02 00 10 00 00 00 0b 00 01 00 ................
6e 6f 74 69 66 79 00 00 notify..
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Received Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 36
.type = 2
.flags = 256
.seq = 1663836507
.port = -1405083408
[ERRORMSG] 20 octets
.error = 0 "Success"
[ORIGINAL MESSAGE] 16 octets
.nlmsg_len = 16
.type = 16 <0x10>
.flags = 5 <REQUEST,ACK>
.seq = 1663836507
.port = -1405083408
--------------------------- END NETLINK MESSAGE ---------------------------
-- Debug: Sent Message:
-------------------------- BEGIN NETLINK MESSAGE ---------------------------
[NETLINK HEADER] 16 octets
.nlmsg_len = 32
.type = 16 <genl/family::nlctrl>
.flags = 5 <REQUEST,ACK>
.seq = 1663836508
.port = -1405083408
[GENERIC NETLINK HEADER] 4 octets
.cmd = 3
.version = 0
.unused = 0
[ATTR 02] 8 octets
6e 6c 38 30 32 31 31 00 nl80211.
--------------------------- END NETLINK MESSAGE ---------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant