Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4536724ybz; Tue, 21 Apr 2020 02:22:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLkMAZxVDJDme/fdTxGL605DZmwpaGA5nhGo5OeNCwHKYekSB6a8KK1/wqXoN2ye2yUFjUm X-Received: by 2002:a17:907:2069:: with SMTP id qp9mr20696391ejb.137.1587460948183; Tue, 21 Apr 2020 02:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587460948; cv=none; d=google.com; s=arc-20160816; b=LEYlGXrsIYNJ0qP4R4QrVR5ifEZiG8pa/MMkaQbyIP8AHaBkYVTIg8z2OAZdMn5olv QUdvNr4vMftH8d3b7Bmcpum5Yc43kGiumbinYvVlhGlH3RBACPHqXdioO8qgQsoSY0fB HHBcHTa3ByQ67sQiXl7BlncSsYr95+Ln8FPDJd5miIaqX34Gja4bssbezcqLZljEg8Ix pOw0s7WHOUuCet8pe1UPMu21mCAqk7VFkB119bIVv9ZP3JI189fYbJwFZtF9prCkfDov gUR/1kGQoWtrxgCgNrYamhC0tRPqTJU+cveXuaymLw7wThTuZvlNIHKPNw6o4uEvzFkT 9x+w== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=Agu+e59UTJ1eH7kgr9QshH1Ld07sqWMnOvlVMqaeCE4=; b=Z4H7WvONo28ngxwS2+V02plA5TnjUzaI7Rcs9VsbKo3UXyE2PErJ8kAkMb9ztPhgng zC6TwZUJWiKQCys/toUODB5wkS4l1q+WSHvzZYqe4u/ShJfCzvHZA8xCpQJvqBri8eYV yPWglcc/VX0nKHsWGpMy8kLMiCdjvuDYjW5jvH2TCf/ZPVjZy5LbKO4qBkTMtsjDly6U Zr1Ny+c86Wcasiox3Jal33Mxwsxsy3LnRPDjLQ1+53pyFmtmN2ImmfyWHtuONq4YX6b7 ZAeq/oSxPIeN5/3UPqIReOr3iFTMo18LBG/12D7jvE5zrbCsbEGoE0cPYK9X2ierieOe 9dAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=IPX7UwZP; 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 mj2si1135058ejb.279.2020.04.21.02.22.04; Tue, 21 Apr 2020 02:22:28 -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=IPX7UwZP; 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 S1726120AbgDUJTz (ORCPT + 99 others); Tue, 21 Apr 2020 05:19:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57168 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725920AbgDUJTy (ORCPT ); Tue, 21 Apr 2020 05:19:54 -0400 X-Greylist: delayed 6995 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 21 Apr 2020 02:19:54 PDT Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5DBC061A0F for ; Tue, 21 Apr 2020 02:19:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Agu+e59UTJ1eH7kgr9QshH1Ld07sqWMnOvlVMqaeCE4=; b=IPX7UwZPYR6MenvL6wSpufxVCj 4C0vbz9sEY52k+cmM3qFD6OPOpZW7PALVQYH/Fw0JerTuzUHeQWNgXJCy0BYEtXVimRPc7wnj1cFt BXni30E234FK5ryIoBfRzrS7aZI/n2m1IlUSd6ulFz1ecVQOJUNzF62DnNyrK0AQvVdw=; Received: from p54ae965b.dip0.t-ipconnect.de ([84.174.150.91] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jQp4J-0003UW-Io; Tue, 21 Apr 2020 11:19:51 +0200 Subject: Re: [PATCH 3/3] mt76: mt7663: fix up BMC entry indicated to unicmd firmware To: sean.wang@mediatek.com, lorenzo.bianconi@redhat.com Cc: ryder.lee@mediatek.com, linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, Soul Huang References: <1467d47fd111b5711fa74410833153bdc9e01b72.1587445885.git.sean.wang@mediatek.com> <99b919b29ad60437749d5f30dc8c68ccb3df89f3.1587445885.git.sean.wang@mediatek.com> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtX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WLnXQvP5EDvlZnNaKa/3oBes6z0QdaSOwZCRA3QSLHBwtgUsrT6RxRSweLrcabwkkE GBECAAkFAkah5FQCGwwACgkQ130UHQKnbvW2GgCfTKx80VvCR/PvsUlrvdOLsIgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <5fe74f29-caa7-7e0e-3f31-f9d464397123@nbd.name> Date: Tue, 21 Apr 2020 11:19:50 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <99b919b29ad60437749d5f30dc8c68ccb3df89f3.1587445885.git.sean.wang@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-04-21 07:20, sean.wang@mediatek.com wrote: > From: Sean Wang > > BMC entry for MT7663 unicmd firmware should be a broadcast/multicast entry, > not a unicast entry, that is GTK rekey offload would rely on. > > Fixes: 138860679b2a ("mt76: mt7615: add more uni mcu commands") > Cc: Soul Huang > Suggested-by: YF Luo > Co-developed-by: Ryder Lee > Signed-off-by: Ryder Lee > Signed-off-by: Sean Wang > --- > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > index 045bde7f554d..e8caa2c7981e 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > @@ -1339,7 +1339,7 @@ mt7615_mcu_uni_add_bss(struct mt7615_phy *phy, > .short_st = true, > }, > }; > - u8 idx, tx_wlan_idx = 0; > + u8 idx, tx_wlan_idx = mvif->sta.wcid.idx; > int err; > > idx = mvif->omac_idx > EXT_BSSID_START ? HW_BSSID_0 : mvif->omac_idx; > @@ -1349,10 +1349,9 @@ mt7615_mcu_uni_add_bss(struct mt7615_phy *phy, > case NL80211_IFTYPE_MESH_POINT: > case NL80211_IFTYPE_AP: > basic_req.basic.conn_type = cpu_to_le32(CONNECTION_INFRA_AP); > - tx_wlan_idx = mvif->sta.wcid.idx; > break; > case NL80211_IFTYPE_STATION: > - if (enable) { > + if (enable && !is_mt7663(&dev->mt76)) { mt7615_mcu_uni_add_bss is only called on mt7663 with offload firmware, so you can simply delete the entire if (enable) { ... } code section. - Felix