Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp588458rdb; Mon, 29 Jan 2024 11:21:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2Z09ucDBOlgFomaW6zRU3n0sf6BqwdE2elIjBk+N4q5oziqpqa7WWXXn5qpCVyPA0oAVN X-Received: by 2002:a05:6a20:43a9:b0:19c:a887:e945 with SMTP id i41-20020a056a2043a900b0019ca887e945mr4084770pzl.45.1706556060717; Mon, 29 Jan 2024 11:21:00 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706556060; cv=pass; d=google.com; s=arc-20160816; b=d9PPSb1MF+zygO/871Z3cKq5qIf+WE4OHwPo9hYwOyRSaQNnovbZ13lfl8RwDMXFFA d93CNhojdDGAE7FfBWCqUdmlPgtVQKPzgRc6RzzrujrgzgUgI/bwC8tGnx3dUGkuZHbY u3wJa4BFuimVafE3BA8/iBR9Dpm9kxFu7zanClv8WElZpfMQk51MyK1c3WnENYN883o9 Ph9D8J6I2+hcVMIOvcHrlJcz1SXsuGEP5QWepkFzuqVU5yyt8UQdFIPHqXjEhB7GS4at bGRjUIZRy07J7uCh0JJDUurxQVeanIzHtSqevYRAkCW0kMpQyhcW9t2/xVsAtTpSVmzA 2ZnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fH/EeDECxgVvufWYdsTEeujGTzTtLEAMTr1mO/KlqEc=; fh=g7maL21/hU4COKRmnjnY9aDqlPZc7Xjp9FsPjHRsNmE=; b=hJ9jXeKD41fBqDfHo5Jn1QxQ0pMAqUQFXoBxQmkBVv6ZpGLhY5oNwP3ehrbe0WgjCv 9co+vY/EGEt5NLvvt8t54qGpXt03EEJ9AwNPwQtu5wH7/wVQsgrXHsdEeL/cdsORfyY8 FPsYEsXWtXUzuX9bBw81z1d0S4qf1ByV1maYX06lTJj+144JnVwvtPbCXIrexS5FCa0V GhGSga99Tl7+qHKsnzDdo+Bt0OjmZ4Oo1dUJnNAArBpzv43xLibPUouYL/ObGiKzJ3d8 uf2KFkfGUVuqj9DurdIUOyZXdsTBvilulioeXQf1nWOiEwa+3OjJ5UbskGrKV790Xb2u ONKA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=BDsKHagj; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2713-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net X-Forwarded-Encrypted: i=1; AJvYcCW+LGPpKhnSBOwD4Kh0q7NRZdRcGnNC12gVhwzht7nfZW24KCJ424s8U1u06he2erbda5+00yz4STE6L3C0Wg87N9m0f8oHhs5czLk5qw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id mv2-20020a17090b198200b0028e8e5ef46dsi8208009pjb.116.2024.01.29.11.21.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 11:21:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=BDsKHagj; arc=pass (i=1 spf=pass spfdomain=sipsolutions.net dkim=pass dkdomain=sipsolutions.net dmarc=pass fromdomain=sipsolutions.net); spf=pass (google.com: domain of linux-wireless+bounces-2713-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2713-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 62B3528888A for ; Mon, 29 Jan 2024 19:21:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F1E760EE8; Mon, 29 Jan 2024 19:20:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="BDsKHagj" X-Original-To: linux-wireless@vger.kernel.org Received: from sipsolutions.net (s3.sipsolutions.net [168.119.38.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D7614335B5 for ; Mon, 29 Jan 2024 19:20:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=168.119.38.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556051; cv=none; b=dj6GFQepmCxBC7AEu8lcw3H9733D46ezgqsiicZUTYFUa91GHPCicV40eYta0mntzQfnfqMN0gVrlKC+4LMUUzCLiQO1PGiK+1Dy60k6OKMR4WaEXGveoZ55aGNNHuOcUwmHCiFjsiw3eKwlCA17A4PHRfUVJv10Y9pOFWp/FI0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706556051; c=relaxed/simple; bh=2U7d67uIqBzny+UYaT4zgYkLYfyyiBpDVDuS+OZVy3A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=L80ySq6xsf+LeNUBY2LsiHPwIwXPPhf+nXrwuoWtZkQkn0V95c2D13XeTGrXSXojn2vRhdOaMTU+BBPj1LJo6AFE6XyCygCPhGPnkeyAu/xcMdZ5XRk6GNVXM1hRKf4dizIpFDKRerf3BXFZJbOSeEmnFu/0ifJJ8mYPCb/GJCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net; spf=pass smtp.mailfrom=sipsolutions.net; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b=BDsKHagj; arc=none smtp.client-ip=168.119.38.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sipsolutions.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sipsolutions.net DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sipsolutions.net; s=mail; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Content-Type:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-To: Resent-Cc:Resent-Message-ID; bh=fH/EeDECxgVvufWYdsTEeujGTzTtLEAMTr1mO/KlqEc=; t=1706556049; x=1707765649; b=BDsKHagjTvmdb3hM4TWjR57hLFnpXkHiGGUGVqnZiliP/kQ FBjtgCu3c4g9MIpUmMyvncRPmkappD+jDOh5/X/TFG6IopLx6yfTpzH0RSiACPGCPBDEYgvKdclkx pttx6zjqUyWSo+1J01DNsqw9B3S9X6ge7hDfGpuQ3Z0iIT1UJvCylvSVBuREz4q4mrsYgyVjuEyhv yitp+l2PPNXHPhn4XUwQjZ7oaHxRfM4jANAjt5JGAKNnDphe7pz1wmKloGN/01kwXys2OWfJJYIMx 3BZGv0aljR/Jf0GzstvO6l6HlJfP+dJ5mIqsQWVSgZKmj+m/sRRJ8X8bYn6ETfwQ==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1rUXBW-000000050Z6-3bU7; Mon, 29 Jan 2024 20:20:47 +0100 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg Subject: [PATCH 04/10] wifi: mac80211: rename ieee80211_ie_build_he_6ghz_cap() Date: Mon, 29 Jan 2024 20:19:30 +0100 Message-ID: <20240129202041.b8064a4e73b5.I8d2f4526562029107c6414c6cda378b300b1b0b0@changeid> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240129192041.58481-12-johannes@sipsolutions.net> References: <20240129192041.58481-12-johannes@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Johannes Berg The term 'IE' isn't really in use in the spec, and I want to rework all of this to use SKBs as the primary method for building elements. Rename this one already. Signed-off-by: Johannes Berg --- net/mac80211/ieee80211_i.h | 8 +++++--- net/mac80211/mesh.c | 2 +- net/mac80211/mlme.c | 2 +- net/mac80211/util.c | 6 +++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h index 43c55ea6349c..2b5d49399500 100644 --- a/net/mac80211/ieee80211_i.h +++ b/net/mac80211/ieee80211_i.h @@ -2506,9 +2506,6 @@ u8 ieee80211_ie_len_he_cap(struct ieee80211_sub_if_data *sdata); u8 *ieee80211_ie_build_he_cap(const struct ieee80211_conn_settings *conn, const struct ieee80211_sta_he_cap *he_cap, u8 *pos, u8 *end); -void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, - enum ieee80211_smps_mode smps_mode, - struct sk_buff *skb); u8 *ieee80211_ie_build_he_oper(u8 *pos, struct cfg80211_chan_def *chandef); u8 *ieee80211_ie_build_eht_oper(u8 *pos, struct cfg80211_chan_def *chandef, const struct ieee80211_sta_eht_cap *eht_cap); @@ -2529,6 +2526,11 @@ void ieee80211_add_aid_request_ie(struct ieee80211_sub_if_data *sdata, struct sk_buff *skb); u8 *ieee80211_ie_build_s1g_cap(u8 *pos, struct ieee80211_sta_s1g_cap *s1g_cap); +/* element building in SKBs */ +void ieee80211_put_he_6ghz_cap(struct sk_buff *skb, + struct ieee80211_sub_if_data *sdata, + enum ieee80211_smps_mode smps_mode); + /* channel management */ bool ieee80211_chandef_ht_oper(const struct ieee80211_ht_operation *ht_oper, struct cfg80211_chan_def *chandef); diff --git a/net/mac80211/mesh.c b/net/mac80211/mesh.c index 000fa9484b4e..10c7d7714ffe 100644 --- a/net/mac80211/mesh.c +++ b/net/mac80211/mesh.c @@ -640,7 +640,7 @@ int mesh_add_he_6ghz_cap_ie(struct ieee80211_sub_if_data *sdata, if (!iftd) return 0; - ieee80211_ie_build_he_6ghz_cap(sdata, sdata->deflink.smps_mode, skb); + ieee80211_put_he_6ghz_cap(skb, sdata, sdata->deflink.smps_mode); return 0; } diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index a97483071e90..ff386f8a1bf3 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -1067,7 +1067,7 @@ static void ieee80211_add_he_ie(struct ieee80211_sub_if_data *sdata, /* trim excess if any */ skb_trim(skb, skb->len - (pre_he_pos + he_cap_size - pos)); - ieee80211_ie_build_he_6ghz_cap(sdata, smps_mode, skb); + ieee80211_put_he_6ghz_cap(skb, sdata, smps_mode); } static void ieee80211_add_eht_ie(struct ieee80211_sub_if_data *sdata, diff --git a/net/mac80211/util.c b/net/mac80211/util.c index c2fe9aece00d..e8de82bafeef 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c @@ -3413,9 +3413,9 @@ u8 *ieee80211_ie_build_he_cap(const struct ieee80211_conn_settings *conn, return pos; } -void ieee80211_ie_build_he_6ghz_cap(struct ieee80211_sub_if_data *sdata, - enum ieee80211_smps_mode smps_mode, - struct sk_buff *skb) +void ieee80211_put_he_6ghz_cap(struct sk_buff *skb, + struct ieee80211_sub_if_data *sdata, + enum ieee80211_smps_mode smps_mode) { struct ieee80211_supported_band *sband; const struct ieee80211_sband_iftype_data *iftd; -- 2.43.0