Skip to content

Support non-Apple Wi-Fi cards (starting with the Framework 13) - #25

Merged
brentkearney merged 3 commits into
netmojo-systems:mainfrom
t4t5:main
Oct 11, 2026
Merged

brentkearney merged 3 commits into
netmojo-systems:mainfrom
t4t5:main

Conversation

@t4t5

@t4t5 t4t5 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

This lets omdrop run on laptops without Apple's Wi-Fi chip.

omdrop-owl is a replacement for the Broadcom driver package that works on other Wi-Fi cards. On a Framework 13 (MediaTek MT7925), omdrop can send to and receive from an iPhone, and Wi-Fi stays connected while it does. Support for more cards can also be added there.

The only thing stopping it was omdrop's checks for Apple's Broadcom Wi-Fi. With this change, the installed driver package can describe itself (through a new optional probe command), and omdrop uses that instead. Without it, as on every Mac today, nothing changes. The details are in docs/radio-backend.md.

Tests are in tests/test_radio_backend.py, and the existing install tests now also run on machines other than Macs.

@brentkearney

Copy link
Copy Markdown
Collaborator

Looks cool! Thanks for publishing omdrop-owl! I will look at this soon.

@brentkearney brentkearney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this! I can see that there's even higher demand for AirDrop on x86 than there is on Apple hardware! I am thinking about the architecture and how we can optimize it for broad hardware adoption. Instead of maintaining duplicate code between omdrop-awdl and in your omdrop-owl drivers, I will extract the shared code into an omdrop-core library that both driver repos can inherit from. More on that later.

For this PR, I had my agents review the changes, and -- sorry for the "slop", but we're all vibe coders here, right? -- the recommended changes are below. Once this merges, I will update the Omdrop documentation to be hardware neutral, not "for Apple Silicon".

Thanks for your efforts! :)

Requested changes

  1. Bound the probe. radio_probe runs the helper with no time limit.
    • A test helper whose probe sleeps hung omdrop doctor --json until timeout 8 killed it (rc 124).
    • The same call sits in doctor, setup, install-driver and identity 1password import|use.
    • In the panel, a hung doctorProc leaves the unusable state stuck on its generic text.
    • Ask: wrap the call in timeout 5. Report a timeout as a backend item ("The radio backend did not answer"), not as "no probe". A fall-through would show a non-Mac the Broadcom message.
  2. Enforce a minimum contract for every backend.
    • With a probing backend, driver_current (DRIVER_VERSION=0.9.1) never runs.
    • contract is checked only by driver_identity_ready, against 0.7.0, so a backend claiming any contract passes doctor and install-driver.
    • Ask: compare contract against one plugin-wide minimum in prereqs_missing, and report a shortfall as a blocker that names the backend.
  3. Fix messages that point at omdrop install-driver. With a probing backend, that command installs only the receiver's packages.
    • cmd_send (bin/omdrop:1770-1771) tells a user whose sender lacks --url to run it.
    • On omdrop-owl today, the result is "Nothing to do".
    • Ask: under a probing backend, name the backend package to update instead.
  4. Reserve the item IDs the panel acts on.
    • The panel shows its install button for driver or library (Panel.qml:845-847).
    • A backend that reports driver gets a button that cannot fix it.
    • Ask: document driver, library and service as plugin-owned in docs/radio-backend.md, and drop or rename backend items that use them.

@brentkearney brentkearney added the changes requested The contributor needs to change the PR before it can merge label Oct 10, 2026
t4t5 added 3 commits October 10, 2026 21:56
A helper that answers `omdrop-discoverable probe --json` takes over the
hardware and driver checks; one that doesn't gets the Broadcom checks as
before. Documents the backend contract in docs/radio-backend.md, and lets
the install-driver tests run on hardware other than an Apple Silicon Mac.
@t4t5

t4t5 commented Oct 10, 2026

Copy link
Copy Markdown
Contributor Author

thx for the review @brentkearney! pushed some changes, so let's see what your agent thinks now 😄

extracting omdrop-core sounds like a good idea 👍

t4t5 pushed a commit to t4t5/owly that referenced this pull request Oct 11, 2026
…end in test-card.sh (#10)

Ran `tools/test-card.sh` on an Intel AX201 under CachyOS (Arch), kernel 7.2.9-1-cachyos-bore, which is newer than the 6.8 the README records. It passes both directions.

```
card: Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20)
driver: iwlwifi, kernel 7.2.9-1-cachyos-bore, CachyOS
profile: iwlwifi exclusive station no no
probe: ready
baseline: 10/10 replies
start: ok in 1933 ms
receiver: started
phone heard (OWL synced): yes
shown on the phone: yes
phone -> computer: yes
computer -> phone: yes (send-to-peer exit 0, 90 s)
Wi-Fi during the window: 0/0 replies, longest gap 0 s
stop: exit 0 in 442 ms
Wi-Fi after teardown: 296/300 replies, longest gap 4 s
```

The send itself took 4.15 s (accepted after 3.0 s, upload 0.06 s). The 90 s is the timer running through the "Did it arrive?" prompt, which is the second commit's fix.

Two commits:
1. `tools/test-card.sh`: take the send time as soon as `send-to-peer` returns, before the prompt.
2. README table and `owl-profiles` note: the AX201 is also tested on CachyOS, kernel 7.2.9.

Notes:
- The two `command failed: Invalid argument (-22)` lines at start are the 5 GHz ad-hoc attempts failing before the fallback to channel 6, as the README describes.
- Outside Omarchy, this needed omdrop built from netmojo-systems/omdrop-plugin#25 (`24f0038`). I ran its CLI standalone with `omdrop setup` and `omdrop firewall install` (ufw). The panel needs Omarchy's shell, so I didn't test it.
- Only `summary.txt` is pasted. The other report files contain the router's MAC, so I've left them out.

---------

Co-authored-by: bict0r <[email protected]>
@brentkearney
brentkearney self-requested a review October 11, 2026 19:18
@brentkearney brentkearney removed the changes requested The contributor needs to change the PR before it can merge label Oct 11, 2026

@brentkearney brentkearney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks again!

I will post a follow-up PR to fix the "branding" message.

I made a lot of progress on an omdrop-core library for shared code between different architectures. Will post as soon as I can.

@brentkearney
brentkearney merged commit 97c16bb into netmojo-systems:main Oct 11, 2026
Revoxandco pushed a commit to Revoxandco/omdrop-plugin that referenced this pull request Oct 18, 2026
With radio backends (netmojo-systems#25), Omdrop runs on PCs through omdrop-owl as well
as on Apple Silicon Macs through omdrop-awdl. The poster, README,
marketplace name and description, the agent skill, and install-driver's
no-Broadcom message still said Apple Silicon only.

- preview.png: "AirDrop for Omarchy, on Macs and PCs." and "Real AWDL,
  the link AirDrop runs on.", re-rendered from the same poster source.
- README: Requirements lists both backends; install, upgrade, link
  support, privileges and removal cover each.
- manifest.json: name "Omdrop - AirDrop for Omarchy", Macs and PCs in
  the description.
- install-driver: the same wording netmojo-systems#25 gave doctor's hardware message.
Revoxandco pushed a commit to Revoxandco/omdrop-plugin that referenced this pull request Oct 18, 2026
manifest.json and VERSION_FALLBACK move to 0.16.0. Since 0.15.1: radio
backends other than omdrop-awdl (netmojo-systems#25), the captured media capabilities
and IsAirDropable (netmojo-systems#20), a scoped Upload wait (netmojo-systems#33), the Qt 6.12 palette
fix (netmojo-systems#42), and hardware-neutral docs and marketplace name (netmojo-systems#43). The
driver pin stays at omdrop-awdl 0.9.1, the latest release.
RenzVillegas24 pushed a commit to RenzVillegas24/owly that referenced this pull request Nov 17, 2026
…end in test-card.sh (t4t5#10)

Ran `tools/test-card.sh` on an Intel AX201 under CachyOS (Arch), kernel 7.2.9-1-cachyos-bore, which is newer than the 6.8 the README records. It passes both directions.

```
card: Network controller: Intel Corporation Wi-Fi 6 AX201 (rev 20)
driver: iwlwifi, kernel 7.2.9-1-cachyos-bore, CachyOS
profile: iwlwifi exclusive station no no
probe: ready
baseline: 10/10 replies
start: ok in 1933 ms
receiver: started
phone heard (OWL synced): yes
shown on the phone: yes
phone -> computer: yes
computer -> phone: yes (send-to-peer exit 0, 90 s)
Wi-Fi during the window: 0/0 replies, longest gap 0 s
stop: exit 0 in 442 ms
Wi-Fi after teardown: 296/300 replies, longest gap 4 s
```

The send itself took 4.15 s (accepted after 3.0 s, upload 0.06 s). The 90 s is the timer running through the "Did it arrive?" prompt, which is the second commit's fix.

Two commits:
1. `tools/test-card.sh`: take the send time as soon as `send-to-peer` returns, before the prompt.
2. README table and `owl-profiles` note: the AX201 is also tested on CachyOS, kernel 7.2.9.

Notes:
- The two `command failed: Invalid argument (-22)` lines at start are the 5 GHz ad-hoc attempts failing before the fallback to channel 6, as the README describes.
- Outside Omarchy, this needed omdrop built from netmojo-systems/omdrop-plugin#25 (`24f0038`). I ran its CLI standalone with `omdrop setup` and `omdrop firewall install` (ufw). The panel needs Omarchy's shell, so I didn't test it.
- Only `summary.txt` is pasted. The other report files contain the router's MAC, so I've left them out.

---------

Co-authored-by: bict0r <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants