aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap/hostap_ap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/hostap/hostap_ap.c')
-rw-r--r--drivers/net/wireless/hostap/hostap_ap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ap.c b/drivers/net/wireless/hostap/hostap_ap.c
index fd8d83dd4f62..c995ace153ee 100644
--- a/drivers/net/wireless/hostap/hostap_ap.c
+++ b/drivers/net/wireless/hostap/hostap_ap.c
@@ -309,7 +309,7 @@ void hostap_deauth_all_stas(struct net_device *dev, struct ap_data *ap,
309 int i; 309 int i;
310 310
311 PDEBUG(DEBUG_AP, "%s: Deauthenticate all stations\n", dev->name); 311 PDEBUG(DEBUG_AP, "%s: Deauthenticate all stations\n", dev->name);
312 memset(addr, 0xff, ETH_ALEN); 312 eth_broadcast_addr(addr);
313 313
314 resp = cpu_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID); 314 resp = cpu_to_le16(WLAN_REASON_PREV_AUTH_NOT_VALID);
315 315
@@ -1015,8 +1015,8 @@ static void prism2_send_mgmt(struct net_device *dev,
1015 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* SA */ 1015 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* SA */
1016 } else if (ieee80211_is_ctl(hdr->frame_control)) { 1016 } else if (ieee80211_is_ctl(hdr->frame_control)) {
1017 /* control:ACK does not have addr2 or addr3 */ 1017 /* control:ACK does not have addr2 or addr3 */
1018 memset(hdr->addr2, 0, ETH_ALEN); 1018 eth_zero_addr(hdr->addr2);
1019 memset(hdr->addr3, 0, ETH_ALEN); 1019 eth_zero_addr(hdr->addr3);
1020 } else { 1020 } else {
1021 memcpy(hdr->addr2, dev->dev_addr, ETH_ALEN); /* SA */ 1021 memcpy(hdr->addr2, dev->dev_addr, ETH_ALEN); /* SA */
1022 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* BSSID */ 1022 memcpy(hdr->addr3, dev->dev_addr, ETH_ALEN); /* BSSID */
@@ -1601,7 +1601,7 @@ static void handle_assoc(local_info_t *local, struct sk_buff *skb,
1601 memcpy(prev_ap, pos, ETH_ALEN); 1601 memcpy(prev_ap, pos, ETH_ALEN);
1602 pos++; pos++; pos++; left -= 6; 1602 pos++; pos++; pos++; left -= 6;
1603 } else 1603 } else
1604 memset(prev_ap, 0, ETH_ALEN); 1604 eth_zero_addr(prev_ap);
1605 1605
1606 if (left >= 2) { 1606 if (left >= 2) {
1607 unsigned int ileft; 1607 unsigned int ileft;