UPSTREAM: wil6210: remove 'freq' debugfs

This is completely racy, remove it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20220506095451.9852305a92c8.I05155824a1b9059eb59beccde81786dc69de354a@changeid

Bug: 233387627
Change-Id: Ibf164291a9c560bf58d8ae6f705803af8181e36d
(cherry picked from commit 4255a07a98cb0054947fbe5cb3d6f0b5eb87522b)
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
Johannes Berg
2022-05-09 14:57:32 +03:00
committed by Carlos Llamas
parent d14ea158d6
commit 10f3543124

View File

@@ -1391,19 +1391,6 @@ static int temp_show(struct seq_file *s, void *data)
} }
DEFINE_SHOW_ATTRIBUTE(temp); DEFINE_SHOW_ATTRIBUTE(temp);
/*---------freq------------*/
static int freq_show(struct seq_file *s, void *data)
{
struct wil6210_priv *wil = s->private;
struct wireless_dev *wdev = wil->main_ndev->ieee80211_ptr;
u32 freq = wdev->chandef.chan ? wdev->chandef.chan->center_freq : 0;
seq_printf(s, "Freq = %d\n", freq);
return 0;
}
DEFINE_SHOW_ATTRIBUTE(freq);
/*---------link------------*/ /*---------link------------*/
static int link_show(struct seq_file *s, void *data) static int link_show(struct seq_file *s, void *data)
{ {
@@ -2380,7 +2367,6 @@ static const struct {
{"pmcdata", 0444, &fops_pmcdata}, {"pmcdata", 0444, &fops_pmcdata},
{"pmcring", 0444, &fops_pmcring}, {"pmcring", 0444, &fops_pmcring},
{"temp", 0444, &temp_fops}, {"temp", 0444, &temp_fops},
{"freq", 0444, &freq_fops},
{"link", 0444, &link_fops}, {"link", 0444, &link_fops},
{"info", 0444, &info_fops}, {"info", 0444, &info_fops},
{"recovery", 0644, &fops_recovery}, {"recovery", 0644, &fops_recovery},