patch-1.3.38 linux/drivers/net/pi2.c
Next file: linux/drivers/net/ppp.c
Previous file: linux/drivers/net/net_init.c
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
Mon Nov 6 12:59:00 1995
- Orig file:
v1.3.37/linux/drivers/net/pi2.c
- Orig date:
Fri Oct 13 14:44:33 1995
diff -u --recursive --new-file v1.3.37/linux/drivers/net/pi2.c linux/drivers/net/pi2.c
@@ -50,7 +50,9 @@
when changing the baud rate or clock mode.
version 0.8 ALPHA
July 17, 1995 (ac) Finally polishing of AX25.030+ support
-
+ Oct 29, 1995 (ac) A couple of minor fixes before this, and this release changes
+ to the proper set_mac_address semantics which will break
+ a few programs I suspect.
*/
/* The following #define invokes a hack that will improve performance (baud)
@@ -92,7 +94,6 @@
#include <linux/modules.h>
#endif
-#include <linux/config.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/types.h>
@@ -1274,10 +1275,10 @@
return 0;
}
-static int pi_set_mac_address(struct device *dev, void *addr)
+static int pi_set_mac_address(struct device *dev, struct sockaddr *sa)
{
- memcpy(dev->dev_addr, addr, 7); /* addr is an AX.25 shifted ASCII */
- return 0; /* mac address */
+ memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); /* addr is an AX.25 shifted ASCII */
+ return 0; /* mac address */
}
/* Allocate a buffer which does not cross a DMA page boundary */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this