Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp379920ybi; Fri, 31 May 2019 03:02:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqz+0BG0B0ZgLBFO6UBdWf3dfnBubgnUTzGC7myrPVHeC9LfWcramVLMoo+ZGhp/vihpKClw X-Received: by 2002:a63:2486:: with SMTP id k128mr5309727pgk.125.1559296960882; Fri, 31 May 2019 03:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559296960; cv=none; d=google.com; s=arc-20160816; b=XVHGSyWSzhnzB8FX06ZZMOAK8fXLjL+ojGYm/RwZ0wObqotcwkYQWGIj5rZJ3+BnA/ WlUEp8G5gZ5Fs0nc5mbec1jhLV/cIfLDDvwWC7BBbCWMfgXg1AOGGVH6dyEvA4ZU0zv5 05xc1nkygS6iYk9aK0+US3C9gaq2MQPOPG9sKdmDUdiYERbpfm5FiTglH/H7m5Bu8g9C 54HVz7jE1wiooluJel6yV4Dq/B4EA4apRzneBTJbL0em115k5ok1IsaujXSv6RfKIAnc zwWLLP6MqkPKW3qzLV2gm+aeFmPuqS8BxIM3OTtKekzHuTFDVf4hZHqL0vg4vcGH64nC d1lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=SEAdrJqqopu1VtWsKM4xlon9bm1IuoLPGKM3OaA4f54=; b=cU+8hHgdCWvpaJYQHHkHHe2Lk9QBT/DGOF/926tzKHawoJqCEttdKTE7LxIqP7Bsfi oc4OjZH3NOmJ/ggTAWXsILON/n2Bwx/D+ZT1w9ywrkpZtzb0NGUQ2kL3QHSj8xV5w0BM 1QfiP5/uxF83OzdtrQ9rQz1XcW/GeW2DSRgFVDDWe58e+H96L7u76z89/Knq4jPLSUI9 3NGLnhdPtdkcse3C+547StkbCCeHNynGjOdy8AemTraaDrD/0aKBJPXvtB2guclOHuGs glvDwj6LTX6eSoVKFdrsk6ncVv7nYwpjo9GxYxQcfAkwsryzshvbF73JI5rjbgb/3TOs uiGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ACH+Tw7v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si5421034pjb.8.2019.05.31.03.02.12; Fri, 31 May 2019 03:02:40 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b=ACH+Tw7v; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbfEaKCK (ORCPT + 99 others); Fri, 31 May 2019 06:02:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:59286 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfEaKCK (ORCPT ); Fri, 31 May 2019 06:02:10 -0400 Received: from localhost.localdomain (nat-pool-mxp-t.redhat.com [149.6.153.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A714726748; Fri, 31 May 2019 10:02:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559296929; bh=ZfRv0Yrgp+Zd8xGJN40ArXNdaxOgATDzT4hykN3QQJs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ACH+Tw7vIyV0rlXKYRfqQ1cbiCIGHPIqfXHltfSFrCgExnxiBmQBCWIbU2kbUmEUg MjwxNpGjZeHzza3xx3EfCsClyJACURIDexq5rzy2wXNxyBaxhsN1coZJc1AEMD3fm7 sMRYh5T79vi47/5gymd7Dxol6fYQUUIOlEuCvD40= Date: Fri, 31 May 2019 12:02:03 +0200 From: Lorenzo Bianconi To: Ryder Lee Cc: Felix Fietkau , Lorenzo Bianconi , Roy Luo , YF Luo , Yiwei Chung , Sean Wang , Chih-Min Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] mt76: mt7615: enable support for mesh Message-ID: <20190531100201.GA3527@localhost.localdomain> References: <7f167d09736652f81383991c971506630bbedacc.1559287432.git.ryder.lee@mediatek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <7f167d09736652f81383991c971506630bbedacc.1559287432.git.ryder.lee@mediatek.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Enable NL80211_IFTYPE_MESH_POINT and add its path. >=20 > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7615/init.c | 6 ++++++ > drivers/net/wireless/mediatek/mt76/mt7615/main.c | 1 + > drivers/net/wireless/mediatek/mt76/mt7615/mcu.c | 5 ++++- > 3 files changed, 11 insertions(+), 1 deletion(-) >=20 [...] > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/main.c b/drivers/n= et/wireless/mediatek/mt76/mt7615/main.c > index b0bb7cc12385..585e67fa2728 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7615/main.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/main.c > @@ -37,6 +37,7 @@ static int get_omac_idx(enum nl80211_iftype type, u32 m= ask) > =20 > switch (type) { > case NL80211_IFTYPE_AP: > + case NL80211_IFTYPE_MESH_POINT: > /* ap use hw bssid 0 and ext bssid */ > if (~mask & BIT(HW_BSSID_0)) > return HW_BSSID_0; > diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c b/drivers/ne= t/wireless/mediatek/mt76/mt7615/mcu.c > index 43f70195244c..8b8db526cb16 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7615/mcu.c > @@ -754,6 +754,7 @@ int mt7615_mcu_set_bss_info(struct mt7615_dev *dev, > =20 > switch (vif->type) { > case NL80211_IFTYPE_AP: > + case NL80211_IFTYPE_MESH_POINT: > tx_wlan_idx =3D mvif->sta.wcid.idx; > conn_type =3D CONNECTION_INFRA_AP; Just out of curiosity, why not using CONNECTION_MESH_{AP,STA} here? why not NETWORK_MESH? > break; > @@ -968,7 +969,8 @@ int mt7615_mcu_add_wtbl(struct mt7615_dev *dev, struc= t ieee80211_vif *vif, > .rx_wtbl =3D { > .tag =3D cpu_to_le16(WTBL_RX), > .len =3D cpu_to_le16(sizeof(struct wtbl_rx)), > - .rca1 =3D vif->type !=3D NL80211_IFTYPE_AP, > + .rca1 =3D vif->type !=3D (NL80211_IFTYPE_AP || > + NL80211_IFTYPE_MESH_POINT), > .rca2 =3D 1, > .rv =3D 1, > }, > @@ -1042,6 +1044,7 @@ static void sta_rec_convert_vif_type(enum nl80211_i= ftype type, u32 *conn_type) > { > switch (type) { > case NL80211_IFTYPE_AP: > + case NL80211_IFTYPE_MESH_POINT: > if (conn_type) > *conn_type =3D CONNECTION_INFRA_STA; > break; same here. Regards, Lorenzo > --=20 > 2.18.0 >=20 --envbJBWh7q8WU6mo Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCXPD7lgAKCRA6cBh0uS2t rFA6AP9xl4wUemuHlJ2lNcCI2smmKaZNi4KmXW4gSR0kGjaB3wEAsww6TO6o9pAq PI3sKVdjK8j31EW9B+ekCKNxFmSPBgA= =w7DQ -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo--