FAILED: patch "[PATCH] wifi: nxpwifi: read the 11AX_CFG extension ID at the right" failed to apply to 7.3-stable tree
[email protected]
maintainerThe patch below does not apply to the 7.3-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-7.3.y
git checkout FETCH_HEAD
git cherry-pick -x 1cb78390d1c6c7908ab9838238a702799e0f7e9f
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2026112558-amino-egging-2000@gregkh' --subject-prefix 'PATCH 7.3.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 1cb78390d1c6c7908ab9838238a702799e0f7e9f Mon Sep 17 00:00:00 2001
From: Yehyeong Lee <[email protected]>
Date: Tue, 20 Oct 2026 09:50:26 +0900
Subject: [PATCH] wifi: nxpwifi: read the 11AX_CFG extension ID at the right
offset
The send side writes the extension ID as the first payload byte of the TLV in nxpwifi_cmd_11ax_cfg(), but nxpwifi_ret_11ax_cfg() reads it one byte later and copies the HE capability from the same wrong offset. The capability test runs on the wrong byte and the copy reads one byte past the declared payload.
Read the extension ID and copy the capability from the first payload byte. A zero-length extension TLV has no payload to read an extension ID out of, so skip it.
drivers/net/wireless/nxp/nxpwifi/11ax.c +3 -3
@@ -219,13 +219,13 @@ int nxpwifi_ret_11ax_cfg(struct nxpwifi_private *priv, tlv_type =le16_to_cpu (header->type); tlv_len =le16_to_cpu (header->len); -if (tlv_type ==TLV_TYPE_EXTENSION_ID ) { - ext_id = *((u8 *)header +sizeof (*header) +1 ); +if (tlv_type ==TLV_TYPE_EXTENSION_ID && tlv_len >=1 ) { + ext_id = *((u8 *)header +sizeof (*header));if (ext_id ==WLAN_EID_EXT_HE_CAPABILITY ) { he_cap->id = tlv_type; he_cap->len = tlv_len;memcpy ((u8 *)&he_cap->ext_id, - (u8 *)header +sizeof (*header) +1 , + (u8 *)header +sizeof (*header), tlv_len);if (he_cfg->band_config &BIT (1 )) { memcpy(priv->user_he_cap,