diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-29 22:37:51 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-11-30 22:45:42 +0100 |
commit | c036b79918dbeb2baefff177be51dfdd9dac1588 (patch) | |
tree | 86dbac47aa1a05ffe3f0bf5341664c92a98ba300 /src/libmsc/gsm_04_14.c | |
parent | d03e7289156f1b54926a5a63ce97a3ef954f0c9d (diff) |
rename gsm_subscriber_connection to ran_conn
In preparation for inter-BSC and inter-MSC handover, we need to separate the
subscriber management logic from the actual RAN connections. What better time
to finally rename gsm_subscriber_connection.
* Name choice:
In 2G, this is a connection to the BSS, but even though 3GPP TS commonly talk
of "BSS-A" and "BSS-B" when explaining handover, it's not good to call it
"bss_conn": in 3G a BSS is called RNS, IIUC.
The overall term for 2G (GERAN) and 3G (UTRAN) is RAN: Radio Access Network.
* Rationale:
A subscriber in the MSC so far has only one RAN connection, but e.g. for
inter-BSC handover, a second one needs to be created to handover to. Most of
the items in the former gsm_subscriber_connection are actually related to the
RAN, with only a few MM and RTP related items. So, as a first step, just rename
it to ran_conn, to cosmetically prepare for moving the not strictly RAN related
items away later.
Also:
- Rename some functions from msc_subscr_conn_* to ran_conn_*
- Rename "Subscr_Conn" FSM instance name to "RAN_conn"
- Rename SUBSCR_CONN_* to RAN_CONN_*
Change-Id: Ic595f7a558d3553c067f77dc67543ab59659707a
Diffstat (limited to 'src/libmsc/gsm_04_14.c')
-rw-r--r-- | src/libmsc/gsm_04_14.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/libmsc/gsm_04_14.c b/src/libmsc/gsm_04_14.c index 2be534c94..8fe03a88b 100644 --- a/src/libmsc/gsm_04_14.c +++ b/src/libmsc/gsm_04_14.c @@ -51,12 +51,12 @@ static struct msgb *create_gsm0414_msg(uint8_t msg_type) return msg; } -static int gsm0414_conn_sendmsg(struct gsm_subscriber_connection *conn, struct msgb *msg) +static int gsm0414_conn_sendmsg(struct ran_conn *conn, struct msgb *msg) { return msc_tx_dtap(conn, msg); } -static int gsm0414_tx_simple(struct gsm_subscriber_connection *conn, uint8_t msg_type) +static int gsm0414_tx_simple(struct ran_conn *conn, uint8_t msg_type) { struct msgb *msg = create_gsm0414_msg(msg_type); @@ -65,7 +65,7 @@ static int gsm0414_tx_simple(struct gsm_subscriber_connection *conn, uint8_t msg /* Send a CLOSE_TCH_LOOOP_CMD according to Section 8.1 */ -int gsm0414_tx_close_tch_loop_cmd(struct gsm_subscriber_connection *conn, +int gsm0414_tx_close_tch_loop_cmd(struct ran_conn *conn, enum gsm414_tch_loop_mode loop_mode) { struct msgb *msg = create_gsm0414_msg(GSM414_MT_CLOSE_TCH_LOOP_CMD); @@ -78,25 +78,25 @@ int gsm0414_tx_close_tch_loop_cmd(struct gsm_subscriber_connection *conn, } /* Send a OPEN_LOOP_CMD according to Section 8.3 */ -int gsm0414_tx_open_loop_cmd(struct gsm_subscriber_connection *conn) +int gsm0414_tx_open_loop_cmd(struct ran_conn *conn) { return gsm0414_tx_simple(conn, GSM414_MT_OPEN_LOOP_CMD); } /* Send a ACT_EMMI_CMD according to Section 8.8 */ -int gsm0414_tx_act_emmi_cmd(struct gsm_subscriber_connection *conn) +int gsm0414_tx_act_emmi_cmd(struct ran_conn *conn) { return gsm0414_tx_simple(conn, GSM414_MT_ACT_EMMI_CMD); } /* Send a DEACT_EMMI_CMD according to Section 8.10 */ -int gsm0414_tx_deact_emmi_cmd(struct gsm_subscriber_connection *conn) +int gsm0414_tx_deact_emmi_cmd(struct ran_conn *conn) { return gsm0414_tx_simple(conn, GSM414_MT_DEACT_EMMI_CMD); } /* Send a TEST_INTERFACE according to Section 8.11 */ -int gsm0414_tx_test_interface(struct gsm_subscriber_connection *conn, +int gsm0414_tx_test_interface(struct ran_conn *conn, uint8_t tested_devs) { struct msgb *msg = create_gsm0414_msg(GSM414_MT_TEST_INTERFACE); @@ -105,7 +105,7 @@ int gsm0414_tx_test_interface(struct gsm_subscriber_connection *conn, } /* Send a RESET_MS_POSITION_STORED according to Section 8.11 */ -int gsm0414_tx_reset_ms_pos_store(struct gsm_subscriber_connection *conn, +int gsm0414_tx_reset_ms_pos_store(struct ran_conn *conn, uint8_t technology) { struct msgb *msg = create_gsm0414_msg(GSM414_MT_RESET_MS_POS_STORED); @@ -116,7 +116,7 @@ int gsm0414_tx_reset_ms_pos_store(struct gsm_subscriber_connection *conn, /* Entry point for incoming GSM48_PDISC_TEST received from MS */ -int gsm0414_rcv_test(struct gsm_subscriber_connection *conn, +int gsm0414_rcv_test(struct ran_conn *conn, struct msgb *msg) { struct gsm48_hdr *gh = msgb_l3(msg); |