Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp888800lqp; Thu, 23 May 2024 03:10:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCnB0X4weU5xymguUpO5WxKQMgkOGGqxVTmegWjaXlEvTWicY3b/W39utTdTwOKNna+P/z2k8iMN6s0AmyV5hW/oQPUMBZl5NSx3Jq+g== X-Google-Smtp-Source: AGHT+IHfQnhEQztWZauoNtMG8LmzitEYQc21Ml1APFKSeEa8HpKsDav2jix7XCsMHhiSPbl5q2Fp X-Received: by 2002:a17:906:180b:b0:a61:54c3:9f8a with SMTP id a640c23a62f3a-a622806bbbemr301366866b.7.1716459020260; Thu, 23 May 2024 03:10:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716459020; cv=pass; d=google.com; s=arc-20160816; b=zyCednERBaiTHJA4mOB8AlmLYfUZlomynT68v8/hSrCWgTupqhvX5B6OT1gbtIOQJX B1cPGe5xFS4etsu2jph0UlorOTswOxNtovjipprvkaOO9kotHML/NoRgrHyMgoHXNSc3 29kc/v6H6nxrfY60AgYjh7PSLVv9XTU8y4lNrnx4X3gCKzbFNmO5MMr0LiX+Zfv+Culn hmzzli/bWAe6ZhRdlFI7l5BHn2A+uw9dhAo8UwcbupZZpqDgKAkhpGH0a2+DsEnqoFxP tMLM5otoFGxsyt7uCuwBD8Puamvkyy+wr77xIzONJC42LeK7VwBScOrbLQTRg0oo51m+ +l8A== 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=LR7TBvHO2r2evYszkTOJxdd5UmNYoDhs+rNUz5WTWrk=; fh=0ZKV22Mpi0Z+/zRlCC9GRUAKl0wLMxmYgR1nXO1NAEs=; b=zsc+Ski0ai7oH8AvbM61b2voG0hQRQHAYxO3q3nBxlIzAFAl2D/EhHFfXI/EReI0I5 PVA+CW5HQkLGGQH3SX/VwMkROh/5jRdszakdJbkxPx74PMMmyRVvN3vu9SgMecwG02xb aUJ1jbk6DrCbf01jEKNY5GeO/J2CgkCBJjEl6D0pjx58uPHVr7KRq+lWCLI8mtNhm/co DXSV5U5uShHt8jTShFjkk6vQl5bGeTzQH7ApCwrGOzweerDHp6tNduwp1MFfjnCA0buv 4IY3y8HID1Is+bsvNdkaJVrji5sG+bbzuzQ1+8TwwPa1spqqxLbycpYc55z8D8BvaOA6 tlUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=drPd5hvL; 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-7999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7999-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=sipsolutions.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a5cf2677e7asi805897366b.470.2024.05.23.03.10.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 03:10:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-7999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sipsolutions.net header.s=mail header.b=drPd5hvL; 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-7999-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-wireless+bounces-7999-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 am.mirrors.kernel.org (Postfix) with ESMTPS id F23741F2381E for ; Thu, 23 May 2024 10:10:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 41D0713D2AC; Thu, 23 May 2024 10:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sipsolutions.net header.i=@sipsolutions.net header.b="drPd5hvL" 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 A1BE413D517 for ; Thu, 23 May 2024 10:09:53 +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=1716458995; cv=none; b=FKmmvvv2uUBGirQj0gkWXr7gVQXem32Ww9Vohg6Jpf6NIg8cELG+9OqALU2dJ2oPHl9UgO+XIe54CtKphOqvSBXJ8Uez+ncuegUjMMTBjO0ukz4/u1iKX6Fhmwr9NRh+mfw03JUIVAbM5BbYycaO6Kezv8wmVtQ1pHCB66Da3sw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716458995; c=relaxed/simple; bh=Qq/ARgZ2wS414T44JYv22YUhyC5BBe4YEShCXpcphnI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bw5PmTu8kgeEk2FinG0nRcA2RAZa/e/9/b7eU5C0TVMnO8uIW5Zsa+C2nVIqDHRhBrG4ZP9XhqdXnKx1mfJCv3E8dHT6Qw/nGb41s16NoM1LkEMNbBBuBSz4Ihx2FqoHu+JQNIUUfcttqM5XPVR9O3MA+Mh6VwyGkcmCSOOwnu4= 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=drPd5hvL; 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=LR7TBvHO2r2evYszkTOJxdd5UmNYoDhs+rNUz5WTWrk=; t=1716458993; x=1717668593; b=drPd5hvLIVJTSGWwpQqSGimnCq79wfEo/pWPXbNK4d+rxW2 wutTYerVllZ6K7mDq82wOliWetznqEEf0i1amwcVUNpFh2W2sBa3WeZ0RCR7He3S0scu+NX0m5Kyd CrIqeQXKZ6FTzbLDRjV1iLqq3B/VA/Wg6UoNOXUC1ZXykT2D6YyQaFQWWlpnju9+YDrRZJbsraFFK juRP63eY47z2PlAiZralFcp+M0uiG+pcro972Irs7hhQ3apys8wY95koDFp8euxwtjspqVDfcRm+i VUjk2zJoh6h4Dx7Mw6g6O9Hm4U2dKHd9c/vyn1O5tqWLiorAslwW+iZe/668Hxtw==; Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.97) (envelope-from ) id 1sA5OR-00000005wvn-02nx; Thu, 23 May 2024 12:09:51 +0200 From: Johannes Berg To: linux-wireless@vger.kernel.org Cc: Johannes Berg , Miriam Rachel Korenblit Subject: [PATCH 4/8] wifi: cfg80211: move enum ieee80211_ap_reg_power to cfg80211 Date: Thu, 23 May 2024 12:09:45 +0200 Message-ID: <20240523120945.962b16c831cd.I5745962525b1b176c5b90d37b3720fc100eee406@changeid> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240523120945.9a2c19a51e53.I50fa1b1a18b70f63a5095131ac23dc2e71f3d426@changeid> References: <20240523120945.9a2c19a51e53.I50fa1b1a18b70f63a5095131ac23dc2e71f3d426@changeid> 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 This really shouldn't have been in ieee80211.h, since it doesn't directly represent the spec. Move it to cfg80211 rather than mac80211 since upcoming changes will use it there. Reviewed-by: Miriam Rachel Korenblit Signed-off-by: Johannes Berg --- include/linux/ieee80211.h | 20 -------------------- include/net/cfg80211.h | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 456a55bd6c6b..30cef3b940eb 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -2406,26 +2406,6 @@ int ieee80211_get_vht_max_nss(struct ieee80211_vht_cap *cap, int mcs, bool ext_nss_bw_capable, unsigned int max_vht_nss); -/** - * enum ieee80211_ap_reg_power - regulatory power for a Access Point - * - * @IEEE80211_REG_UNSET_AP: Access Point has no regulatory power mode - * @IEEE80211_REG_LPI_AP: Indoor Access Point - * @IEEE80211_REG_SP_AP: Standard power Access Point - * @IEEE80211_REG_VLP_AP: Very low power Access Point - * @IEEE80211_REG_AP_POWER_AFTER_LAST: internal - * @IEEE80211_REG_AP_POWER_MAX: maximum value - */ -enum ieee80211_ap_reg_power { - IEEE80211_REG_UNSET_AP, - IEEE80211_REG_LPI_AP, - IEEE80211_REG_SP_AP, - IEEE80211_REG_VLP_AP, - IEEE80211_REG_AP_POWER_AFTER_LAST, - IEEE80211_REG_AP_POWER_MAX = - IEEE80211_REG_AP_POWER_AFTER_LAST - 1, -}; - /* 802.11ax HE MAC capabilities */ #define IEEE80211_HE_MAC_CAP0_HTC_HE 0x01 #define IEEE80211_HE_MAC_CAP0_TWT_REQ 0x02 diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 08d49fc6a55f..0e548507fd8d 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -6081,6 +6081,21 @@ void wiphy_delayed_work_cancel(struct wiphy *wiphy, void wiphy_delayed_work_flush(struct wiphy *wiphy, struct wiphy_delayed_work *dwork); +/** + * enum ieee80211_ap_reg_power - regulatory power for an Access Point + * + * @IEEE80211_REG_UNSET_AP: Access Point has no regulatory power mode + * @IEEE80211_REG_LPI_AP: Indoor Access Point + * @IEEE80211_REG_SP_AP: Standard power Access Point + * @IEEE80211_REG_VLP_AP: Very low power Access Point + */ +enum ieee80211_ap_reg_power { + IEEE80211_REG_UNSET_AP, + IEEE80211_REG_LPI_AP, + IEEE80211_REG_SP_AP, + IEEE80211_REG_VLP_AP, +}; + /** * struct wireless_dev - wireless device state * -- 2.45.1