summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/txrx.c
diff options
context:
space:
mode:
authorEric Blossom2009-09-04 15:35:01 -0700
committerEric Blossom2009-09-04 15:35:01 -0700
commit49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8 (patch)
tree9e2eebf93e5e3867664fe4cb3ab3514ed76051ee /usrp2/firmware/apps/txrx.c
parent9a100f391e52106ca872dd5df8287273eea64b0c (diff)
downloadgnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.tar.gz
gnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.tar.bz2
gnuradio-49a17dca1ee9cf7c0fd02b6baf83814a68c4e5e8.zip
Firmware now inserts mac source address value in each frame.
The old mac used to do this automatically.
Diffstat (limited to 'usrp2/firmware/apps/txrx.c')
-rw-r--r--usrp2/firmware/apps/txrx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usrp2/firmware/apps/txrx.c b/usrp2/firmware/apps/txrx.c
index 935e62a72..fc2f8a49e 100644
--- a/usrp2/firmware/apps/txrx.c
+++ b/usrp2/firmware/apps/txrx.c
@@ -168,6 +168,7 @@ start_rx_streaming_cmd(const u2_mac_addr_t *host, op_start_rx_streaming_t *p)
u2_eth_packet_t pkt;
memset(&pkt, 0, sizeof(pkt));
pkt.ehdr.dst = *host;
+ pkt.ehdr.src = *ethernet_mac_addr();
pkt.ehdr.ethertype = U2_ETHERTYPE;
u2p_set_word0(&pkt.fixed, 0, 0);
// DSP RX will fill in timestamp