Commit 742e7a93 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlegacy: use eth_broadcast_addr

Instead of copying from a constant array
(which is still needed for other purposes)
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 3fc7bc8e
...@@ -1586,9 +1586,9 @@ il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame, ...@@ -1586,9 +1586,9 @@ il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame,
return 0; return 0;
frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ); frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ);
memcpy(frame->da, il_bcast_addr, ETH_ALEN); eth_broadcast_addr(frame->da);
memcpy(frame->sa, ta, ETH_ALEN); memcpy(frame->sa, ta, ETH_ALEN);
memcpy(frame->bssid, il_bcast_addr, ETH_ALEN); eth_broadcast_addr(frame->bssid);
frame->seq_ctrl = 0; frame->seq_ctrl = 0;
len += 24; len += 24;
......
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