Commit 76763741 authored by Mao Wenan's avatar Mao Wenan Committed by Johannes Berg

cfg80211: pmsr: use eth_broadcast_addr() to assign broadcast address

This patch is to use eth_broadcast_addr() to assign broadcast address
insetad of memset().
Signed-off-by: default avatarMao Wenan <maowenan@huawei.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent f440b125
...@@ -258,7 +258,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info) ...@@ -258,7 +258,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info)
} else { } else {
memcpy(req->mac_addr, nla_data(info->attrs[NL80211_ATTR_MAC]), memcpy(req->mac_addr, nla_data(info->attrs[NL80211_ATTR_MAC]),
ETH_ALEN); ETH_ALEN);
memset(req->mac_addr_mask, 0xff, ETH_ALEN); eth_broadcast_addr(req->mac_addr_mask);
} }
idx = 0; idx = 0;
......
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