Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5456033rwd; Sun, 18 Jun 2023 11:51:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5R6EUOkOr6dBB7Tf9z5xY1F9L970XzyZ4GN83TNfT4FALsqFR9Pv3RmxWUlAHrl97UD7sK X-Received: by 2002:a05:6870:44c1:b0:1a6:c761:d511 with SMTP id t1-20020a05687044c100b001a6c761d511mr6675965oai.43.1687114315761; Sun, 18 Jun 2023 11:51:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687114315; cv=none; d=google.com; s=arc-20160816; b=yPz3Sn54G7BX3nhAcvFGngkz6qKRPYbMfOQPaCEcCQUf/YcId5qhqLg3OzrJ4FfdP9 i/9lIZPJyCD/bxDOedfUC8dXHMAUkMl8DNDyuE+fK0/93/gvgQkJ67qekM8iaFAK+XI1 RMGpCOEygy2qcnFf7C/0xPk+36WMfEcY8qL/wvszgtv4p96/oLzl18+qJ0BmvlN7zC7w E5+fWk3IFEdM8bNugzXWsCALJNUB8rlVP+B04Jkz1QQm2OtaZImsb/2+H+QvfuHclzFl e6tQbc+5WrLNdom6p/4IxE2Z8GNc1+uDsw9XIEtIkATTSSTb84Aww+nNVuoe3ZLw/SZ3 +miQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZDeIDRwMZSUx/XmDaHweg7JCk+Xno8ULjGLU8pb05C4=; b=IMj9Lk0CHR3FKFxSsTxHrEf/KceA9MAtfIU5NGX+jjVUCBt6o+6UC/OqssaAnKFhRG pyj6NI5ulMmmnDN/0jPwGmVYBv5E3kDCWUdLX6sl01ImkhBUQe7noB91NJIF4mhUyvYq urSvR5CYLMKR1bwSja9ZoTSprcHcXEO722UsqVW+l1pA9sPYBS50xpOTw9IggaWlGP2Q r9NGlZqYMY997VtzGV4tlJ/nRsUaWXlSorXK0N1VUfdUdNvWJDJpHPCjK7wblu1tiWfd Xi+9ycyhfV6l2WMOC/gDIZrfWI/ynbrgtgi4wEdfq55GjQMK0455joIPia036sZYAU+x G+eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FI6k5HqL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t125-20020a637883000000b0054f73f08ea9si15593563pgc.393.2023.06.18.11.51.48; Sun, 18 Jun 2023 11:51:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FI6k5HqL; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229651AbjFRSui (ORCPT + 61 others); Sun, 18 Jun 2023 14:50:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjFRSug (ORCPT ); Sun, 18 Jun 2023 14:50:36 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 285A8E49 for ; Sun, 18 Jun 2023 11:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687114233; x=1718650233; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Rm+h6+vmHSO5arfNDwEewLImin95ru/uQBQQcogdT+o=; b=FI6k5HqLuKrzuCvxGGZyq2M1oSvt33ILw6WnguPBfNDj9ZA4NIdUd/qC yORkFLsymtIZ2GMcbA8LvxFJUWHSUFB+1Gzf3W2RjnPhHiBG6rlDX46W8 uFRbaRLyfXTuyamRuaf2JsPxjatHHf9tQBNtk6JN9DNHg3kH02M9nRAWD 0S9sJL3uGa6IyL67s0fgPCfn6LOtNsI6YF4hLSTx77UCxdWJ7uPekn9xx vVSxCLVF1PukO3LsjBtGHJ7dX2CPJCGNa7moCzC5CYVhhFcgtLmnHa9OI zlee/4yW2aaHxEfctWP8RxUpJRbzwNbx9m876KS9oEqZxWFaocl1Jxpqx w==; X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="339116640" X-IronPort-AV: E=Sophos;i="6.00,253,1681196400"; d="scan'208";a="339116640" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2023 11:50:32 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="747233898" X-IronPort-AV: E=Sophos;i="6.00,253,1681196400"; d="scan'208";a="747233898" Received: from aflumen-mobl2.ger.corp.intel.com (HELO ggreenma-mobl2.intel.com) ([10.251.178.161]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2023 11:50:30 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benjamin Berg , Gregory Greenman Subject: [PATCH 07/20] wifi: ieee80211: add definitions for RNR MLD params Date: Sun, 18 Jun 2023 21:49:49 +0300 Message-Id: <20230618214436.9999842237c0.I80f00a90cb4e43071432b4158f206c73ba799618@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230618185002.817236-1-gregory.greenman@intel.com> References: <20230618185002.817236-1-gregory.greenman@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Benjamin Berg Add the definitions necessary to parse the MLD parameters included in an RNR element. Signed-off-by: Benjamin Berg Signed-off-by: Gregory Greenman --- include/linux/ieee80211.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 251998be24d0..7afd08d2de2f 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -4485,6 +4485,7 @@ static inline bool for_each_element_completed(const struct element *element, #define IEEE80211_TBTT_INFO_TYPE_MLD 1 #define IEEE80211_TBTT_INFO_OFFSET_BSSID_BSS_PARAM 9 #define IEEE80211_TBTT_INFO_OFFSET_BSSID_SSSID_BSS_PARAM 13 +#define IEEE80211_TBTT_INFO_OFFSET_BSSID_SSSID_BSS_PARAM_MLD_PARAM 16 #define IEEE80211_RNR_TBTT_PARAMS_OCT_RECOMMENDED 0x01 #define IEEE80211_RNR_TBTT_PARAMS_SAME_SSID 0x02 @@ -4508,6 +4509,20 @@ enum ieee80211_range_params_max_total_ltf { IEEE80211_RANGE_PARAMS_MAX_TOTAL_LTF_UNSPECIFIED, }; +/* + * reduced neighbor report, based on Draft P802.11be_D3.0, + * section 9.4.2.170.2. + */ +struct ieee80211_rnr_mld_params { + u8 mld_id; + __le16 params; +} __packed; + +#define IEEE80211_RNR_MLD_PARAMS_LINK_ID 0x000F +#define IEEE80211_RNR_MLD_PARAMS_BSS_CHANGE_COUNT 0x0FF0 +#define IEEE80211_RNR_MLD_PARAMS_UPDATES_INCLUDED 0x1000 +#define IEEE80211_RNR_MLD_PARAMS_DISABLED_LINK 0x2000 + /* multi-link device */ #define IEEE80211_MLD_MAX_NUM_LINKS 15 -- 2.38.1