aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/abis.c6
-rw-r--r--src/common/bts.c6
-rw-r--r--src/common/cbch.c2
-rw-r--r--src/common/handover.c2
-rw-r--r--src/common/l1sap.c10
-rw-r--r--src/common/load_indication.c2
-rw-r--r--src/common/measurement.c4
-rw-r--r--src/common/pcu_sock.c2
-rw-r--r--src/common/rsl.c8
-rw-r--r--src/common/scheduler.c4
10 files changed, 23 insertions, 23 deletions
diff --git a/src/common/abis.c b/src/common/abis.c
index 84a3a047..24eb8a19 100644
--- a/src/common/abis.c
+++ b/src/common/abis.c
@@ -173,7 +173,7 @@ static void sign_link_down(struct e1inp_line *line)
}
-/* callback for incoming mesages from A-bis/IP */
+/* callback for incoming messages from A-bis/IP */
static int sign_link_cb(struct msgb *msg)
{
struct e1inp_sign_link *link = msg->dst;
@@ -212,7 +212,7 @@ uint32_t get_signlink_remote_ip(struct e1inp_sign_link *link)
return 0;
}
- /* we assume that the soket is AF_INET. As Abis/IP contains
+ /* we assume that the socket is AF_INET. As Abis/IP contains
* lots of hard-coded IPv4 addresses, this safe */
OSMO_ASSERT(sin.sin_family == AF_INET);
@@ -270,7 +270,7 @@ struct e1inp_line *abis_open(struct gsm_bts *bts, char *dst_host,
{
struct e1inp_line *line;
- /* patch in various data from VTY and othe sources */
+ /* patch in various data from VTY and other sources */
line_ops.cfg.ipa.addr = dst_host;
osmo_get_macaddr(bts_dev_info.mac_addr, "eth0");
bts_dev_info.site_id = bts->ip_access.site_id;
diff --git a/src/common/bts.c b/src/common/bts.c
index 73631ae6..60e27cc8 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -292,7 +292,7 @@ void bts_shutdown(struct gsm_bts *bts, const char *reason)
bts_model_trx_close(trx);
}
- /* shedule a timer to make sure select loop logic can run again
+ /* schedule a timer to make sure select loop logic can run again
* to dispatch any pending primitives */
osmo_timer_schedule(&shutdown_timer, 3, 0);
}
@@ -591,7 +591,7 @@ static int try_merge_imm_ass_rej(struct gsm48_imm_ass_rej *old_rej,
return 0;
/* GSM 08.58, 5.7
- * -> The BTS may combine serveral IMM.ASS.REJ messages
+ * -> The BTS may combine several IMM.ASS.REJ messages
* -> Identical request refs in one message may be squeezed
*
* GSM 04.08, 9.1.20.2
@@ -669,7 +669,7 @@ struct msgb *bts_agch_dequeue(struct gsm_bts *bts)
/*
* Remove lower prio messages if the queue has grown too long.
*
- * \return 0 iff the number of messages in the queue would fit into the AGCH
+ * \return 0 if the number of messages in the queue would fit into the AGCH
* reserved part of the CCCH.
*/
static void compact_agch_queue(struct gsm_bts *bts)
diff --git a/src/common/cbch.c b/src/common/cbch.c
index 7ed11c2f..ebea60be 100644
--- a/src/common/cbch.c
+++ b/src/common/cbch.c
@@ -38,7 +38,7 @@ struct smscb_msg {
uint8_t num_segs; /* total number of segments */
};
-/* determine if current queue length differes more than permitted hysteresis from target
+/* determine if current queue length differs more than permitted hysteresis from target
* queue length. If it does, send CBCH LOAD IND */
static void check_and_send_cbch_load(struct gsm_bts *bts, struct bts_smscb_state *bts_ss)
{
diff --git a/src/common/handover.c b/src/common/handover.c
index 63a98324..b6159328 100644
--- a/src/common/handover.c
+++ b/src/common/handover.c
@@ -135,7 +135,7 @@ void handover_rach(struct gsm_lchan *lchan, uint8_t ra, uint8_t acc_delay)
osmo_timer_schedule(&lchan->ho.t3105, 0, bts->t3105_ms * 1000);
}
-/* received frist valid data frame on dedicated channel */
+/* received first valid data frame on dedicated channel */
void handover_frame(struct gsm_lchan *lchan)
{
LOGPLCHAN(lchan, DHO, LOGL_INFO, "First valid frame detected\n");
diff --git a/src/common/l1sap.c b/src/common/l1sap.c
index 7c543804..c68dc798 100644
--- a/src/common/l1sap.c
+++ b/src/common/l1sap.c
@@ -160,7 +160,7 @@ static void queue_limit_to(const char *prefix, struct llist_head *queue, unsigne
}
/* allocate a msgb containing a osmo_phsap_prim + optional l2 data
- * in order to wrap femtobts header arround l2 data, there must be enough space
+ * in order to wrap femtobts header around l2 data, there must be enough space
* in front and behind data pointer */
struct msgb *l1sap_msgb_alloc(unsigned int l2_len)
{
@@ -664,7 +664,7 @@ static int l1sap_info_meas_ind(struct gsm_bts_trx *trx,
return 0;
}
-/* any L1 MPH_INFO indication prim recevied from bts model */
+/* any L1 MPH_INFO indication prim received from bts model */
static int l1sap_mph_info_ind(struct gsm_bts_trx *trx,
struct osmo_phsap_prim *l1sap, struct mph_info_param *info)
{
@@ -738,7 +738,7 @@ static int l1sap_info_rel_cnf(struct gsm_bts_trx *trx,
return 0;
}
-/* any L1 MPH_INFO confirm prim recevied from bts model */
+/* any L1 MPH_INFO confirm prim received from bts model */
static int l1sap_mph_info_cnf(struct gsm_bts_trx *trx,
struct osmo_phsap_prim *l1sap, struct mph_info_param *info)
{
@@ -798,7 +798,7 @@ static int lchan_pdtch_ph_rts_ind_loop(struct gsm_lchan *lchan,
int is_ccch_for_agch(struct gsm_bts_trx *trx, uint32_t fn) {
/* Note: The number of available access grant channels is set by the
* parameter BS_AG_BLKS_RES via system information type 3. This SI is
- * transfered to osmo-bts via RSL */
+ * transferred to osmo-bts via RSL */
return l1sap_fn2ccch_block(fn) < num_agch(trx, "PH-RTS-IND");
}
@@ -1008,7 +1008,7 @@ static bool rtppayload_is_valid(struct gsm_lchan *lchan, struct msgb *resp_msg)
return true;
}
-/* TCH-RTS-IND prim recevied from bts model */
+/* TCH-RTS-IND prim received from bts model */
static int l1sap_tch_rts_ind(struct gsm_bts_trx *trx,
struct osmo_phsap_prim *l1sap, struct ph_tch_param *rts_ind)
{
diff --git a/src/common/load_indication.c b/src/common/load_indication.c
index fa4745b1..8d9b56f8 100644
--- a/src/common/load_indication.c
+++ b/src/common/load_indication.c
@@ -52,7 +52,7 @@ static void load_timer_cb(void *data)
uint16_t buffer_space = paging_buffer_space(bts->paging_state);
rsl_tx_ccch_load_ind_pch(bts, buffer_space);
} else {
- /* This is an extenstion of TS 08.58. We don't only
+ /* This is an extension of TS 08.58. We don't only
* send load indications if the load is above threshold,
* but we also explicitly indicate that we are below
* threshold by using the magic value 0xffff */
diff --git a/src/common/measurement.c b/src/common/measurement.c
index c2001dae..12fd7794 100644
--- a/src/common/measurement.c
+++ b/src/common/measurement.c
@@ -340,7 +340,7 @@ int lchan_new_ul_meas(struct gsm_lchan *lchan, struct bts_ul_meas *ulm, uint32_t
}
/* We expect the lower layers to mark AMR SID_UPDATE frames already as such.
- * In this function, we only deal with the comon logic as per the TS 45.008 tables */
+ * In this function, we only deal with the common logic as per the TS 45.008 tables */
if (!ulm->is_sub)
ulm->is_sub = ts45008_83_is_sub(lchan, fn, false);
@@ -698,7 +698,7 @@ int lchan_meas_check_compute(struct gsm_lchan *lchan, uint32_t fn)
lchan->meas.num_ul_meas = 0;
- /* return 1 to indicte that the computation has been done and the next
+ /* return 1 to indicate that the computation has been done and the next
* interval begins. */
return 1;
}
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 51f72d89..9fc1d4d9 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -909,7 +909,7 @@ static int pcu_sock_cb(struct osmo_fd *bfd, unsigned int flags)
return rc;
}
-/* accept connection comming from PCU */
+/* accept connection coming from PCU */
static int pcu_sock_accept(struct osmo_fd *bfd, unsigned int flags)
{
struct pcu_sock_state *state = (struct pcu_sock_state *)bfd->data;
diff --git a/src/common/rsl.c b/src/common/rsl.c
index c0d43d0e..de51e6f4 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -285,7 +285,7 @@ int rsl_tx_rf_res(struct gsm_bts_trx *trx)
}
/*
- * common channel releated messages
+ * common channel related messages
*/
/* 8.5.1 BCCH INFOrmation is received */
@@ -571,7 +571,7 @@ static int rsl_rx_osmo_etws_cmd(struct gsm_bts_trx *trx, struct msgb *msg)
* \param[out] buf Output buffer, must be caller-allocated and hold at least len + 2 or sizeof(sysinfo_buf_t) bytes
* \param[out] valid pointer to bit-mask of 'valid' System information types
* \param[in] current input data (L3 without L2/L1 header)
- * \param[in] osmo_si Sytstem Infrormation Type (SYSINFO_TYPE_*)
+ * \param[in] osmo_si Sytstem Information Type (SYSINFO_TYPE_*)
* \param[in] len length of \a current in octets */
static inline void lapdm_ui_prefix(uint8_t *buf, uint32_t *valid, const uint8_t *current, uint8_t osmo_si, uint16_t len)
{
@@ -593,7 +593,7 @@ static inline void lapdm_ui_prefix(uint8_t *buf, uint32_t *valid, const uint8_t
/*! Prefix a given SACCH frame with a L2/LAPDm UI header and store it in given BTS SACCH buffer
* \param[out] bts BTS in whose System Information State we shall store
* \param[in] current input data (L3 without L2/L1 header)
- * \param[in] osmo_si Sytstem Infrormation Type (SYSINFO_TYPE_*)
+ * \param[in] osmo_si Sytstem Information Type (SYSINFO_TYPE_*)
* \param[in] len length of \a current in octets */
static inline void lapdm_ui_prefix_bts(struct gsm_bts *bts, const uint8_t *current, uint8_t osmo_si, uint16_t len)
{
@@ -603,7 +603,7 @@ static inline void lapdm_ui_prefix_bts(struct gsm_bts *bts, const uint8_t *curre
/*! Prefix a given SACCH frame with a L2/LAPDm UI header and store it in given lchan SACCH buffer
* \param[out] lchan Logical Channel in whose System Information State we shall store
* \param[in] current input data (L3 without L2/L1 header)
- * \param[in] osmo_si Sytstem Infrormation Type (SYSINFO_TYPE_*)
+ * \param[in] osmo_si Sytstem Information Type (SYSINFO_TYPE_*)
* \param[in] len length of \a current in octets */
static inline void lapdm_ui_prefix_lchan(struct gsm_lchan *lchan, const uint8_t *current, uint8_t osmo_si, uint16_t len)
{
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 19fec324..3adfc498 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -896,7 +896,7 @@ static int rts_tch_common(struct l1sched_trx *l1t, uint8_t tn, uint32_t fn,
rc = l1sap_up(l1t->trx, l1sap);
}
- /* dont send, if TCH is in signalling only mode */
+ /* don't send, if TCH is in signalling only mode */
if (l1ts->chan_state[chan].rsl_cmode != RSL_CMOD_SPD_SIGN) {
/* generate prim */
msg = l1sap_msgb_alloc(200);
@@ -1266,7 +1266,7 @@ static int trx_sched_calc_frame_loss(struct l1sched_trx *l1t,
* There are several TDMA frames between the last processed
* frame and currently received one. Let's walk through this
* path and count potentially lost frames, i.e. for which
- * we didn't receive the corresponsing UL bursts.
+ * we didn't receive the corresponding UL bursts.
*
* Start counting from the last_fn + 1.
*/