Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2473366pxj; Sat, 19 Jun 2021 13:27:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuYRkbWXWz5Qo8BztuYDMI1djARC7Iu2IxlbW1SjeOUg54zocuX68IvvaR/HryB8nqNaIH X-Received: by 2002:a17:907:779a:: with SMTP id ky26mr16815876ejc.293.1624134475443; Sat, 19 Jun 2021 13:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134475; cv=none; d=google.com; s=arc-20160816; b=Hd7Rk8S9+KK8wIpDj7qaQeTLCFRSeEDI9rrNNOCLzAWuNtk5/fCq+SqQErhopaFPrk M6iiJQasRyXVBzE1GcrSbqe4O+UIYutZG5CVZyv+ylx6ac3BKkEkYFHXuLfuaBc5IJfk 0BxvrxTVLVT8zWDeI/6bfOfnkjY4+m+QocImv7Mk5ekzJ+s69atS+dJzJbGwubNw75xL AqN2mz8ZhWPHhyJ5sfi+b+N9sOCQlfzW9W+QXLSOaBsZYFl+U9wRuHJvLM/g7mZpEbS4 S2bGqY4i9NtZs6yCwraM7jI1z8KhXBlxI5BSclam0Hua+OOxIKZDc8A2qSyuxwqdmCFz VLXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=SNAVihxQYbyMpRT+vpo/a+0PTnkeVQdReZvO5389od0=; b=wPhnNSNit50rF02CvkNqwWCF9Di05AJZCDG1Hain8BrkZTwkBsNhBXMUuy9anRR3MT lPtah0e/F66mAxE2/KQzVd5ExCItL5YRfplPAhVboCXGOLBOeQlE47Esh3+0rMMFRzXi 4W1knrW+cD0GXNzuHrj6AX1zKe654nO7C2NjaVnPBEcm80X/SfeviGzcIdFCgXBAzalX p1xPB96ZVLEW6FScBJwpmPEcq8YGppeBI4QtmD8r+SG6kPpk5CrhzKwA8nCXc7ElS9gq DVyXQ0FDbASAnD+grmWy4OLd3CcUS78TEFVv320xqDfWGfLjPHbPkur85DRosNx1lEQY qdUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=s6rR2N7e; 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 a26si5700729edr.500.2021.06.19.13.27.28; Sat, 19 Jun 2021 13:27:55 -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; dkim=fail header.i=@nbd.name header.s=20160729 header.b=s6rR2N7e; 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 S229819AbhFSKRe (ORCPT + 99 others); Sat, 19 Jun 2021 06:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbhFSKRd (ORCPT ); Sat, 19 Jun 2021 06:17:33 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E582CC061574 for ; Sat, 19 Jun 2021 03:15:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject :Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SNAVihxQYbyMpRT+vpo/a+0PTnkeVQdReZvO5389od0=; b=s6rR2N7e6lwH17YXweTwTbZOXx O2Ryjl/Ik4QAWNJwqN+kuIxKIsXXO8D231ZkyuqRgp2Q3U19OGBJHV/u6Enmbkkru2pBwCAraxX3D f9ofh9D46PMEYzbFG2i1i9cuCuNXixTDGsf+lAMkGvoTb+d5Z9wcMfNaIFv5cBb4ubr8=; Received: from p54ae9ff2.dip0.t-ipconnect.de ([84.174.159.242] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1luY0V-0003oU-Dv; Sat, 19 Jun 2021 12:15:19 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Cc: johannes@sipsolutions.net Subject: [PATCH] mac80211: remove iwlwifi specific workaround that broke sta NDP tx Date: Sat, 19 Jun 2021 12:15:17 +0200 Message-Id: <20210619101517.90806-1-nbd@nbd.name> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Sending nulldata packets is important for sw AP link probing and detecting 4-address mode links. The checks that dropped these packets were apparently added to work around an iwlwifi firmware bug with multi-TID aggregation. Fixes: 41cbb0f5a295 ("mac80211: add support for HE") Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau --- drivers/net/wireless/intel/iwlwifi/mvm/tx.c | 3 +++ net/mac80211/mlme.c | 9 --------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c index 1ad621d13ad3..0a13c2bda2ee 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/tx.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/tx.c @@ -1032,6 +1032,9 @@ static int iwl_mvm_tx_mpdu(struct iwl_mvm *mvm, struct sk_buff *skb, if (WARN_ON_ONCE(mvmsta->sta_id == IWL_MVM_INVALID_STA)) return -1; + if (unlikely(ieee80211_is_any_nullfunc(fc)) && sta->he_cap.has_he) + return -1; + if (unlikely(ieee80211_is_probe_resp(fc))) iwl_mvm_probe_resp_set_noa(mvm, skb); diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 2480bd0577bb..eda1e979120f 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1094,11 +1094,6 @@ void ieee80211_send_nullfunc(struct ieee80211_local *local, struct ieee80211_hdr_3addr *nullfunc; struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; - /* Don't send NDPs when STA is connected HE */ - if (sdata->vif.type == NL80211_IFTYPE_STATION && - !(ifmgd->flags & IEEE80211_STA_DISABLE_HE)) - return; - skb = ieee80211_nullfunc_get(&local->hw, &sdata->vif, !ieee80211_hw_check(&local->hw, DOESNT_SUPPORT_QOS_NDP)); if (!skb) @@ -1130,10 +1125,6 @@ static void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local, if (WARN_ON(sdata->vif.type != NL80211_IFTYPE_STATION)) return; - /* Don't send NDPs when connected HE */ - if (!(sdata->u.mgd.flags & IEEE80211_STA_DISABLE_HE)) - return; - skb = dev_alloc_skb(local->hw.extra_tx_headroom + 30); if (!skb) return; -- 2.30.1