aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-17 09:39:55 +0200
committerHarald Welte (local) <laflocal@hanuman.gnumonks.org>2009-08-17 09:39:55 +0200
commitee4410a4f312d927dc8b4901c71c52436c18ca4a (patch)
treeef1fe06efb62355c9a9e22dafd2ec9b75cf72e68 /openbsc/src/bsc_hack.c
parentb8afe81e96a5b3ce3681482b8484788fbeb921d9 (diff)
actual code running at end of har2009
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r--openbsc/src/bsc_hack.c13
1 files changed, 13 insertions, 0 deletions
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;
+ }
}