summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/board/common
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-03-02 20:42:39 +0100
committerHarald Welte <laforge@gnumonks.org>2010-03-02 20:42:39 +0100
commit6944437bf492d46f8c39b4dadcd0ff55b7581eda (patch)
tree3a40dcdf690d36e8bd030327343c54fddde62cfb /src/target/firmware/board/common
parentd43fadf410e66934ce266cd1a5f96b89d56a9e90 (diff)
Introduce CONFIG_TX_ENABLE and disable Tx support by default
Tx support is considered experimental and potentially dangerous. Thus, the default build of the firmware does not have Tx support enabled. If you want Tx support, compile with -DCONFIG_TX_ENABLE by uncommenting the apropriate line in Makefile.inc
Diffstat (limited to 'src/target/firmware/board/common')
-rw-r--r--src/target/firmware/board/common/rffe_compal_dualband.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/firmware/board/common/rffe_compal_dualband.c b/src/target/firmware/board/common/rffe_compal_dualband.c
index ddf7f933..0c1b20f4 100644
--- a/src/target/firmware/board/common/rffe_compal_dualband.c
+++ b/src/target/firmware/board/common/rffe_compal_dualband.c
@@ -26,6 +26,7 @@ void rffe_mode(enum gsm_band band, int tx)
tspact &= ~PA_ENABLE;
tspact |= TRENA | GSM_TXEN; /* low-active */
+#ifdef CONFIG_TX_ENABLE
/* Then we selectively set the bits on, if required */
if (tx) {
tspact &= ~TRENA;
@@ -33,6 +34,7 @@ void rffe_mode(enum gsm_band band, int tx)
tspact &= ~GSM_TXEN;
tspact |= PA_ENABLE; /* Dieter: TODO */
}
+#endif /* TRANSMIT_SUPPORT */
tsp_act_update(tspact);
}