提交 76763741 编写于 作者: M Mao Wenan 提交者: 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: NMao Wenan <maowenan@huawei.com>
Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
上级 f440b125
......@@ -258,7 +258,7 @@ int nl80211_pmsr_start(struct sk_buff *skb, struct genl_info *info)
} else {
memcpy(req->mac_addr, nla_data(info->attrs[NL80211_ATTR_MAC]),
ETH_ALEN);
memset(req->mac_addr_mask, 0xff, ETH_ALEN);
eth_broadcast_addr(req->mac_addr_mask);
}
idx = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册