Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF0674AD4A1 for ; Mon, 5 Oct 2026 14:39:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791211205; cv=none; b=KvQzctrQWmlTk1ZrG5ZSR1pnKJRfIgNeqyNvVve/4XORiNvtgGNn9sh8CNHYaDpznKLSA2GZonc9A6vSzWeJKwxU+DVb7Z1rhnIUnMGFBzt5UJnGULrp0k4MpwJ37kYvMf57sTivmeAJ5XLFPwdmPUHfyxG7RiqqM5qQzmc/et0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791211205; c=relaxed/simple; bh=HoV182LVoapkLp7aE53kfJzG9g/7meitXf5OeO4A/P8=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=tvHLrgsWr+FoRX9voslEFMivBdh6a6CauXbfHubHv3z72SrrP0Ffp7qrwWCxhMaJm83rf6HfuZFTEHJUTJDJ5NaKBgVPYDW52Lj9CK2Fn8XyeZEXUa+BAYg+V//1ZBkTIX6U6y0aV1wDbV2mGl0yzM/zCrEHjy8h7awM53j+SvQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jd3w/3Bn; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jd3w/3Bn" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B0BDE1F00898; Mon, 5 Oct 2026 14:39:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791211195; bh=Od8kEdrmPwKq4yIJzTxlsnRDmS8lt8T1hrlhWQEUNEk=; h=Subject:To:Cc:From:Date; b=jd3w/3BnpIc7usE3jWJHwassdDMNBriHb00g+8Hhtf7tVrGcNbIos9st4aLzR8QmM X1jTdbR5SxXn2SIJbfNdx1CJymdHbhTLheH2AfvFEFL7jZ9SjXG1NOCG0g49TOCeiJ Nb79X/P6lKfQlg87YeexlRKMpdPi1U2fpVOQQJaQ= Subject: FAILED: patch "[PATCH] wifi: mac80211: set info->band for 802.3 encap offload frames" failed to apply to 5.10-stable tree To: nbd@nbd.name,andreapesaresi82@gmail.com,johannes.berg@intel.com Cc: From: Date: Mon, 05 Oct 2026 16:39:34 +0200 Message-ID: <2026100534-stonewall-borax-0afd@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.10-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 . 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-5.10.y git checkout FETCH_HEAD git cherry-pick -x 4febc02cd02f021f2b6d0768332be643ef14a12d # git commit -s git send-email --to '' --in-reply-to '2026100534-stonewall-borax-0afd@gregkh' --subject-prefix 'PATCH 5.10.y' 'HEAD^..' Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ From 4febc02cd02f021f2b6d0768332be643ef14a12d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 26 Sep 2026 14:02:16 +0200 Subject: [PATCH] wifi: mac80211: set info->band for 802.3 encap offload frames Unlike the 802.11 TX paths, ieee80211_8023_xmit() does not set info->band from the channel context on non-MLD interfaces. It stays at 0, so ieee80211_get_tx_rates() uses the wrong band for these frames. Set it the same way as ieee80211_build_hdr(): drop the frame if there is no channel context, and leave the band at 0 on MLD interfaces. Reported-by: Andrea Pesaresi Fixes: 50ff477a8639 ("mac80211: add 802.11 encapsulation offloading support") Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Link: https://patch.msgid.link/20260926120216.4054712-1-nbd@nbd.name Signed-off-by: Johannes Berg diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index c8217f6d146e..b88acb18e04d 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -4735,6 +4735,7 @@ static void ieee80211_8023_xmit(struct ieee80211_sub_if_data *sdata, { struct ieee80211_tx_info *info; struct ieee80211_local *local = sdata->local; + struct ieee80211_chanctx_conf *chanctx_conf; struct tid_ampdu_tx *tid_tx = NULL; struct sk_buff *seg, *next; unsigned int skbs = 0, len = 0; @@ -4784,6 +4785,16 @@ static void ieee80211_8023_xmit(struct ieee80211_sub_if_data *sdata, sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, u.ap); + /* MLD transmissions must not rely on the band */ + if (!ieee80211_vif_is_mld(&sdata->vif)) { + chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); + if (unlikely(!chanctx_conf)) { + kfree_skb_list(skb); + return; + } + info->band = chanctx_conf->def.chan->band; + } + info->flags |= IEEE80211_TX_CTL_HW_80211_ENCAP; info->control.vif = &sdata->vif;