cleanup(WDScan): name RSN/WPA OUI byte constants #531

Merged
coah80 merged 1 commits from cleanup/wdscan-oui-bytes into main 2026-10-01 22:32:45 +00:00
coah80 commented 2026-10-01 22:17:51 +00:00 (Migrated from github.com)

Summary

Rename RSN/WPA OUI byte constants used by WDGetPrivacyMode.

Before After Value
lbl_81695060..62 scRsnOui0..2 00:0F:AC (IEEE RSN)
lbl_81695064..66 scWpaOui0..2 00:50:F2 (Microsoft WPA, sdata2)
lbl_81697D70..72 scWpaFindOui0..2 00:50:F2 (sdata find filter)

Unused pad bytes kept as address labels so sdata/sdata2 layout stays byte-identical.

objdiff (WDScan)

matched_code fuzzy functions matched_data
before/after 100.0 100.0 5/5 100.0

DOL sha1 unchanged: 26116613f624061ba99c8d1a299aaa6efa85670d

Test plan

  • ninja build/43U/ok
  • objdiff metrics unchanged
## Summary Rename RSN/WPA OUI byte constants used by `WDGetPrivacyMode`. | Before | After | Value | |--------|-------|-------| | `lbl_81695060..62` | `scRsnOui0..2` | `00:0F:AC` (IEEE RSN) | | `lbl_81695064..66` | `scWpaOui0..2` | `00:50:F2` (Microsoft WPA, sdata2) | | `lbl_81697D70..72` | `scWpaFindOui0..2` | `00:50:F2` (sdata find filter) | Unused pad bytes kept as address labels so sdata/sdata2 layout stays byte-identical. ## objdiff (WDScan) | | matched_code | fuzzy | functions | matched_data | |--|-------------|-------|-----------|--------------| | before/after | 100.0 | 100.0 | 5/5 | 100.0 | DOL sha1 unchanged: `26116613f624061ba99c8d1a299aaa6efa85670d` ## Test plan - [x] `ninja build/43U/ok` - [x] objdiff metrics unchanged
coah80 commented 2026-10-01 22:32:42 +00:00 (Migrated from github.com)

Reviewed and merged: rename-only, WDScan 5/5 exact with data 16/16, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d. The 13 flagged names are #520 renames. Follow-up: the #define x (*((volatile const u8*)&x)) macros are use-site volatile casts (not allowed in new code). If the target really re-reads these bytes, declare them volatile const u8 at the definition and drop the macros.

Reviewed and merged: rename-only, WDScan 5/5 exact with data 16/16, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d. The 13 flagged names are #520 renames. Follow-up: the `#define x (*((volatile const u8*)&x))` macros are use-site volatile casts (not allowed in new code). If the target really re-reads these bytes, declare them `volatile const u8` at the definition and drop the macros.
Sign in to join this conversation.