summaryrefslogtreecommitdiffstats
path: root/src/net/80211
diff options
context:
space:
mode:
authorMichael Brown2012-08-30 16:58:58 +0200
committerMichael Brown2012-08-31 21:21:10 +0200
commit1cbb1581f16e235fafc963c906ad02b38d5457bd (patch)
treec05cb3f02415642952bb909a31948e905f6da000 /src/net/80211
parent[build] Add missing #include <config/local/sideband.h> (diff)
downloadipxe-1cbb1581f16e235fafc963c906ad02b38d5457bd.tar.gz
ipxe-1cbb1581f16e235fafc963c906ad02b38d5457bd.tar.xz
ipxe-1cbb1581f16e235fafc963c906ad02b38d5457bd.zip
[ethernet] Expose eth_broadcast as a global constant
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/80211')
-rw-r--r--src/net/80211/net80211.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net/80211/net80211.c b/src/net/80211/net80211.c
index a3d3e76e..2181fc4a 100644
--- a/src/net/80211/net80211.c
+++ b/src/net/80211/net80211.c
@@ -387,9 +387,6 @@ static struct net_device_operations net80211_netdev_ops = {
/* ---------- 802.11 link-layer protocol ---------- */
-/** 802.11 broadcast MAC address */
-static u8 net80211_ll_broadcast[] = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff };
-
/**
* Determine whether a transmission rate uses ERP/OFDM
*
@@ -763,7 +760,7 @@ struct net80211_device * net80211_alloc ( size_t priv_size )
return NULL;
netdev->ll_protocol = &net80211_ll_protocol;
- netdev->ll_broadcast = net80211_ll_broadcast;
+ netdev->ll_broadcast = eth_broadcast;
netdev->max_pkt_len = IEEE80211_MAX_DATA_LEN;
netdev_init ( netdev, &net80211_netdev_ops );
@@ -1399,7 +1396,7 @@ int net80211_probe_step ( struct net80211_probe_ctx *ctx )
ctx->probe = iob;
rc = net80211_tx_mgmt ( dev, IEEE80211_STYPE_PROBE_REQ,
- net80211_ll_broadcast,
+ eth_broadcast,
iob_disown ( siob ) );
if ( rc ) {
DBGC ( dev, "802.11 %p send probe failed: "