summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-07-08 18:30:56 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-11-19 17:35:07 +0700
commitc457cbf712dbbcdfd2e63a713591f041f531d3fc (patch)
treec6447835d5c2b0517a5376c052dc0e7ebeac7295 /src/host/trxcon/trxcon.c
parent705fedceebc116402f8a6ae67480c994ed745593 (diff)
host/trxcon: handle L1CTL_FBSB_REQ inside l1ctl.c
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index de69db19..9bc98e55 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -74,31 +74,6 @@ static struct {
void *tall_trx_ctx = NULL;
struct osmo_fsm_inst *trxcon_fsm;
-static void trxcon_handle_fbsb_req(struct l1ctl_fbsb_req *req)
-{
- uint16_t band_arfcn;
-
- /* Reset L1 */
- sched_trx_reset(app_data.trx);
-
- /* Configure a single timeslot */
- if (req->ccch_mode == CCCH_MODE_COMBINED)
- sched_trx_configure_ts(app_data.trx, 0, GSM_PCHAN_CCCH_SDCCH4);
- else
- sched_trx_configure_ts(app_data.trx, 0, GSM_PCHAN_CCCH);
-
- /* Store current ARFCN */
- band_arfcn = ntohs(req->band_arfcn);
- app_data.trx->band_arfcn = band_arfcn;
-
- /* Tune transceiver to required ARFCN */
- trx_if_cmd_rxtune(app_data.trx, band_arfcn);
- trx_if_cmd_txtune(app_data.trx, band_arfcn);
- trx_if_cmd_poweron(app_data.trx);
-
- talloc_free(req);
-}
-
static void trxcon_fsm_idle_action(struct osmo_fsm_inst *fi,
uint32_t event, void *data)
{
@@ -127,9 +102,6 @@ static void trxcon_fsm_managed_action(struct osmo_fsm_inst *fi,
/* TODO: send proper reset type */
l1ctl_tx_reset_conf(app_data.l1l, L1CTL_RES_T_BOOT);
break;
- case L1CTL_EVENT_FBSB_REQ:
- trxcon_handle_fbsb_req((struct l1ctl_fbsb_req *) data);
- break;
case SCH_EVENT_DATA:
l1ctl_tx_data_ind(app_data.l1l, (struct l1ctl_info_dl *) data);
case TRX_EVENT_RSP_ERROR:
@@ -153,7 +125,6 @@ static struct osmo_fsm_state trxcon_fsm_states[] = {
[TRXCON_STATE_MANAGED] = {
.in_event_mask = (
GEN_MASK(L1CTL_EVENT_DISCONNECT) |
- GEN_MASK(L1CTL_EVENT_FBSB_REQ) |
GEN_MASK(L1CTL_EVENT_RESET_REQ) |
GEN_MASK(TRX_EVENT_RESET_IND) |
GEN_MASK(TRX_EVENT_RSP_ERROR) |