summaryrefslogtreecommitdiffstats
path: root/src/target/firmware/rf/trf6151.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/firmware/rf/trf6151.c')
-rw-r--r--src/target/firmware/rf/trf6151.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 96210fc6..0a910091 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -603,3 +603,17 @@ void trf6151_compute_gain(int16_t exp_inp, int16_t target_bb)
trf6151_set_gain(delta);
}
+int trf6151_iq_swapped(uint16_t band_arfcn, int tx)
+{
+ if (!tx)
+ return 0;
+
+ switch (gsm_arfcn2band(band_arfcn)) {
+ case GSM_BAND_850:
+ return 1;
+ default:
+ break;
+ }
+
+ return 0;
+}