Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3543786rdb; Wed, 13 Sep 2023 15:47:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5DwHSNxO/nHlhr5cTQe4BnmDpW/fxsccx9g0ojq74cbd22PK6IB0AdriqEx66MHDezkkw X-Received: by 2002:a05:6358:98a7:b0:13e:ea2a:40aa with SMTP id q39-20020a05635898a700b0013eea2a40aamr4584753rwa.8.1694645257813; Wed, 13 Sep 2023 15:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694645257; cv=none; d=google.com; s=arc-20160816; b=T2jKRYUFqZKIotuouqwQyg/AsevxDZbF1bSg288RNCPNS20iSZ5gZ33mV4VbdyzAJf mK1Iz+dYVLfhWVvaIbAkIb4jcqRW+saB/2Ahrp5GI7dZJ6SvAYTlxmhf1sz8J202077i A7H/rjwa+AuCy7+GTcomUP761W72AzwCAbNIEzhoK/FaoB0K4E7QF7wTy5nMHxd45yvJ jg3ZLP0MpRmTr384KPDfZ1W2A4kRxGm3oHS07GQAkXO34AooBURG5h6rqJ1SJGyQxyQA 78LShc8hy0mBM2+pq1Jr0uu/UNfF3xfZiBrcUekovajPDf6TFvGOj7Mf0gnKjmzq3sVu Y6oQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=anQMUCBEGRmKJTumv/SkUzXirwoCr4bcRocp5IkaDFc=; fh=HcHwHM+7xUXqaSedWtmI93vD5oZdHxreVDiW0zN0xBw=; b=FCGqOSIh/f5hz9D4I3jgnCsmRyEoYwJLUILeYsKWjvCB6fYsMXQ4hJMTcQ0Xa9Z9aL BVPeZYLQEc4Ah8fCK0kVhipenRfUAzVVI15xjsQ2QSq1Fa/u2pUMHwUNWsei1RE5JYdg Xkr6x9c11Fkl6EyAixsKnk7ulzAujJogkuSImc6tTSAFY0W6WwWp/EV6sW/ZrE9jT+I6 ifm7INalDv2YnEHS7GugOz1cPK6+oVOIOzvBU+AxKSX4IMU7dWfzcpOUb9o/MRiWO7TZ Sv7vDnI460xkEH2ysJfQY0eIiocFvP0klqSKrWvG3CdKbSQHpXMIFTpqBbfgjmKAvIed mHFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=k3MeXwNy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id k66-20020a636f45000000b00565323c8295si98626pgc.749.2023.09.13.15.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 15:47:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=k3MeXwNy; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E7995801B40F; Wed, 13 Sep 2023 02:44:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239402AbjIMJoR (ORCPT + 56 others); Wed, 13 Sep 2023 05:44:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239398AbjIMJoQ (ORCPT ); Wed, 13 Sep 2023 05:44:16 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:242:246e::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74FE2199E for ; Wed, 13 Sep 2023 02:44:12 -0700 (PDT) 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=anQMUCBEGRmKJTumv/SkUzXirwoCr4bcRocp5IkaDFc=; t=1694598252; x=1695807852; b=k3MeXwNyZ4ZBHekZc9MsK5+veBithUEK05UrDbV7oGNCCZH kqw3UARj4FfpMhdsJ9vRxvriFlUOIP3TZaBPL5wg3Qbnb4gg7FN9ljpZKgZPw+t3ysNoyoVYbRQ2Q vrMvW8B5v3/ncsTgusUrvFyVOh+TaBa2cA+7MhDTiQXqJmlbgNSmRmcpf7/hVH1aMlge0sMiGAoC3 N4zqTt348uMCSU7QgKk5CnmYu4Wipq9Nq/aMpbIHgcpuL/PZFQHArdGxo+9wmwntnWIV9/UsPMjny IxRMvXpj1bD6CxVFy57LtfwLvZHQSwrbKudMrsVF8TPzE0T9FhGCX10Vky51FsVg==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.96) (envelope-from ) id 1qgMPp-00EkRI-1s; Wed, 13 Sep 2023 11:44:09 +0200 Message-ID: <5a98910aa4577e784e17ef6e0201dc57b11a5c24.camel@sipsolutions.net> Subject: Re: [PATCH v6 2/3] wifi: mac80211: allow userspace to enable driver control of MU-EDCA From: Johannes Berg To: Muna Sinada Cc: linux-wireless@vger.kernel.org Date: Wed, 13 Sep 2023 11:44:08 +0200 In-Reply-To: <1682960363-15452-2-git-send-email-quic_msinada@quicinc.com> References: <1682960363-15452-1-git-send-email-quic_msinada@quicinc.com> <1682960363-15452-2-git-send-email-quic_msinada@quicinc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 X-malware-bazaar: not-scanned Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 13 Sep 2023 02:44:17 -0700 (PDT) >=20 > --- a/include/net/mac80211.h > +++ b/include/net/mac80211.h > @@ -376,6 +376,7 @@ enum ieee80211_bss_change { > BSS_CHANGED_FILS_DISCOVERY =3D 1<<30, > BSS_CHANGED_UNSOL_BCAST_PROBE_RESP =3D 1<<31, > BSS_CHANGED_EHT_PUNCTURING =3D BIT_ULL(32), > + BSS_CHANGED_DYNAMIC_MU_EDCA =3D BIT_ULL(33), This is missing documentation. > + * @dyn_muedca_enabled: whether to enable or disable driver control of M= U-EDCA > + * parameters. If set to zero, driver dynamically updating parameters is > + * disabled; if set to 1, driver dynamically updating parameters is enab= le > */ > struct ieee80211_bss_conf { > struct ieee80211_vif *vif; > @@ -776,6 +780,8 @@ struct ieee80211_bss_conf { > bool eht_su_beamformer; > bool eht_su_beamformee; > bool eht_mu_beamformer; > + > + int dyn_muedca_enabled; why int with 0/1 rather than bool like the others? > @@ -1465,6 +1465,11 @@ static int ieee80211_start_ap(struct wiphy *wiphy,= struct net_device *dev, > changed |=3D BSS_CHANGED_UNSOL_BCAST_PROBE_RESP; > } > =20 > + if (link_conf->dyn_muedca_enabled !=3D params->dyn_muedca_enable) { > + link_conf->dyn_muedca_enabled =3D params->dyn_muedca_enable; > + changed |=3D BSS_CHANGED_DYNAMIC_MU_EDCA; > + } This doesn't seem right ... think about it. johannes