summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
diff options
context:
space:
mode:
authorRyder Lee <ryder.lee@mediatek.com>2022-05-08 08:24:53 +0300
committerFelix Fietkau <nbd@nbd.name>2022-05-13 10:39:35 +0300
commit0d28ec72b0936a783f75bc5cf4719178bc48f39d (patch)
treef9347e05e5703f5737071d98bab3ca66fed96073 /drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
parent5eb14a0cfcaa260c8037ec323c06403554a59345 (diff)
downloadlinux-0d28ec72b0936a783f75bc5cf4719178bc48f39d.tar.xz
mt76: mt7915: improve error handling for fw_debug knobs
In case fw.debug_wm/wa might be unavailable. Signed-off-by: Ryder Lee <ryder.lee@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h')
-rw-r--r--drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
index 269e56f851b0..4dcae6991669 100644
--- a/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
+++ b/drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h
@@ -312,9 +312,6 @@ struct mt7915_dev {
bool flash_mode;
bool muru_debug;
bool ibf;
- u8 fw_debug_wm;
- u8 fw_debug_wa;
- u8 fw_debug_bin;
struct dentry *debugfs_dir;
struct rchan *relay_fwlog;
@@ -322,6 +319,12 @@ struct mt7915_dev {
void *cal;
struct {
+ u8 debug_wm;
+ u8 debug_wa;
+ u8 debug_bin;
+ } fw;
+
+ struct {
u16 table_mask;
u8 n_agrt;
} twt;