/*
- $Id$
-
G N O K I I
A Linux/Unix toolset and driver for Nokia mobile phones.
- Copyright (C) 1999, 2000 Hugh Blemings & Pavel JanÃk ml.
-
Released under the terms of the GNU GPL, see file COPYING for more details.
This file implements GSM networks searching.
- $Log$
- Revision 1.1.1.1 2001/11/25 21:59:00 short
- :pserver:cvs@pserver.samba.org:/cvsroot - gnokii - Sun Nov 25 22:56 CET 2001
-
- Revision 1.14 2001/06/28 00:28:45 pkot
- Small docs updates (Pawel Kot)
-
-
*/
#include <string.h>
+
+#include "gsm-common.h"
#include "gsm-networks.h"
+#include "gsm-coding.h"
GSM_Country GSM_Countries[] =
{
{ "340 01", "AMERIS" },
{ "400 01", "AZERCELL GSM" },
{ "400 02", "Bakcell GSM 2000" },
- { "404 07", "TATA Cellular" },
- { "404 10", "AirTel" },
- { "404 11", "Essar Cellphone" },
- { "404 12", "Escotel" },
- { "404 14", "Modicom" },
- { "404 15", "Essar Cellphone" },
- { "404 20", "Max Touch" },
- { "404 21", "BPL - Mobile" },
- { "404 27", "BPL USWEST Cellular" },
- { "404 30", "Command" },
- { "404 40", "SkyCell" },
- { "404 41", "RPG Cellular" },
- { "404 42", "AIRCEL" },
+
+ { "404 01", "AIRCELL"},
+ { "404 02", "Evergrowth"},
+ { "404 03", "Bharthi Telenet"},
+ { "404 05", "Fascel"},
+ { "404 07", "Tata Cell"}, //TATA Cellular
+ { "404 08", "Koshika"},
+ { "404 09", "Reliance"},
+ { "404 10", "AIRTEL"}, //AirTel
+ { "404 11", "Essar"}, //Essar Cellphone
+ { "404 12", "Escotel"},
+ { "404 14", "Spice"}, //Modicom
+ { "404 15", "AIRCELL"}, //Essar Cellphone
+ { "404 18", "Reliance"},
+ { "404 19", "Escotel"},
+ { "404 20", "Orange"}, //Max Touch
+ { "404 21", "BPL Mobile"}, //BPL - Mobile
+ { "404 22", "Birla AT&T"},
+ { "404 24", "Birla AT&T"},
+ { "404 26", "Koshika"},
+ { "404 27", "BPL Mobile"}, //BPL USWEST Cellular
+ { "404 30", "Usha"}, //Command
+ { "404 31", "AIRCELL"}, //?
+ { "404 31", "Command"}, //?
+ { "404 32", "Koshika"},
+ { "404 34", "Koshika"},
+ { "404 36", "Reliance"},
+ { "404 40", "SkyCell"},
+ { "404 41", "RPG"}, //RPG Cellular
+ { "404 42", "AIRCELL"}, //AIRCEL
+ { "404 43", "BPL Mobile"},
+ { "404 44", "Spice"},
+ { "404 45", "AIRTEL-blr"},
+ { "404 46", "BPL Moibile"},
+ { "404 49", "AIRTEL"},
+ { "404 50", "Reliance"},
+ { "404 52", "Reliance"},
+ { "404 56", "Escotel"},
+ { "404 60", "AIRCELL"},
+ { "404 67", "Reliance"},
+ { "404 70", "Hexacom"},
+ { "404 78", "RPG"},
+ { "404 85", "Reliance"},
+
{ "410 01", "Mobilink" },
{ "413 02", "DIALOG GSM" },
{ "415 01", "CELLIS" },
return GSM_Countries[index].Code;
}
+
+void EncodeNetworkCode(unsigned char* buffer, unsigned char* output)
+{
+ EncodeBCD (buffer, output, 6, false);
+ buffer[1]=buffer[1] | 0xf0;
+}
+
+void DecodeNetworkCode(unsigned char* buffer, unsigned char* output)
+{
+ DecodeBCD (output, buffer, 3);
+ output[6]=output[5];
+ output[5]=output[4];
+ output[4]=output[3];
+ output[3]=' ';
+}