From 37d47ead8155c3c965af188d735203d305c04e49 Mon Sep 17 00:00:00 2001 From: hauke Date: Fri, 10 Feb 2012 17:11:17 +0000 Subject: 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30422 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/broadcom-wl/patches/912-pci-bus-nvram-hack.patch (limited to 'package/broadcom-wl') 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 000000000..65e8bd395 --- /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: -- cgit v1.2.3