comparison src/aci2/alr/alr_csf.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 93999a60b835
children
comparison
equal deleted inserted replaced
477:f65a4399093d 478:5e39123540e6
175 } 175 }
176 } 176 }
177 177
178 #endif /* !NTRACE */ 178 #endif /* !NTRACE */
179 179
180 /*
181 * Function added in FreeCalypso to support Openmoko's AT@BAND command
182 * without making ACI include ALR header files.
183 */
184
185 GLOBAL void alr_get_band_of_serving_cell (char *strbuf)
186 {
187 switch(alr_data->sc_band)
188 {
189 case BAND_GSM_900:
190 strcpy(strbuf, "GSM 900");
191 break;
192 case BAND_DCS_1800:
193 strcpy(strbuf, "DCS 1800");
194 break;
195 case BAND_PCS_1900:
196 strcpy(strbuf, "PCS 1900");
197 break;
198 case BAND_E_GSM:
199 strcpy(strbuf, "EGSM");
200 break;
201 case BAND_GSM_850:
202 strcpy(strbuf, "GSM 850");
203 break;
204 default:
205 strcpy(strbuf, "Unknown");
206 }
207 }
208
180 #endif 209 #endif