summaryrefslogtreecommitdiff
path: root/usrp2/firmware/apps/app_common_v2.c
diff options
context:
space:
mode:
authorJohnathan Corgan2010-03-02 09:15:09 -0800
committerJohnathan Corgan2010-03-02 09:15:09 -0800
commitb811e8749dcd7c96f1af2d98caba403e50c1602b (patch)
tree0f36f94f95cfe5dc003178eeafd23fe120ff38bc /usrp2/firmware/apps/app_common_v2.c
parent97275c32783a8831c7eac3786257fe2e142d95c0 (diff)
parent4c296bd1f0e7769db69ca15bcc528802b06f752c (diff)
downloadgnuradio-b811e8749dcd7c96f1af2d98caba403e50c1602b.tar.gz
gnuradio-b811e8749dcd7c96f1af2d98caba403e50c1602b.tar.bz2
gnuradio-b811e8749dcd7c96f1af2d98caba403e50c1602b.zip
Merge branch 'usrp2_set_ant' of git://gnuradio.org/jblum
Diffstat (limited to 'usrp2/firmware/apps/app_common_v2.c')
-rw-r--r--usrp2/firmware/apps/app_common_v2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c
index 036d0bace..7716ed992 100644
--- a/usrp2/firmware/apps/app_common_v2.c
+++ b/usrp2/firmware/apps/app_common_v2.c
@@ -494,6 +494,14 @@ handle_control_chan_frame(u2_eth_packet_t *pkt, size_t len)
ok = true;
goto generic_reply;
+ case OP_RX_ANTENNA:
+ ok = db_set_antenna(rx_dboard, ((op_config_mimo_t *)payload)->flags);
+ goto generic_reply;
+
+ case OP_TX_ANTENNA:
+ ok = db_set_antenna(tx_dboard, ((op_config_mimo_t *)payload)->flags);
+ goto generic_reply;
+
case OP_BURN_MAC_ADDR:
ok = ethernet_set_mac_addr(&((op_burn_mac_addr_t *)payload)->addr);
goto generic_reply;