From ee4410a4f312d927dc8b4901c71c52436c18ca4a Mon Sep 17 00:00:00 2001 From: "Harald Welte (local)" Date: Mon, 17 Aug 2009 09:39:55 +0200 Subject: actual code running at end of har2009 --- openbsc/src/bsc_hack.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'openbsc/src/bsc_hack.c') diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 47f53cd07..9945aa9c9 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -930,6 +930,8 @@ static void patch_si_tables(struct gsm_bts *bts) (struct gsm48_system_information_type_3*)&si3; struct gsm48_system_information_type_4 *type_4 = (struct gsm48_system_information_type_4*)&si4; + struct gsm48_system_information_type_5 *type_5 = + (struct gsm48_system_information_type_5*)&si5; struct gsm48_system_information_type_6 *type_6 = (struct gsm48_system_information_type_6*)&si6; struct gsm48_loc_area_id lai; @@ -969,6 +971,17 @@ static void patch_si_tables(struct gsm_bts *bts) type_3->rach_control.cell_bar = 0; type_4->rach_control.cell_bar = 0; } + + /* FIXME: This is just for HAR */ + if (bts->c0->arfcn == 121) { + /* this is setting pin 124 */ + type_2->bcch_frequency_list[0] = 0x08; + type_5->bcch_frequency_list[0] = 0x08; + } else if (bts->c0->arfcn == 124) { + /* this is setting pin 121 */ + type_2->bcch_frequency_list[0] = 0x01; + type_5->bcch_frequency_list[0] = 0x01; + } } -- cgit v1.2.3