Commit 3b1648f1 authored by Miaohe Lin's avatar Miaohe Lin Committed by Johannes Berg

nl80211: use eth_zero_addr() to clear mac address

Use eth_zero_addr() to clear mac address instead of memset().
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Link: https://lore.kernel.org/r/1596273349-24333-1-git-send-email-linmiaohe@huawei.comSigned-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 47d76e31
...@@ -10400,8 +10400,7 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info) ...@@ -10400,8 +10400,7 @@ static int nl80211_connect(struct sk_buff *skb, struct genl_info *info)
memcpy(dev->ieee80211_ptr->disconnect_bssid, memcpy(dev->ieee80211_ptr->disconnect_bssid,
connect.bssid, ETH_ALEN); connect.bssid, ETH_ALEN);
else else
memset(dev->ieee80211_ptr->disconnect_bssid, eth_zero_addr(dev->ieee80211_ptr->disconnect_bssid);
0, ETH_ALEN);
} }
wdev_unlock(dev->ieee80211_ptr); wdev_unlock(dev->ieee80211_ptr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment