Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp1328151ybl; Wed, 28 Aug 2019 13:00:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz58HvltOVEPzxxyv6Z2HPXQ2/Hl+eXd84AaYz61mGMC0pTDjRrnzF29n8gR6mTzAQMhD5 X-Received: by 2002:a17:90a:9cf:: with SMTP id 73mr5924127pjo.90.1567022441978; Wed, 28 Aug 2019 13:00:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567022441; cv=none; d=google.com; s=arc-20160816; b=OWeGnKxCfFQGUrTbbUn161t0LN26BohCtX5XWMyrBHy1DSiUrVWRN4WWDZ2rlUsa6/ +jNUNxjbf4NWOQDYl9QQC+h+3vN804xPT+hmOHNh9RzUy1wLqNNHq0YjpGPLEdwsUeSx LkxyRI5llpsJFcwYYh2egm6pRIGlrVXV4ksISn1fw5lqGJ1RwFazZGHJQRklX/8/xxoc I5UknPoXkJrIjZQtquuyM5BoRvOGhOwmXP5FYJG+i5VOkK7PiRWtPTvzdi/sFRxhBmTw Hm49JHd2wEeJE2HJ7EfD3vIpDpl2USG9n9Jf+QygXlIxQGFqnn877SM+GZ2JCv4TdTw6 9fog== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=DOzrm86uMupAowGQZknCEumFZ9GPI/j3G4MwLhric08=; b=CCKKpWpV7g9gBlS9CoNxcnNAapoyh/9LhKzmmNZHYgVEc0FRQLmRvL1+wHiKXyNL2z a3C2fFfMfIcLv01VaiOQAqN6ShDbQhE64hraL12CoPITDIQMNbJTOm0TmiZ/4kdO9LLv kEEGA15pM0wPT09pEt+qVksAImRXSJug9JWrZxxSebkuGTdWtBvGOMjIBDXc/yn/tufg GLYznvB9JoBx+6p+BKP851/P21kASzggjpypjTz+yHe6KVqkuYO0MercJ0pbZPHeL+oR ShTgVbD/e6orxD7hTpMFSzStRiPsyEmGjeZDcGdU68xNqallr1iZ9tT7FCXTLw5Jeb4f 1NRA== 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 186si59615pgc.248.2019.08.28.13.00.26; Wed, 28 Aug 2019 13:00:41 -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 S1726829AbfH1T7K (ORCPT + 99 others); Wed, 28 Aug 2019 15:59:10 -0400 Received: from s3.sipsolutions.net ([144.76.43.62]:41286 "EHLO sipsolutions.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbfH1T7K (ORCPT ); Wed, 28 Aug 2019 15:59:10 -0400 Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.92.1) (envelope-from ) id 1i345v-0007Sp-CX; Wed, 28 Aug 2019 21:59:03 +0200 Message-ID: Subject: Re: [PATCH v2] cfg80211: add local BSS receive time to survey information From: Johannes Berg To: Marcel Holtmann Cc: Felix Fietkau , linux-wireless@vger.kernel.org Date: Wed, 28 Aug 2019 21:59:01 +0200 In-Reply-To: References: <20190828102042.58016-1-nbd@nbd.name> <9189B2C1-6E5B-4457-9354-A010F946EE33@holtmann.org> <18c4232675c7b4f13fbfe9e5d8e9364a0908f316.camel@sipsolutions.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) 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 Hi Marcel, > > No, as usual, that would break ABI. PAD is a regular attribute, just > > empty and ignored for aligning 64-bit values. > > then I do not grok on how the nla_put_u64_64bit works, but that is > fine. > > I assumed these are similar to the NL80211_SURVEY_INFO_MAX which we > also always move, but also not expected to be part of the API as a > fixed value. No no, the _MAX is just the token we use for knowing what we want as the maximum when parsing etc. The _PAD is actually a real attribute, basically nla_put_u64_64bit() will do "nla_put_flag(_PAD)" if and only if "offset % 8 == 0", in order to actually 64-bit align the 64-bit value in the following attribute. (Note that offset % 8 can only be 0 or 4, due to the way netlink attributes work.) johannes