Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca42613a authored by Johannes Berg's avatar Johannes Berg
Browse files

iwlwifi: use eth_broadcast_addr



Instead of memcpy() from a static array, just use
the new helper function eth_broadcast_addr().

Reviewed-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 83f84d7b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;