From 88dd921e24af0893734d4e197d646cfc7732ed54 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Thu, 7 Oct 2010 16:03:16 +0100 Subject: [netdevice] Pass both link-layer addresses in net_tx() and net_rx() FCoE requires the use of fabric-provided MAC addresses, which breaks the assumption that the net device's MAC address is implicitly the source address for net_tx() and the (unicast) destination address for net_rx(). Signed-off-by: Michael Brown --- src/net/80211/wpa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/net/80211') diff --git a/src/net/80211/wpa.c b/src/net/80211/wpa.c index b676c63ff..38ddb911b 100644 --- a/src/net/80211/wpa.c +++ b/src/net/80211/wpa.c @@ -455,7 +455,7 @@ static int wpa_send_eapol ( struct io_buffer *iob, struct wpa_common_ctx *ctx, pkt->mic ); return net_tx ( iob, ctx->dev->netdev, &eapol_protocol, - ctx->dev->bssid ); + ctx->dev->bssid, ctx->dev->netdev->ll_addr ); } @@ -757,9 +757,11 @@ static int wpa_handle_1_of_2 ( struct wpa_common_ctx *ctx, * * @v iob I/O buffer * @v netdev Network device + * @v ll_dest Link-layer destination address * @v ll_source Source link-layer address */ static int eapol_key_rx ( struct io_buffer *iob, struct net_device *netdev, + const void *ll_dest __unused, const void *ll_source ) { struct net80211_device *dev = net80211_get ( netdev ); -- cgit v1.2.3-55-g7522