From 803cb1d7974ed7d419550cc66480c107c2f0d454 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 25 Feb 2010 15:46:01 -0800 Subject: Added call to set antenna. Split XCVR into new thing cuz size. --- usrp2/firmware/apps/app_common_v2.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'usrp2/firmware/apps/app_common_v2.c') diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c index 036d0bace..2d767b5a5 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: + db_set_antenna(rx_dboard, ((op_config_mimo_t *)payload)->flags); + goto generic_reply; + + case OP_TX_ANTENNA: + 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; -- cgit From 752df2b84454756685dc2a05c232b59e3ebdaa2e Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 25 Feb 2010 16:50:44 -0800 Subject: setting xcvr antennas through api --- usrp2/firmware/apps/app_common_v2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usrp2/firmware/apps/app_common_v2.c') diff --git a/usrp2/firmware/apps/app_common_v2.c b/usrp2/firmware/apps/app_common_v2.c index 2d767b5a5..7716ed992 100644 --- a/usrp2/firmware/apps/app_common_v2.c +++ b/usrp2/firmware/apps/app_common_v2.c @@ -495,11 +495,11 @@ handle_control_chan_frame(u2_eth_packet_t *pkt, size_t len) goto generic_reply; case OP_RX_ANTENNA: - db_set_antenna(rx_dboard, ((op_config_mimo_t *)payload)->flags); + ok = db_set_antenna(rx_dboard, ((op_config_mimo_t *)payload)->flags); goto generic_reply; case OP_TX_ANTENNA: - db_set_antenna(tx_dboard, ((op_config_mimo_t *)payload)->flags); + ok = db_set_antenna(tx_dboard, ((op_config_mimo_t *)payload)->flags); goto generic_reply; case OP_BURN_MAC_ADDR: -- cgit