diff src/g23m-aci/aci/ati_omcompat.c @ 478:5e39123540e6

hybrid fw: Openmoko-mimicking AT@BAND command implemented
author Mychaela Falconia <falcon@freecalypso.org>
date Thu, 14 Jun 2018 06:04:54 +0000
parents 5b2ebc94cae4
children
line wrap: on
line diff
--- a/src/g23m-aci/aci/ati_omcompat.c	Thu Jun 14 03:04:53 2018 +0000
+++ b/src/g23m-aci/aci/ati_omcompat.c	Thu Jun 14 06:04:54 2018 +0000
@@ -61,6 +61,8 @@
 #include "abb.h"
 #include "dar/dar_api.h"
 
+EXTERN void alr_get_band_of_serving_cell (char *strbuf);
+
 /*
  * PURPOSE : @ST command (Configure the sidetone level)
  */
@@ -137,5 +139,18 @@
 	return (ATI_CMPL);
 }
 
+/*
+ * PURPOSE : @BAND command (Get RF band)
+ */
+
+GLOBAL T_ATI_RSLT atAtBAND (char *cl, UBYTE srcId)
+{
+	TRACE_FUNCTION("atAtBAND");			
+	alr_get_band_of_serving_cell(g_sa);
+	io_sendMessage(srcId, g_sa, ATI_NORMAL_OUTPUT);
+
+	return (ATI_CMPL);
+}
+
 #endif /* ATI_OMCOMPAT_C */