summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/include
diff options
context:
space:
mode:
authorAndreas Eversberg2011-07-17 09:09:32 +0200
committerAndreas Eversberg2011-07-17 09:09:32 +0200
commite91dfa950e85d12cb35765670762906bbc6f0846 (patch)
treea2aa62c39e11b555113a69953c00adb551d17d8b /src/host/layer23/include
parenttpu_window: Fix int16_t overflow in tpu_window calculation (diff)
downloadosmocom-e91dfa950e85d12cb35765670762906bbc6f0846.tar.gz
osmocom-e91dfa950e85d12cb35765670762906bbc6f0846.tar.xz
osmocom-e91dfa950e85d12cb35765670762906bbc6f0846.zip
[layer23] Fixed handling of channel 0 in certain loops
The ARFC counts from 1 to 1023, and then to 0. The index of these loops count from 1 to 1024. The index 1024 stands for ARFCN 0. This also reverses commit eb77945e162ae1968242009372e448b7af51ea50.
Diffstat (limited to 'src/host/layer23/include')
-rw-r--r--src/host/layer23/include/osmocom/bb/common/sysinfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/sysinfo.h b/src/host/layer23/include/osmocom/bb/common/sysinfo.h
index 6c8d37c..0498e91 100644
--- a/src/host/layer23/include/osmocom/bb/common/sysinfo.h
+++ b/src/host/layer23/include/osmocom/bb/common/sysinfo.h
@@ -35,7 +35,7 @@ struct gsm48_sysinfo {
uint8_t si5t_msg[18];
uint8_t si6_msg[18];
- struct gsm_sysinfo_freq freq[1024+1]; /* all frequencies */
+ struct gsm_sysinfo_freq freq[1024]; /* all frequencies */
uint16_t hopping[64]; /* hopping arfcn */
uint8_t hopp_len;