summaryrefslogtreecommitdiff
path: root/package/broadcom-wl
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2012-02-10 17:11:17 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2012-02-10 17:11:17 +0000
commitf5fe6252d1d529b507e45695f8974b774acd5092 (patch)
treea91ad113da90f75038054baf0dcfb96387b25e57 /package/broadcom-wl
parent501ee77468ecbd2d575f33fdcc648efc82ce20e3 (diff)
downloadmtk-20170518-f5fe6252d1d529b507e45695f8974b774acd5092.zip
mtk-20170518-f5fe6252d1d529b507e45695f8974b774acd5092.tar.gz
mtk-20170518-f5fe6252d1d529b507e45695f8974b774acd5092.tar.bz2
broadcom-wl: fix reading fallback sprom for pci devices.
When using the Broadcom SDK the SSB bus is emulated as an PCI bus so the PCI bus number of the first real pci bus is increased by one. The variable names in the nvram are created with that structure in mind. To fix this we have ti increases the pci bus number by one. This was also done for ssb some time ago. This is based on a patch by nlh. This closes #10917 SVN-Revision: 30422
Diffstat (limited to 'package/broadcom-wl')
-rw-r--r--package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch b/package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch
new file mode 100644
index 0000000..65e8bd3
--- /dev/null
+++ b/package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch
@@ -0,0 +1,11 @@
+--- a/driver/siutils.c
++++ b/driver/siutils.c
+@@ -1859,7 +1859,7 @@ BCMINITFN(si_devpath)(si_t *sih, char *p
+ case PCI_BUS:
+ ASSERT((SI_INFO(sih))->osh != NULL);
+ slen = snprintf(path, (size_t)size, "pci/%u/%u/",
+- OSL_PCI_BUS((SI_INFO(sih))->osh),
++ OSL_PCI_BUS((SI_INFO(sih))->osh) + 1,
+ OSL_PCI_SLOT((SI_INFO(sih))->osh));
+ break;
+ case PCMCIA_BUS: