Skip to contentSkip to conversation

mac80211: use eth_zero_addr() to clear mac address

PATCH linmiaohe 1 participant 1 message Aug 4, 2020

Subsystems (2)
lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 11 lines
Quoted 8 lines · David Miller

From: linmiaohe <[email protected]>
Date: Sat, 1 Aug 2020 17:12:38 +0800

From: Miaohe Lin <[email protected]>

Use eth_zero_addr() to clear mac address instead of memset().

If you're going to make this change, you should probably convert this macro to use eth_addr_copy() at the same time.

Many thanks for your reply. I think we should not convert this macro to use ether_addr_copy (). Because ether_addr_copy() required @dst and @src must both be aligned to u16 and we may not always meet this condition.

Thanks again.