iwlwifi: use eth_broadcast_addr
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Sep 2012 09:55:49 +0000 (11:55 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Sep 2012 10:11:45 +0000 (12:11 +0200)
Instead of memcpy() from a static array, just use
the new helper function eth_broadcast_addr().

Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/iwlwifi/dvm/scan.c

index e3467fa868996264f88e681edd8b5f6114fa5fe4..bb9f6252d28fad2d25340845f8f3a324e5d0fc56 100644 (file)
@@ -612,9 +612,9 @@ static u16 iwl_fill_probe_req(struct ieee80211_mgmt *frame, const u8 *ta,
                return 0;
 
        frame->frame_control = cpu_to_le16(IEEE80211_STYPE_PROBE_REQ);
-       memcpy(frame->da, iwl_bcast_addr, ETH_ALEN);
+       eth_broadcast_addr(frame->da);
        memcpy(frame->sa, ta, ETH_ALEN);
-       memcpy(frame->bssid, iwl_bcast_addr, ETH_ALEN);
+       eth_broadcast_addr(frame->bssid);
        frame->seq_ctrl = 0;
 
        len += 24;