Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2571364ybt; Mon, 22 Jun 2020 01:34:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpXVYAoJcUklB81SZ0tfAgqUxmYJA5C943RDYf/+5h0+g78uy+8IoRv956VE+rjzh0AS+T X-Received: by 2002:aa7:d9d3:: with SMTP id v19mr15445363eds.364.1592814898855; Mon, 22 Jun 2020 01:34:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592814898; cv=none; d=google.com; s=arc-20160816; b=FvJgdw3SNft+wgRqor3DB3Z/EAiTKOLS0LhSiyfnlBz43tJyu8HdDnBURfNUFDoMWb aWzyUb3a4yUkQWul46tbO0iJr7kfPVEXQS2Ka57Pq2hE9q9XLSGyH7xpYbCz8T/dv8u0 sVcvbNupRqEvcx2HX4BXXg8hWYn6J2/GDooKnxCXIhJ7QI+yuhjviZ9SqiWmP+EpeQfr Kr9XGZDMnDPA5sCrmcdxoPbkBVdRYcdtRPBye9EyF64uYxgUf+HqMJQilqG7Fc1xJ8rr r+cVgm8fPnei5qCGvejIs7ogub7hX7wunxY9QzdHtlC3L9L08A9HNFzLZOXq6jvtYbiM +7Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=oJVnWxprNYdKr54RY0FgVO54J13p1nhsoa+hAuAMSdM=; b=Z3g7xiUgsdRN5rKUUQ3mRHIKg/uxhUhR0jd0spkM14cPWSWpjgsg4f9N0cVXNsxcKe oQE+56bJCPXlGH+XWbkDZ2s/uN3xf72TVYcjP8amAPHhS5/awFePitCy6RAASaOIU1rk iWB3lNQrpUwRUANwY4Q+YV0kKGrqRQYcc/Kgz5V6f8kwIn1VCK1jbw+q/r7dlpXg/8vp 7jK3FOqrkbLkuzB6/61921F4bMncyZPCRbY3MWjimm0bEp+/HsQMjihm6vPmu+2Hk+V6 9/dIIU6u2Kb2MZX7V1pYLmMVk9miIo/S+yKDChoeQR99sFBfE5LfeGm7scTRJdKBw0Od 97KA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb21si8518862ejb.385.2020.06.22.01.34.24; Mon, 22 Jun 2020 01:34:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725823AbgFVIdt (ORCPT + 99 others); Mon, 22 Jun 2020 04:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725616AbgFVIdt (ORCPT ); Mon, 22 Jun 2020 04:33:49 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EDB2C061794 for ; Mon, 22 Jun 2020 01:33:48 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jnHti-009xWU-1D; Mon, 22 Jun 2020 10:33:46 +0200 Message-ID: <537bd31e3dcef148fcc934969c782e0f0c40d711.camel@sipsolutions.net> Subject: Re: [PATCH] mac80211: fix control port tx status check From: Johannes Berg To: Markus Theil Cc: linux-wireless@vger.kernel.org, j@w1.fi Date: Mon, 22 Jun 2020 10:33:40 +0200 In-Reply-To: <20200622083054.102643-1-markus.theil@tu-ilmenau.de> References: <20200622083054.102643-1-markus.theil@tu-ilmenau.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Mon, 2020-06-22 at 10:30 +0200, Markus Theil wrote: > Signed-off-by: Markus Theil > --- > net/mac80211/status.c | 21 ++++++++++++++------- > 1 file changed, 14 insertions(+), 7 deletions(-) > > diff --git a/net/mac80211/status.c b/net/mac80211/status.c > index 7b1bacac39c6..88c826645903 100644 > --- a/net/mac80211/status.c > +++ b/net/mac80211/status.c > @@ -639,11 +639,22 @@ static void ieee80211_report_ack_skb(struct ieee80211_local *local, > u64 cookie = IEEE80211_SKB_CB(skb)->ack.cookie; > struct ieee80211_sub_if_data *sdata; > struct ieee80211_hdr *hdr = (void *)skb->data; > + u16 ethertype = 0xffff; > + > + if (skb->protocol == cpu_to_be16(ETH_P_802_3) && skb->len >= 14) > + ethertype = (skb->data[12] << 8) | skb->data[13]; Might be nicer to extract that as __be16 immediately? johannes