Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp349553imw; Thu, 14 Jul 2022 02:28:17 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sZQi0M7wNrsU2qpWHbWEFQObqJnF68o3Dz6z1SBqF/PJaZIaep56PLf3Cw8PaBnJLd9x93 X-Received: by 2002:a17:907:60c7:b0:72b:5651:e1f8 with SMTP id hv7-20020a17090760c700b0072b5651e1f8mr7699166ejc.375.1657790896947; Thu, 14 Jul 2022 02:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657790896; cv=none; d=google.com; s=arc-20160816; b=yMhIlLifUGmfxmCHnNNtlCM9AEyLtBCtBbQyjm0qCTHAAshFZ3O/T/PFh4Bajm6ehc 1i9IayrCZb1nHKNYwDhjsO1K6GKi4HtFKerjqcXxAJ//EZ+bC86ZYdR7Bu6uzcpzx0jz 1uFWZXXhVVerLpNFXl0TeWruBv28RHsorm9DKD5BMXlCoPkFNZP7XTUXy7EHBBD+a2GN WlzD0HRAB6DMD3bXkdtnFDfo9cbsgGrDpPv8JWxogXG0vP51wJy9yLQoJey3LUiDDiTl NZrKKeF29u8M+QbVgPLRM4m3XngtaLxatS3DDKZw8mpqveXQO1DC0eyi/hn50flB2SGc 5eTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=ladbonBGOhrN4wvVvtFY3jJbJmlF2sAitpXebD2y1zw=; b=EVGtmq6cyt9NqZOiglpR3eohZjuDov4O3cKSq1kXk9FFFrvahnEVGevU+Hi0sJ2E4y wi5/+477Y+AdMiHzoKqAo3p0QL5KWoSddFbSEsucvtyGv9p8T7QOg19NNfpLfrlCvRxz BaHVLvqkuCgP17ZyqMpFFA11czILsjZoyE7InOfGPnxezSExTupduVji6fCFlf9rtRFc eXak71P95LhK0U0d+n+BU3wjsJOpSEVoS6k5RzU+4cejYPzwEZe3vmbxU2EgQNfSK/Cq L8bL505LT/KM5iL3SRaAqiYV9zdyVtqeKpLaZphvwzZEfl0wqz5sp5QWiySICiw/aCEr zTMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id go36-20020a1709070da400b0072b6e6a3ea5si1972018ejc.86.2022.07.14.02.27.56; Thu, 14 Jul 2022 02:28:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238053AbiGNJVL (ORCPT + 65 others); Thu, 14 Jul 2022 05:21:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238061AbiGNJUu (ORCPT ); Thu, 14 Jul 2022 05:20:50 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5836914D00 for ; Thu, 14 Jul 2022 02:17:42 -0700 (PDT) X-UUID: 7f4a003922914c5cafd2ac18eec4a1d0-20220714 X-CID-UNFAMILIAR: 1 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:594a59ac-8795-4726-9864-4392d3a354a8,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,RULE:Release_Ham,AC TION:release,TS:100 X-CID-INFO: VERSION:1.1.8,REQID:594a59ac-8795-4726-9864-4392d3a354a8,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:100,FILE:0,RULE:Spam_GS981B3D,AC TION:quarantine,TS:100 X-CID-META: VersionHash:0f94e32,CLOUDID:a2187cd7-5d6d-4eaf-a635-828a3ee48b7c,C OID:6fc6e3d06ae0,Recheck:0,SF:28|16|19|48,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: 7f4a003922914c5cafd2ac18eec4a1d0-20220714 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1354379431; Thu, 14 Jul 2022 17:16:40 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.3; Thu, 14 Jul 2022 17:16:39 +0800 Received: from mcddlt001.gcn.mediatek.inc (10.19.240.15) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.3 via Frontend Transport; Thu, 14 Jul 2022 17:16:38 +0800 From: Lian Chen To: Johannes Berg , Felix Fietkau CC: Bo Jiao , Sujuan Chen , Shayne Chen , Ryder Lee , Evelyn Tsai , , , Lian Chen Subject: [PATCH] wifi: mac80211: make 4addr null frames using min_rate for WDS Date: Thu, 14 Jul 2022 17:16:36 +0800 Message-ID: <20220714091636.59107-1-lian.chen@mediatek.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,MAY_BE_FORGED, RCVD_IN_MSPIKE_H2,T_SCC_BODY_TEXT_LINE,T_SPF_HELO_TEMPERROR, T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org WDS needs 4addr packets to trigger AP for wlan0.sta creation. However, the 4addr null frame is sent at a high rate so that AP can't receive it. This PATCHES switches to use min_rate. Signed-off-by: Lian Chen --- net/mac80211/mlme.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index c833245..09f54be 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1133,6 +1133,7 @@ void ieee80211_send_4addr_nullfunc(struct ieee80211_local *local, memcpy(nullfunc->addr4, sdata->vif.addr, ETH_ALEN); IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_INTFL_DONT_ENCRYPT; + IEEE80211_SKB_CB(skb)->flags |= IEEE80211_TX_CTL_USE_MINRATE; ieee80211_tx_skb(sdata, skb); } -- 2.18.0