diff options
author | Miri Korenblit <miriam.rachel.korenblit@intel.com> | 2023-10-04 12:36:24 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2023-10-23 12:21:47 +0200 |
commit | e9dd25550770a0ad301b482db860032cdd890548 (patch) | |
tree | d3db04158689b4e14343abf0ff71f5018c939edf /drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h | |
parent | c36235acb34fb3a2916558d3845203cae181e0be (diff) | |
download | linux-e9dd25550770a0ad301b482db860032cdd890548.tar.gz linux-e9dd25550770a0ad301b482db860032cdd890548.tar.bz2 linux-e9dd25550770a0ad301b482db860032cdd890548.zip |
wifi: iwlwifi: mvm: add a per-link debugfs
Add a per-link debugfs entry in iwlmvm level so we can read/write link
related parameters.
Do it by implementing the link_add_debugfs API introduced by mac80211.
Each entry will have a path like this:
.../netdev:wlan0/link-X/iwlmvm/<file_name>
for each link X.
For non-MLD vifs this callback is called when the original vif
debugfs dir is also created, so handle that case by not creating
the 'iwlmvm' directory again.
Note that we don't have to worry about the cleaning the iwlmvm/*
directory as it is already done by mac80211 when removing the link
(or netdev).
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20231004123422.6a161f021ae8.Ic8f40f2b4682270c94036e3c11c3996ae34266fa@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h')
-rw-r--r-- | drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h index 0711ab689c48..cc2c45b45ddc 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h +++ b/drivers/net/wireless/intel/iwlwifi/mvm/debugfs.h @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* + * Copyright (C) 2023 Intel Corporation * Copyright (C) 2012-2014 Intel Corporation * Copyright (C) 2013-2014 Intel Mobile Communications GmbH */ |