* add network name information to GSM network

* disable callbacks for now
This commit is contained in:
Harald Welte 2008-12-30 18:00:15 +00:00
parent db253af1aa
commit f5cbab7478
1 changed files with 7 additions and 1 deletions

View File

@ -641,14 +641,18 @@ static int bootstrap_network(void)
gsmnet = gsm_network_init(1, MCC, MNC);
if (!gsmnet)
return -ENOMEM;
gsmnet->name_short = "25C3";
gsmnet->name_long = "25C3 GSM";
bts = &gsmnet->bts[0];
bts->location_area_code = 1;
bts->trx[0].arfcn = HARDCODED_ARFCN;
#if 0
gsmnet->update_request = bsc_hack_update_request;
gsmnet->channel_allocated = bsc_hack_channel_allocated;
gsmnet->channel_response = bsc_hack_channel_response;
gsmnet->call_state_changed = bsc_hack_call_state_changed;
#endif
if (mi_setup(bts, 0, mi_cb) < 0)
return -EIO;
@ -782,6 +786,8 @@ static void pag_timer_cb(void *data)
u_int8_t mi[128];
unsigned int mi_len;
return 0;
if (llist_empty(&pending_stations)) {
DEBUGP(DPAG, "pag_timer_cb but no pending mobile stations\n");
return;