|
@@ -336,6 +336,12 @@ int generic_rndis_bind(struct usbnet *dev, struct usb_interface *intf)
|
|
|
dev->hard_mtu, tmp, dev->rx_urb_size,
|
|
|
1 << le32_to_cpu(u.init_c->packet_alignment));
|
|
|
|
|
|
+ /* module has some device initialization code needs to be done right
|
|
|
+ * after RNDIS_INIT */
|
|
|
+ if (dev->driver_info->early_init &&
|
|
|
+ dev->driver_info->early_init(dev) != 0)
|
|
|
+ goto halt_fail_and_release;
|
|
|
+
|
|
|
/* Get designated host ethernet address */
|
|
|
reply_len = ETH_ALEN;
|
|
|
retval = rndis_query(dev, intf, u.buf, OID_802_3_PERMANENT_ADDRESS,
|