forked from sysmocom/rtl8168-eeprom
Compare commits
3 Commits
189a39639d
...
347924cc08
Author | SHA1 | Date |
---|---|---|
Oliver Smith | 347924cc08 | |
Oliver Smith | 313de8d95e | |
Oliver Smith | 1bf48da7a8 |
|
@ -1,3 +1,10 @@
|
|||
rtl8168-eeprom (1.0.1) unstable; urgency=medium
|
||||
|
||||
* Fix missing pci_fill_info()
|
||||
* Exit with error if no device was found
|
||||
|
||||
-- Oliver Smith <osmith@sysmocom.de> Mon, 16 May 2022 10:49:48 +0200
|
||||
|
||||
rtl8168-eeprom (1.0.0) unstable; urgency=medium
|
||||
|
||||
* Initial debian packaging.
|
||||
|
|
|
@ -466,6 +466,7 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
|
|||
continue;
|
||||
|
||||
/* our own clumsy implementation of filtering */
|
||||
pci_fill_info(p, PCI_FILL_IDENT);
|
||||
if (p->vendor_id != 0x10ec || p->device_id != 0x8168)
|
||||
continue;
|
||||
|
||||
|
@ -497,6 +498,8 @@ static void iterate_devices(struct pci_access *pa, char *filter_id, char *filter
|
|||
if (new_mac)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
die("no matching device found!\n");
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
|
|
Loading…
Reference in New Issue