diff --git a/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/if_ath_pci.c b/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/if_ath_pci.c index c9b7eecbc1..e0428d780c 100644 --- a/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/if_ath_pci.c +++ b/src/add-ons/kernel/drivers/network/wlan/atheroswifi/dev/ath/if_ath_pci.c @@ -245,7 +245,11 @@ static device_method_t ath_pci_methods[] = { { 0,0 } }; static driver_t ath_pci_driver = { +#ifdef __HAIKU__ + "ath_pci", +#else "ath", +#endif ath_pci_methods, sizeof (struct ath_pci_softc) }; diff --git a/src/libs/compat/freebsd_network/compat.c b/src/libs/compat/freebsd_network/compat.c index de2c046612..caa8c0ecf1 100644 --- a/src/libs/compat/freebsd_network/compat.c +++ b/src/libs/compat/freebsd_network/compat.c @@ -323,8 +323,10 @@ device_add_child(device_t parent, const char *name, int unit) snprintf(symbol, sizeof(symbol), "__fbsd_%s_%s", name, parent->driver->name); if (get_image_symbol(find_own_image(), symbol, B_SYMBOL_TYPE_DATA, - (void **)&driver) == B_OK) + (void **)&driver) == B_OK) { child = new_device(*driver); + } else + device_printf(parent, "couldn't find symbol %s\n", symbol); } } else child = new_device(NULL);