Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1848945ybg; Thu, 30 Jul 2020 04:25:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy3f+fezXfE/2gHyW33lyl0vFmiEp00GbdfHxgfxo0BYh2Ke+yZsQArfa2sXvCjxqmq/WrN X-Received: by 2002:a17:906:31c8:: with SMTP id f8mr2011112ejf.269.1596108314840; Thu, 30 Jul 2020 04:25:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596108314; cv=none; d=google.com; s=arc-20160816; b=z+AAIjeFZIL/iJuPIYesxx71mWZDMvnbBrXN/WLYelDffpotxAxYBGl/ZwsQLwsjKx I796eqiIZuQxS5l1nt6itZ23zM4O1ukTicJzjjUyvS4HdyP1f6R9xE5dAwILCitSJy5/ U+GMYhy3MQkJgUgGOPmeK8RSpXBBLKKoxzM+qncraqcL9+5BhRQ1w38IXmpN5Ih4EP3L ABWFdUzcmRJs8wjhSBxs8/bRpIkXMv+wxYmZKOaTKo/1NG02z5edb/m5noUVrvRdM8ya p9c9mZCKTp4G6qkrHQrQuHnIZzMsnw0OdZCTxzJ0tHiFaiMqlyBF9zNut7xrdIf5jRu5 KHAQ== 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=ClUmArd6I30lrjmoDNYDT9AqOpDNPStXT39RS1cMdOc=; b=Z7Dg8WDS/+38+aIAowjuX6vNl099BfOu5mmFmDlnpRw1JQhtYRTVQ24hr9LhjDRx9N REq98Hy5Yp4bcWeHrnkUs23J+cMtsGYDPPX9GYsMZaLJwKH1VaGNK3J2j/NTS+1Ks/vp EyVCA7wgHj1s8LQsoUFKmwi1N/7P9t5dnKlJCIsBav8q/pkwNu9xlSc0YK9xU0VbtRSo bTIOTLUH+tvePlx/uaanf5RFSDn8qTxcAIa/3fc0TT+naKVLJw8RIIXCzA1k58bJg8QC dHxD/xWz/qd/JfxLoI5M7MC4kYaLmfT2xUhF63YiuRoOir4Wbv8bv7ZzqHOMxOkWYGTG /hMQ== 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 g8si3393443edj.508.2020.07.30.04.24.44; Thu, 30 Jul 2020 04:25:14 -0700 (PDT) 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 S1726724AbgG3LYe (ORCPT + 99 others); Thu, 30 Jul 2020 07:24:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726496AbgG3LYe (ORCPT ); Thu, 30 Jul 2020 07:24:34 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 034D4C061794 for ; Thu, 30 Jul 2020 04:24:34 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1k16fo-00DUSW-9m; Thu, 30 Jul 2020 13:24:32 +0200 Message-ID: Subject: Re: [PATCH] mac80211: save he oper info in bss config for AP and mesh From: Johannes Berg To: Pradeep Kumar Chitrapu Cc: linux-wireless@vger.kernel.org Date: Thu, 30 Jul 2020 13:24:16 +0200 In-Reply-To: <20200715030937.25290-1-pradeepc@codeaurora.org> (sfid-20200715_050947_264568_478AF07B) References: <20200715030937.25290-1-pradeepc@codeaurora.org> (sfid-20200715_050947_264568_478AF07B) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.4 (3.36.4-1.fc32) 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 Please always capitalize acronyms. I might let you get away with a lower-case "BSS" since that doesn't actually *mean* anything, but "he" is actually an English word... Anyway, since you haven't paid attention to the robot, I'll drop this one way or the other. Also, > -u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef) > +u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef, > + struct ieee80211_sub_if_data *sdata) > { > struct ieee80211_he_operation *he_oper; > struct ieee80211_he_6ghz_oper *he_6ghz_op; > @@ -3056,6 +3057,7 @@ u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef) > he_oper = (struct ieee80211_he_operation *)pos; > he_oper->he_oper_params = cpu_to_le32(he_oper_params); > > + sdata->vif.bss_conf.he_oper.params = he_oper_params; I think these changes are inappropriate. This is a helper function to build something, not to store the data. Please change the callers instead. johannes