Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2784275pxb; Fri, 12 Feb 2021 00:51:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJx93mky16Pc1Dqi3wq14OKyJ/2+QYM0RMZMQwQAuWOGGNAgv/ar1/98/llhVM+9TPNiXME/ X-Received: by 2002:a17:906:fb9a:: with SMTP id lr26mr2025525ejb.474.1613119860934; Fri, 12 Feb 2021 00:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613119860; cv=none; d=google.com; s=arc-20160816; b=NJhzYSk64LyTa1cOQzSEnoxMb9HVwCmMTqB8ld/MvWyCwCYp9dmp6w3uUBUUFdXuWu 6SxDRmWMeeqdHEEXwlNy0lKKvasdBO0AFYlVE82V8X21GYwcaD84xMYB7TP6tcnZdn7M 9+cFCJ7uU2giCofutX/1tkcmc+t40O+QWgrYGGyI+Lseo/rhr5n83ocC25d8EuEE0ZQS Vo4C0p0c7zhxzXqROSlQbEM8Y8sBF82QdeeAdqxAUbr33xSeHX4eFVvvWadQ56DFa2yZ i5fSMXXjlQcBf6LMRsH7W2LJIjIjvkajO3bkfncNUdVHrxyAQSL+rMSj7VyN9MlaHJx8 FKrQ== 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=G/dwol6fWxDExHjQSht+B5HHu9heXK29lSirG+nLCZQ=; b=fNae5tY2h5NWc8iZiIG5eA2V+lSY/9ccHHUYefoaMnvZliBTERBffAZ1R2pck7f55d YEL3z7bb4l0y4L5l/AQxPh/xZ5l8Q/0eZkud6vnjfJcAKt6l91t8Vfq0zlyZTqOXH3eL 4syXOkPXGa4hkdIvaqGwdBW/g3v0A7jJzCZHp7oWbKbwfvpcbfhebmw1TX0q6w6sY/Mi EOKRc2qCliHKRWslfQXCW+HX/YPTyFtS1uX4ETU0FNvG/qQ7z3YCysKgrXw3SUkhP6Tj HKO7fIF+aeKSeA0zOHJdb+1biKIXq74g37lPWLV64chBedWUARJszX2MBN4MSai4WIDq lYhw== 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 k6si2839472edo.113.2021.02.12.00.50.38; Fri, 12 Feb 2021 00:51:00 -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 S229965AbhBLIst (ORCPT + 99 others); Fri, 12 Feb 2021 03:48:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhBLIss (ORCPT ); Fri, 12 Feb 2021 03:48:48 -0500 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9932AC061574 for ; Fri, 12 Feb 2021 00:48:08 -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 1lAU7S-001mFs-Tw; Fri, 12 Feb 2021 09:48:07 +0100 Message-ID: <35860befe3c3310e7df34417300cd3e06b6dad44.camel@sipsolutions.net> Subject: Re: [PATCH 1/2] cfg80211: Handling driver updated MU-EDCA params From: Johannes Berg To: Muna Sinada Cc: linux-wireless@vger.kernel.org Date: Fri, 12 Feb 2021 09:48:06 +0100 In-Reply-To: <1607468044-31789-1-git-send-email-msinada@codeaurora.org> References: <1607468044-31789-1-git-send-email-msinada@codeaurora.org> 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 Tue, 2020-12-08 at 14:54 -0800, Muna Sinada wrote: > Added necessary functions and attributes to be able to pass driver > updated MU-EDCA parameters from mac80211 to user space. Please write a proper commit message, in imperative voice. > +/** > + * cfg80211_update_muedca_params_event - Notify the updated MU-EDCA parameters > + * to user space. "Notify the ... to" sounds really odd to me - "notify userspace about updated ..." or something? Also this is missing a lot of commit message to explain what this does and when it's needed. > + * > + * @wiphy: the wiphy > + * @params: Updated MU-EDCA parameters > + * @gfp: allocation flags > + */ > +void cfg80211_update_muedca_params_event(struct wiphy *wiphy, > + struct ieee80211_mu_edca_param_set > + *params, gfp_t gfp); that line breaking is awful > @@ -1408,6 +1413,7 @@ enum nl80211_commands { > > NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS, > > + NL80211_CMD_UPDATE_HE_MUEDCA_PARAMS, > /* add new commands above here */ a blank line would be nice > * This is a u8 attribute that encapsulates one of the values from > * &enum nl80211_sae_pwe_mechanism. > * > + * @NL80211_ATTR_HE_MUEDCA_PARAMS: MU-EDCA AC parameters for the > + * %NL80211_CMD_UPDATE_HE_MUEDCA_PARAMS command. That should explain the data type. > * @NUM_NL80211_ATTR: total number of nl80211_attrs available > * @NL80211_ATTR_MAX: highest attribute number currently defined > * @__NL80211_ATTR_AFTER_LAST: internal use > @@ -3025,6 +3034,7 @@ enum nl80211_attrs { > > NL80211_ATTR_SAE_PWE, > > + NL80211_ATTR_HE_MUEDCA_PARAMS, > /* add attributes here, update the policy in nl80211.c */ blank line again > +void cfg80211_update_muedca_params_event(struct wiphy *wiphy, > + struct ieee80211_mu_edca_param_set > + *params, gfp_t gfp) line breaks are awful probably should have tracing. johannes