aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_04_08.h
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2009-09-27 11:10:17 +0200
committerHarald Welte <laforge@gnumonks.org>2009-09-27 11:10:17 +0200
commit849f554c87174ea465c18b93104f67fb516c0c2f (patch)
treef683b68185817c2964c765c0330266dcde98528b /openbsc/include/openbsc/gsm_04_08.h
parent59d284e8cf210bb6976177310f0293db65b561ac (diff)
[gsm_04_08] Fix gsm48_tx_mm_auth_req implementation
It was mainly missing the key_seq field, causing the command to just be rejected by the ME. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'openbsc/include/openbsc/gsm_04_08.h')
-rw-r--r--openbsc/include/openbsc/gsm_04_08.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/gsm_04_08.h b/openbsc/include/openbsc/gsm_04_08.h
index 6f367864f..185d7606c 100644
--- a/openbsc/include/openbsc/gsm_04_08.h
+++ b/openbsc/include/openbsc/gsm_04_08.h
@@ -78,6 +78,13 @@ struct gsm48_loc_area_id {
u_int16_t lac;
} __attribute__ ((packed));
+/* Section 9.2.2 */
+struct gsm48_auth_req {
+ u_int8_t key_seq:4,
+ spare:4;
+ u_int8_t rand[16];
+} __attribute__ ((packed));
+
/* Section 9.2.15 */
struct gsm48_loc_upd_req {
u_int8_t type:4,