ad97fa03f5
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
12 lines
412 B
Diff
12 lines
412 B
Diff
--- 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:
|