Skip to content

src: Trace association and link events via MM_HALOW_TRACE_ASYNC_EV. - #5

Merged
dpgeorge merged 1 commit into
micropython:mainfrom
kwagyeman:kwabena/halow-trace-async
Sep 18, 2026
Merged

dpgeorge merged 1 commit into
micropython:mainfrom
kwagyeman:kwabena/halow-trace-async

Conversation

@kwagyeman

Copy link
Copy Markdown
Collaborator

The MM_HALOW_TRACE_ASYNC_EV trace bit was defined but never emitted, so enabling it (or the whole trace mask) showed nothing for the control plane -- only the datapath ETH_TX/ETH_RX bits produced output, and those stay silent until frames flow, which they do not before association.

Emit the station state transitions, the mmwlan_sta_enable result, link up/down and fatal errors under that bit, with MM_HALOW_PRINTF at run time, so an association that never completes is diagnosable on a normal build without an MM_HALOW_DEBUG rebuild.

Comment thread src/mm_halow_ctrl.c Outdated
@kwagyeman
kwagyeman force-pushed the kwabena/halow-trace-async branch from d971995 to 44ec60a Compare September 18, 2026 00:30
The MM_HALOW_TRACE_ASYNC_EV trace bit was defined but never emitted, so
enabling it (or the whole trace mask) showed nothing for the control
plane -- only the datapath ETH_TX/ETH_RX bits produced output, and those
stay silent until frames flow, which they do not before association.

Emit the station state transitions, the mmwlan_sta_enable result, link
up/down and fatal errors under that bit, with MM_HALOW_PRINTF at run
time, so an association that never completes is diagnosable on a normal
build without an MM_HALOW_DEBUG rebuild.

Signed-off-by: Kwabena W. Agyeman <kwagyeman@live.com>
@kwagyeman
kwagyeman force-pushed the kwabena/halow-trace-async branch from 44ec60a to aa4b59e Compare September 18, 2026 00:40
@kwagyeman

Copy link
Copy Markdown
Collaborator Author

Done both. The event traces now use the [evt] tag and carry itf=%d to match [txf]/[rxf]:

halow: [evt] itf=0 sta connecting (1)
halow: [evt] itf=0 link up
halow: [evt] itf=0 sta_enable -> 0

I left the fatal-error trace without an itf, since a fatal error is a chip-level fault rather than an interface event.

@dpgeorge
dpgeorge merged commit 16fc8e0 into micropython:main Sep 18, 2026
7 checks passed
@kwagyeman
kwagyeman deleted the kwabena/halow-trace-async branch September 18, 2026 01:00
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