Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1383997rdh; Fri, 24 Nov 2023 11:08:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IEkIuJ7+xdKessXDX4GaDtvKwKbSk3eD9oobFLF2WwlMChypCFkuqU21h0sXGA7RPPH6zGu X-Received: by 2002:a05:6a20:7494:b0:18b:386a:46a4 with SMTP id p20-20020a056a20749400b0018b386a46a4mr5128261pzd.18.1700852896714; Fri, 24 Nov 2023 11:08:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700852896; cv=none; d=google.com; s=arc-20160816; b=KuDqYA6GQyB9kEDN+Dc5xdaYLfJYcUKjlYmpq0lk01ffaXo7Y5rlBkVYYeFmCSuxBp 7R9//h4+7HunWade229VF4IAteZs4rEBwoOShEsqTMT00b5juSWPx00oqfG89xjw4DUv lUjF/K/TgpINXS16K2vZuf+HCck+JhHtMVvWXwNMkglt2htAZ6/1nAMxigCVZ975r280 8+kLEE+rn7pj40cgxWwavP0Zx50uYijLNxZKJVRn6nTnfcXP0fKwykUoQF70enJbyi69 JLABJVA94Li6wiDcxTV5YKBLFcHRKHQypaLsXM5mQKK/rIsp0f6iQ1M/nWBj+AES9sjB GsqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=box+Rdi7p33Kw3F/j/VW9bY5Qimjk0tjDqvbl1YmbDQ=; fh=RgzD5tgjT+uy/Xb5R2j/T4xT2d85+iPRfkZqTMQPt1g=; b=MgsAusYPRF8/6q3w9aEIh3BOlKvY/LrfrSYrqAdbJ3QNnTYQocgPEWgN4Q1Zzz277y Ku09af9QpjJJLw4EkcgJeT/dKNnpWBgJS5/yOI2J8zUVjWg6L7gBFmDq0ni3DLkCgszl PB/F/gc5VHRe42zWzn0xOnDF4Yv5j59fQqlzEAX4tbf/kM8gx1BcQML/w3l4ZGp8s5pa x15HDuKuPCN9V89iw82FW1LIF3S5XlCg+2y/9YHLU+OobLGZK2+vvBY9EhmOMT41Ww5I VbKKmrlvxAE5rOQpdpopq5ntuCSBkX+fov0ksLefmPTmHmz3S5KLqZclwhv0ot+wlMxl hI0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=JGu0UZN1; spf=pass (google.com: domain of linux-wireless+bounces-63-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-63-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j15-20020a63e74f000000b005c2786b7e32si4328049pgk.812.2023.11.24.11.08.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 11:08:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-63-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=JGu0UZN1; spf=pass (google.com: domain of linux-wireless+bounces-63-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-63-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 89239B24157 for ; Fri, 24 Nov 2023 19:07:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0985E34189; Fri, 24 Nov 2023 19:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="JGu0UZN1" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C24B1BF9 for ; Fri, 24 Nov 2023 11:03:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=MIME-Version:Content-Transfer-Encoding: Content-Type:References:In-Reply-To:Date:Cc:To:From:Subject:Message-ID:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=box+Rdi7p33Kw3F/j/VW9bY5Qimjk0tjDqvbl1YmbDQ=; t=1700852586; x=1702062186; b=JGu0UZN1LZXknlq0j7M7HTG5W5gJO/2f+JmQ7blZvBHnguX PkArrLqRXqxm180Y1GVd5dlFnvk1iQ5ZYt2WVzxtERxQ7WYnaYmTTdrS9N9/GKRU+4iKunQ3cs1rQ EpZKLFq/49ZusETT3/SDapQlExLB+4Hz2CfZ/ur7Drir0BOzWBVMAzWs4E6VlZs+vzv8k71t88+f4 nsg2WApVEN6okpyAHhiJH9DqK75B9w/dbNOrXl17tGzTtuzbT+H4tp3OaKOami1rWfiIYUy596nsR moD44WCstL6uiwgKOGYcWtg1jDSGEvCmg5lTSvMX2VsueQUBDjLEx9LAjwSexbeQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1r6bSB-00000002jQ5-3XL3; Fri, 24 Nov 2023 20:03:04 +0100 Message-ID: <1a2ada781ce53e8f1d9c85de44780ee895443c3f.camel@sipsolutions.net> Subject: Re: [PATCH v3 1/1] wifi: nl80211: Add PTK/GTK rekey interval attributes for APs supporting PSK offload From: Johannes Berg To: Jithu Jance Cc: linux-wireless@vger.kernel.org, vinayak.yadawad@broadcom.com Date: Fri, 24 Nov 2023 20:03:02 +0100 In-Reply-To: <20231113124742.13588-1-jithu.jance@broadcom.com> References: <20231113124742.13588-1-jithu.jance@broadcom.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-malware-bazaar: not-scanned On Mon, 2023-11-13 at 18:17 +0530, Jithu Jance wrote: > This patch adds attributes to NL80211_CMD_START_AP that the user applicat= ion > can use to pass down PTK/GTK rekey interval times to the driver. If drive= r can't > support the configuration, it is expected to return failure to NL8011_CMD= _START_AP. That doesn't work, _all_ current drivers will obviously completely ignore this setting. If you need that behaviour, you need to add new feature flags for it. > + if (info->attrs[NL80211_ATTR_PTK_REKEY_INTERVAL]) > + settings->ptk_rekey_interval =3D nla_get_u32(info->attrs[NL80211_ATTR= _PTK_REKEY_INTERVAL]); > + else > + settings->gtk_rekey_interval =3D nla_get_u32(info->attrs[NL80211_ATTR= _GTK_REKEY_INTERVAL]); >=20 Why can you not set both at the same time?! That should be documented, if it's really desired, but that seems really counter-intuitive? johannes