broadcom-wl: fix reading fallback sprom for pci devices.
[openwrt/svn-archive/archive.git] / package / broadcom-wl / patches / 912-pci-bus-nvram-hack.patch
1 --- a/driver/siutils.c
2 +++ b/driver/siutils.c
3 @@ -1859,7 +1859,7 @@ BCMINITFN(si_devpath)(si_t *sih, char *p
4 case PCI_BUS:
5 ASSERT((SI_INFO(sih))->osh != NULL);
6 slen = snprintf(path, (size_t)size, "pci/%u/%u/",
7 - OSL_PCI_BUS((SI_INFO(sih))->osh),
8 + OSL_PCI_BUS((SI_INFO(sih))->osh) + 1,
9 OSL_PCI_SLOT((SI_INFO(sih))->osh));
10 break;
11 case PCMCIA_BUS: