summaryrefslogtreecommitdiff
path: root/package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2015-06-21 12:07:33 +0000
committerRafał Miłecki <zajec5@gmail.com>2015-06-21 12:07:33 +0000
commit1909a42ad4ad297c4cee989c9e9dd5f99e37af4b (patch)
treef336d0da2c2f118185c8ffbcda4cf284b5ce2035 /package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch
parent167a2dc12ec879763b3f176e290523914679ea5c (diff)
downloadmtk-20170518-1909a42ad4ad297c4cee989c9e9dd5f99e37af4b.zip
mtk-20170518-1909a42ad4ad297c4cee989c9e9dd5f99e37af4b.tar.gz
mtk-20170518-1909a42ad4ad297c4cee989c9e9dd5f99e37af4b.tar.bz2
mac80211: backport some brcmfmac patches
There are two important patches in this patchset: updating read pointer quicker & rework of .get_station(). There are few more upstream patches that are p2p-related and weren't backported in this commit. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46084
Diffstat (limited to 'package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch')
-rw-r--r--package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch b/package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch
new file mode 100644
index 0000000..9e5b486
--- /dev/null
+++ b/package/kernel/mac80211/patches/386-brcmfmac-remove-chipinfo-debugfs-entry.patch
@@ -0,0 +1,39 @@
+From: Arend van Spriel <arend@broadcom.com>
+Date: Mon, 8 Jun 2015 14:38:33 +0200
+Subject: [PATCH] brcmfmac: remove chipinfo debugfs entry
+
+The information provided by chipinfo is also provided by the
+revinfo debugfs entry. Removing it from debugfs.
+
+Reviewed-by: Hante Meuleman <meuleman@broadcom.com>
+Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
+Signed-off-by: Arend van Spriel <arend@broadcom.com>
+Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
+---
+
+--- a/drivers/net/wireless/brcm80211/brcmfmac/debug.c
++++ b/drivers/net/wireless/brcm80211/brcmfmac/debug.c
+@@ -41,15 +41,6 @@ void brcmf_debugfs_exit(void)
+ root_folder = NULL;
+ }
+
+-static int brcmf_debugfs_chipinfo_read(struct seq_file *seq, void *data)
+-{
+- struct brcmf_bus *bus = dev_get_drvdata(seq->private);
+-
+- seq_printf(seq, "chip: %x(%u) rev %u\n",
+- bus->chip, bus->chip, bus->chiprev);
+- return 0;
+-}
+-
+ int brcmf_debugfs_attach(struct brcmf_pub *drvr)
+ {
+ struct device *dev = drvr->bus_if->dev;
+@@ -58,7 +49,6 @@ int brcmf_debugfs_attach(struct brcmf_pu
+ return -ENODEV;
+
+ drvr->dbgfs_dir = debugfs_create_dir(dev_name(dev), root_folder);
+- brcmf_debugfs_add_entry(drvr, "chipinfo", brcmf_debugfs_chipinfo_read);
+
+ return PTR_ERR_OR_ZERO(drvr->dbgfs_dir);
+ }