Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp251113pxb; Fri, 15 Jan 2021 02:16:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJydvnOvATazpCnFqSv9fFPdPE6ZCqo282Hzxjh39AS5OO8v1dEhwfwOYKHIUADyfc1YQz2g X-Received: by 2002:a17:906:c10e:: with SMTP id do14mr8614793ejc.166.1610705777102; Fri, 15 Jan 2021 02:16:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610705777; cv=none; d=google.com; s=arc-20160816; b=qPLAXxr5Ac1By/7WJvXRBV/r/t9sZNySohEWP2OfUVe+Yu1C9rTMjNG8Eu+KCBsJeO tTZiaI1dlA311QUrrtaIPT6tWwLslNBxgelE/cEXH4wqLaHwn92MJPcgCBV97Wx1fgx4 SnKeBDP5WdqVuqf4jHZq+yxOH6qcq9e/ctHQl9d3dywzkmIijTE4la0lPg9a1HoBjbXc 3FbVeO9Rk99vmW901ggAh3EVytdiwNaF+oNinQm9n7PbpDqv9aXbIGjDOC2fWFpKAOQa 40z9VIzQAkkBXbqyMSYBZ+3GupuHeZXOF5zDvd8xrPz6TEChRBYYdqNnRY/MVGr7zcCh OEOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=jms58e8BWESvvw5pnU9DT7RR3kcTVQapQwlZ9Jv6Ax4=; b=LngekPGdVSU0rg4zYP/+pCxBJH5ZUh/GJJxw/U1qdDO//kFqlrEbOyGEFY/fToQ/jm PQlJakSyd1hrTdGYIrrA1JoanzbWQ7ldmidKTEI4+X4xNFVwxqrxm9CerTudgrbEJfRf z7IO9X4V24dVSOAhEQrfQjpIwktvteugBPGA+94E70y+8q3xIb2cFHFOMRJBMr3vy6uk /4W7iEgHXlCCrHV3jUl+IBpuTDLurahJmRyv3WVoO7tcX1IgSjaTpV/kRazJqI/h2hK5 sH9wTJzgk0Dlht4RW+9ILN5UCQh/VKhEchJWlllIGYjALB+6XQAuWTvAMRxmuQ2f9bUJ ycGQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id da4si275568edb.389.2021.01.15.02.15.53; Fri, 15 Jan 2021 02:16:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727700AbhAOKLb (ORCPT + 99 others); Fri, 15 Jan 2021 05:11:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726375AbhAOKLa (ORCPT ); Fri, 15 Jan 2021 05:11:30 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F56FC061757 for ; Fri, 15 Jan 2021 02:10:50 -0800 (PST) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94) (envelope-from ) id 1l0M45-006bJg-Ax; Fri, 15 Jan 2021 11:10:45 +0100 Message-ID: Subject: Re: [PATCHv2 1/2] nl80211: vendor-cmd: qca: add command for ap power save From: Johannes Berg To: Jouni Malinen Cc: Kalle Valo , vnaralas@codeaurora.org, Arend Van Spriel , linux-wireless@vger.kernel.org, ath11k@lists.infradead.org Date: Fri, 15 Jan 2021 11:10:44 +0100 In-Reply-To: <20201223124622.GA12620@w1.fi> References: <1598257589-19091-1-git-send-email-vnaralas@codeaurora.org> <4b4a0d79a243c1c3b8044730da0493c96ba294bf.camel@sipsolutions.net> <871rilf2th.fsf@codeaurora.org> <87eelr1oq9.fsf@codeaurora.org> <81ced18ac5b87a17cf31797cf91669bc@codeaurora.org> <87sg9rtugu.fsf@codeaurora.org> <60c779b7c17b8ea40c2bba08d8fca98e83581580.camel@sipsolutions.net> <20201223124622.GA12620@w1.fi> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Wed, 2020-12-23 at 14:46 +0200, Jouni Malinen wrote: > On Fri, Nov 06, 2020 at 11:41:06AM +0100, Johannes Berg wrote: > > I suspect that SET_POWERSAVE might be confusing. > > Why? Isn't the use case here very similar to the existing station mode > use of power save even if the power saving mechanism is more of a vendor > specific extension that applies while there are no associated stations? Yeah, true, fair point. However, set-powersave is a bit of a legacy API with state in the kernel, and sometimes restrictions on how/when you can set it etc. I'm not sure it's a good idea for those reasons alone? > > Perhaps just with an attribute used in START_AP (and CHANGE_BEACON if > > needed) would be sufficient? > > NL80211_CMD_START_AP with a new attribute (or even re-use of > NL80211_ATTR_PS_STATE) might work for a case where this does not need to > be changed dynamically during the lifetime of the BSS. > NL80211_CMD_SET_BEACON (which maps to the change_beacon() callback) > feels like something that is currently limited to Beacon data updates > with its use of struct cfg80211_beacon_data instead of struct > cfg80211_ap_settings.. > > That SET_BEACON name is still from the old NEW/SET/DEL_BEACON time. > Should that be renamed to NL80211_CMD_UPDATE_AP if we extend this to > changes that are not really targeting the Beacon frame payload itself? I'd be surprised if we don't already have non-beacon state there ... but it looks like only very little non-beacon state, namely the FTM responder state. Renaming seems reasonable, we've done it before with START_AP. > And should the cfg80211_beacon_data argument be replaced with > cfg80211_ap_settings? It looks like we already have some struct > cfg80211_ap_settings values like inactivity_timeout and beacon_rate (and > maybe some HE parameters?) that one might want to update during the > lifetime of the BSS.. That also seems reasonable. johannes