Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4187218rwd; Sun, 11 Jun 2023 02:20:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4bquZA98gnY74KfaAdmqAp6FYGVbIxk8mnJNGqfolmBvOcVAZwtWvdIzQEOhWw7MDgFhqa X-Received: by 2002:a05:6a00:14c2:b0:658:12ca:385b with SMTP id w2-20020a056a0014c200b0065812ca385bmr8010160pfu.22.1686475239738; Sun, 11 Jun 2023 02:20:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686475239; cv=none; d=google.com; s=arc-20160816; b=OTJ1pKNO9EgJBhODrbNpYMwzVWMqZWJkKmqSxd10q1qpUlInzEF6CD7iFKH/7UvDdH QNNDdHfc4AvnN92oCNmSyYtVsx/DQaFX88qJnS9RC0uHgtmoD3vDREQllLt5TmDP4OR+ FCy7FjhanjxrfJmX35jR/5bTF6nICnDmUTvrBx4jYca5QBZXkKlPWCn4kGVfRRv269yX ZXslnI+K5eO6wEjoMQaek5JuOXloqipYiPb6HryCOQzpsCO6u7oXACl+UlTBatKr3sAW p7525tVxp9jzSAuiZIwH2fen5mPcidtUVPhuHQ6Qwq+6Cow+iFnJr8ga8TUul+yJglpm Pb6Q== 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=GdXuxcV2t7gBQrtTVttczwg1GHkZk48u4tTxr/HMW94=; b=bTL8w+DXB6p0Gdp2MSHPgLUkFMIUo01hbAU+NUN/hnhhpHlTGHVJoPYsk5r4XUR0zK nQ8mPV9p4T1ly95BOjq15ND6/UTl/CJxZT1b4axbW/WRXNrUdChyB0H2zlwZPGc51nNz Zs9zIDAwTNYKRVStK4MT/YC3HOgWEenIHAY6CkCYnO8RtyP7JiOVlxoUxit/tNz818DN wL4ditPGbPY/WZf6zQQHxkM1rAMMy85VNw4oWqDc099pViiShG9eZEI+sD+E1Egv0ipy popDsAzrRP7kAF2wbhFBhTdHEsmW01SNMqsp9WMUx90C+5ibQeK4QYH/IpWL57AA1m7T Drrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=GlRvOr32; 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 o23-20020aa79797000000b0063b82925d69si5193743pfp.337.2023.06.11.02.20.31; Sun, 11 Jun 2023 02:20:39 -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=GlRvOr32; 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 S233296AbjFKJO5 (ORCPT + 61 others); Sun, 11 Jun 2023 05:14:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231984AbjFKJOq (ORCPT ); Sun, 11 Jun 2023 05:14:46 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 11BE5193 for ; Sun, 11 Jun 2023 02:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686474884; x=1718010884; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RJuoJh2TcfX39MFCErjj5fvCceVT1KoTF7WcioLJ3t8=; b=GlRvOr32AaevG+TgIH44WR9gfGfZYOpEk+LNDAB64ZtHdTUdksvHeVtm ikd3aLLy3NX0mr5y6TtZnlgHg/62fR7SS7ELNpHtUzqTqyp65jg3pcFUs S99zGOuETQp0ZuehxC/Ebd88NznwgvhobGM6lcCiTxnNnHFdViuCPRsF0 WPXWSWCjerQ6o3E/gFNIwZjbDz3S7HtHANX+msKBQ1AXru3KEGJLrL1nR vSReKeKFkX86F5xZCwoNTv0aP4FsGSFVg0Uyon7A9Xh7fP0xSV8Nl/vYY 9WBS49pQpuAA1w0jcBC4vkTwF9fvR5Tuo5/V6gDQvnXVEcseBFbGAa7Gi g==; X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="347488932" X-IronPort-AV: E=Sophos;i="6.00,234,1681196400"; d="scan'208";a="347488932" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2023 02:14:43 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10737"; a="688249735" X-IronPort-AV: E=Sophos;i="6.00,234,1681196400"; d="scan'208";a="688249735" Received: from rganonx-mobl1.ger.corp.intel.com (HELO ggreenma-mobl2.lan) ([10.214.222.121]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2023 02:14:42 -0700 From: gregory.greenman@intel.com To: johannes@sipsolutions.net Cc: linux-wireless@vger.kernel.org, Ilan Peer , Gregory Greenman Subject: [PATCH 1/4] wifi: mac80211: Add debugfs entry to report dormant links Date: Sun, 11 Jun 2023 12:14:26 +0300 Message-Id: <20230611121219.7fa5f022adfb.Iff6fa3e1a3b00ae726612f9d5a31f7fe2fcbfc68@changeid> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230611091429.24517-1-gregory.greenman@intel.com> References: <20230611091429.24517-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, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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: Ilan Peer Add debugfs entry to report dormant (valid but disabled) links. Signed-off-by: Ilan Peer Signed-off-by: Gregory Greenman --- net/mac80211/debugfs_netdev.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net/mac80211/debugfs_netdev.c b/net/mac80211/debugfs_netdev.c index 3fea86c9a276..6253d0127207 100644 --- a/net/mac80211/debugfs_netdev.c +++ b/net/mac80211/debugfs_netdev.c @@ -693,6 +693,19 @@ IEEE80211_IF_FILE(dot11MeshConnectedToAuthServer, debugfs_create_file(#name, mode, sdata->vif.debugfs_dir, \ sdata, &name##_ops) +#define DEBUGFS_ADD_X(_bits, _name, _mode) \ + debugfs_create_x##_bits(#_name, _mode, sdata->vif.debugfs_dir, \ + &sdata->vif._name) + +#define DEBUGFS_ADD_X8(_name, _mode) \ + DEBUGFS_ADD_X(8, _name, _mode) + +#define DEBUGFS_ADD_X16(_name, _mode) \ + DEBUGFS_ADD_X(16, _name, _mode) + +#define DEBUGFS_ADD_X32(_name, _mode) \ + DEBUGFS_ADD_X(32, _name, _mode) + #define DEBUGFS_ADD(name) DEBUGFS_ADD_MODE(name, 0400) static void add_common_files(struct ieee80211_sub_if_data *sdata) @@ -722,6 +735,7 @@ static void add_sta_files(struct ieee80211_sub_if_data *sdata) DEBUGFS_ADD_MODE(tdls_wider_bw, 0600); DEBUGFS_ADD_MODE(valid_links, 0200); DEBUGFS_ADD_MODE(active_links, 0600); + DEBUGFS_ADD_X16(dormant_links, 0400); } static void add_ap_files(struct ieee80211_sub_if_data *sdata) -- 2.38.1