aboutsummaryrefslogtreecommitdiffstats
path: root/net/caif/caif_usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/caif/caif_usb.c')
-rw-r--r--net/caif/caif_usb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/caif/caif_usb.c b/net/caif/caif_usb.c
index 75ed04b78fa4..ba02db022900 100644
--- a/net/caif/caif_usb.c
+++ b/net/caif/caif_usb.c
@@ -14,6 +14,7 @@
14#include <linux/mii.h> 14#include <linux/mii.h>
15#include <linux/usb.h> 15#include <linux/usb.h>
16#include <linux/usb/usbnet.h> 16#include <linux/usb/usbnet.h>
17#include <linux/etherdevice.h>
17#include <net/netns/generic.h> 18#include <net/netns/generic.h>
18#include <net/caif/caif_dev.h> 19#include <net/caif/caif_dev.h>
19#include <net/caif/caif_layer.h> 20#include <net/caif/caif_layer.h>
@@ -105,8 +106,8 @@ static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN],
105 * 5-11 source address 106 * 5-11 source address
106 * 12-13 protocol type 107 * 12-13 protocol type
107 */ 108 */
108 memcpy(&this->tx_eth_hdr[ETH_ALEN], braddr, ETH_ALEN); 109 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr);
109 memcpy(&this->tx_eth_hdr[ETH_ALEN], ethaddr, ETH_ALEN); 110 ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr);
110 this->tx_eth_hdr[12] = cpu_to_be16(ETH_P_802_EX1) & 0xff; 111 this->tx_eth_hdr[12] = cpu_to_be16(ETH_P_802_EX1) & 0xff;
111 this->tx_eth_hdr[13] = (cpu_to_be16(ETH_P_802_EX1) >> 8) & 0xff; 112 this->tx_eth_hdr[13] = (cpu_to_be16(ETH_P_802_EX1) >> 8) & 0xff;
112 pr_debug("caif ethernet TX-header dst:%pM src:%pM type:%02x%02x\n", 113 pr_debug("caif ethernet TX-header dst:%pM src:%pM type:%02x%02x\n",