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

wlan: wmi: accept legacy GTK status event prefix#22
CeRRiLLo89 wants to merge 1 commit into
crdroidandroid:16.0-raphaelfrom
CeRRiLLo89:backport-gtk-16.0-raphael

Conversation

@CeRRiLLo89

Copy link
Copy Markdown
Contributor

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

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

This applies the exact #21 change. The pre-patch file on 16.0-raphael is byte-identical to the file at #21's original base, so this is a direct backport with no adaptation.

Validation:

  • exact base c90639a8c2bb123119e4011f96a0768368dc8deb was used for the 03/08 local full crDroid build with this patch integrated; build completed successfully
  • on-device exact-build patched kernel: zero GTK parser/extraction failures vs at least 130 with original kernel
  • Wi-Fi, suspend/WoW, push, mobile data, calls, KernelSU/SUSFS and rmnet_perf remained operational

Original 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.
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