radiotap TX: single shared HT MCS decode across all three generations#292
Merged
Conversation
Follow-ups from the #291 review, in one pass: - Jaguar1 adopts decode_radiotap_mcs_field() — the last private copy of the HT MCS known/flag reading is gone, so the three generations genuinely can't diverge. Behavior-identical: bwidth starts at 20 MHz, so J1's explicit BW_20/20L/20U branch was a no-op, and its ldpc/stbc/sgi semantics already matched the shared decode. - The decoder spells its bit tests with the named IEEE80211_RADIOTAP_MCS_* constants instead of raw masks/shifts. - Drop the duplicated RadiotapTxFlags.h include in RtlJaguar3Device.cpp. - Selftest gains a raw 3-byte MCS field case (BW code 20U, STBC stream count 2, LDPC, no SGI) pinning the decoder's bit positions independently of what build_stream_radiotap can emit. Bench-verified on air (streamtx MCS1/LDPC/STBC -> rx.txhit decode): 8812AU (J1, the swapped path) 107/107 frames ldpc=1 stbc=1 at ch6 into an 8822B; 8812EU (J3 regression) 19/19 ldpc=1 stbc=1 at ch36. ctest 21/21. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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
Follow-ups from the #291 review, in one pass:
decode_radiotap_mcs_field()— the last private copy of the HT MCS known/flag reading is gone, so the three generations'send_packetparsers genuinely can't diverge. Behavior-identical:bwidthstarts at 20 MHz, so J1's explicit BW_20/20L/20U branch was a no-op, and its ldpc/stbc/sgi semantics already matched the shared decode.IEEE80211_RADIOTAP_MCS_HAVE_FEC/FEC_LDPC/HAVE_STBC/STBC_MASK/STBC_SHIFT/SGIinstead of raw masks and shifts.RadiotapTxFlags.hwas included twice inRtlJaguar3Device.cpp.build_stream_radiotapcan emit — a direct guard on the constants refactor.Testing
ctest21/21 green.MCS1/LDPC/STBC→rx.txhitdecode):ldpc=1 stbc=1, rate MCS1.ldpc=1 stbc=1.🤖 Generated with Claude Code