X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcaif%2Fcaif_usb.c;h=ba02db02290025ec7f23a794f9f4ffc217a2a038;hb=0f44bc36ba1cddbd34371110c4ef8f0800c8d465;hp=75ed04b78fa4090f69329cccd0cebd04bc516290;hpb=8b8a7df9a1d87ba413fce246b11f54c636bb456a;p=karo-tx-linux.git 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 @@ #include #include #include +#include #include #include #include @@ -105,8 +106,8 @@ static struct cflayer *cfusbl_create(int phyid, u8 ethaddr[ETH_ALEN], * 5-11 source address * 12-13 protocol type */ - memcpy(&this->tx_eth_hdr[ETH_ALEN], braddr, ETH_ALEN); - memcpy(&this->tx_eth_hdr[ETH_ALEN], ethaddr, ETH_ALEN); + ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], braddr); + ether_addr_copy(&this->tx_eth_hdr[ETH_ALEN], ethaddr); this->tx_eth_hdr[12] = cpu_to_be16(ETH_P_802_EX1) & 0xff; this->tx_eth_hdr[13] = (cpu_to_be16(ETH_P_802_EX1) >> 8) & 0xff; pr_debug("caif ethernet TX-header dst:%pM src:%pM type:%02x%02x\n",