iwlegacy: use eth_broadcast_addr
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Sep 2012 09:57:17 +0000 (11:57 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 24 Sep 2012 19:02:08 +0000 (15:02 -0400)
Instead of copying from a constant array
(which is still needed for other purposes)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/common.c

index eb9987520d611f5e4a1d3851b1f57186fa8ab948..318ed3c9fe7499899d08fc3de1de917438690109 100644 (file)
@@ -1586,9 +1586,9 @@ il_fill_probe_req(struct il_priv *il, struct ieee80211_mgmt *frame,
                return 0;
 
        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->bssid, il_bcast_addr, ETH_ALEN);
+       eth_broadcast_addr(frame->bssid);
        frame->seq_ctrl = 0;
 
        len += 24;