Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds three improvements motivated by bringing up MediaTek MT7922 (
14c3:0616/ RZ616) on 5 GHz channel 149 (working around the Linuxmt7921ekernel driver limitations noted in #14 via a user-space radio daemon):Unix Socket
Airbackend (owly-radio/src/native.rs+examples/mtkradio.rs):Native::start_socket()and a cancel-safe, 64 KiB bufferedSocketAirimplementingowly_awdl::driver::Airover theradio_linkframing protocol (compatible with user-space radio daemons such asnekodrop'smtkradio/iwxradio).SO_RCVBUF/SO_SNDBUFto 4 MiB to avoid per-frame allocations and syscall overhead.socket_air_recv_batches_and_is_cancel_safe,socket_air_send_frames_correctly, andwrite_tx_radiotap_matches_radiotap_tx_header.2x2 HT + 80 MHz VHT Capabilities TLV (
owly-awdl/src/tlv.rs,node.rs):HtCapabilities::TWO_STREAM(rx_mcs = 0xffff, 2-byte LE encoding whenrx_mcs > 0xff, keeping 1-byte length 8 forONE_STREAM).VhtCapabilities(TWO_STREAM_80MHZ: 80 MHz 2x2 MCS 0–9, Max MPDU 3895 B, Max A-MPDU Exp 7) emitted as TLV 17 (IEEE80211_CONTAINER, 14 bytes matching iOS 26 captures) on 5 GHz channels (channel > 14).vht_capabilities_wire_bytes_and_roundtripunit test.Buffered file staging (
owly-airdrop/src/driver/staging.rs):tokio::fs::Filewrites in a 256 KiBtokio::io::BufWriter(flushed cleanly onend_file()/create_file()).Hardware & Test Results
14c3:0616) on 5 GHz channel 149 (80 MHz) against iPhone & iPad (iOS 26) viamtkradio_linux:STA_REC_BA, 64-frame window) negotiated and active with both iPhone and iPad.90,755RX data frames,radio full 0,dropped queue 0).cargo test -p owly-awdl: 56/56,cargo test -p owly-airdrop: 78/78,cargo test -p owly-radio --lib: 38/38) andcargo build --release --lockedsucceeds with 0 warnings.