Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1015718ybi; Fri, 14 Jun 2019 07:13:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqyz7l1See1CKSWzsjlnJ5Y4UBE+kpk/IILzsrbJGkdUkBQu/jLHd/EfqI+TlLWbXqmIAXOa X-Received: by 2002:a63:de43:: with SMTP id y3mr37496720pgi.271.1560521628050; Fri, 14 Jun 2019 07:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560521628; cv=none; d=google.com; s=arc-20160816; b=JU5EnhkDsWUVbYGD2gq+8U+Fn0/Jsz94YkeyBIx9THiM/A4LB3/LM4caHBCN0ySq7F CUqgtGpF5StIcjkJ/mkZlFhCfI2zk9QrX3fnS09QBVU1hqHpWWqdeC6Wc1CPcxysEDOP auoFJhcm7r6y3/AZsWAzslN8zLTSEWhOSQUQRHMZiDc/U1Vla2ddIwRd85mp7WvKh5WD 4TRYu1GeV7nQv8m198E5kvoBjeMBYGg03rMwo2zIMKRgt7jogUvbZdLll+LFvotgUUqu dDo/35QaKh4W7yogX6Y8hQd6KEWxPqWwTs+G3Fb3U6vUta73CbyR6WvuKZT1Qcd5Sn/9 TZhg== 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:date:cc:to:from:subject:message-id; bh=MR97GRJYs9j8+LPHli3QuE6cHfxCumO7SR+G+sxSxAM=; b=AD+nG/80m9T8zU0thfhpOXbjVD4hDbCiOvxcuwjLr4+CGf73WkZkOvgRBDynidLrLl IhtyUg7J1ijWK8sTp4+JOsglYhIvA8GSqxvgkzhxpdSYXUHfLfjFQJZQqbprSa1jYq8E 8nWsIfYgJj9h3Mrqh0oDyb5esyrv8HQbS9KgR5cwQw1wreQSIMFMKtGGAvQDRkGQJX33 fg0bpKdOwtpCKIVLfAJjlzgyY298KH1nA5ulaCq1smmXWqWx4j0uAsdy7/KPCHe3Vlot +7+ngDePqnkJb6wrVYehADPPlZmiZBhkatMHXwoG5GsckMlhEwqeIiA3p23FIYRIo3QD yfkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 o69si2536148pfo.106.2019.06.14.07.13.31; Fri, 14 Jun 2019 07:13:48 -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; 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 S1728569AbfFNOLT (ORCPT + 99 others); Fri, 14 Jun 2019 10:11:19 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:42672 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728227AbfFNOLS (ORCPT ); Fri, 14 Jun 2019 10:11:18 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hbmvE-00024K-BJ; Fri, 14 Jun 2019 16:11:16 +0200 Message-ID: <8d0d11ca39b6216b24cf4e9e3a1522072db5c0d2.camel@sipsolutions.net> Subject: Re: [PATCH v3 2/3] mac80211: implement HE support for mesh From: Johannes Berg To: Sven Eckelmann , linux-wireless@vger.kernel.org Cc: ath11k@lists.infradead.org, Sven Eckelmann Date: Fri, 14 Jun 2019 16:11:15 +0200 In-Reply-To: <20190612193510.29489-3-sven@narfation.org> (sfid-20190612_213644_171180_98373DED) References: <20190612193510.29489-1-sven@narfation.org> <20190612193510.29489-3-sven@narfation.org> (sfid-20190612_213644_171180_98373DED) Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-2.fc28) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2019-06-12 at 21:35 +0200, Sven Eckelmann wrote: > > +u8 ieee80211_ie_len_he_cap(struct ieee80211_sub_if_data *sdata) > +{ > + const struct ieee80211_sta_he_cap *he_cap; > + struct ieee80211_supported_band *sband; > + u8 ie_len; > + u8 n; > + > + sband = ieee80211_get_sband(sdata); > + if (!sband) > + return 0; > + > + he_cap = ieee80211_get_he_mesh_cap(sband); > + if (!he_cap) > + return 0; > + > + n = ieee80211_he_mcs_nss_size(&he_cap->he_cap_elem); > + ie_len = 2 + 1 + > + sizeof(he_cap->he_cap_elem) + n + > + ieee80211_he_ppe_size(he_cap->ppe_thres[0], > + he_cap->he_cap_elem.phy_cap_info); > + > + return ie_len; There's no value in the "ie_len" variable here. johannes