layer23: Corrected MCC in network table. -1 is used to indicate the counter rather...
authorAndreas.Eversberg <jolly@eversberg.eu>
Wed, 16 Jun 2010 22:06:46 +0000 (22:06 +0000)
committerAndreas.Eversberg <jolly@eversberg.eu>
Wed, 16 Jun 2010 22:06:46 +0000 (22:06 +0000)
src/host/layer23/include/osmocom/networks.h
src/host/layer23/src/networks.c

index c8424f9..338cd20 100644 (file)
@@ -3,7 +3,7 @@
 
 struct gsm_networks {
        uint16_t        mcc;
-       uint16_t        mnc;
+       int16_t         mnc;
        const char      *name;
 };
 
index 5078223..515ea79 100644 (file)
@@ -7,33 +7,33 @@
 /* list of networks */
 
 struct gsm_networks gsm_networks[] = {
-       { 1, 0,         "Test" },
+       { 1, -1,        "Test" },
        { 1, 1,                 "Test" },
-       { 412, 0,       "Afghanistan" },
+       { 412, -1,      "Afghanistan" },
        { 412, 1,               "AWCC" },
        { 412, 20,              "Roshan" },
        { 412, 40,              "Areeba" },
        { 412, 50,              "Etisalat" },
-       { 276, 0,       "Albania" },
+       { 276, -1,      "Albania" },
        { 276, 1,               "AMC" },
        { 276, 2,               "Vodafone" },
        { 276, 3,               "Eagle Mobile" },
-       { 603, 0,       "Algeria" },
+       { 603, -1,      "Algeria" },
        { 603, 1,               "Mobilis" },
        { 603, 2,               "Djezzy" },
        { 603, 3,               "Nedjma" },
-       { 213, 0,       "Andorra" },
+       { 213, -1,      "Andorra" },
        { 213, 3,               "Mobiland" },
-       { 631, 0,       "Angola" },
+       { 631, -1,      "Angola" },
        { 631, 2,               "UNITEL" },
-       { 365, 0,       "Anguilla (United Kingdom)" },
+       { 365, -1,      "Anguilla (United Kingdom)" },
        { 365, 10,              "Weblinks Limited" },
        { 365, 840,             "Cable & Wireless" },
-       { 344, 0,       "Antigua and Barbuda" },
+       { 344, -1,      "Antigua and Barbuda" },
        { 344, 30,              "APUA" },
        { 344, 920,             "Lime" },
        { 338, 50,              "Digicel" },
-       { 722, 0,       "Argentina" },
+       { 722, -1,      "Argentina" },
        { 722, 10,              "Movistar" },
        { 722, 20,              "Nextel" },
        { 722, 70,              "Movistar" },
@@ -42,14 +42,14 @@ struct gsm_networks gsm_networks[] = {
        { 722, 330,             "Claro" },
        { 722, 340,             "Personal" },
        { 722, 350,             "Hutchinson (PORT HABLE)" },
-       { 283, 0,       "Armenia" },
+       { 283, -1,      "Armenia" },
        { 283, 1,               "Beeline" },
        { 283, 5,               "VivaCell-MTS" },
        { 283, 10,              "Orange" },
-       { 363, 0,       "Aruba (Kingdom of the Netherlands)" },
+       { 363, -1,      "Aruba (Kingdom of the Netherlands)" },
        { 363, 1,               "SETAR" },
        { 363, 2,               "Digicel" },
-       { 505, 0,       "Australia" },
+       { 505, -1,      "Australia" },
        { 505, 1,               "Telstra" },
        { 505, 2,               "Optus" },
        { 505, 3,               "Vodafone" },
@@ -71,7 +71,7 @@ struct gsm_networks gsm_networks[] = {
        { 505, 88,              "Localstar Holding Pty. Ltd." },
        { 505, 90,              "Optus" },
        { 505, 99,              "One.Tel" },
-       { 232, 0,       "Austria" },
+       { 232, -1,      "Austria" },
        { 232, 1,               "A1" },
        { 232, 3,               "T-Mobile" },
        { 232, 5,               "Orange" },
@@ -82,18 +82,18 @@ struct gsm_networks gsm_networks[] = {
        { 232, 14,              "3" },
        { 232, 15,              "Barablu" },
        { 232, 16,              "3" },
-       { 400, 0,       "Azerbaijan" },
+       { 400, -1,      "Azerbaijan" },
        { 400, 1,               "Azercell" },
        { 400, 2,               "Bakcell" },
        { 400, 3,               "FONEX" },
        { 400, 4,               "Nar Mobile" },
-       { 364, 0,       "Bahamas" },
+       { 364, -1,      "Bahamas" },
        { 364, 390,             "BaTelCo" },
-       { 426, 0,       "Bahrain" },
+       { 426, -1,      "Bahrain" },
        { 426, 1,               "Batelco" },
        { 426, 2,               "zain BH" },
        { 426, 4,               "VIVA" },
-       { 470, 0,       "Bangladesh" },
+       { 470, -1,      "Bangladesh" },
        { 470, 1,               "Grameenphone" },
        { 470, 2,               "Robi" },
        { 470, 3,               "Banglalink" },
@@ -101,50 +101,50 @@ struct gsm_networks gsm_networks[] = {
        { 470, 5,               "Citycell" },
        { 470, 6,               "Warid" },
        { 470, 7,               "WTBL" },
-       { 342, 0,       "Barbados" },
+       { 342, -1,      "Barbados" },
        { 342, 600,             "bmobile" },
        { 342, 750,             "Digicel" },
        { 342, 820,             "Sunbeach Communications" },
-       { 257, 0,       "Belarus" },
+       { 257, -1,      "Belarus" },
        { 257, 1,               "velcom" },
        { 257, 2,               "MTS" },
        { 257, 4,               "life:)" },
        { 257, 3,               "DIALLOG" },
-       { 206, 0,       "Belgium" },
+       { 206, -1,      "Belgium" },
        { 206, 1,               "Proximus" },
        { 206, 10,              "Mobistar" },
        { 206, 20,              "BASE" },
-       { 702, 0,       "Belize" },
+       { 702, -1,      "Belize" },
        { 702, 67,              "Belize Telemedia" },
        { 702, 68,              "International Telecommunications Ltd." },
        { 702, 0,               "Smart" },
-       { 616, 0,       "Benin" },
+       { 616, -1,      "Benin" },
        { 616, 1,               "Libercom" },
        { 616, 2,               "Moov" },
        { 616, 3,               "MTN" },
        { 616, 4,               "BBCOM" },
        { 616, 5,               "Glo" },
-       { 350, 0,       "Bermuda" },
+       { 350, -1,      "Bermuda" },
        { 350, 1,               "Digicel Bermuda" },
        { 350, 2,               "Mobility" },
        { 338, 50,              "Digicel Bermuda" },
        { 310, 0,               "Cellular One" },
-       { 402, 0,       "Bhutan" },
+       { 402, -1,      "Bhutan" },
        { 402, 11,              "B-Mobile" },
        { 402, 77,              "TashiCell" },
-       { 736, 0,       "Bolivia" },
+       { 736, -1,      "Bolivia" },
        { 736, 1,               "Nuevatel" },
        { 736, 2,               "Entel" },
        { 736, 3,               "Tigo" },
-       { 218, 0,       "Bosnia and Herzegovina" },
+       { 218, -1,      "Bosnia and Herzegovina" },
        { 218, 3,               "HT-ERONET" },
        { 218, 5,               "m:tel" },
        { 218, 90,              "BH Mobile" },
-       { 652, 0,       "Botswana" },
+       { 652, -1,      "Botswana" },
        { 652, 1,               "Mascom" },
        { 652, 2,               "Orange" },
        { 652, 4,               "BTC Mobile" },
-       { 724, 0,       "Brazil" },
+       { 724, -1,      "Brazil" },
        { 724, 2,               "TIM" },
        { 724, 3,               "TIM" },
        { 724, 4,               "TIM" },
@@ -164,28 +164,28 @@ struct gsm_networks gsm_networks[] = {
        { 724, 34,              "CTBC Celular" },
        { 724, 37,              "aeiou" },
        { 724, 0,               "Nextel" },
-       { 348, 0,       "British Virgin Islands (United Kingdom)" },
+       { 348, -1,      "British Virgin Islands (United Kingdom)" },
        { 348, 170,             "Cable & Wireless" },
        { 348, 570,             "CCT Boatphone" },
-       { 528, 0,       "Brunei" },
+       { 528, -1,      "Brunei" },
        { 528, 1,               "Jabatan Telekom" },
        { 528, 2,               "B-Mobile" },
        { 528, 11,              "DSTCom" },
-       { 284, 0,       "Bulgaria" },
+       { 284, -1,      "Bulgaria" },
        { 284, 1,               "M-Tel" },
        { 284, 3,               "Vivacom" },
        { 284, 5,               "GLOBUL" },
-       { 613, 0,       "Burkina Faso" },
+       { 613, -1,      "Burkina Faso" },
        { 613, 1,               "Onatel" },
        { 613, 2,               "Zain" },
        { 613, 3,               "Telecel Faso" },
-       { 642, 0,       "Burundi" },
+       { 642, -1,      "Burundi" },
        { 642, 1,               "Spacetel" },
        { 642, 2,               "Africell" },
        { 642, 3,               "Telecel" },
        { 642, 82,              "Onatel" },
        { 642, 0,               "LACELL SU" },
-       { 456, 0,       "Cambodia" },
+       { 456, -1,      "Cambodia" },
        { 456, 1,               "Mobitel" },
        { 456, 2,               "hello" },
        { 456, 3,               "S Telecom" },
@@ -196,10 +196,10 @@ struct gsm_networks gsm_networks[] = {
        { 456, 0,               "Excell" },
        { 456, 9,               "Beeline" },
        { 456, 8,               "Metfone" },
-       { 624, 0,       "Cameroon" },
+       { 624, -1,      "Cameroon" },
        { 624, 1,               "MTN Cameroon" },
        { 624, 2,               "Orange" },
-       { 302, 0,       "Canada" },
+       { 302, -1,      "Canada" },
        { 302, 220,             "Telus" },
        { 302, 221,             "Telus" },
        { 302, 290,             "Airtel Wireless" },
@@ -228,31 +228,31 @@ struct gsm_networks gsm_networks[] = {
        { 302, 720,             "Rogers Wireless" },
        { 302, 780,             "SaskTel" },
        { 302, 880,             "Bell / Telus" },
-       { 625, 0,       "Cape Verde" },
+       { 625, -1,      "Cape Verde" },
        { 625, 1,               "CVMOVEL" },
        { 625, 2,               "T+" },
-       { 346, 0,       "Cayman Islands (United Kingdom)" },
+       { 346, -1,      "Cayman Islands (United Kingdom)" },
        { 346, 140,             "Cable & Wireless" },
        { 338, 50,              "Digicel" },
-       { 623, 0,       "Central African Republic" },
+       { 623, -1,      "Central African Republic" },
        { 623, 1,               "CTP" },
        { 623, 2,               "TC" },
        { 623, 3,               "Orange" },
        { 623, 4,               "Nationlink" },
-       { 622, 0,       "Chad" },
+       { 622, -1,      "Chad" },
        { 622, 1,               "Zain" },
        { 622, 2,               "Tchad Mobile" },
        { 622, 3,               "TIGO - Millicom" },
        { 622, 2,               "TAWALI" },
        { 622, 4,               "Salam" },
-       { 730, 0,       "Chile" },
+       { 730, -1,      "Chile" },
        { 730, 1,               "Entel" },
        { 730, 2,               "movistar" },
        { 730, 3,               "Claro" },
        { 730, 4,               "Nextel" },
        { 730, 10,              "Entel" },
        { 730, 99,              "WILL" },
-       { 460, 0,       "China" },
+       { 460, -1,      "China" },
        { 460, 0,               "China Mobile" },
        { 460, 1,               "China Unicom" },
        { 460, 2,               "China Mobile" },
@@ -260,7 +260,7 @@ struct gsm_networks gsm_networks[] = {
        { 460, 5,               "China Telecom" },
        { 460, 6,               "China Unicom" },
        { 460, 20,              "China TIETONG" },
-       { 732, 0,       "Colombia" },
+       { 732, -1,      "Colombia" },
        { 732, 1,               "Colombia Telecomunicaciones S.A." },
        { 732, 2,               "Edatel" },
        { 732, 101,             "Comcel" },
@@ -268,35 +268,35 @@ struct gsm_networks gsm_networks[] = {
        { 732, 103,             "Tigo" },
        { 732, 111,             "Tigo" },
        { 732, 12,              "movistar" },
-       { 654, 0,       "Comoros" },
+       { 654, -1,      "Comoros" },
        { 654, 1,               "HURI - SNPT" },
-       { 629, 0,       "Republic of the Congo" },
+       { 629, -1,      "Republic of the Congo" },
        { 629, 1,               "Zain" },
        { 629, 10,              "Libertis Telecom" },
        { 629, 0,               "Warid Telecom" },
-       { 548, 0,       "Cook Islands (New Zealand)" },
+       { 548, -1,      "Cook Islands (New Zealand)" },
        { 548, 1,               "Telecom Cook" },
-       { 712, 0,       "Costa Rica" },
+       { 712, -1,      "Costa Rica" },
        { 712, 1,               "ICE" },
        { 712, 2,               "ICE" },
        { 712, 3,               "ICE" },
-       { 219, 0,       "Croatia" },
+       { 219, -1,      "Croatia" },
        { 219, 1,               "T-Mobile" },
        { 219, 2,               "Tele2" },
        { 219, 10,              "VIPnet" },
-       { 368, 0,       "Cuba" },
+       { 368, -1,      "Cuba" },
        { 368, 1,               "ETECSA" },
-       { 280, 0,       "Cyprus" },
+       { 280, -1,      "Cyprus" },
        { 280, 1,               "Cytamobile-Vodafone" },
        { 280, 10,              "MTN" },
-       { 230, 0,       "Czech Republic" },
+       { 230, -1,      "Czech Republic" },
        { 230, 1,               "T-Mobile" },
        { 230, 2,               "O2" },
        { 230, 3,               "Vodafone" },
        { 230, 4,               "U:fon" },
        { 230, 98,              "S#DC s.o." },
        { 230, 99,              "Vodafone" },
-       { 630, 0,       "Democratic Republic of the Congo" },
+       { 630, -1,      "Democratic Republic of the Congo" },
        { 630, 1,               "Vodacom" },
        { 630, 2,               "Zain" },
        { 630, 4,               "Cellco" },
@@ -304,7 +304,7 @@ struct gsm_networks gsm_networks[] = {
        { 630, 86,              "CCT" },
        { 630, 89,              "SAIT Telecom" },
        { 630, 0,               "Africell" },
-       { 238, 0,       "Denmark (Kingdom of Denmark)" },
+       { 238, -1,      "Denmark (Kingdom of Denmark)" },
        { 238, 1,               "TDC" },
        { 238, 2,               "Telenor" },
        { 238, 3,               "MIGway A/S" },
@@ -319,53 +319,53 @@ struct gsm_networks gsm_networks[] = {
        { 238, 30,              "Telia" },
        { 238, 40,              "Ericsson Danmark A/S" },
        { 238, 77,              "Telenor" },
-       { 638, 0,       "Djibouti" },
+       { 638, -1,      "Djibouti" },
        { 638, 1,               "Evatis" },
-       { 366, 0,       "Dominica" },
+       { 366, -1,      "Dominica" },
        { 366, 20,              "Digicel" },
        { 366, 110,             "Cable & Wireless" },
-       { 370, 0,       "Dominican Republic" },
+       { 370, -1,      "Dominican Republic" },
        { 370, 1,               "Orange" },
        { 370, 2,               "Claro" },
        { 370, 3,               "Tricom" },
        { 370, 4,               "Viva" },
-       { 514, 0,       "East Timor" },
+       { 514, -1,      "East Timor" },
        { 514, 2,               "Timor Telecom" },
-       { 740, 0,       "Ecuador" },
+       { 740, -1,      "Ecuador" },
        { 740, 0,               "Movistar" },
        { 740, 1,               "Porta" },
        { 740, 2,               "Alegro" },
-       { 602, 0,       "Egypt" },
+       { 602, -1,      "Egypt" },
        { 602, 1,               "Mobinil" },
        { 602, 2,               "Vodafone" },
        { 602, 3,               "Etisalat" },
-       { 706, 0,       "El Salvador" },
+       { 706, -1,      "El Salvador" },
        { 706, 1,               "CTE Telecom Personal" },
        { 706, 2,               "digicel" },
        { 706, 3,               "Telemovil EL Salvador" },
        { 706, 4,               "movistar" },
        { 706, 10,              "Claro" },
-       { 627, 0,       "Equatorial Guinea" },
+       { 627, -1,      "Equatorial Guinea" },
        { 627, 1,               "Orange GQ" },
        { 627, 3,               "Hits GQ" },
-       { 657, 0,       "Eritrea" },
+       { 657, -1,      "Eritrea" },
        { 657, 1,               "Eritel" },
-       { 248, 0,       "Estonia" },
+       { 248, -1,      "Estonia" },
        { 248, 1,               "EMT" },
        { 248, 2,               "Elisa" },
        { 248, 3,               "Tele 2" },
        { 248, 4,               "OY Top Connect" },
        { 248, 5,               "AS Bravocom Mobiil" },
        { 248, 6,               "OY ViaTel" },
-       { 636, 0,       "Ethiopia" },
+       { 636, -1,      "Ethiopia" },
        { 636, 1,               "ETMTN" },
-       { 288, 0,       "Faroe Islands (Kingdom of Denmark)" },
+       { 288, -1,      "Faroe Islands (Kingdom of Denmark)" },
        { 288, 1,               "Faroese Telecom" },
        { 288, 2,               "Vodafone" },
-       { 542, 0,       "Fiji" },
+       { 542, -1,      "Fiji" },
        { 542, 1,               "Vodafone" },
        { 542, 2,               "Digicel" },
-       { 244, 0,       "Finland" },
+       { 244, -1,      "Finland" },
        { 244, 3,               "DNA" },
        { 244, 5,               "Elisa" },
        { 244, 7,               "Nokia" },
@@ -376,7 +376,7 @@ struct gsm_networks gsm_networks[] = {
        { 244, 21,              "Saunalahti" },
        { 244, 29,              "Scnl Truphone" },
        { 244, 91,              "Sonera" },
-       { 208, 0,       "France" },
+       { 208, -1,      "France" },
        { 208, 0,               "Orange" },
        { 208, 1,               "Orange" },
        { 208, 2,               "Orange" },
@@ -390,23 +390,23 @@ struct gsm_networks gsm_networks[] = {
        { 208, 21,              "Bouygues" },
        { 208, 22,              "Transatel Mobile" },
        { 208, 88,              "Bouygues" },
-       { 628, 0,       "Gabon" },
+       { 628, -1,      "Gabon" },
        { 628, 1,               "Libertis" },
        { 628, 2,               "Moov (Telecel) Gabon S.A." },
        { 628, 3,               "Zain" },
-       { 607, 0,       "Gambia" },
+       { 607, -1,      "Gambia" },
        { 607, 1,               "Gamcel" },
        { 607, 2,               "Africel" },
        { 607, 3,               "Comium" },
        { 607, 4,               "QCell" },
-       { 282, 0,       "Georgia" },
+       { 282, -1,      "Georgia" },
        { 282, 1,               "Geocell" },
        { 282, 2,               "MagtiCom" },
        { 282, 3,               "Iberiatel" },
        { 282, 4,               "Beeline" },
        { 289, 67,              "Aquafon" },
        { 289, 88,              "A-Mobile" },
-       { 262, 0,       "Germany" },
+       { 262, -1,      "Germany" },
        { 262, 1,               "T-Mobile" },
        { 262, 2,               "Vodafone" },
        { 262, 3,               "E-Plus" },
@@ -428,67 +428,67 @@ struct gsm_networks gsm_networks[] = {
        { 262, 76,              "Siemens AG" },
        { 262, 77,              "E-Plus" },
        { 262, 901,             "Debitel" },
-       { 620, 0,       "Ghana" },
+       { 620, -1,      "Ghana" },
        { 620, 1,               "MTN" },
        { 620, 2,               "Vodafone" },
        { 620, 3,               "tiGO" },
        { 620, 4,               "Kasapa / Hutchison Telecom" },
        { 620, 6,               "Zain" },
-       { 266, 0,       "Gibraltar (United Kingdom)" },
+       { 266, -1,      "Gibraltar (United Kingdom)" },
        { 266, 1,               "GibTel" },
        { 266, 6,               "CTS Mobile" },
-       { 202, 0,       "Greece" },
+       { 202, -1,      "Greece" },
        { 202, 1,               "Cosmote" },
        { 202, 5,               "Vodafone" },
        { 202, 9,               "Wind" },
        { 202, 10,              "Wind" },
-       { 290, 0,       "Greenland (Kingdom of Denmark)" },
+       { 290, -1,      "Greenland (Kingdom of Denmark)" },
        { 290, 1,               "TELE Greenland A/S" },
-       { 352, 0,       "Grenada" },
+       { 352, -1,      "Grenada" },
        { 352, 30,              "Digicel" },
        { 352, 110,             "Cable & Wireless" },
-       { 340, 0,       "Guadeloupe (France)" },
+       { 340, -1,      "Guadeloupe (France)" },
        { 340, 1,               "Orange" },
        { 340, 2,               "Outremer" },
        { 340, 3,               "Telcell" },
        { 340, 8,               "MIO GSM" },
        { 340, 20,              "Digicel" },
-       { 310, 0,       "Guam (United States of America)" },
+       { 310, -1,      "Guam (United States of America)" },
        { 310, 32,              "IT&E Wireless" },
        { 310, 33,              "Guam Telephone Authority" },
        { 310, 140,             "mPulse" },
        { 310, 370,             "Guamcell" },
        { 311, 250,             "i CAN_GSM" },
        { 310, 470,             "Guamcell" },
-       { 704, 0,       "Guatemala" },
+       { 704, -1,      "Guatemala" },
        { 704, 1,               "Claro" },
        { 704, 2,               "Comcel / Tigo" },
        { 704, 3,               "movistar" },
        { 704, 0,               "digicel" },
-       { 234, 0,       "Guernsey (United Kingdom)" },
+       { 234, -1,      "Guernsey (United Kingdom)" },
        { 234, 55,              "Sure Mobile" },
        { 234, 50,              "Wave Telecom" },
        { 234, 3,               "Airtel Vodafone" },
-       { 611, 0,       "Guinea" },
+       { 611, -1,      "Guinea" },
        { 611, 1,               "Spacetel" },
        { 611, 2,               "Lagui" },
        { 611, 3,               "Telecel Guinee" },
        { 611, 4,               "MTN" },
-       { 632, 0,       "Guinea-Bissau" },
+       { 632, -1,      "Guinea-Bissau" },
        { 632, 2,               "Areeba" },
        { 632, 3,               "Orange" },
-       { 738, 0,       "Guyana" },
+       { 738, -1,      "Guyana" },
        { 738, 1,               "Digicel" },
        { 738, 2,               "GT&T Cellink Plus" },
-       { 372, 0,       "Haiti" },
+       { 372, -1,      "Haiti" },
        { 372, 1,               "Comcel / Voila" },
        { 338, 50,              "Digicel" },
-       { 708, 0,       "Honduras" },
+       { 708, -1,      "Honduras" },
        { 708, 1,               "Claro" },
        { 708, 2,               "Celtel / Tigo" },
        { 708, 30,              "Hondutel" },
        { 708, 40,              "DIGICEL" },
-       { 454, 0,       "Hong Kong (Special Administrative Region)" },
+       { 454, -1,      "Hong Kong (Special Administrative Region)" },
        { 454, 0,               "1O1O and One2Free" },
        { 454, 1,               "CITIC Telecom 1616" },
        { 454, 2,               "CSL Limited" },
@@ -509,11 +509,11 @@ struct gsm_networks gsm_networks[] = {
        { 454, 18,              "CSL Limited" },
        { 454, 19,              "PCCW Mobile (3G)" },
        { 454, 29,              "PCCW Mobile (CDMA)" },
-       { 216, 0,       "Hungary" },
+       { 216, -1,      "Hungary" },
        { 216, 1,               "Telenor" },
        { 216, 30,              "T-Mobile" },
        { 216, 70,              "Vodafone" },
-       { 274, 0,       "Iceland" },
+       { 274, -1,      "Iceland" },
        { 274, 1,               "Siminn" },
        { 274, 2,               "Vodafone" },
        { 274, 3,               "Vodafone" },
@@ -522,7 +522,7 @@ struct gsm_networks gsm_networks[] = {
        { 274, 7,               "IceCell" },
        { 274, 8,               "On-waves" },
        { 274, 11,              "Nova" },
-       { 404, 0,       "India" },
+       { 404, -1,      "India" },
        { 404, 1,               "Vodafone IN" },
        { 404, 2,               "AirTel" },
        { 404, 4,               "IDEA" },
@@ -656,7 +656,7 @@ struct gsm_networks gsm_networks[] = {
        { 405, 912,             "Etisalat DB" },
        { 405, 913,             "Etisalat DB" },
        { 405, 917,             "Etisalat DB" },
-       { 510, 0,       "Indonesia" },
+       { 510, -1,      "Indonesia" },
        { 510, 0,               "PSN" },
        { 510, 1,               "INDOSAT" },
        { 510, 3,               "StarOne" },
@@ -671,20 +671,20 @@ struct gsm_networks gsm_networks[] = {
        { 510, 28,              "Fren/Hepi" },
        { 510, 89,              "3" },
        { 510, 99,              "Esia" },
-       { 432, 0,       "Iran" },
+       { 432, -1,      "Iran" },
        { 432, 11,              "MCI" },
        { 432, 14,              "TKC" },
        { 432, 19,              "MTCE" },
        { 432, 32,              "Taliya" },
        { 432, 35,              "Irancell" },
-       { 418, 0,       "Iraq" },
+       { 418, -1,      "Iraq" },
        { 418, 20,              "Zain IQ" },
        { 418, 30,              "Zain IQ" },
        { 418, 5,               "Asia Cell" },
        { 418, 40,              "Korek" },
        { 418, 8,               "SanaTel" },
        { 418, 0,               "IRAQNA" },
-       { 272, 0,       "Ireland" },
+       { 272, -1,      "Ireland" },
        { 272, 1,               "Vodafone" },
        { 272, 2,               "O2" },
        { 272, 3,               "Meteor" },
@@ -692,16 +692,16 @@ struct gsm_networks gsm_networks[] = {
        { 272, 5,               "3" },
        { 272, 7,               "Eircom" },
        { 272, 9,               "Clever Communications" },
-       { 234, 0,       "Isle of Man (United Kingdom)" },
+       { 234, -1,      "Isle of Man (United Kingdom)" },
        { 234, 58,              "Pronto GSM" },
        { 234, 0,               "Sure Mobile" },
        { 234, 0,               "Cloud 9 Mobile" },
-       { 425, 0,       "Israel" },
+       { 425, -1,      "Israel" },
        { 425, 1,               "Orange" },
        { 425, 2,               "Cellcom" },
        { 425, 3,               "Pelephone" },
        { 425, 77,              "Mirs" },
-       { 222, 0,       "Italy" },
+       { 222, -1,      "Italy" },
        { 222, 1,               "TIM" },
        { 222, 2,               "Elsacom" },
        { 222, 10,              "Vodafone" },
@@ -710,19 +710,19 @@ struct gsm_networks gsm_networks[] = {
        { 222, 88,              "Wind" },
        { 222, 98,              "Blu" },
        { 222, 99,              "3 Italia" },
-       { 612, 0,       "Ivory Coast" },
+       { 612, -1,      "Ivory Coast" },
        { 612, 1,               "Cora de Comstar" },
        { 612, 2,               "Moov" },
        { 612, 3,               "Orange" },
        { 612, 4,               "KoZ" },
        { 612, 5,               "MTN" },
        { 612, 6,               "ORICEL" },
-       { 338, 0,       "Jamaica" },
+       { 338, -1,      "Jamaica" },
        { 338, 20,              "LIME (formerly known as Cable & Wireless)" },
        { 338, 50,              "Digicel" },
        { 338, 70,              "Claro" },
        { 338, 180,             "LIME (formerly known as Cable & Wireless)" },
-       { 440, 0,       "Japan" },
+       { 440, -1,      "Japan" },
        { 440, 0,               "eMobile" },
        { 440, 1,               "NTT docomo" },
        { 440, 2,               "NTT docomo" },
@@ -819,55 +819,55 @@ struct gsm_networks gsm_networks[] = {
        { 440, 97,              "SoftBank" },
        { 440, 98,              "SoftBank" },
        { 440, 99,              "DoCoMo" },
-       { 234, 0,       "Jersey (United Kingdom)" },
+       { 234, -1,      "Jersey (United Kingdom)" },
        { 234, 50,              "JT-Wave" },
        { 234, 55,              "Sure Mobile" },
        { 234, 3,               "Airtel Vodafone" },
-       { 416, 0,       "Jordan" },
+       { 416, -1,      "Jordan" },
        { 416, 1,               "zain JO" },
        { 416, 2,               "XPress Telecom" },
        { 416, 3,               "Umniah" },
        { 416, 77,              "Orange" },
-       { 401, 0,       "Kazakhstan" },
+       { 401, -1,      "Kazakhstan" },
        { 401, 1,               "Beeline" },
        { 401, 2,               "Kcell" },
        { 401, 7,               "Dalacom" },
        { 401, 77,              "Mobile Telecom Service" },
-       { 639, 0,       "Kenya" },
+       { 639, -1,      "Kenya" },
        { 639, 2,               "Safaricom" },
        { 639, 3,               "Zain" },
        { 639, 7,               "Orange Kenya" },
        { 639, 5,               "yu" },
-       { 545, 0,       "Kiribati" },
+       { 545, -1,      "Kiribati" },
        { 545, 9,               "Kiribati Frigate" },
-       { 467, 0,       "North Korea" },
+       { 467, -1,      "North Korea" },
        { 467, 193,             "SUN NET" },
-       { 450, 0,       "South Korea" },
+       { 450, -1,      "South Korea" },
        { 450, 2,               "KT" },
        { 450, 3,               "Power 017" },
        { 450, 4,               "KT" },
        { 450, 5,               "SKT" },
        { 450, 6,               "LGT" },
        { 450, 8,               "KT SHOW" },
-       { 212, 0,       "Kosovo" },
+       { 212, -1,      "Kosovo" },
        { 212, 1,               "Vala" },
        { 293, 41,              "iPKO" },
        { 293, 41,              "D3 Mobile" },
        { 212, 1,               "Z Mobile" },
-       { 419, 0,       "Kuwait" },
+       { 419, -1,      "Kuwait" },
        { 419, 2,               "zain KW" },
        { 419, 3,               "Wataniya" },
        { 419, 4,               "Viva" },
-       { 437, 0,       "Kyrgyzstan" },
+       { 437, -1,      "Kyrgyzstan" },
        { 437, 1,               "Beeline" },
        { 437, 5,               "MegaCom" },
        { 437, 9,               "O!" },
-       { 457, 0,       "Laos" },
+       { 457, -1,      "Laos" },
        { 457, 1,               "LaoTel" },
        { 457, 2,               "ETL" },
        { 457, 3,               "LAT" },
        { 457, 8,               "Tigo" },
-       { 247, 0,       "Latvia" },
+       { 247, -1,      "Latvia" },
        { 247, 1,               "LMT" },
        { 247, 2,               "Tele2" },
        { 247, 3,               "TRIATEL" },
@@ -876,124 +876,124 @@ struct gsm_networks gsm_networks[] = {
        { 247, 7,               "MTS" },
        { 247, 8,               "IZZI" },
        { 247, 9,               "Camel Mobile" },
-       { 415, 0,       "Lebanon" },
+       { 415, -1,      "Lebanon" },
        { 415, 1,               "Alfa" },
        { 415, 3,               "MTC-Touch" },
-       { 651, 0,       "Lesotho" },
+       { 651, -1,      "Lesotho" },
        { 651, 1,               "Vodacom" },
        { 651, 2,               "Econet Ezin-cel" },
-       { 618, 0,       "Liberia" },
+       { 618, -1,      "Liberia" },
        { 618, 1,               "Lonestar Cell" },
        { 618, 4,               "Comium" },
        { 618, 20,              "LIBTELCO" },
-       { 606, 0,       "Libya" },
+       { 606, -1,      "Libya" },
        { 606, 0,               "Libyana" },
        { 606, 1,               "Madar" },
-       { 295, 0,       "Liechtenstein" },
+       { 295, -1,      "Liechtenstein" },
        { 295, 1,               "Swisscom" },
        { 295, 2,               "Orange" },
        { 295, 5,               "FL1" },
        { 295, 77,              "Tele 2" },
-       { 246, 0,       "Lithuania" },
+       { 246, -1,      "Lithuania" },
        { 246, 1,               "Omnitel" },
        { 246, 2,               "BITE" },
        { 246, 3,               "Tele 2" },
-       { 270, 0,       "Luxembourg" },
+       { 270, -1,      "Luxembourg" },
        { 270, 1,               "LuxGSM" },
        { 270, 77,              "Tango" },
        { 270, 99,              "Orange" },
-       { 455, 0,       "Macau (People's Republic of China)" },
+       { 455, -1,      "Macau (People's Republic of China)" },
        { 455, 0,               "SmarTone" },
        { 455, 1,               "CTM" },
        { 455, 2,               "China Telecom" },
        { 455, 3,               "3" },
        { 455, 4,               "CTM" },
        { 455, 5,               "3" },
-       { 294, 0,       "Republic of Macedonia" },
+       { 294, -1,      "Republic of Macedonia" },
        { 294, 1,               "T-Mobile MK" },
        { 294, 2,               "ONE" },
        { 294, 3,               "Vip MK" },
-       { 646, 0,       "Madagascar" },
+       { 646, -1,      "Madagascar" },
        { 646, 1,               "Zain" },
        { 646, 2,               "Orange" },
        { 646, 3,               "Sacel" },
        { 646, 4,               "Telma" },
-       { 650, 0,       "Malawi" },
+       { 650, -1,      "Malawi" },
        { 650, 1,               "TNM" },
        { 650, 10,              "Zain" },
-       { 502, 0,       "Malaysia" },
+       { 502, -1,      "Malaysia" },
        { 502, 12,              "Maxis" },
        { 502, 13,              "Celcom" },
        { 502, 16,              "DiGi" },
        { 502, 17,              "Maxis" },
        { 502, 18,              "U Mobile" },
        { 502, 19,              "Celcom" },
-       { 472, 0,       "Maldives" },
+       { 472, -1,      "Maldives" },
        { 472, 1,               "Dhiraagu" },
        { 472, 2,               "Wataniya" },
-       { 610, 0,       "Mali" },
+       { 610, -1,      "Mali" },
        { 610, 1,               "Malitel" },
        { 610, 2,               "Orange" },
-       { 278, 0,       "Malta" },
+       { 278, -1,      "Malta" },
        { 278, 1,               "Vodafone" },
        { 278, 21,              "GO" },
        { 278, 77,              "Melita" },
-       { 340, 0,       "Martinique (France)" },
+       { 340, -1,      "Martinique (France)" },
        { 340, 1,               "Orange" },
        { 340, 2,               "Outremer" },
        { 340, 20,              "Digicel" },
-       { 609, 0,       "Mauritania" },
+       { 609, -1,      "Mauritania" },
        { 609, 1,               "Mattel" },
        { 609, 10,              "Mauritel" },
-       { 617, 0,       "Mauritius" },
+       { 617, -1,      "Mauritius" },
        { 617, 1,               "Orange" },
        { 617, 2,               "MTML" },
        { 617, 10,              "Emtel" },
-       { 334, 0,       "Mexico" },
+       { 334, -1,      "Mexico" },
        { 334, 1,               "Nextel" },
        { 334, 2,               "Telcel" },
        { 334, 3,               "movistar" },
        { 334, 4,               "Iusacell / Unefon" },
-       { 550, 0,       "Federated States of Micronesia" },
+       { 550, -1,      "Federated States of Micronesia" },
        { 550, 1,               "FSM Telecom" },
-       { 259, 0,       "Moldova" },
+       { 259, -1,      "Moldova" },
        { 259, 1,               "Orange" },
        { 259, 2,               "Moldcell" },
        { 259, 3,               "IDC" },
        { 259, 3,               "Unité" },
        { 259, 4,               "Eventis" },
        { 259, 5,               "Unité" },
-       { 212, 0,       "Monaco" },
+       { 212, -1,      "Monaco" },
        { 212, 1,               "Office des Telephones" },
-       { 428, 0,       "Mongolia" },
+       { 428, -1,      "Mongolia" },
        { 428, 99,              "MobiCom" },
        { 428, 88,              "Unitel" },
        { 428, 91,              "Skytel" },
        { 428, 98,              "G.Mobile" },
-       { 297, 0,       "Montenegro" },
+       { 297, -1,      "Montenegro" },
        { 297, 1,               "Telenor" },
        { 297, 2,               "T-Mobile" },
        { 297, 3,               "m:tel CG" },
-       { 604, 0,       "Morocco" },
+       { 604, -1,      "Morocco" },
        { 604, 0,               "Méditel" },
        { 604, 1,               "IAM" },
        { 604, 2,               "INWI" },
        { 605, 3,               "yassine" },
-       { 643, 0,       "Mozambique" },
+       { 643, -1,      "Mozambique" },
        { 643, 1,               "mCel" },
        { 643, 4,               "Vodacom" },
-       { 414, 0,       "Myanmar" },
+       { 414, -1,      "Myanmar" },
        { 414, 1,               "MPT" },
-       { 649, 0,       "Namibia" },
+       { 649, -1,      "Namibia" },
        { 649, 1,               "MTC" },
        { 649, 2,               "switch" },
        { 649, 3,               "Leo" },
-       { 536, 0,       "Nauru" },
-       { 429, 0,       "Nepal" },
+       { 536, -1,      "Nauru" },
+       { 429, -1,      "Nepal" },
        { 429, 1,               "Namaste / NT Mobile" },
        { 429, 2,               "Ncell" },
        { 429, 3,               "Sky/C-Phone" },
-       { 204, 0,       "Netherlands (Kingdom of the Netherlands)" },
+       { 204, -1,      "Netherlands (Kingdom of the Netherlands)" },
        { 204, 1,               "OneFoon" },
        { 204, 2,               "Tele2" },
        { 204, 3,               "Blyk" },
@@ -1012,7 +1012,7 @@ struct gsm_networks gsm_networks[] = {
        { 204, 21,              "NS Railinfrabeheer B.V." },
        { 204, 67,              "RadioAccess" },
        { 204, 69,              "KPN Mobile" },
-       { 362, 0,       "Netherlands Antilles (Kingdom of the Netherlands)" },
+       { 362, -1,      "Netherlands Antilles (Kingdom of the Netherlands)" },
        { 362, 51,              "Telcell" },
        { 362, 69,              "Digicel" },
        { 362, 91,              "UTS" },
@@ -1020,9 +1020,9 @@ struct gsm_networks gsm_networks[] = {
        { 362, 0,               "Antiliano Por N.V." },
        { 362, 95,              "MIO" },
        { 362, 94,              "Bayòs" },
-       { 546, 0,       "New Caledonia (France)" },
+       { 546, -1,      "New Caledonia (France)" },
        { 546, 1,               "Mobilis" },
-       { 530, 0,       "New Zealand" },
+       { 530, -1,      "New Zealand" },
        { 530, 0,               "Telecom" },
        { 530, 1,               "Vodafone" },
        { 530, 2,               "Telecom" },
@@ -1031,22 +1031,22 @@ struct gsm_networks gsm_networks[] = {
        { 530, 5,               "XT Mobile Network" },
        { 530, 12,              "360" },
        { 530, 24,              "2degrees" },
-       { 710, 0,       "Nicaragua" },
+       { 710, -1,      "Nicaragua" },
        { 710, 21,              "Claro" },
        { 710, 30,              "movistar" },
        { 710, 73,              "SERCOM" },
-       { 614, 0,       "Niger" },
+       { 614, -1,      "Niger" },
        { 614, 1,               "SahelCom" },
        { 614, 2,               "Zain" },
        { 614, 3,               "Telecel" },
        { 614, 4,               "Orange" },
-       { 621, 0,       "Nigeria" },
+       { 621, -1,      "Nigeria" },
        { 621, 20,              "Zain" },
        { 621, 30,              "MTN" },
        { 621, 40,              "M-Tel" },
        { 621, 50,              "Glo" },
        { 621, 60,              "Etisalat" },
-       { 242, 0,       "Norway" },
+       { 242, -1,      "Norway" },
        { 242, 1,               "Telenor" },
        { 242, 2,               "NetCom" },
        { 242, 3,               "Teletopia" },
@@ -1057,39 +1057,39 @@ struct gsm_networks gsm_networks[] = {
        { 242, 8,               "TDC Mobil AS" },
        { 242, 9,               "Barablu Mobile Norway Ltd" },
        { 242, 20,              "Jernbaneverket AS" },
-       { 422, 0,       "Oman" },
+       { 422, -1,      "Oman" },
        { 422, 2,               "Oman Mobile" },
        { 422, 3,               "Nawras" },
-       { 410, 0,       "Pakistan" },
+       { 410, -1,      "Pakistan" },
        { 410, 1,               "Mobilink" },
        { 410, 3,               "Ufone" },
        { 410, 4,               "Zong" },
        { 410, 6,               "Telenor" },
        { 410, 7,               "Warid" },
-       { 552, 0,       "Palau" },
+       { 552, -1,      "Palau" },
        { 552, 1,               "PNCC" },
        { 552, 80,              "Palau Mobile" },
-       { 423, 0,       "Palestinian Authority" },
+       { 423, -1,      "Palestinian Authority" },
        { 423, 5,               "Jawwal" },
        { 423, 6,               "Wataniya" },
-       { 714, 0,       "Panama" },
+       { 714, -1,      "Panama" },
        { 714, 1,               "Cable & Wireless" },
        { 714, 2,               "movistar" },
        { 714, 4,               "Digicel" },
        { 714, 3,               "Claro" },
-       { 537, 0,       "Papua New Guinea" },
+       { 537, -1,      "Papua New Guinea" },
        { 537, 1,               "B-Mobile" },
        { 537, 3,               "Digicel" },
-       { 744, 0,       "Paraguay" },
+       { 744, -1,      "Paraguay" },
        { 744, 1,               "VOX" },
        { 744, 2,               "Claro" },
        { 744, 4,               "Tigo" },
        { 744, 5,               "Personal" },
-       { 716, 0,       "Peru" },
+       { 716, -1,      "Peru" },
        { 716, 6,               "movistar" },
        { 716, 10,              "Claro" },
        { 716, 17,              "NEXTEL" },
-       { 515, 0,       "Philippines" },
+       { 515, -1,      "Philippines" },
        { 515, 1,               "Islacom" },
        { 515, 2,               "Globe" },
        { 515, 3,               "Smart" },
@@ -1097,7 +1097,7 @@ struct gsm_networks gsm_networks[] = {
        { 515, 11,              "PLDT via ACeS Philippines" },
        { 515, 18,              "Cure" },
        { 515, 88,              "Nextel" },
-       { 260, 0,       "Poland" },
+       { 260, -1,      "Poland" },
        { 260, 1,               "Plus" },
        { 260, 2,               "Era" },
        { 260, 3,               "Orange" },
@@ -1115,21 +1115,21 @@ struct gsm_networks gsm_networks[] = {
        { 260, 15,              "CenterNet" },
        { 260, 16,              "Mobyland" },
        { 260, 17,              "Aero2" },
-       { 268, 0,       "Portugal" },
+       { 268, -1,      "Portugal" },
        { 268, 1,               "Vodafone" },
        { 268, 3,               "Optimus" },
        { 268, 6,               "TMN" },
        { 268, 21,              "Zapp" },
-       { 330, 0,       "Puerto Rico" },
+       { 330, -1,      "Puerto Rico" },
        { 330, 11,              "Claro" },
-       { 427, 0,       "Qatar" },
+       { 427, -1,      "Qatar" },
        { 427, 1,               "Qatarnet" },
        { 427, 2,               "Vodafone Qatar" },
-       { 647, 0,       "Réunion (France)" },
+       { 647, -1,      "Réunion (France)" },
        { 647, 0,               "Orange" },
        { 647, 2,               "Outremer" },
        { 647, 10,              "SFR Reunion" },
-       { 226, 0,       "Romania" },
+       { 226, -1,      "Romania" },
        { 226, 1,               "Vodafone" },
        { 226, 2,               "Romtelecom" },
        { 226, 3,               "Cosmote" },
@@ -1137,7 +1137,7 @@ struct gsm_networks gsm_networks[] = {
        { 226, 5,               "Digi.Mobil" },
        { 226, 6,               "Cosmote" },
        { 226, 10,              "Orange" },
-       { 250, 0,       "Russian Federation" },
+       { 250, -1,      "Russian Federation" },
        { 250, 1,               "MTS" },
        { 250, 2,               "MegaFon" },
        { 250, 3,               "NCC" },
@@ -1166,46 +1166,46 @@ struct gsm_networks gsm_networks[] = {
        { 250, 93,              "Telecom XXI" },
        { 250, 99,              "Beeline" },
        { 250, 0,               "SkyLink/MTS/the Moscow Cellular communication" },
-       { 635, 0,       "Rwanda" },
+       { 635, -1,      "Rwanda" },
        { 635, 10,              "MTN" },
        { 635, 13,              "Tigo" },
-       { 356, 0,       "Saint Kitts and Nevis" },
+       { 356, -1,      "Saint Kitts and Nevis" },
        { 356, 50,              "Digicel" },
        { 356, 110,             "Cable & Wireless" },
-       { 358, 0,       "Saint Lucia" },
+       { 358, -1,      "Saint Lucia" },
        { 358, 50,              "Digicel" },
        { 358, 110,             "Cable & Wireless" },
-       { 308, 0,       "Saint Pierre and Miquelon (France)" },
+       { 308, -1,      "Saint Pierre and Miquelon (France)" },
        { 308, 1,               "Ameris" },
-       { 360, 0,       "Saint Vincent and the Grenadines" },
+       { 360, -1,      "Saint Vincent and the Grenadines" },
        { 360, 70,              "Digicel" },
        { 360, 100,             "Cingular Wireless" },
        { 360, 110,             "Cable & Wireless" },
-       { 549, 0,       "Samoa" },
+       { 549, -1,      "Samoa" },
        { 549, 1,               "Digicel" },
        { 549, 27,              "SamoaTel" },
-       { 292, 0,       "San Marino" },
+       { 292, -1,      "San Marino" },
        { 292, 1,               "PRIMA" },
-       { 626, 0,       "Sao Tome and Principe" },
+       { 626, -1,      "Sao Tome and Principe" },
        { 626, 1,               "CSTmovel" },
-       { 420, 0,       "Saudi Arabia" },
+       { 420, -1,      "Saudi Arabia" },
        { 420, 1,               "Al Jawal" },
        { 420, 3,               "Mobily" },
        { 420, 7,               "EAE" },
        { 420, 4,               "Zain SA" },
-       { 608, 0,       "Senegal" },
+       { 608, -1,      "Senegal" },
        { 608, 1,               "Orange (telecommunications)" },
        { 608, 2,               "Tigo" },
        { 608, 3,               "Expresso" },
-       { 220, 0,       "Serbia" },
+       { 220, -1,      "Serbia" },
        { 220, 1,               "Telenor" },
        { 220, 3,               "mt:s" },
        { 220, 5,               "VIP" },
-       { 633, 0,       "Seychelles" },
+       { 633, -1,      "Seychelles" },
        { 633, 1,               "Cable & Wireless" },
        { 633, 2,               "Mediatech International" },
        { 633, 10,              "Airtel" },
-       { 619, 0,       "Sierra Leone" },
+       { 619, -1,      "Sierra Leone" },
        { 619, 1,               "Zain" },
        { 619, 2,               "Millicom" },
        { 619, 3,               "Datatel" },
@@ -1213,13 +1213,13 @@ struct gsm_networks gsm_networks[] = {
        { 619, 5,               "Africell" },
        { 619, 25,              "Mobitel" },
        { 619, 0,               "LeoneCel" },
-       { 525, 0,       "Singapore" },
+       { 525, -1,      "Singapore" },
        { 525, 1,               "SingTel" },
        { 525, 2,               "SingTel-G18" },
        { 525, 3,               "M1" },
        { 525, 5,               "StarHub" },
        { 525, 12,              "Digital Trunked Radio Network" },
-       { 231, 0,       "Slovakia" },
+       { 231, -1,      "Slovakia" },
        { 231, 1,               "Orange" },
        { 231, 2,               "T-Mobile" },
        { 231, 3,               "Unient Communications" },
@@ -1227,21 +1227,21 @@ struct gsm_networks gsm_networks[] = {
        { 231, 5,               "Mobile Entertainment Company" },
        { 231, 6,               "O2" },
        { 231, 99,              "#SR" },
-       { 293, 0,       "Slovenia" },
+       { 293, -1,      "Slovenia" },
        { 293, 40,              "Si.mobil" },
        { 293, 41,              "Mobitel" },
        { 293, 64,              "T-2" },
        { 293, 70,              "Tu#mobil" },
-       { 540, 0,       "Solomon Islands" },
+       { 540, -1,      "Solomon Islands" },
        { 540, 1,               "BREEZE" },
-       { 637, 0,       "Somalia" },
+       { 637, -1,      "Somalia" },
        { 637, 1,               "Telesom" },
        { 637, 4,               "Somafone" },
        { 637, 10,              "Nationlink" },
        { 637, 25,              "Hormuud" },
        { 637, 30,              "Golis" },
        { 637, 82,              "Telcom" },
-       { 655, 0,       "South Africa" },
+       { 655, -1,      "South Africa" },
        { 655, 1,               "Vodacom" },
        { 655, 6,               "Sentech" },
        { 655, 7,               "Cell C" },
@@ -1254,7 +1254,7 @@ struct gsm_networks gsm_networks[] = {
        { 655, 32,              "Ilizwi Telecommunications" },
        { 655, 33,              "Thinta Thinta Telecommunications" },
        { 655, 2,               "Telkom" },
-       { 214, 0,       "Spain" },
+       { 214, -1,      "Spain" },
        { 214, 1,               "Vodafone" },
        { 214, 3,               "Orange" },
        { 214, 4,               "Yoigo" },
@@ -1271,23 +1271,23 @@ struct gsm_networks gsm_networks[] = {
        { 214, 21,              "Jazztel" },
        { 214, 22,              "DigiMobil" },
        { 214, 23,              "Barablu" },
-       { 413, 0,       "Sri Lanka" },
+       { 413, -1,      "Sri Lanka" },
        { 413, 1,               "Mobitel" },
        { 413, 2,               "Dialog" },
        { 413, 3,               "Etisalat" },
        { 413, 5,               "Airtel" },
        { 413, 8,               "Hutch" },
        { 413, 0,               "RTEC Mobile" },
-       { 634, 0,       "Sudan" },
+       { 634, -1,      "Sudan" },
        { 634, 1,               "Zain SD" },
        { 634, 2,               "MTN" },
        { 634, 0,               "Sudani One" },
        { 634, 5,               "Vivacell" },
-       { 746, 0,       "Suriname" },
+       { 746, -1,      "Suriname" },
        { 746, 5,               "Telesur" },
-       { 653, 0,       "Swaziland" },
+       { 653, -1,      "Swaziland" },
        { 653, 10,              "Swazi MTN" },
-       { 240, 0,       "Sweden" },
+       { 240, -1,      "Sweden" },
        { 240, 1,               "Telia" },
        { 240, 2,               "3" },
        { 240, 3,               "Ice.net" },
@@ -1308,7 +1308,7 @@ struct gsm_networks gsm_networks[] = {
        { 240, 20,              "Wireless Maingate Message Services" },
        { 240, 21,              "MobiSir" },
        { 240, 25,              "DigiTelMobile" },
-       { 228, 0,       "Switzerland" },
+       { 228, -1,      "Switzerland" },
        { 228, 1,               "Swisscom" },
        { 228, 2,               "Sunrise" },
        { 228, 3,               "Orange" },
@@ -1318,10 +1318,10 @@ struct gsm_networks gsm_networks[] = {
        { 228, 8,               "Tele2" },
        { 228, 50,              "3G Mobile AG" },
        { 228, 51,              "BebbiCell AG" },
-       { 417, 0,       "Syria" },
+       { 417, -1,      "Syria" },
        { 417, 1,               "Syriatel" },
        { 417, 2,               "MTN" },
-       { 466, 0,       "Taiwan" },
+       { 466, -1,      "Taiwan" },
        { 466, 1,               "FarEasTone" },
        { 466, 2,               "APTG" },
        { 466, 6,               "Tuntex" },
@@ -1332,19 +1332,19 @@ struct gsm_networks gsm_networks[] = {
        { 466, 93,              "MobiTai" },
        { 466, 97,              "Taiwan Mobile" },
        { 466, 99,              "TransAsia" },
-       { 436, 0,       "Tajikistan" },
+       { 436, -1,      "Tajikistan" },
        { 436, 1,               "Tcell" },
        { 436, 2,               "Indigo" },
        { 436, 3,               "MLT" },
        { 436, 4,               "Babilon-M" },
        { 436, 5,               "Beeline" },
-       { 640, 0,       "Tanzania" },
+       { 640, -1,      "Tanzania" },
        { 640, 6,               "SasaTel" },
        { 640, 2,               "tiGO" },
        { 640, 3,               "Zantel" },
        { 640, 4,               "Vodacom" },
        { 640, 5,               "Zain" },
-       { 520, 0,       "Thailand" },
+       { 520, -1,      "Thailand" },
        { 520, 0,               "Hutch" },
        { 520, 1,               "AIS" },
        { 520, 2,               "CAT CDMA" },
@@ -1355,41 +1355,41 @@ struct gsm_networks gsm_networks[] = {
        { 520, 23,              "AIS GSM 1800" },
        { 520, 99,              "True Move" },
        { 520, 0,               "WE PCT" },
-       { 615, 0,       "Togo" },
+       { 615, -1,      "Togo" },
        { 615, 1,               "Togo Cell" },
        { 615, 3,               "Moov" },
-       { 539, 0,       "Tonga" },
+       { 539, -1,      "Tonga" },
        { 539, 1,               "Tonga Communications Corporation" },
        { 539, 43,              "Shoreline Communication" },
        { 539, 88,              "Digicel" },
-       { 374, 0,       "Trinidad and Tobago" },
+       { 374, -1,      "Trinidad and Tobago" },
        { 374, 12,              "bmobile" },
        { 374, 13,              "Digicel" },
-       { 605, 0,       "Tunisia" },
+       { 605, -1,      "Tunisia" },
        { 605, 1,               "Orange" },
        { 605, 2,               "Tunicell" },
        { 605, 3,               "Tunisiana" },
-       { 286, 0,       "Turkey" },
+       { 286, -1,      "Turkey" },
        { 286, 1,               "Turkcell" },
        { 286, 2,               "Vodafone" },
        { 286, 3,               "Avea" },
        { 286, 4,               "Aycell" },
-       { 438, 0,       "Turkmenistan" },
+       { 438, -1,      "Turkmenistan" },
        { 438, 1,               "MTS" },
        { 438, 2,               "TM-Cell" },
-       { 376, 0,       "Turks and Caicos Islands" },
+       { 376, -1,      "Turks and Caicos Islands" },
        { 376, 350,             "C&W" },
        { 376, 352,             "Islandcom" },
        { 338, 5,               "Digicel" },
-       { 553, 0,       "Tuvalu" },
+       { 553, -1,      "Tuvalu" },
        { 553, 1,               "TTC" },
-       { 641, 0,       "Uganda" },
+       { 641, -1,      "Uganda" },
        { 641, 1,               "Zain" },
        { 641, 10,              "MTN" },
        { 641, 11,              "Uganda Telecom Ltd." },
        { 641, 22,              "Warid Telecom" },
        { 641, 14,              "Orange" },
-       { 255, 0,       "Ukraine" },
+       { 255, -1,      "Ukraine" },
        { 255, 1,               "MTS" },
        { 255, 2,               "Beeline" },
        { 255, 3,               "Kyivstar" },
@@ -1399,10 +1399,10 @@ struct gsm_networks gsm_networks[] = {
        { 255, 7,               "Ukrtelecom" },
        { 255, 21,              "PEOPLEnet" },
        { 255, 23,              "CDMA Ukraine" },
-       { 424, 0,       "United Arab Emirates" },
+       { 424, -1,      "United Arab Emirates" },
        { 424, 2,               "Etisalat" },
        { 424, 3,               "du" },
-       { 234, 0,       "United Kingdom" },
+       { 234, -1,      "United Kingdom" },
        { 234, 0,               "BT" },
        { 234, 1,               "UK01" },
        { 234, 2,               "O2" },
@@ -1431,7 +1431,7 @@ struct gsm_networks gsm_networks[] = {
        { 234, 58,              "Manx Telecom" },
        { 234, 75,              "Inquam" },
        { 234, 77,              "BT" },
-       { 200, 0,       "USA" },
+       { 200, -1,      "USA" },
        { 200, 53,              "Virgin Mobile US" },
        { 200, 54,              "Alltel US" },
        { 200, 66,              "U.S. Cellular" },
@@ -1552,28 +1552,28 @@ struct gsm_networks gsm_networks[] = {
        { 311, 210,             "Farmers Cellular" },
        { 316, 10,              "Nextel" },
        { 316, 11,              "Southern Communications Services" },
-       { 748, 0,       "Uruguay" },
+       { 748, -1,      "Uruguay" },
        { 748, 0,               "Ancel" },
        { 748, 1,               "Ancel" },
        { 748, 7,               "Movistar" },
        { 748, 10,              "Claro" },
-       { 434, 0,       "Uzbekistan" },
+       { 434, -1,      "Uzbekistan" },
        { 434, 1,               "Buztel" },
        { 434, 2,               "Uzmacom" },
        { 434, 4,               "Beeline" },
        { 434, 5,               "Ucell" },
        { 434, 6,               "Perfectum Mobile" },
        { 434, 7,               "MTS" },
-       { 541, 0,       "Vanuatu" },
+       { 541, -1,      "Vanuatu" },
        { 541, 1,               "SMILE" },
-       { 225, 0,       "Vatican" },
-       { 734, 0,       "Venezuela" },
+       { 225, -1,      "Vatican" },
+       { 734, -1,      "Venezuela" },
        { 734, 1,               "Digitel" },
        { 734, 2,               "Digitel" },
        { 734, 3,               "Digitel" },
        { 734, 4,               "movistar" },
        { 734, 6,               "Movilnet" },
-       { 452, 0,       "Vietnam" },
+       { 452, -1,      "Vietnam" },
        { 452, 1,               "MobiFone" },
        { 452, 2,               "Vinaphone" },
        { 452, 3,               "S-Fone" },
@@ -1581,20 +1581,20 @@ struct gsm_networks gsm_networks[] = {
        { 452, 5,               "Vietnamobile" },
        { 452, 6,               "E-Mobile" },
        { 452, 7,               "Beeline VN" },
-       { 421, 0,       "Yemen" },
+       { 421, -1,      "Yemen" },
        { 421, 1,               "SabaFon" },
        { 421, 2,               "MTN" },
        { 421, 3,               "Yemen Mobile" },
        { 421, 4,               "HiTS-UNITEL" },
-       { 645, 0,       "Zambia" },
+       { 645, -1,      "Zambia" },
        { 645, 1,               "Zain" },
        { 645, 2,               "MTN" },
        { 645, 3,               "ZAMTEL" },
-       { 648, 0,       "Zimbabwe" },
+       { 648, -1,      "Zimbabwe" },
        { 648, 1,               "Net*One" },
        { 648, 3,               "Telecel" },
        { 648, 4,               "Econet" },
-       { 901, 0,       "International" },
+       { 901, -1,      "International" },
        { 901, 1,               "ICO" },
        { 901, 2,               "Sense Communications International" },
        { 901, 3,               "Iridium" },
@@ -1625,7 +1625,7 @@ const char *gsm_get_mcc(uint16_t mcc)
        static char unknown[4] = "000";
 
        for (i = 0; gsm_networks[i].name; i++)
-               if (!gsm_networks[i].mnc && gsm_networks[i].mcc == mcc)
+               if (gsm_networks[i].mnc < 0 && gsm_networks[i].mcc == mcc)
                        return gsm_networks[i].name;
 
        snprintf(unknown, 3, "%03d", mcc);