mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
[misc] Remove spaces, fix indention.
This commit is contained in:
@@ -494,7 +494,7 @@ int nm_state_event(enum nm_evt evt, u_int8_t obj_class, void *obj,
|
|||||||
bts = nsvc->bts;
|
bts = nsvc->bts;
|
||||||
if (bts->gprs.mode == BTS_GPRS_NONE)
|
if (bts->gprs.mode == BTS_GPRS_NONE)
|
||||||
break;
|
break;
|
||||||
/* We skip NSVC1 since we only use NSVC0 */
|
/* We skip NSVC1 since we only use NSVC0 */
|
||||||
if (nsvc->id == 1)
|
if (nsvc->id == 1)
|
||||||
break;
|
break;
|
||||||
if (new_state->availability == NM_AVSTATE_OFF_LINE) {
|
if (new_state->availability == NM_AVSTATE_OFF_LINE) {
|
||||||
@@ -1014,9 +1014,9 @@ static int bootstrap_bts(struct gsm_bts *bts)
|
|||||||
/* Control Channel Description */
|
/* Control Channel Description */
|
||||||
bts->si_common.chan_desc.att = 1;
|
bts->si_common.chan_desc.att = 1;
|
||||||
bts->si_common.chan_desc.bs_pa_mfrms = RSL_BS_PA_MFRMS_5;
|
bts->si_common.chan_desc.bs_pa_mfrms = RSL_BS_PA_MFRMS_5;
|
||||||
/* T3212 is set from vty/config */
|
/* T3212 is set from vty/config */
|
||||||
|
|
||||||
/* Set ccch config by looking at ts config */
|
/* Set ccch config by looking at ts config */
|
||||||
for (n=0, i=0; i<8; i++)
|
for (n=0, i=0; i<8; i++)
|
||||||
n += bts->c0->ts[i].pchan == GSM_PCHAN_CCCH ? 1 : 0;
|
n += bts->c0->ts[i].pchan == GSM_PCHAN_CCCH ? 1 : 0;
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ static int rtp_data_cb(struct bsc_fd *fd, unsigned int what)
|
|||||||
*/
|
*/
|
||||||
#warning "Slight spec violation. With connection mode recvonly we should attempt to forward."
|
#warning "Slight spec violation. With connection mode recvonly we should attempt to forward."
|
||||||
dest = memcmp(&addr.sin_addr, &endp->remote, sizeof(addr.sin_addr)) == 0 &&
|
dest = memcmp(&addr.sin_addr, &endp->remote, sizeof(addr.sin_addr)) == 0 &&
|
||||||
(endp->net_rtp == addr.sin_port || endp->net_rtcp == addr.sin_port)
|
(endp->net_rtp == addr.sin_port || endp->net_rtcp == addr.sin_port)
|
||||||
? DEST_BTS : DEST_NETWORK;
|
? DEST_BTS : DEST_NETWORK;
|
||||||
proto = fd == &endp->local_rtp ? PROTO_RTP : PROTO_RTCP;
|
proto = fd == &endp->local_rtp ? PROTO_RTP : PROTO_RTCP;
|
||||||
|
|
||||||
|
|||||||
@@ -286,8 +286,8 @@ int mgcp_parse_config(const char *config_file, struct mgcp_config *cfg)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* This application supports two modes.
|
* This application supports two modes.
|
||||||
* 1.) a true MGCP gateway with support for AUEP, CRCX, MDCX, DLCX
|
* 1.) a true MGCP gateway with support for AUEP, CRCX, MDCX, DLCX
|
||||||
* 2.) plain forwarding of RTP packets on the endpoints.
|
* 2.) plain forwarding of RTP packets on the endpoints.
|
||||||
* both modes are mutual exclusive
|
* both modes are mutual exclusive
|
||||||
*/
|
*/
|
||||||
if (g_cfg->forward_ip) {
|
if (g_cfg->forward_ip) {
|
||||||
|
|||||||
@@ -381,7 +381,7 @@ void paging_request_stop(struct gsm_bts *_bts, struct gsm_subscriber *subscr,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
/* Stop paging */
|
/* Stop paging */
|
||||||
if (bts != _bts)
|
if (bts != _bts)
|
||||||
_paging_request_stop(bts, subscr, NULL);
|
_paging_request_stop(bts, subscr, NULL);
|
||||||
} while (1);
|
} while (1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user