Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5455823rwd; Sun, 18 Jun 2023 11:51:35 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6myK+oXeT4z4Mrf1MCuEUuXR4+JjMCOSeHg7zVvXr4UucwPhP0mf0pykQ8uyve5EBfJ3JP X-Received: by 2002:a05:6808:199:b0:39b:3494:1ee5 with SMTP id w25-20020a056808019900b0039b34941ee5mr8155364oic.18.1687114295651; Sun, 18 Jun 2023 11:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687114295; cv=none; d=google.com; s=arc-20160816; b=ALcdT98uNABowX9WqqkNuvPi7PE0dOdpNiy237leonAcrXZAQLQFW9593pKbrovAAo p/CWou44JzNvJkLcSF3eleSoIj3qCzNwgPHyiwj06g3RCYm2QvwjrFkURLvCY68i7b2L crVKn6XOCrfZdOca3q66xRS8DRXU5uIjo4lOj1HtIN92wPmaseh4xNH+w2MjGYExbQNH 1zmnDWdt5jl1SIqVqL1uyzBsxD3ktB7Z3smZMN99fvXA2PK8eHSkWxMslbddq8pG+8ab jf/YWMb0UZaZ8EdwVYBJwfQgqaaf9pgeCg+feyZQnbqiza5ptEcXtHBWpDFrloS3VBAu clgA== 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=8KJ8+aPokxlMa8fRramwyo1XNl9UaGIbcGmmymNuK4Y=; b=dbLjZ1ZpTVZm3p+uz/TPgo9wC43Hjbbg3cgFPyT2AGNkadaOnH8Tq9cG1Ul7b0FmMG PJe6Hr2anWnJ4Hl2PY8pHtg3M+cGq3nG6Mr+QmluOyQVfWY/ucIY36gFfvxrRsDE1SIp zhAstAuQNmLrVdjY296fzcwE7+TGaQOCs4Bm2wLdCzhZp+F154YOIAtuw9nbjfp97CHP 0SrpOFJVzAS1ldReG1yL1ogUSAwCi6tgQqUg1rxDAMkFgfvOwlmBNMyoQK4TJfgDumsV Out8l80LE2T3mXkFI0VEyYkuLD0VYTdfxkwCE2O3G63rPk+dJv11EYwhjXHMfoJEjUOq cKdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=OuiHw2WJ; 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 c13-20020a17090a674d00b00244930ffe45si6092515pjm.0.2023.06.18.11.51.28; Sun, 18 Jun 2023 11:51:35 -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=OuiHw2WJ; 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 S229641AbjFRSuq (ORCPT + 62 others); Sun, 18 Jun 2023 14:50:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229632AbjFRSup (ORCPT ); Sun, 18 Jun 2023 14:50:45 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3702A1A4 for ; Sun, 18 Jun 2023 11:50:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687114238; x=1718650238; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MKjV6mdrCY1LWLfOXjj/LlyCEvRrOIyfdJS5T0m8XiM=; b=OuiHw2WJ8LtakGisbM7fniv6YLhGOp4UVq0nY1u8cwz5Sjk5UwQgpLwV 4OEzszzaSDVu8dh3GKTgE2OjLZTn8e7MIPCUu5rR852H90HKohQQQzaUN LXY6+Gg90SWwyy8x7i6JlOSZsLeRm2Ic251zuEnaM63RpYEByPs4ZiCof y4IMfB6VpqJ8YBsW3QdUTM3h2Ps4ls7gHB0fMroPRIG1Zrkd6HabdFlJJ srYsrw7XvxtFj0dbuQdqu8ZRLkmdPJSKtuf1VgQDjaVTIL8dke34XZC2U DE7xxC2ZvI+Pfe50nn6D7WBJuQFDINHdO0Cah+wuoLrPbLj9jxKrdHtK9 w==; X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="339116647" X-IronPort-AV: E=Sophos;i="6.00,253,1681196400"; d="scan'208";a="339116647" 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:37 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10745"; a="747233978" X-IronPort-AV: E=Sophos;i="6.00,253,1681196400"; d="scan'208";a="747233978" 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:36 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Benjamin Berg , Gregory Greenman Subject: [PATCH 09/20] wifi: ieee80211: add structs for TBTT information access Date: Sun, 18 Jun 2023 21:49:51 +0300 Message-Id: <20230618214436.2a6f8766a3ec.Ic962e28492212cc8ee1eb602b8f07a4ea172fc4a@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 The TBTT information can have various lengths with different elements thare are present. Add definitions for the two types that we are interested in (i.e. the ones that contain the BSSID). Signed-off-by: Benjamin Berg Signed-off-by: Gregory Greenman --- include/linux/ieee80211.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/include/linux/ieee80211.h b/include/linux/ieee80211.h index 7afd08d2de2f..5a27c232afdb 100644 --- a/include/linux/ieee80211.h +++ b/include/linux/ieee80211.h @@ -4523,6 +4523,28 @@ struct ieee80211_rnr_mld_params { #define IEEE80211_RNR_MLD_PARAMS_UPDATES_INCLUDED 0x1000 #define IEEE80211_RNR_MLD_PARAMS_DISABLED_LINK 0x2000 +/* Format of the TBTT information element if it has 7, 8 or 9 bytes */ +struct ieee80211_tbtt_info_7_8_9 { + u8 tbtt_offset; + u8 bssid[ETH_ALEN]; + + /* The following element is optional, structure may not grow */ + u8 bss_params; + u8 psd_20; +} __packed; + +/* Format of the TBTT information element if it has >= 11 bytes */ +struct ieee80211_tbtt_info_ge_11 { + u8 tbtt_offset; + u8 bssid[ETH_ALEN]; + __le32 short_ssid; + + /* The following elements are optional, structure may grow */ + u8 bss_params; + u8 psd_20; + struct ieee80211_rnr_mld_params mld_params; +} __packed; + /* multi-link device */ #define IEEE80211_MLD_MAX_NUM_LINKS 15 -- 2.38.1