om2000: Add support for querying RBS capabilities
Change-Id: Id1fbaf41286f3651ce8f210eb8da05fb51179c96
This commit is contained in:
parent
46edbc4162
commit
4579978983
|
@ -77,6 +77,7 @@ int abis_om2k_tx_disable_req(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);
|
||||
int abis_om2k_tx_cap_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo);
|
||||
int abis_om2k_tx_is_conf_req(struct gsm_bts *bts);
|
||||
int abis_om2k_tx_tf_conf_req(struct gsm_bts *bts);
|
||||
int abis_om2k_tx_rx_conf_req(struct gsm_bts_trx *trx);
|
||||
|
|
|
@ -190,6 +190,13 @@ enum abis_om2k_msgtype {
|
|||
OM2K_MSGT_TX_CONF_RES_NACK = 0x00b5,
|
||||
OM2K_MSGT_TX_CONF_RES = 0x00b6,
|
||||
|
||||
OM2K_MSGT_CAPA_REQ = 0x00e8,
|
||||
OM2K_MSGT_CAPA_REQ_ACK = 0x00ea,
|
||||
OM2K_MSGT_CAPA_REQ_REJ = 0x00eb,
|
||||
OM2K_MSGT_CAPA_RES = 0x00ee,
|
||||
OM2K_MSGT_CAPA_RES_ACK = 0x00ec,
|
||||
OM2K_MSGT_CAPA_RES_NACK = 0x00ed,
|
||||
|
||||
OM2K_MSGT_NEGOT_REQ_ACK = 0x0104,
|
||||
OM2K_MSGT_NEGOT_REQ_NACK = 0x0105,
|
||||
OM2K_MSGT_NEGOT_REQ = 0x0106,
|
||||
|
@ -1067,6 +1074,11 @@ int abis_om2k_tx_op_info(struct gsm_bts *bts, const struct abis_om2k_mo *mo,
|
|||
return abis_om2k_sendmsg(bts, msg);
|
||||
}
|
||||
|
||||
int abis_om2k_tx_cap_req(struct gsm_bts *bts, const struct abis_om2k_mo *mo)
|
||||
{
|
||||
return abis_om2k_tx_simple(bts, mo, OM2K_MSGT_CAPA_REQ);
|
||||
}
|
||||
|
||||
static void om2k_fill_is_conn_grp(struct om2k_is_conn_grp *grp, uint16_t icp1,
|
||||
uint16_t icp2, uint8_t cont_idx)
|
||||
{
|
||||
|
@ -2439,6 +2451,9 @@ int abis_om2k_rcvmsg(struct msgb *msg)
|
|||
case OM2K_MSGT_TEST_RES:
|
||||
rc = abis_om2k_tx_simple(bts, &o2h->mo, OM2K_MSGT_TEST_RES_ACK);
|
||||
break;
|
||||
case OM2K_MSGT_CAPA_RES:
|
||||
rc = abis_om2k_tx_simple(bts, &o2h->mo, OM2K_MSGT_CAPA_RES_ACK);
|
||||
break;
|
||||
/* ERrors */
|
||||
case OM2K_MSGT_START_REQ_REJ:
|
||||
case OM2K_MSGT_CONNECT_REJ:
|
||||
|
|
|
@ -236,6 +236,17 @@ DEFUN(om2k_test, om2k_test_cmd,
|
|||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
DEFUN(om2k_cap_req, om2k_cap_req_cmd,
|
||||
"capabilities-request",
|
||||
"Request MO capabilities\n")
|
||||
{
|
||||
struct oml_node_state *oms = vty->index;
|
||||
|
||||
abis_om2k_tx_cap_req(oms->bts, &oms->mo);
|
||||
return CMD_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
struct con_conn_group {
|
||||
struct llist_head list;
|
||||
|
||||
|
@ -455,6 +466,7 @@ int abis_om2k_vty_init(void)
|
|||
install_element(OM2K_NODE, &om2k_disable_cmd);
|
||||
install_element(OM2K_NODE, &om2k_op_info_cmd);
|
||||
install_element(OM2K_NODE, &om2k_test_cmd);
|
||||
install_element(OM2K_NODE, &om2k_cap_req_cmd);
|
||||
install_element(OM2K_NODE, &om2k_conf_req_cmd);
|
||||
install_element(OM2K_NODE, &om2k_con_list_dec_cmd);
|
||||
install_element(OM2K_NODE, &om2k_con_list_tei_cmd);
|
||||
|
|
Loading…
Reference in New Issue