Skip to content

wlan: wmi: accept legacy GTK status event prefix - #22

Open
CeRRiLLo89 wants to merge 1 commit into
crdroidandroid:16.0-raphaelfrom
CeRRiLLo89:backport-gtk-16.0-raphael
Open

CeRRiLLo89 wants to merge 1 commit into
crdroidandroid:16.0-raphaelfrom
CeRRiLLo89:backport-gtk-16.0-raphael

Conversation

@CeRRiLLo89

@CeRRiLLo89 CeRRiLLo89 commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Backport of #21 to the raphael-specific kernel branch actually consumed by the device tree.

The raphael dependency graph selects android_kernel_xiaomi_sm8150:16.0-raphael, while #21 was merged only into generic 16.0. The GTK parser in 16.0-raphael still contains the legacy-incompatible full-struct length check.

This applies the exact #21 parser change with no device-specific adaptation.

Current review state

  • Base: 8a36a953995212a06d0c353fe986f0f2b408762a
  • Head: a641fda9b10e7990156d394e13dace14ae560c73
  • 1 commit
  • 1 changed file
  • +18/-5
  • Stable patch-id: 95a983542a57cd29cfcecb0f9a7fa04e060c4682

The branch was rebuilt cleanly after the upstream 16.0-raphael history changed. The stable patch-id is unchanged from the previously validated version.

Validation

Current official crDroid 20260831 runtime evidence on raphael:

  • kernel: 4.14.357-openela-perf-g8a36a9539952
  • kernel base matches this PR base: 8a36a953995212a06d0c353fe986f0f2b408762a
  • 98 occurrences of Invalid length for GTK status were reproduced in approximately 20 minutes on the unpatched official kernel

Historical exact-build validation of the same patch:

  • original kernel: at least 130 GTK parser/extraction failures
  • patched kernel: zero GTK parser/extraction failures
  • Wi-Fi, suspend/WoW, push, mobile data, calls, KernelSU/SUSFS and rmnet_perf remained operational
  • the 03/08 local full crDroid build containing the patch completed successfully

Previous PR head 69324cbb2778b5e24d13c471ebc890e35bc77150 is preserved in the fork as backup-pr22-pre-rebuild-20260906.

Original generic-branch PR: #21

The GTK status parser requires the complete modern fixed parameter, although it only consumes the prefix through replay_counter.

Validate both the event length and the TLV-declared length against the prefix actually consumed by the parser, while continuing to reject truncated events.

Tested on raphael:
- original kernel: at least 130 GTK length and extraction failures
- patched kernel: zero GTK parser and extraction failures
- Wi-Fi, suspend/WoW, push, mobile data, calls, KernelSU/SUSFS and  rmnet_perf remained operational
- no panic, Oops or module-signature failures

ICNSS suspend_noirq -EAGAIN remains a separate issue.
@CeRRiLLo89
CeRRiLLo89 force-pushed the backport-gtk-16.0-raphael branch from 69324cb to a641fda Compare September 6, 2026 09:56

CeRRiLLo89 commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Rebuilt the PR branch cleanly on the current 16.0-raphael head after the upstream branch history changed.

Current PR state:

  • base: 8a36a953995212a06d0c353fe986f0f2b408762a
  • head: a641fda9b10e7990156d394e13dace14ae560c73
  • 1 commit
  • 1 changed file
  • +18/-5

The patch itself is unchanged from the previously validated GTK parser fix. git patch-id --stable is identical before and after the rebuild:

95a983542a57cd29cfcecb0f9a7fa04e060c4682

Additional runtime validation on the official crDroid 20260831 build:

  • kernel: 4.14.357-openela-perf-g8a36a9539952
  • base commit matches this PR base: 8a36a953995212a06d0c353fe986f0f2b408762a
  • 98 occurrences of Invalid length for GTK status were observed in approximately 20 minutes on the unpatched official kernel

This confirms that the issue is still reproducible on the current official raphael kernel branch.

The previous PR head (69324cbb2778b5e24d13c471ebc890e35bc77150) is preserved in the fork as backup-pr22-pre-rebuild-20260906 for traceability.

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.

1 participant