Skip to content

Request: Backport frame injection patch for SDM845 kernel (4.9) – current patch targets 4.14 #67

@DX4GREY

Description

@DX4GREY

Hi,

First of all, thanks for the great work on adding frame injection support to qcacld-3.0!

I’m trying to enable monitor mode + packet injection on a Xiaomi SDM845 device (kernel version 4.9). I found the patch add-qcacld-3.0-injection-4.14.patch (commit 6138cbcb4103cbc1e9aa7b56389ece136cbafb6e). However, this patch is clearly written for kernel 4.14, and my kernel tree is based on 4.9.

When I try to apply it, several hunks fail due to API differences between 4.9 and 4.14, for example:

  • .get_channel callback in cfg80211_ops – not present in 4.9
  • Extra parameter in wlan_hdd_cfg80211_join_ibss call
  • Missing WMI_MGMT_TX_COMP_TYPE_MAX constant in WMI headers
  • struct del_bss_resp usage that doesn't match the 4.9 definitions

I’ve tried to manually adapt the patch, but there are many dependencies and I'm not confident I can get it stable.

Request: Could you please consider providing a version of the frame injection patch that works on kernel 4.9 (or specifically for SDM845 devices, e.g., Xiaomi sdm845 kernel tree)? Alternatively, any guidance on what needs to be changed to make the existing patch compatible would be greatly appreciated.

Device info:

What works:

  • Monitor mode (partially)
  • Frame reception in monitor mode

What doesn't work:

  • Frame injection (no TX in monitor mode)

I’m happy to test any patches or provide more logs if needed.

Thank you for your time and effort!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions