Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp882003ybc; Sat, 16 Nov 2019 10:23:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwRn/qorsu7Fpi0u9/0Ffm0+jzQmaBQteBky2qs42tFyztq4u3Ct4KaSlCZwNzeIl9D5C/z X-Received: by 2002:a17:906:3393:: with SMTP id v19mr12095229eja.117.1573928604790; Sat, 16 Nov 2019 10:23:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573928604; cv=none; d=google.com; s=arc-20160816; b=wSD5C2xNJPrjB+KCvEPCOSGv2HqGELs870F+pu1ESCONM4M2MTQv9oOxKu/fSUB/Mz JoGEaVvN9JOFOfPSmeYwq7DbeOO+d42c23MXH41Rpr9Tge7UYosAqGKER8ldHvasT8EP DGdaoJ1lgpvfbvBx/NauPAqlp0lz5VCJU9VT9qk5TIrx1NA28YVJKXxU80YV4/TE0jUo pBvE6p3NLZoaonsSjWyWMUjINnU5XvTVig9bwE3HH+umBkztgRR7bXN1DI/5HTsrXomR Yn2F0vercioD9jHTF6+IyCAxwz9jKtY9mfjONpv5bviAYO1s28Wy2W45zEOpZokXe2OQ uALA== 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=gxqfDTvJkXtlEh/iIFwdU3Wt8aV/TPUz5SZFXdV51DU=; b=GrQEgiJJhSklMpifUoWIKLQlCK8rrPYTNKF4SwfFnzWE9GQm45BVithNW+uJEbF7TF 8olYqkOlfVAUHCwG2LN0BSTS6M5fRKSZwO4mtFsTy4b2a2O0Xhd6Ssg+g3eYgT4gckIt YY8vL5Em4iUCgNFx7kOntZe6mzEsChT0gTPGLeuhC3RX7RimIhe+uewDC8p+E03FD5QR C2YrjRPFR0Tuqei7r35Lq50QT8qBEZXsTGXJsMbhCCHDRmIf7o96rDIB30PT4lh/d34S EgqYxHYH2Kpmp4LbiDfwG2NfDksyR5j0zq9/lvHTOvE+4dGqD/0yWXdJfQnLYqMU8Qha y9vw== 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 h61si5188579edd.188.2019.11.16.10.22.43; Sat, 16 Nov 2019 10:23:24 -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 S1727673AbfKPSVn (ORCPT + 99 others); Sat, 16 Nov 2019 13:21:43 -0500 Received: from mail.adapt-ip.com ([173.164.178.19]:33178 "EHLO mail.adapt-ip.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727644AbfKPSVn (ORCPT ); Sat, 16 Nov 2019 13:21:43 -0500 X-Greylist: delayed 546 seconds by postgrey-1.27 at vger.kernel.org; Sat, 16 Nov 2019 13:21:42 EST Received: from localhost (unknown [127.0.0.1]) by mail.adapt-ip.com (Postfix) with ESMTP id 2157F2F0325; Sat, 16 Nov 2019 18:12:39 +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 OW_B6ukgdlOg; Sat, 16 Nov 2019 10:12:36 -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 0C4D42F031F; Sat, 16 Nov 2019 10:12:35 -0800 (PST) From: Thomas Pedersen To: Johannes Berg Cc: linux-wireless , Thomas Pedersen Subject: [PATCH 2/3] mac80211: expose HW conf flags through debugfs Date: Sat, 16 Nov 2019 10:12:32 -0800 Message-Id: <20191116181233.1037-4-thomas@adapt-ip.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116181233.1037-1-thomas@adapt-ip.com> References: <20191116181233.1037-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 2e7f75938c51..7c530dd837e3 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", @@ -434,6 +436,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