fixeria has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmocom-bb/+/28859 )
Change subject: trxcon: cosmetic: rename TRXCON_EV_{SET->PHY}_CONFIG_REQ
......................................................................
trxcon: cosmetic: rename TRXCON_EV_{SET->PHY}_CONFIG_REQ
Change-Id: Ib70ff0352b6fcb045d0f49535dfb0d273856f3c3
---
M src/host/trxcon/include/osmocom/bb/trxcon/trxcon.h
M src/host/trxcon/src/l1ctl.c
M src/host/trxcon/src/trxcon_fsm.c
3 files changed, 9 insertions(+), 9 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/59/28859/1
diff --git a/src/host/trxcon/include/osmocom/bb/trxcon/trxcon.h
b/src/host/trxcon/include/osmocom/bb/trxcon/trxcon.h
index 69ac01e..dadd42d 100644
--- a/src/host/trxcon/include/osmocom/bb/trxcon/trxcon.h
+++ b/src/host/trxcon/include/osmocom/bb/trxcon/trxcon.h
@@ -23,7 +23,7 @@
TRXCON_EV_FBSB_SEARCH_RES,
TRXCON_EV_SET_CCCH_MODE_REQ,
TRXCON_EV_SET_TCH_MODE_REQ,
- TRXCON_EV_SET_CONFIG_REQ,
+ TRXCON_EV_PHY_CONFIG_REQ,
TRXCON_EV_TX_ACCESS_BURST_REQ,
TRXCON_EV_DEDICATED_ESTABLISH_REQ,
TRXCON_EV_DEDICATED_RELEASE_REQ,
@@ -60,8 +60,8 @@
bool applied;
};
-/* param of TRXCON_EV_SET_CONFIG_REQ */
-struct trxcon_param_set_config_req {
+/* param of TRXCON_EV_PHY_CONFIG_REQ */
+struct trxcon_param_phy_config_req {
uint8_t timing_advance;
uint8_t tx_power;
};
diff --git a/src/host/trxcon/src/l1ctl.c b/src/host/trxcon/src/l1ctl.c
index 5f95e1c..af1ff77 100644
--- a/src/host/trxcon/src/l1ctl.c
+++ b/src/host/trxcon/src/l1ctl.c
@@ -666,12 +666,12 @@
"Received L1CTL_PARAM_REQ (ta=%d, tx_power=%u)\n",
par_req->ta, par_req->tx_power);
- struct trxcon_param_set_config_req req = {
+ struct trxcon_param_phy_config_req req = {
.timing_advance = par_req->ta,
.tx_power = par_req->tx_power,
};
- osmo_fsm_inst_dispatch(trxcon->fi, TRXCON_EV_SET_CONFIG_REQ, &req);
+ osmo_fsm_inst_dispatch(trxcon->fi, TRXCON_EV_PHY_CONFIG_REQ, &req);
msgb_free(msg);
return 0;
diff --git a/src/host/trxcon/src/trxcon_fsm.c b/src/host/trxcon/src/trxcon_fsm.c
index 5329a92..ad86b95 100644
--- a/src/host/trxcon/src/trxcon_fsm.c
+++ b/src/host/trxcon/src/trxcon_fsm.c
@@ -61,9 +61,9 @@
case TRXCON_EV_RESET_SCHED_REQ:
l1sched_reset(trxcon->sched, false);
break;
- case TRXCON_EV_SET_CONFIG_REQ:
+ case TRXCON_EV_PHY_CONFIG_REQ:
{
- const struct trxcon_param_set_config_req *req = data;
+ const struct trxcon_param_phy_config_req *req = data;
if (trxcon->l1p.ta != req->timing_advance)
trx_if_cmd_setta(trxcon->phyif, req->timing_advance);
@@ -449,7 +449,7 @@
OSMO_VALUE_STRING(TRXCON_EV_FBSB_SEARCH_RES),
OSMO_VALUE_STRING(TRXCON_EV_SET_CCCH_MODE_REQ),
OSMO_VALUE_STRING(TRXCON_EV_SET_TCH_MODE_REQ),
- OSMO_VALUE_STRING(TRXCON_EV_SET_CONFIG_REQ),
+ OSMO_VALUE_STRING(TRXCON_EV_PHY_CONFIG_REQ),
OSMO_VALUE_STRING(TRXCON_EV_TX_ACCESS_BURST_REQ),
OSMO_VALUE_STRING(TRXCON_EV_DEDICATED_ESTABLISH_REQ),
OSMO_VALUE_STRING(TRXCON_EV_DEDICATED_RELEASE_REQ),
@@ -471,7 +471,7 @@
| S(TRXCON_EV_L2IF_FAILURE)
| S(TRXCON_EV_RESET_FULL_REQ)
| S(TRXCON_EV_RESET_SCHED_REQ)
- | S(TRXCON_EV_SET_CONFIG_REQ),
+ | S(TRXCON_EV_PHY_CONFIG_REQ),
.allstate_action = &trxcon_allstate_action,
.timer_cb = &trxcon_timer_cb,
};
--
To view, visit
https://gerrit.osmocom.org/c/osmocom-bb/+/28859
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: Ib70ff0352b6fcb045d0f49535dfb0d273856f3c3
Gerrit-Change-Number: 28859
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-MessageType: newchange