X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=common%2Fgsm-networks.c;h=b36bcf5b73fd0b93739db7226776549f163b610a;hp=2ef285f0f9370070cb56050c96aff2d2e9200491;hb=f27649b20525793d0880d0df34205548f71ed7f8;hpb=4ee1266711b695852ec88f06784fd84400cd70bb diff --git a/common/gsm-networks.c b/common/gsm-networks.c index 2ef285f..b36bcf5 100644 --- a/common/gsm-networks.c +++ b/common/gsm-networks.c @@ -1,29 +1,20 @@ /* - $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 + +#include "gsm-common.h" #include "gsm-networks.h" +#include "gsm-coding.h" GSM_Country GSM_Countries[] = { @@ -277,19 +268,50 @@ GSM_Network GSM_Networks[] = { "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" }, @@ -443,3 +465,18 @@ char *GSM_GetCountryCode(char *CountryName) 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]=' '; +}