diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-07-13 10:23:07 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-07-31 10:19:51 -0400 |
commit | e83e6541cee0a12bc445b0f4fad5214df5803087 (patch) | |
tree | f236e4e330e7c05ca63b350f43f3a97ff9b3e660 /net/mac80211/tx.c | |
parent | 1411af156524ce42c2a7f989320c4484257f3ff5 (diff) |
mac80211: use eth_broadcast_addr
Instead of memset().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 5b81660a35b3..7dbcf293708b 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -2415,7 +2415,7 @@ struct sk_buff *ieee80211_beacon_get_tim(struct ieee80211_hw *hw, | |||
2415 | memset(mgmt, 0, hdr_len); | 2415 | memset(mgmt, 0, hdr_len); |
2416 | mgmt->frame_control = | 2416 | mgmt->frame_control = |
2417 | cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); | 2417 | cpu_to_le16(IEEE80211_FTYPE_MGMT | IEEE80211_STYPE_BEACON); |
2418 | memset(mgmt->da, 0xff, ETH_ALEN); | 2418 | eth_broadcast_addr(mgmt->da); |
2419 | memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); | 2419 | memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); |
2420 | memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); | 2420 | memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); |
2421 | mgmt->u.beacon.beacon_int = | 2421 | mgmt->u.beacon.beacon_int = |
@@ -2609,9 +2609,9 @@ struct sk_buff *ieee80211_probereq_get(struct ieee80211_hw *hw, | |||
2609 | memset(hdr, 0, sizeof(*hdr)); | 2609 | memset(hdr, 0, sizeof(*hdr)); |
2610 | hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | | 2610 | hdr->frame_control = cpu_to_le16(IEEE80211_FTYPE_MGMT | |
2611 | IEEE80211_STYPE_PROBE_REQ); | 2611 | IEEE80211_STYPE_PROBE_REQ); |
2612 | memset(hdr->addr1, 0xff, ETH_ALEN); | 2612 | eth_broadcast_addr(hdr->addr1); |
2613 | memcpy(hdr->addr2, vif->addr, ETH_ALEN); | 2613 | memcpy(hdr->addr2, vif->addr, ETH_ALEN); |
2614 | memset(hdr->addr3, 0xff, ETH_ALEN); | 2614 | eth_broadcast_addr(hdr->addr3); |
2615 | 2615 | ||
2616 | pos = skb_put(skb, ie_ssid_len); | 2616 | pos = skb_put(skb, ie_ssid_len); |
2617 | *pos++ = WLAN_EID_SSID; | 2617 | *pos++ = WLAN_EID_SSID; |