OM2000: Add support for sending the TEST REQUEST message
This commit is contained in:
parent
8d4a472cc4
commit
8024d8ff58
|
@ -40,6 +40,7 @@ int abis_om2k_tx_start_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
|||
int abis_om2k_tx_status_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
||||
int abis_om2k_tx_connect_cmd(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
||||
int abis_om2k_tx_disconnect_cmd(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
||||
int abis_om2k_tx_test_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
||||
int abis_om2k_tx_op_info(struct gsm_bts *bts, const struct abis_om2k_mo *mo,
|
||||
uint8_t operational);
|
||||
|
||||
|
|
|
@ -108,6 +108,13 @@ enum abis_om2k_msgtype {
|
|||
OM2K_MSGT_STATUS_RESP = 0x008e,
|
||||
OM2K_MSGT_STATUS_REJ = 0x008f,
|
||||
|
||||
OM2K_MSGT_TEST_REQ = 0x0094,
|
||||
OM2K_MSGT_TEST_REQ_ACK = 0x0096,
|
||||
OM2K_MSGT_TEST_REQ_REJ = 0x0097,
|
||||
OM2K_MSGT_TEST_RES_ACK = 0x0098,
|
||||
OM2K_MSGT_TEST_RES_NACK = 0x0099,
|
||||
OM2K_MSGT_TEST_RES = 0x009a,
|
||||
|
||||
OM2K_MSGT_NEGOT_REQ_ACK = 0x0104,
|
||||
OM2K_MSGT_NEGOT_REQ_NACK = 0x0105,
|
||||
OM2K_MSGT_NEGOT_REQ = 0x0106,
|
||||
|
@ -556,6 +563,11 @@ int abis_om2k_tx_disconnect_cmd(struct gsm_bts *bts, const struct abis_om2k_mo *
|
|||
return abis_om2k_tx_simple(bts, mo, OM2K_MSGT_DISCONNECT_CMD);
|
||||
}
|
||||
|
||||
int abis_om2k_tx_test_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
|
||||
{
|
||||
return abis_om2k_tx_simple(bts, mo, OM2K_MSGT_TEST_REQ);
|
||||
}
|
||||
|
||||
int abis_om2k_tx_op_info(struct gsm_bts *bts, const struct abis_om2k_mo *mo,
|
||||
uint8_t operational)
|
||||
{
|
||||
|
|
|
@ -197,6 +197,16 @@ DEFUN(om2k_op_info, om2k_op_info_cmd,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(om2k_test, om2k_test_cmd,
|
||||
"test-request",
|
||||
"Test the MO\n")
|
||||
{
|
||||
struct oml_node_state *oms = vty->index;
|
||||
|
||||
abis_om2k_tx_test_req(oms->bts, &oms->mo);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
int abis_om2k_vty_init(void)
|
||||
{
|
||||
|
@ -212,6 +222,7 @@ int abis_om2k_vty_init(void)
|
|||
install_element(OM2K_NODE, &om2k_connect_cmd);
|
||||
install_element(OM2K_NODE, &om2k_disconnect_cmd);
|
||||
install_element(OM2K_NODE, &om2k_op_info_cmd);
|
||||
install_element(OM2K_NODE, &om2k_test_cmd);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue