Skip to content

Claude/debug arm mac ethernet w imcc#19

Merged
d3vi1 merged 2 commits intomasterfrom
claude/debug-arm-mac-ethernet-wIMCC
Jan 7, 2026
Merged

Claude/debug arm mac ethernet w imcc#19
d3vi1 merged 2 commits intomasterfrom
claude/debug-arm-mac-ethernet-wIMCC

Conversation

@d3vi1
Copy link
Copy Markdown
Owner

@d3vi1 d3vi1 commented Jan 7, 2026

No description provided.

claude added 2 commits January 7, 2026 20:21
AF_NDRV sockets allow multiple binds but only the first process receives
packets. This caused silent failures when a previous lltdDaemon was still
running. Now uses flock() on /tmp/lltdDaemon.lock to ensure only one
instance runs at a time.
Implements a pure C API for querying Wi-Fi metrics on macOS using CoreWLAN
framework. This provides RSSI, noise, link speed, and computed max link speed
without relying on external commands like wdutil or airport.

New files:
- lltd_wifi_corewlan.h: Pure C89 header with lltd_wifi_metrics_t struct
- lltd_wifi_corewlan.m: Objective-C shim using CoreWLAN
- lltd_wifi_rates.c/h: Rate calculation tables for HT/VHT/HE PHY modes
- tools/lltd-wifi-metrics.c: CLI tool for testing/verification

Features:
- Queries RSSI, noise, PHY mode, channel width via CoreWLAN
- Computes theoretical max link speed based on PHY/width/NSS
- Infers NSS/MCS/GI from observed link rate using rate tables
- Supports 802.11a/b/g/n/ac/ax with proper rate calculations
- Handles missing selectors gracefully for SDK compatibility

The module is Darwin-only and guarded with __APPLE__. No Objective-C
headers leak into the cross-platform C codebase.
@d3vi1 d3vi1 merged commit a831f2f into master Jan 7, 2026
4 of 6 checks passed
@d3vi1 d3vi1 deleted the claude/debug-arm-mac-ethernet-wIMCC branch January 7, 2026 20:39
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