usbatm xusbatm.c,1.5,1.6
kagan at infradead.org
kagan at infradead.org
Sat Apr 9 03:25:18 EDT 2005
Update of /home/cvs/usbatm
In directory phoenix.infradead.org:/tmp/cvs-serv29606
Modified Files:
xusbatm.c
Log Message:
Set random MAC address, for no better alternative.
Index: xusbatm.c
===================================================================
RCS file: /home/cvs/usbatm/xusbatm.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- xusbatm.c 9 Apr 2005 06:50:36 -0000 1.5
+++ xusbatm.c 9 Apr 2005 07:25:15 -0000 1.6
@@ -20,6 +20,8 @@
******************************************************************************/
#include <linux/module.h>
+#include <linux/netdevice.h> /* FIXME: required by linux/etherdevice.h */
+#include <linux/etherdevice.h> /* for random_ether_addr() */
#include "usbatm.h"
@@ -67,6 +69,18 @@
}
*/
+static int xusbatm_atm_start(struct usbatm_data *usbatm_instance,
+ struct atm_dev *atm_dev)
+{
+ atm_dbg(usbatm_instance, "%s entered\n", __func__);
+
+ /* use random MAC as we've no way to get it from the device */
+ random_ether_addr(atm_dev->esi);
+
+ return 0;
+}
+
+
static int xusbatm_usb_probe(struct usb_interface *intf,
const struct usb_device_id *id)
{
@@ -108,6 +122,7 @@
xusbatm_drivers[i].bind = xusbatm_bind;
xusbatm_drivers[i].unbind = xusbatm_unbind;
*/
+ xusbatm_drivers[i].atm_start = xusbatm_atm_start;
xusbatm_drivers[i].in = rx_endpoint[i];
xusbatm_drivers[i].out = tx_endpoint[i];
xusbatm_drivers[i].rx_padding = rx_padding[i];
More information about the Usbatm-commits
mailing list