aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmo-bts/gsm_data.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-04-19 09:35:03 +0200
committerHarald Welte <laforge@gnumonks.org>2012-04-19 09:35:03 +0200
commitb03f8ae4f05b16997c3db5ed9454672a0d18e679 (patch)
tree6cb7c72d105387906241088fc52ef8f7c6179e33 /include/osmo-bts/gsm_data.h
parentd9ab45d1aac21c761c461659e2179d1077b5b7a5 (diff)
ciphering: Better state tracking and HACK around L1 race condition
We now check if the received message is an LAPDm I frame in order to determine if we have received the first valid encrypted message on the radio link. This relates to the fact that we often see 'old' UI frames coming up from L1, even after it has confirmed decryption has been enabled.
Diffstat (limited to 'include/osmo-bts/gsm_data.h')
-rw-r--r--include/osmo-bts/gsm_data.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/osmo-bts/gsm_data.h b/include/osmo-bts/gsm_data.h
index 54f7ae9a..b6eab7a9 100644
--- a/include/osmo-bts/gsm_data.h
+++ b/include/osmo-bts/gsm_data.h
@@ -50,6 +50,14 @@ struct gsm_bts_role_bts {
} support;
};
+enum lchan_ciph_state {
+ LCHAN_CIPH_NONE,
+ LCHAN_CIPH_RX_REQ,
+ LCHAN_CIPH_RX_CONF,
+ LCHAN_CIPH_TXRX_REQ,
+ LCHAN_CIPH_TXRX_CONF,
+};
+
#define bts_role_bts(x) ((struct gsm_bts_role_bts *)(x)->role)
#include "../../openbsc/openbsc/include/openbsc/gsm_data_shared.h"