Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1017226ybi; Fri, 14 Jun 2019 07:15:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwH324w+/N7Dc6r4zet6k17Vq/Gq33IKvftA5zYJw3gLPyWCTPIuDwOR0K/VtehKZONXrln X-Received: by 2002:a17:902:2a26:: with SMTP id i35mr54587576plb.315.1560521713042; Fri, 14 Jun 2019 07:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560521713; cv=none; d=google.com; s=arc-20160816; b=N/F75vDQUd4tDvAMx7269HGkxfjxwL3v8WAJqcZHOWB9VhZ/HOUhy180O7o+GXeHhz kTquEDyBsPHcbezxRD3EqCzEYzNzYYw5l5/nCNkJOQB9Ce+mmPhFaCtkLr5DknckVMSZ XC/CuqcfgQGLlIzsHya6eL1LSFPixg/GkDf5Ct+fCMNf3RgGV0r/YOa5KwYBYJprfVFz X5Uuy20aDgNOsGF+Fnnf4aZSp8rLa9NcePPZky0jptRNSz1WdCuBaaGL9gFT9vpzl1kz lDANtxMidUoOvWJn1PCCB+jnFo7C5XCkFyBMxFFXVYkmtw2B90uKp2oJ+6QPhkAx4rAa Szow== 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=NocO61UuomVDJVdclmLLJdkeMGLxmtzRnDgIZkn4CqM=; b=Iyt8uFj4luOmTgWNa22+vEXB2yavMZZGBqPZlKWZD9uXkMM1DQbk6UotsjvHXnHi8P dYZ8vbje0cYq49qsPfLhLGB2GZ2sFZ9plQLxa6zIRxM0cyDeqnDryv0+1vPD7y1Hp4vD mic1gNZou9YdMh2Wd5HwmxfrpwtwCipaYlg8ZHEJqYMnQxrC57olM+NUXTmbtZA/5ZO3 fyVtkMy56PLXE+1blczmB2SKeJNePAdSizp7AWHy/Oaslvspe8h8f+TRBV9r0c2IlR3s 1gn70dYEjd56GWZtmPvMGntkwFCYcZvrVDL4g1F3hjDbg75YmJuJ+ogbneaFSWXNQ97t 9beA== 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 o61si2593726plb.0.2019.06.14.07.14.57; Fri, 14 Jun 2019 07:15:13 -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 S1728869AbfFNOOd (ORCPT + 99 others); Fri, 14 Jun 2019 10:14:33 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:42756 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728844AbfFNOOd (ORCPT ); Fri, 14 Jun 2019 10:14:33 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hbmyE-0002D9-2s; Fri, 14 Jun 2019 16:14:22 +0200 Message-ID: Subject: Re: [PATCH v3 2/3] mac80211: implement HE support for mesh From: Johannes Berg To: Sven Eckelmann Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Date: Fri, 14 Jun 2019 16:14:20 +0200 In-Reply-To: <2194147.kqlnQF7k4C@bentobox> References: <20190612193510.29489-1-sven@narfation.org> <20190612193510.29489-3-sven@narfation.org> <8d0d11ca39b6216b24cf4e9e3a1522072db5c0d2.camel@sipsolutions.net> <2194147.kqlnQF7k4C@bentobox> 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 Fri, 2019-06-14 at 16:13 +0200, Sven Eckelmann wrote: > On Friday, 14 June 2019 16:11:15 CEST Johannes Berg wrote: > > > + 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. > > Sorry, my parser just broke. Why is there no value in ie_len? Was just > assigned a line before. Or are you talking about something else? Heh, sorry. I mean, there's no value in having the variable, you could just return 2 + 1 + ... johannes