|
@@ -890,8 +890,9 @@ void dp83932_init(NICInfo *nd, target_phys_addr_t base, int it_shift,
|
|
|
s->watchdog = qemu_new_timer(vm_clock, dp8393x_watchdog, s);
|
|
|
s->regs[SONIC_SR] = 0x0004; /* only revision recognized by Linux */
|
|
|
|
|
|
- s->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name, nic_can_receive,
|
|
|
- nic_receive, NULL, nic_cleanup, s);
|
|
|
+ s->vc = nd->vc = qemu_new_vlan_client(nd->vlan, nd->model, nd->name,
|
|
|
+ nic_can_receive, nic_receive, NULL,
|
|
|
+ nic_cleanup, s);
|
|
|
|
|
|
qemu_format_nic_info_str(s->vc, nd->macaddr);
|
|
|
qemu_register_reset(nic_reset, s);
|