]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mt76: mt76x02: fix edcca file permission
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 May 2019 10:23:29 +0000 (12:23 +0200)
committerFelix Fietkau <nbd@nbd.name>
Tue, 25 Jun 2019 10:55:27 +0000 (12:55 +0200)
Use 0600 as edcca file permission in mt76x02 debugfs

Fixes: 5cba25d8f149 ("mt76: mt76x02: disable ED/CCA by default")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c

index f412c779d8e26bfdc0578910b10688a2c48a7f1b..ffdba5ffc22dfcd0ee14487bad89d4c63fb269c4 100644 (file)
@@ -157,7 +157,7 @@ void mt76x02_init_debugfs(struct mt76x02_dev *dev)
        debugfs_create_u8("temperature", 0400, dir, &dev->cal.temp);
        debugfs_create_bool("tpc", 0600, dir, &dev->enable_tpc);
 
-       debugfs_create_file("edcca", 0400, dir, dev, &fops_edcca);
+       debugfs_create_file("edcca", 0600, dir, dev, &fops_edcca);
        debugfs_create_file("ampdu_stat", 0400, dir, dev, &fops_ampdu_stat);
        debugfs_create_file("dfs_stats", 0400, dir, dev, &fops_dfs_stat);
        debugfs_create_devm_seqfile(dev->mt76.dev, "txpower", dir,