Skip to content

Commit b092ce0

Browse files
tyethclaude
andcommitted
docs: decode every M2 and NAF subtype from the raw captures
Analysis from the pcaps for runs 8 to 16 rather than from relayed summaries. NAN Action Frames use OUI type 0x18 with the subtype in the next byte; the Service Discovery Frame uses 0x13 and carries attributes directly, which is what an earlier pass of mine misread. Issue 3 gains the strongest evidence yet. Counting NAF subtypes by sender across all ten captures, the phone sends M1, NDP-Term, Schedule Request and Schedule Update Notification, while the ESP sends M2 and nothing else in any run. Subtype 0x0b, Schedule Response, appears zero times anywhere. Schedule Requests appear only in the three runs that established a data path, and run 9's 17 frames against three logical requests suggests the phone retries each about five or six times before giving up. Issue 2 gains the full M2 burst table. Six independently captured first-window bursts are exactly five frames, never four or six, which supports the retry limit of five far better than the earlier inference; the three short first bursts are all from runs with heavy capture loss. Every fully captured first burst exhausts its attempts, so the first M2 is never acknowledged in any run. Success tracks the second burst being acknowledged on its first frame, but position still does not predict it: run 11 failed at 0.740 where run 9 succeeded at 0.724, and run 13 failed at 0.548 where run 8 succeeded at 0.581. Also recorded: the phone retransmits its own M1 when the ESP fails to acknowledge it, 8 frames in run 10 and 3 in run 9 against 1 elsewhere, so the ESP's receive side misses in-window frames too. That is uncharacterised. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent c1d485b commit b092ce0

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

‎IDF-ISSUE-2-nan-ndp-availability.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,49 @@ Discovery Window start, median 0.00 ms and standard deviation 0.40 ms across
443443
593 windows. The proxy anchor is sound and the measurements are not drifting;
444444
the erratic outcomes are real.
445445

446+
### Every M2 burst, decoded from the raw captures
447+
448+
Read directly from the pcaps for runs 8 to 16 rather than from summaries,
449+
filtering on NAF OUI type `0x18` subtype `0x06`. Offsets are in slots from the
450+
preceding group-addressed frame from the phone.
451+
452+
| run | first M2 | second M2 | outcome |
453+
|---|---|---|---|
454+
| 8 | 5 fr @ 1.027 | 1 fr @ 0.581 | OK |
455+
| 9 | 5 fr @ 1.028 | 1 fr @ 0.724 | OK |
456+
| 10 | 5 fr @ 0.924 | 5 fr @ 0.803 | FAIL |
457+
| 11 | 5 fr @ 1.001 | 5 fr @ 0.740 | FAIL |
458+
| 12 | 1 fr @ 0.554 *(w0 burst dropped)* | — | FAIL |
459+
| 13 | 3 fr @ 1.208 *(truncated)* | 5 fr @ 0.548 | FAIL |
460+
| 14 | 1 fr @ 0.899 *(truncated)* | — | FAIL |
461+
| 15 | 5 fr @ 0.925 | 2 fr @ 0.816 | FAIL |
462+
| 16 | 5 fr @ 1.165 | 1 fr @ 0.395 | OK |
463+
464+
Three things fall out of this that the summaries did not show.
465+
466+
**The retry limit of five is now well supported.** Six independently captured
467+
first-window bursts — runs 8, 9, 10, 11, 15, 16 — are *exactly* five frames.
468+
Never four, never six. Adding the second-window bursts in runs 10, 11 and 13
469+
gives nine bursts of exactly five. Runs 12, 13 and 14 show short first bursts
470+
and all three had heavy capture loss.
471+
472+
**The first M2 is never acknowledged, in any run.** Every fully captured
473+
first burst exhausts its five attempts. Measured first-M2 offsets: 0.924,
474+
0.925, 1.001, 1.027, 1.028, 1.165 slots, plus truncated bursts at 0.899 and
475+
1.208.
476+
477+
**Success tracks the second burst being acknowledged immediately.** Runs 8, 9
478+
and 16 each have a single-frame second burst — acknowledged first try. Runs
479+
10, 11 and 13 run to five again and fail. But position still does not explain
480+
which: run 11's second burst at 0.740 failed while run 9's at 0.724 succeeded,
481+
and run 13's at 0.548 failed while run 8's at 0.581 succeeded. Adjacent
482+
offsets, opposite outcomes. **The threshold stays dead.**
483+
484+
One further observation from the same decode: the phone retransmits its own
485+
M1 when the ESP does not acknowledge it — 8 frames in run 10 and 3 in run 9
486+
against 1 elsewhere. The ESP's receive side misses frames in the window too,
487+
and that is not characterised at all.
488+
446489
### A capture caveat, and why the central claim survives it
447490

448491
From run 7 onward the monitor also recorded ACK frames, which overflowed its

‎IDF-ISSUE-3-nan-schedule-request.md‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,34 @@ itself committed to** (`crb1=[2,31]`). This is the peer doing the right thing
5858
and converting a conditional arrangement into a committed one. The ESP ignores
5959
it.
6060

61+
## Confirmed across every capture
62+
63+
NAN Action Frames are Public Action / Vendor Specific / WFA OUI with **OUI
64+
type `0x18`** and the subtype in the following byte. (The Service Discovery
65+
Frame uses OUI type `0x13` instead, and carries attributes directly.)
66+
Counting subtypes by sender across all ten captures — runs 3 and 8 to 16:
67+
68+
| sender | subtypes ever transmitted |
69+
|---|---|
70+
| phone | `0x05` M1, `0x09` NDP-Term, **`0x0a` Schedule Request**, `0x0d` Schedule Update Notification |
71+
| ESP | **`0x06` M2 — and nothing else, in any run** |
72+
73+
**Subtype `0x0b`, Schedule Response, appears zero times in any capture.** The
74+
ESP transmits exactly one NAF subtype across every run: the NDP Response. It
75+
never sends a Schedule Response, never a Schedule Confirm, and never an NDP
76+
Termination of its own.
77+
78+
Schedule Requests appear only in the three runs that established a data path,
79+
which is expected — runs 8 (2 frames), 9 (17) and 16 (1). The phone also sends
80+
Schedule Update Notifications in all three: 3, 5 and 5 frames. None is ever
81+
answered.
82+
83+
Run 9's 17 frames are worth a note. The bench session reports three *logical*
84+
Schedule Requests in that run, so the phone appears to retry each one roughly
85+
five or six times before giving up — the same shape as the ESP's own M2
86+
bursts. The phone is not asking once and forgetting; it is asking
87+
insistently and being ignored.
88+
6189
## Mechanism, from the binary
6290

6391
`ieee80211_nan_datapath.o` in `libnet80211.a` (esp32). The receive dispatcher

0 commit comments

Comments
 (0)