Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp9449985ybc; Sat, 30 Nov 2019 07:32:46 -0800 (PST) X-Google-Smtp-Source: APXvYqwiHfRRa0JB4M/SgzDicMzKCaTRBB3LrqOqVHYIlpo5SApVUWk0RzAp3VO2hnQEz3eBlN/Q X-Received: by 2002:a05:6402:1350:: with SMTP id y16mr3882799edw.176.1575127965980; Sat, 30 Nov 2019 07:32:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575127965; cv=none; d=google.com; s=arc-20160816; b=YKLTNTO/dyr522WUP2KhKtoAaYVGNbpw3nhqArH8Q5YPU771P3lyT60mBG1nBLsxla JdSqdFBj//h8BA9plfMqtUXXvtMQCBR0+zMUNkX6JN6ElDpTvpsxA+nMkEe1yD1ACLJa 6EkowJ3Iy4K3A7+Kbiq53VF6Id36FydwWcBbln+ZA+3j6pTLuF8aPaZuCkoohqlMuj7x 4OQkdSUAAVOjv1B59bLceEwOl63EDa+wz+O40xXwy69ijmB+iIPijw+8NFNVuTkI+hX8 RiidzDiLE97ZMIlixmNSabeRyPyv9jstq4fLEBr0nzd8gEtz+u7qIQnCw0ykBc/CrBvf 8SYg== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=7ur8L03O0r4ctQAG+RzezVjRPx8TQrUn8WqEMtcjU+E=; b=SpjxitWuyPrm4ijdxXSu5sOfWcfXkUOCwnuPYZTWbFfkVYfJ+hAuM3B7WTO6/FBM7O n9tb0Vt4g+P+haVqu+Ri9xOE+FBAvihwkJG4tWr8/25G8OU5pJz8EJBJKoQzFvyux0z3 w2cSU1hPapkwVQvy8GfH4/0ktrJVVa9+bQWbjF/g8x8prHzOL+rhg6VL9wrUPY1dCxdO RRmdUK2ilHcM0dGdGKX4pN9qv2ZwyH9c0KoswvZJ44uUxILCf7J8+xTFCWXaBPJrI18/ Pwlm+sKIZAtCew/gPduE0LI8kg8ieLkwpZVhjL98FGKjfSxsIjB10Zbv+trWHf2X7dTl PKLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=YeHj9upA; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q23si17218241ejn.236.2019.11.30.07.32.21; Sat, 30 Nov 2019 07:32:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=YeHj9upA; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727330AbfK3PbL (ORCPT + 99 others); Sat, 30 Nov 2019 10:31:11 -0500 Received: from nbd.name ([46.4.11.11]:56038 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727012AbfK3Pas (ORCPT ); Sat, 30 Nov 2019 10:30:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=7ur8L03O0r4ctQAG+RzezVjRPx8TQrUn8WqEMtcjU+E=; b=YeHj9upAkubaP9sjQMOP68t2FO jzTyabZkTG8AU5dVqqlDi6ofhl6xUdxha0Y5xkAKqKxwc9ZbZ36ecoiOEXItvCI33tf6feh4dGJNc tjxTHFyCh/NRoT4wqa3cmg47YQ9jWNOnuxtL/Z9iRH8ZW6CZxXV2FSvEdrNegtxMFO0k=; Received: from p5b2067e3.dip0.t-ipconnect.de ([91.32.103.227] helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ib4hr-0006hb-6f for linux-wireless@vger.kernel.org; Sat, 30 Nov 2019 16:30:47 +0100 Received: by maeck.local (Postfix, from userid 501) id 07E26721EBDB; Sat, 30 Nov 2019 16:30:45 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 16/29] mt76: add ext_phy field to struct mt76_wcid Date: Sat, 30 Nov 2019 16:30:32 +0100 Message-Id: <20191130153045.28105-16-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191130153045.28105-1-nbd@nbd.name> References: <20191130153045.28105-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Will be used to determine the phy from within the driver Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mac80211.c | 1 + drivers/net/wireless/mediatek/mt76/mt76.h | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/mac80211.c b/drivers/net/wireless/mediatek/mt76/mac80211.c index cdc0c9e0356c..38ea453b9bee 100644 --- a/drivers/net/wireless/mediatek/mt76/mac80211.c +++ b/drivers/net/wireless/mediatek/mt76/mac80211.c @@ -954,6 +954,7 @@ mt76_sta_add(struct mt76_dev *dev, struct ieee80211_vif *vif, ewma_signal_init(&wcid->rssi); if (ext_phy) mt76_wcid_mask_set(dev->wcid_phy_mask, wcid->idx); + wcid->ext_phy = ext_phy; rcu_assign_pointer(dev->wcid[wcid->idx], wcid); out: diff --git a/drivers/net/wireless/mediatek/mt76/mt76.h b/drivers/net/wireless/mediatek/mt76/mt76.h index e237ed72979b..62e2ded6a84c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt76.h +++ b/drivers/net/wireless/mediatek/mt76/mt76.h @@ -200,6 +200,7 @@ struct mt76_wcid { u8 hw_key_idx; u8 sta:1; + u8 ext_phy:1; u8 rx_check_pn; u8 rx_key_pn[IEEE80211_NUM_TIDS][6]; -- 2.24.0