-
Notifications
You must be signed in to change notification settings - Fork 91
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
Sporadic behavior despite active monitor mode #38
Comments
I was able to maybe narrow the problem down a bit. I have a MacBook running macOS Catalina 10.15.7 (fe80::fc77:26ff:febc:5a5d), iPhone running iOS 14.0 (fe80::1c0d:aaff:fe4d:5a79) and a Linux box running owl (fe80::523e:aaff:fe31:c062) on the AWDL network. ff02::fb is the broadcast address. The iPhone has a share sheet open and the Mac has a Finder Airdrop window open.
Note that this is on channel 149 with the regulatory domain set to US. If the regulatory domain isn't set, none of the packets go out (consistent with #10 (comment)). Maybe @Kulawik @neilalexander have any insights on this since it appears you have the same card? |
@schmittner Thanks for checking in. #39 fixed queueing up the packets and responding in bulk in the scenario where I ping the broadcast. In my last comment above you can see that However, there is still packet when sending packets via owl, on both TP-Link Archer T1U V1.0 as well as the Alfa AWUS036NHA. Overall, the Alfa card is performing better than the TP-Link. I suspect it might have to do with the timing of when the packets are sent out, but I'm not familiar enough with AWDL to figure it out. On the machine running owl, I can see all packets going out in wireshark on both awdl0 as well as the physical wi-fi interface, but I can't see it in Wireshark coming in on the Mac, so it appears the packet somehow gets lost "in the air". With the Alfa card, there is frequent and sporadic packet loss without a specific pattern that I could figure out. On the Archer, certain devices, like my iPhone, barely receive any packets. The issue described above ("Sometimes none of the pings go through, sometimes just the first one (icmp_seq=1).") is still happening. Do you have any ideas why this might be? If you have time to help out, I'm happy to do any more debugging and provide more details. Thanks! |
I see, thanks for clarifying. Can you assert that packets actually arrive at the Mac and not get lost over the air? To do this, set your Mac to monitor mode and record packets on channel 149 (in your case). |
I can readily reproduce this here. I have an iPhone running iOS 15.1 and a MacBook Pro running Catalina 10.15.7 with OWL on a Raspberry Pi running kernel 5.10. I'm using a TP-Link Archer T1U V1.0 using the mt76 driver. MBP can send and receive to OWL just fine but the iPhone shows the sporadic traffic patterns described by @thomasst. Running When monitoring When pinging the iPhone's link-local address via my MacBook's Additionally all of this just works if I do the same things from the MBP (rather than the iPhone). I'm unsure how to go about debugging this further - any pointers really appreciated! I'm really confused as to why the MBP works fine but the iPhone does not. |
iw
,Device supports active monitor (which will ACK incoming frames)
, so it should be good to go.wpa_supplicant
,dhclient
,NetworkManager
, verified the process list, and don’t see anything else that might be otherwise interfering (as per Can't discover any devices opendrop#21 (comment))owl
withsudo owl -i wlx503eaa31c062 -v
(which uses channel 6) and also tried channels 44 and 149. Owl puts the device in monitor mode.sudo opendrop find -d
it will only occasionally find a device, but not usually all devices, and it may take several minutes for any device to appear.22:00:23 ERROR: unable to inject packet (send: Resource temporarily unavailable)
during the transfer in OWL.I opened this issue in the
owl
repository since I believe that the issue lies in the owl implementation and not in theopendrop
tool itself, but I can't confirm. What can I do to get this to work or debug this further?The text was updated successfully, but these errors were encountered: