Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp145386ybc; Mon, 18 Nov 2019 22:08:55 -0800 (PST) X-Google-Smtp-Source: APXvYqxAhZbgZ1eecL4Ez1xUJC0NOrofnWCsvu7m5aN1x4ycWThTxTIqjbdR/5bibO/Kvej1hLL2 X-Received: by 2002:a17:906:90b:: with SMTP id i11mr18562587ejd.109.1574143735431; Mon, 18 Nov 2019 22:08:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574143735; cv=none; d=google.com; s=arc-20160816; b=FB39a/r0Vr7aJWDjmQkUtnTWUA6d83VA9fkK17EJrY8I1OxzwcdBcfwxZI7yvrzL5b osdxe93QOjUBgC7Roq60FfE0Fqa91kRilSAf22GJunYZlneiwo//XpDXL+UpPwSOhaV4 yzqiwP/5luIQBrgHUNHNDfWz1+I9l9q8IA+hyrm3joO9Iq+iSgO9UqoZrCwNyVfa93hy a66YS04CvcNVtTHuNzHNLlYt65NgpAiRQtcA3JaIt+zPpkArsHO5AB0+xtz+simDfXOq NpFvSNQsp4eInLvA2pF6aNPxxwmusGSJUHur73U/ZfY+JU+wm6DWq2Op0ffyiIJuOrks 5Y7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=uGqMBhRxDqVItzhpYuJb03c8nXZrs4R2vChBF69U5PE=; b=T+hPjWOf5T7p/GGG/VbsNGkoPljm1oYLubpeK/JdZlzWoHHByHEdAw8cp9EAHBdhYR IchNoNnBnPsPWVT42bEBzdhlES8ZamsraBJIOnUHWhdZed4uwuwwU+E5EtYQ5XRmGZMp zzNiVhMQ+dNmcRZgJNu2QT53b+DFxJARqurLe9jjwy4ZdevxQOVePNyByADXwC6RaoGL E4RBHWbBoK514wOHO19OxB93MZaijpbxXQ/r3EPAnfXFMGlachumPdIL9krAFY88fT3V a5yeISnn51jd65vqvrxhRtX2wwGp7CPDXLiTTXOtT81qRyMx98Euk2rIFvJSQGWVFymF /UEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si12746226ejr.411.2019.11.18.22.08.30; Mon, 18 Nov 2019 22:08:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbfKSGFz (ORCPT + 99 others); Tue, 19 Nov 2019 01:05:55 -0500 Received: from mail.adapt-ip.com ([173.164.178.19]:43012 "EHLO mail.adapt-ip.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728310AbfKSFfr (ORCPT ); Tue, 19 Nov 2019 00:35:47 -0500 Received: from localhost (unknown [127.0.0.1]) by mail.adapt-ip.com (Postfix) with ESMTP id 600EE2F03E3; Tue, 19 Nov 2019 05:35:46 +0000 (UTC) X-Virus-Scanned: amavisd-new at web.adapt-ip.com Received: from mail.adapt-ip.com ([127.0.0.1]) by localhost (web.adapt-ip.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dqCji8icNOc5; Mon, 18 Nov 2019 21:35:40 -0800 (PST) Received: from tractor.ibsgaard.io (c-73-202-5-52.hsd1.ca.comcast.net [73.202.5.52]) (using TLSv1.2 with cipher DHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: thomas@adapt-ip.com) by mail.adapt-ip.com (Postfix) with ESMTPSA id AD6ED2F03E4; Mon, 18 Nov 2019 21:35:39 -0800 (PST) From: Thomas Pedersen To: Johannes Berg Cc: linux-wireless , Thomas Pedersen Subject: [PATCH v2 2/3] mac80211: expose HW conf flags through debugfs Date: Mon, 18 Nov 2019 21:35:37 -0800 Message-Id: <20191119053538.25979-3-thomas@adapt-ip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191119053538.25979-1-thomas@adapt-ip.com> References: <20191119053538.25979-1-thomas@adapt-ip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This is useful during testing to eg. check the currently configured HW power save state. Signed-off-by: Thomas Pedersen --- net/mac80211/debugfs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 568b3b276931..5c52429038c3 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -59,6 +59,8 @@ static const struct file_operations name## _ops = { \ debugfs_create_file(#name, mode, phyd, local, &name## _ops); +DEBUGFS_READONLY_FILE(hw_conf, "%x", + local->hw.conf.flags); DEBUGFS_READONLY_FILE(user_power, "%d", local->user_power_level); DEBUGFS_READONLY_FILE(power, "%d", @@ -433,6 +435,7 @@ void debugfs_hw_add(struct ieee80211_local *local) DEBUGFS_ADD(hwflags); DEBUGFS_ADD(user_power); DEBUGFS_ADD(power); + DEBUGFS_ADD(hw_conf); DEBUGFS_ADD_MODE(force_tx_status, 0600); if (local->ops->wake_tx_queue) -- 2.20.1