aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/openbsc/abis_nm.h4
-rw-r--r--src/abis_nm.c11
-rw-r--r--src/bs11_config.c4
3 files changed, 11 insertions, 8 deletions
diff --git a/include/openbsc/abis_nm.h b/include/openbsc/abis_nm.h
index e46f313ea..1e59a4446 100644
--- a/include/openbsc/abis_nm.h
+++ b/include/openbsc/abis_nm.h
@@ -190,8 +190,8 @@ enum abis_nm_msgtype {
NM_MT_BS11_GET_STATE = 0xe3,
NM_MT_BS11_GET_STATE_ACK,
- NM_MT_BS11_FACTORY_LOGON = 0xe5,
- NM_MT_BS11_FACTORY_LOGON_ACK,
+ NM_MT_BS11_LMT_LOGON = 0xe5,
+ NM_MT_BS11_LMT_LOGON_ACK,
NM_MT_BS11_RESTART = 0xe7,
NM_MT_BS11_RESTART_ACK,
NM_MT_BS11_DISCONNECT = 0xe9,
diff --git a/src/abis_nm.c b/src/abis_nm.c
index 77a329397..2cff36ffc 100644
--- a/src/abis_nm.c
+++ b/src/abis_nm.c
@@ -882,11 +882,14 @@ int abis_nm_bs11_factory_logon(struct gsm_bts *bts, int on)
if (on) {
u_int8_t len = 3*2 + sizeof(bs11_logon_c7)
+ sizeof(bs11_logon_c8) + sizeof(bs11_logon_c9);
- fill_om_fom_hdr(oh, len, NM_MT_BS11_FACTORY_LOGON,
+ fill_om_fom_hdr(oh, len, NM_MT_BS11_LMT_LOGON,
NM_OC_BS11_A3, 0xff, 0xff, 0xff);
- msgb_tlv_put(msg, 0xc7, sizeof(bs11_logon_c7), bs11_logon_c7);
- msgb_tlv_put(msg, 0xc8, sizeof(bs11_logon_c8), bs11_logon_c8);
- msgb_tlv_put(msg, 0xc9, sizeof(bs11_logon_c9), bs11_logon_c9);
+ msgb_tlv_put(msg, NM_ATT_BS11_LMT_LOGIN_TIME,
+ sizeof(bs11_logon_c7), bs11_logon_c7);
+ msgb_tlv_put(msg, NM_ATT_BS11_LMT_USER_ACC_LEV,
+ sizeof(bs11_logon_c8), bs11_logon_c8);
+ msgb_tlv_put(msg, NM_ATT_BS11_LMT_USER_NAME,
+ sizeof(bs11_logon_c9), bs11_logon_c9);
} else {
fill_om_fom_hdr(oh, 0, NM_MT_BS11_LOGOFF,
NM_OC_BS11_A3, 0xff, 0xff, 0xff);
diff --git a/src/bs11_config.c b/src/bs11_config.c
index cdcd939c1..457e90f08 100644
--- a/src/bs11_config.c
+++ b/src/bs11_config.c
@@ -373,8 +373,8 @@ static int handle_serial_msg(struct msgb *rx_msg)
oh = (struct abis_om_hdr *) msgb_l2(rx_msg);
foh = (struct abis_om_fom_hdr *) oh->data;
switch (foh->msg_type) {
- case NM_MT_BS11_FACTORY_LOGON_ACK:
- printf("FACTORY LOGON: ACK\n");
+ case NM_MT_BS11_LMT_LOGON_ACK:
+ printf("LMT LOGON: ACK\n");
if (bs11cfg_state == STATE_NONE)
bs11cfg_state = STATE_LOGON_ACK;
rc = 0;