Change in osmocom-bb[master]: Fix common misspellings and typos

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

roox gerrit-no-reply at lists.osmocom.org
Sun Oct 13 17:11:25 UTC 2019


roox has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmocom-bb/+/15789 )


Change subject: Fix common misspellings and typos
......................................................................

Fix common misspellings and typos

Change-Id: I962b42871693f33b1054d43d195817e9cd84bb64
---
M src/host/layer23/README
M src/host/layer23/include/osmocom/bb/common/sysinfo.h
M src/host/layer23/include/osmocom/bb/mobile/gsm322.h
M src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
M src/host/layer23/include/osmocom/bb/mobile/mncc.h
M src/host/layer23/src/common/main.c
M src/host/layer23/src/common/sap_proto.c
M src/host/layer23/src/common/sim.c
M src/host/layer23/src/common/sysinfo.c
M src/host/layer23/src/misc/app_bcch_scan.c
M src/host/layer23/src/misc/app_cbch_sniff.c
M src/host/layer23/src/misc/app_ccch_scan.c
M src/host/layer23/src/misc/cell_log.c
M src/host/layer23/src/mobile/app_mobile.c
M src/host/layer23/src/mobile/gsm322.c
M src/host/layer23/src/mobile/gsm411_sms.c
M src/host/layer23/src/mobile/gsm480_ss.c
M src/host/layer23/src/mobile/gsm48_cc.c
M src/host/layer23/src/mobile/gsm48_mm.c
M src/host/layer23/src/mobile/gsm48_rr.c
M src/host/layer23/src/mobile/main.c
M src/host/layer23/src/mobile/mncc_sock.c
M src/host/layer23/src/mobile/mnccms.c
M src/host/layer23/src/mobile/script_lua.c
M src/host/layer23/src/mobile/vty_interface.c
M src/host/virt_phy/include/virtphy/virt_l1_model.h
M src/host/virt_phy/src/gsmtapl1_if.c
M src/host/virt_phy/src/l1ctl_sap.c
M src/host/virt_phy/src/logging.c
M src/host/virt_phy/src/virt_prim_pm.c
M src/shared/libosmocore/doc/vty/example.xml
M src/shared/libosmocore/include/osmocom/core/bits.h
M src/shared/libosmocore/include/osmocom/core/bitvec.h
M src/shared/libosmocore/include/osmocom/core/conv.h
M src/shared/libosmocore/include/osmocom/core/logging.h
M src/shared/libosmocore/include/osmocom/core/select.h
M src/shared/libosmocore/include/osmocom/core/write_queue.h
M src/shared/libosmocore/include/osmocom/crypt/auth.h
M src/shared/libosmocore/include/osmocom/crypt/gprs_cipher.h
M src/shared/libosmocore/include/osmocom/vty/command.h
M src/shared/libosmocore/include/osmocom/vty/vector.h
M src/shared/libosmocore/include/osmocom/vty/vty.h
M src/shared/libosmocore/src/backtrace.c
M src/shared/libosmocore/src/gb/gprs_bssgp.c
M src/shared/libosmocore/src/gb/gprs_ns.c
M src/shared/libosmocore/src/gb/gprs_ns_frgre.c
M src/shared/libosmocore/src/gsm/auth_core.c
M src/shared/libosmocore/src/gsm/gsm0411_smc.c
M src/shared/libosmocore/src/gsm/gsm0411_smr.c
M src/shared/libosmocore/src/gsm/gsm0808.c
M src/shared/libosmocore/src/gsm/gsm48.c
M src/shared/libosmocore/src/gsm/gsm48_ie.c
M src/shared/libosmocore/src/gsm/lapd_core.c
M src/shared/libosmocore/src/gsm/lapdm.c
M src/shared/libosmocore/src/gsm/rsl.c
M src/shared/libosmocore/src/gsm/tlv_parser.c
M src/shared/libosmocore/src/logging.c
M src/shared/libosmocore/src/msgb.c
M src/shared/libosmocore/src/socket.c
M src/shared/libosmocore/src/talloc.c
M src/shared/libosmocore/src/timer.c
M src/shared/libosmocore/src/utils.c
M src/shared/libosmocore/src/vty/buffer.c
M src/shared/libosmocore/src/vty/command.c
M src/shared/libosmocore/src/vty/logging_vty.c
M src/shared/libosmocore/src/vty/vty.c
M src/target/firmware/apps/rssi/main.c
M src/target/firmware/board/compal/highram.lds
M src/target/firmware/board/compal/ram.lds
M src/target/firmware/board/mediatek/ram.lds
M src/target/firmware/calypso/sim.c
M src/target/firmware/comm/sercomm.c
M src/target/firmware/fb/fb_rgb332.c
M src/target/firmware/fb/fb_s6b33b1x.c
M src/target/firmware/include/abb/twl3025.h
M src/target/firmware/include/calypso/dsp_api.h
M src/target/firmware/include/calypso/l1_environment.h
M src/target/firmware/include/calypso/sim.h
M src/target/firmware/include/fb/fb_bw8.h
M src/target/firmware/include/layer1/sync.h
M src/target/firmware/layer1/l23_api.c
M src/target/firmware/layer1/prim_fbsb.c
M src/target/firmware/layer1/prim_tch.c
M src/target/firmware/layer1/sync.c
M src/target/firmware/lib/vsprintf.c
M src/target/firmware/rf/trf6151.c
M src/target/trx_toolkit/data_dump.py
M src/target_dsp/calypso/dump2coff.py
88 files changed, 201 insertions(+), 201 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/89/15789/1

diff --git a/src/host/layer23/README b/src/host/layer23/README
index dd59823..c52e7bc 100644
--- a/src/host/layer23/README
+++ b/src/host/layer23/README
@@ -30,7 +30,7 @@
 RSL header (struct abis_rsl_common_hdr).
 
 There are utility functions like rslms_tx_rll_req() and rslms_tx_rsll_req_l3()
-for creating msgb's with the apropriate RSL/RLL headers.
+for creating msgb's with the appropriate RSL/RLL headers.
 
 
 === LAPDm ===
diff --git a/src/host/layer23/include/osmocom/bb/common/sysinfo.h b/src/host/layer23/include/osmocom/bb/common/sysinfo.h
index f843f27..7fea2da 100644
--- a/src/host/layer23/include/osmocom/bb/common/sysinfo.h
+++ b/src/host/layer23/include/osmocom/bb/common/sysinfo.h
@@ -17,7 +17,7 @@
 #define	FREQ_TYPE_REP_5bis	0x40 /* sub channel of SI 5bis */
 #define	FREQ_TYPE_REP_5ter	0x80 /* sub channel of SI 5ter */
 
-/* structure of all received system informations */
+/* structure of all received system information */
 struct gsm48_sysinfo {
 	/* flags of available information */
 	uint8_t				si1, si2, si2bis, si2ter, si3,
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
index d4caac9..b332778 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm322.h
@@ -6,7 +6,7 @@
 #include <osmocom/core/linuxlist.h>
 #include <osmocom/core/timer.h>
 
-/* 4.3.1.1 List of states for PLMN slection process (automatic mode) */
+/* 4.3.1.1 List of states for PLMN selection process (automatic mode) */
 #define GSM322_A0_NULL			0
 #define	GSM322_A1_TRYING_RPLMN		1
 #define	GSM322_A2_ON_PLMN		2
@@ -15,7 +15,7 @@
 #define	GSM322_A5_HPLMN_SEARCH		5
 #define	GSM322_A6_NO_SIM		6
 
-/* 4.3.1.2 List of states for PLMN slection process (manual mode) */
+/* 4.3.1.2 List of states for PLMN selection process (manual mode) */
 #define GSM322_M0_NULL			0
 #define	GSM322_M1_TRYING_RPLMN		1
 #define	GSM322_M2_ON_PLMN		2
@@ -129,9 +129,9 @@
 
 /* state of CCCH activation */
 #define GSM322_CCCH_ST_IDLE	0	/* no connection */
-#define GSM322_CCCH_ST_INIT	1	/* initalized */
+#define GSM322_CCCH_ST_INIT	1	/* initialized */
 #define GSM322_CCCH_ST_SYNC	2	/* got sync */
-#define GSM322_CCCH_ST_DATA	3	/* receiveing data */
+#define GSM322_CCCH_ST_DATA	3	/* receiving data */
 
 /* neighbour cell info list entry */
 struct gsm322_neighbour {
@@ -144,7 +144,7 @@
 	time_t			when; /* when did we sync / read */
 	int16_t			rxlev_sum_dbm; /* sum of received levels */
 	uint8_t			rxlev_count; /* number of received levels */
-	int8_t			rla_c_dbm; /* average of the reveive level */
+	int8_t			rla_c_dbm; /* average of the receive level */
 	uint8_t			c12_valid; /* both C1 and C2 are calculated */
 	int16_t			c1, c2, crh;
 	uint8_t			checked_for_resel;
diff --git a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
index 6e9c197..93e7c4c 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/gsm48_mm.h
@@ -204,7 +204,7 @@
 	struct llist_head	list;
 	struct gsm48_mmlayer	*mm;
 
-	/* ref and type form a unique tupple */
+	/* ref and type form a unique tuple */
 	uint32_t		ref; /* reference to trans */
 	uint8_t			protocol;
 	uint8_t			transaction_id;
diff --git a/src/host/layer23/include/osmocom/bb/mobile/mncc.h b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
index 8ec9358..5e976cc 100644
--- a/src/host/layer23/include/osmocom/bb/mobile/mncc.h
+++ b/src/host/layer23/include/osmocom/bb/mobile/mncc.h
@@ -58,7 +58,7 @@
 #define MNCC_SETUP_CNF		0x0104
 #define MNCC_SETUP_COMPL_REQ	0x0105
 #define MNCC_SETUP_COMPL_IND	0x0106
-/* MNCC_REJ_* is perfomed via MNCC_REL_* */
+/* MNCC_REJ_* is performed via MNCC_REL_* */
 #define MNCC_CALL_CONF_IND	0x0107
 #define MNCC_CALL_PROC_REQ	0x0108
 #define MNCC_PROGRESS_REQ	0x0109
@@ -136,7 +136,7 @@
 	/* which fields are present */
 	uint32_t	fields;
 
-	/* data derived informations (MNCC_F_ based) */
+	/* data derived information (MNCC_F_ based) */
 	struct gsm_mncc_bearer_cap	bearer_cap;
 	struct gsm_mncc_number		called;
 	struct gsm_mncc_number		calling;
diff --git a/src/host/layer23/src/common/main.c b/src/host/layer23/src/common/main.c
index 8abd3f7..9d1c69e 100644
--- a/src/host/layer23/src/common/main.c
+++ b/src/host/layer23/src/common/main.c
@@ -208,7 +208,7 @@
 	if (sigset == SIGHUP || sigset == SIGPIPE)
 		return;
 
-	fprintf(stderr, "Signal %d recevied.\n", sigset);
+	fprintf(stderr, "Signal %d received.\n", sigset);
 	if (l23_app_exit)
 		rc = l23_app_exit(ms);
 
diff --git a/src/host/layer23/src/common/sap_proto.c b/src/host/layer23/src/common/sap_proto.c
index c3d202f..ecacfe0 100644
--- a/src/host/layer23/src/common/sap_proto.c
+++ b/src/host/layer23/src/common/sap_proto.c
@@ -177,7 +177,7 @@
  * \param[in] sap_msg pointer to SAP message header
  * \param[in] param_type parameter type (see sap_param_type enum)
  * \param[out] param_len parameter length (if found)
- * \returns pointer to a given parameter withing the message, NULL otherwise
+ * \returns pointer to a given parameter within the message, NULL otherwise
  */
 struct sap_param *sap_get_param(const struct sap_message *sap_msg,
 	enum sap_param_type param_type, uint16_t *param_len)
diff --git a/src/host/layer23/src/common/sim.c b/src/host/layer23/src/common/sim.c
index ed7f54a..1e2bc51 100644
--- a/src/host/layer23/src/common/sim.c
+++ b/src/host/layer23/src/common/sim.c
@@ -1132,7 +1132,7 @@
 		case SIM_JOB_INCREASE:
 			if (length != 4) {
 				LOGP(DSIM, LOGL_ERROR, "expecting uint32_t as "
-					"value lenght, but got %d bytes\n",
+					"value length, but got %d bytes\n",
 					length);
 				goto request_error;
 			}
diff --git a/src/host/layer23/src/common/sysinfo.c b/src/host/layer23/src/common/sysinfo.c
index b42bd65..f927773 100644
--- a/src/host/layer23/src/common/sysinfo.c
+++ b/src/host/layer23/src/common/sysinfo.c
@@ -78,7 +78,7 @@
 	print(priv, "ARFCN = %s  channels 512+ refer to %s\n",
 		gsm_print_arfcn(arfcn),
 		(refer_pcs) ? "PCS (1900)" : "DCS (1800)");
-	print(priv, "Available SYSTEM INFORMATIONS =");
+	print(priv, "Available SYSTEM INFORMATION =");
 	if (s->si1)
 		print(priv, " 1");
 	if (s->si2)
diff --git a/src/host/layer23/src/misc/app_bcch_scan.c b/src/host/layer23/src/misc/app_bcch_scan.c
index 22e6f1b..5818530 100644
--- a/src/host/layer23/src/misc/app_bcch_scan.c
+++ b/src/host/layer23/src/misc/app_bcch_scan.c
@@ -53,7 +53,7 @@
 
 int l23_app_init(struct osmocom_ms *ms)
 {
-	/* don't do layer3_init() as we don't want an actualy L3 */
+	/* don't do layer3_init() as we don't want an actually L3 */
 	fps_init();
 	l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL);
 	return osmo_signal_register_handler(SS_L1CTL, &signal_cb, NULL);
diff --git a/src/host/layer23/src/misc/app_cbch_sniff.c b/src/host/layer23/src/misc/app_cbch_sniff.c
index 8256eaf..ac222f7 100644
--- a/src/host/layer23/src/misc/app_cbch_sniff.c
+++ b/src/host/layer23/src/misc/app_cbch_sniff.c
@@ -179,7 +179,7 @@
 
 int l23_app_init(struct osmocom_ms *ms)
 {
-	/* don't do layer3_init() as we don't want an actualy L3 */
+	/* don't do layer3_init() as we don't want an actually L3 */
 
 	g_ms = ms;
 	lapdm_channel_set_l3(&ms->lapdm_channel, &rcv_rsl, ms);
diff --git a/src/host/layer23/src/misc/app_ccch_scan.c b/src/host/layer23/src/misc/app_ccch_scan.c
index 88a2bef..be2d9ae 100644
--- a/src/host/layer23/src/misc/app_ccch_scan.c
+++ b/src/host/layer23/src/misc/app_ccch_scan.c
@@ -166,7 +166,7 @@
 	struct gsm48_imm_ass *ia = msgb_l3(msg);
 	uint8_t ch_type, ch_subch, ch_ts;
 
-	/* Discard packet TBF assignement */
+	/* Discard packet TBF assignment */
 	if (ia->page_mode & 0xf0)
 		return 0;
 
diff --git a/src/host/layer23/src/misc/cell_log.c b/src/host/layer23/src/misc/cell_log.c
index 7340dcb..9edd742 100644
--- a/src/host/layer23/src/misc/cell_log.c
+++ b/src/host/layer23/src/misc/cell_log.c
@@ -438,7 +438,7 @@
 	return 0;
 }
 
-/* match request reference agains request */
+/* match request reference against request */
 static int match_ra(struct osmocom_ms *ms, struct gsm48_req_ref *ref)
 {
 	uint8_t ia_t1, ia_t2, ia_t3;
diff --git a/src/host/layer23/src/mobile/app_mobile.c b/src/host/layer23/src/mobile/app_mobile.c
index f0f118b..a5feb79 100644
--- a/src/host/layer23/src/mobile/app_mobile.c
+++ b/src/host/layer23/src/mobile/app_mobile.c
@@ -100,7 +100,7 @@
 
 		/* waiting for reset after shutdown */
 		if (ms->shutdown == MS_SHUTDOWN_WAIT_RESET) {
-			LOGP(DMOB, LOGL_NOTICE, "MS '%s' has been resetted\n", ms->name);
+			LOGP(DMOB, LOGL_NOTICE, "MS '%s' has been reset\n", ms->name);
 			ms->shutdown = MS_SHUTDOWN_COMPL;
 			break;
 		}
diff --git a/src/host/layer23/src/mobile/gsm322.c b/src/host/layer23/src/mobile/gsm322.c
index 56dd236..ddb3a77 100644
--- a/src/host/layer23/src/mobile/gsm322.c
+++ b/src/host/layer23/src/mobile/gsm322.c
@@ -156,7 +156,7 @@
  *
  * * subscr->plmn_list
  *
- * The "PLMN Selector list" stores prefered networks to select during PLMN
+ * The "PLMN Selector list" stores preferred networks to select during PLMN
  * search process. This list is also stored in the SIM.
  *
  * * subscr->plmn_na
@@ -172,7 +172,7 @@
  *
  * * cs->list[1024+299]
  *
- * This list stores measurements and cell informations during cell selection
+ * This list stores measurements and cell information during cell selection
  * process. It can be used to speed up repeated cell selection.
  *
  * * cs->ba_list
@@ -201,7 +201,7 @@
  * the BCCH data after 5 minutes. This timer is also used if sync or read
  * fails.
  *
- * The C1 and C2 criterion is calculated for the currently monitored neigbour
+ * The C1 and C2 criterion is calculated for the currently monitored neighbour
  * cells. During this process, a better neighbour cell will trigger cell
  * re-selection.
  *
@@ -427,14 +427,14 @@
 		return c2;
 	}
 
-	/*  penatly time reached */
+	/*  penalty time reached */
 	if (t >= (penalty_time + 1) * 20) {
 		LOGP(DNB, LOGL_INFO, "C2 = C1 + CELL_RESELECT_OFFSET (%d) = %d "
 			"(PENALTY_TIME reached)\n", cell_resel_off, c2);
 		return c2;
 	}
 
-	/* penalty time not reached, substract temporary offset */
+	/* penalty time not reached, subtract temporary offset */
 	if (temp_offset < 7)
 		c2 -= temp_offset * 10;
 	else
@@ -975,7 +975,7 @@
 		entries--;
 	}
 
-	/* move ohter PLMN in decreasing order */
+	/* move other PLMN in decreasing order */
 	while(1) {
 		found = NULL;
 		llist_for_each_entry(temp, &temp_list, entry) {
@@ -1047,7 +1047,7 @@
 
 	new_a_state(plmn, GSM322_A4_WAIT_FOR_PLMN);
 
-	/* we must forward this, otherwhise "Any cell selection"
+	/* we must forward this, otherwise "Any cell selection"
 	 * will not start automatically.
 	 */
 	nmsg = gsm322_msgb_alloc(GSM322_EVENT_NEW_PLMN);
@@ -1074,7 +1074,7 @@
 
 	/* if no PLMN in list:
 	 * this means that we are at a point where we camp on any cell or
-	 * no cell ist available. */
+	 * no cell is available. */
 	if (found < 0) {
 		if (subscr->plmn_valid) {
 			LOGP(DPLMN, LOGL_INFO, "Not any PLMN allowable. "
@@ -1555,7 +1555,7 @@
 	/* go Not on PLMN state */
 	new_m_state(plmn, GSM322_M3_NOT_ON_PLMN);
 
-	/* we must forward this, otherwhise "Any cell selection"
+	/* we must forward this, otherwise "Any cell selection"
 	 * will not start automatically.
 	 * this way we get back to the last PLMN, in case we gained
 	 * our coverage back.
@@ -1847,7 +1847,7 @@
 	if (cs->state == GSM322_C2_STORED_CELL_SEL
 	 || cs->state == GSM322_C5_CHOOSE_CELL)
 		mask |= GSM322_CS_FLAG_BA;
-	flags = mask; /* all masked flags are requied */
+	flags = mask; /* all masked flags are required */
 
 	/* loop through all scanned frequencies and select cell.
 	 * if an index is given (arfci), we just check this cell only */
@@ -1860,12 +1860,12 @@
 		cs->list[i].flags &= ~GSM322_CS_FLAG_TEMP_AA;
 		s = cs->list[i].sysinfo;
 
-		/* channel has no informations for us */
+		/* channel has no information for us */
 		if (!s || (cs->list[i].flags & mask) != flags) {
 			continue;
 		}
 
-		/* check C1 criteria not fullfilled */
+		/* check C1 criteria not fulfilled */
 		// TODO: class 3 DCS mobile
 		gsm_arfcn2band_rc(index2arfcn(i), &band);
 		class = class_of_band(ms, band);
@@ -2195,7 +2195,7 @@
 	if (cs->state == GSM322_C2_STORED_CELL_SEL
 	 || cs->state == GSM322_C5_CHOOSE_CELL)
 		mask |= GSM322_CS_FLAG_BA;
-	flags = mask; /* all masked flags are requied */
+	flags = mask; /* all masked flags are required */
 	for (i = 0; i <= 1023+299; i++) {
 		j = 0; /* make gcc happy */
 		if (!ms->settings.skip_max_per_band) {
@@ -2249,7 +2249,7 @@
 	}
 
 	/* NOTE: We might already have system information from previous
-	 * scan. But we need recent informations, so we scan again!
+	 * scan. But we need recent information, so we scan again!
 	 */
 
 	/* Tune to frequency for a while, to receive broadcasts. */
@@ -2462,7 +2462,7 @@
 	return 0;
 }
 
-/* process system information when returing to idle mode */
+/* process system information when returning to idle mode */
 struct gsm322_ba_list *gsm322_cs_sysinfo_sacch(struct osmocom_ms *ms)
 {
 	struct gsm322_cellsel *cs = &ms->cellsel;
@@ -2517,7 +2517,7 @@
 	return ba;
 }
 
-/* store BA whenever a system informations changes */
+/* store BA whenever a system information changes */
 static int gsm322_store_ba_list(struct gsm322_cellsel *cs,
 	struct gsm48_sysinfo *s)
 {
@@ -2582,9 +2582,9 @@
 		return 0;
 	}
 
-	/* Store BA if we have full system info about cells and neigbor cells.
+	/* Store BA if we have full system info about cells and neighbor cells.
 	 * Depending on the extended bit in the channel description,
-	 * we require more or less system informations about neighbor cells
+	 * we require more or less system information about neighbor cells
 	 */
 	if (s->mcc
 	 && s->mnc
@@ -2600,7 +2600,7 @@
 		&& s->nb_ext_ind_si2bis)))
 		gsm322_store_ba_list(cs, s);
 
-	/* update sel_si, if all relevant system informations received */
+	/* update sel_si, if all relevant system information received */
 	if (s->si1 && s->si2 && s->si3
 	 && (!s->nb_ext_ind_si2
 	  || (s->si2bis && s->nb_ext_ind_si2 && !s->nb_ext_ind_si2bis)
@@ -2696,9 +2696,9 @@
 		return -EINVAL;
 	}
 
-	/* Store BA if we have full system info about cells and neigbor cells.
+	/* Store BA if we have full system info about cells and neighbor cells.
 	 * Depending on the extended bit in the channel description,
-	 * we require more or less system informations about neighbor cells
+	 * we require more or less system information about neighbor cells
 	 */
 	if (s->mcc
 	 && s->mnc
@@ -2712,7 +2712,7 @@
 	 && (!s->si2ter_ind || s->si2ter))
 		gsm322_store_ba_list(cs, s);
 
-	/* all relevant system informations received */
+	/* all relevant system information received */
 	if (s->si1 && s->si2 && s->si3
 	 && (!s->nb_ext_ind_si2 || s->si2bis)
 	 && (!s->si2ter_ind || s->si2ter)) {
@@ -3108,7 +3108,7 @@
 			/* keep cell info for re-selection */
 
 			gsm48_rr_los(ms);
-			/* be shure that nothing else is done after here
+			/* be sure that nothing else is done after here
 			 * because the function call above may cause
 			 * to return from idle state and trigger cell re-sel.
 			 */
@@ -3220,7 +3220,7 @@
 	return gsm322_cs_powerscan(ms);
 }
 
-/* start noraml cell selection */
+/* start normal cell selection */
 static int gsm322_c_normal_cell_sel(struct osmocom_ms *ms, struct msgb *msg)
 {
 	struct gsm322_cellsel *cs = &ms->cellsel;
@@ -3265,7 +3265,7 @@
 
 		/* indicate to MM that we lost coverage.
 		 * this is the only case where we really have no coverage.
-		 * we tell MM, so it will enter the "No Cell Avaiable" state. */
+		 * we tell MM, so it will enter the "No Cell Available" state. */
 		if (msg_type == GSM322_EVENT_NO_CELL_FOUND) {
 			struct msgb *nmsg;
 
@@ -3325,7 +3325,7 @@
 	return gsm322_c_any_cell_sel(ms, msg);
 }
 
-/* start noraml cell re-selection */
+/* start normal cell re-selection */
 static int gsm322_c_normal_cell_resel(struct osmocom_ms *ms, struct msgb *msg)
 {
 	struct gsm322_cellsel *cs = &ms->cellsel;
@@ -3490,7 +3490,7 @@
 			if (lower == higher)
 				break;
 			lower++;
-			/* wrap arround, only if not PCS */
+			/* wrap around, only if not PCS */
 			if (lower == 1024)
 				lower = 0;
 		}
@@ -4183,7 +4183,7 @@
 		/* check if we have successfully read BCCH */
 		if (!s || nb->state != GSM322_NB_SYSINFO) {
 			LOGP(DNB, LOGL_INFO, "Skip cell: There are no system "
-				"informations available.\n");
+				"information available.\n");
 			if (ms->rrlayer.monitor) {
 				snprintf(arfcn_text, 10, "%s         ",
 					gsm_print_arfcn(nb->arfcn));
@@ -4356,7 +4356,7 @@
 			nb->c2);
 		/* track which cells have been checked do far */
 		if (nb->checked_for_resel) {
-			LOGP(DCS, LOGL_INFO, "Skip cell: alredy tried to "
+			LOGP(DCS, LOGL_INFO, "Skip cell: already tried to "
 				"select.\n");
 			goto cont;
 		}
@@ -4417,7 +4417,7 @@
 	nb->checked_for_resel = 1;
 
 	/* NOTE: We might already have system information from previous
-	 * scan. But we need recent informations, so we scan again!
+	 * scan. But we need recent information, so we scan again!
 	 */
 
 	/* Tune to frequency for a while, to receive broadcasts. */
@@ -4523,7 +4523,7 @@
 	if (!changed && cs->nb_meas_set)
 		return 0;
 
-	/* start neigbour cell measurement task */
+	/* start neighbour cell measurement task */
 	num = 0;
 	llist_for_each_entry(nb, &cs->nb_list, entry) {
 		if (nb->state == GSM322_NB_NOT_SUP)
@@ -5080,7 +5080,7 @@
 		s_rc = fgets(version, sizeof(version), fp);
 		version[sizeof(version) - 1] = '\0';
 		if (!s_rc || !!strcmp(ba_version, version)) {
-			LOGP(DCS, LOGL_NOTICE, "BA version missmatch, "
+			LOGP(DCS, LOGL_NOTICE, "BA version mismatch, "
 				"stored BA list becomes obsolete.\n");
 		} else
 		while(!feof(fp)) {
diff --git a/src/host/layer23/src/mobile/gsm411_sms.c b/src/host/layer23/src/mobile/gsm411_sms.c
index 45decfd..593a2ad 100644
--- a/src/host/layer23/src/mobile/gsm411_sms.c
+++ b/src/host/layer23/src/mobile/gsm411_sms.c
@@ -125,7 +125,7 @@
 {
 	vty_notify(ms, NULL);
 	if (!cause)
-		vty_notify(ms, "SMS to %s successfull\n", sms->address);
+		vty_notify(ms, "SMS to %s successful\n", sms->address);
 	else
 		vty_notify(ms, "SMS to %s failed: %s\n", sms->address,
 			get_value_string(gsm411_rp_cause_strs, cause));
diff --git a/src/host/layer23/src/mobile/gsm480_ss.c b/src/host/layer23/src/mobile/gsm480_ss.c
index 52e43b9..4ad2d7c 100644
--- a/src/host/layer23/src/mobile/gsm480_ss.c
+++ b/src/host/layer23/src/mobile/gsm480_ss.c
@@ -287,7 +287,7 @@
 }
 
 /*
- * endcoding
+ * encoding
  */
 
 #define GSM480_ALLOC_SIZE       512+128
@@ -933,7 +933,7 @@
 			LOGP(DSS, LOGL_NOTICE, "Invoke ID mismatch\n");
 		}
 	}
-	/* Store invoke ID, in case we wan't to send a result. */
+	/* Store invoke ID, in case we want to send a result. */
 	trans->ss.invoke_id = tag_data[0];
 	len -= tag_data - data + tag_len;
 	data = tag_data + tag_len;
diff --git a/src/host/layer23/src/mobile/gsm48_cc.c b/src/host/layer23/src/mobile/gsm48_cc.c
index f1e8109..de0d035 100644
--- a/src/host/layer23/src/mobile/gsm48_cc.c
+++ b/src/host/layer23/src/mobile/gsm48_cc.c
@@ -1750,7 +1750,7 @@
 				TLVP_VAL(&tp, GSM48_IE_USER_USER)-1);
 	}
 
-	/* in case we receive a relase, when we are already in NULL state */
+	/* in case we receive a release, when we are already in NULL state */
 	if (trans->cc.state == GSM_CSTATE_NULL) {
 		LOGP(DCC, LOGL_INFO, "ignoring RELEASE in NULL state\n");
 		/* release MM conn, free trans */
diff --git a/src/host/layer23/src/mobile/gsm48_mm.c b/src/host/layer23/src/mobile/gsm48_mm.c
index 872dce5..d3b042c 100644
--- a/src/host/layer23/src/mobile/gsm48_mm.c
+++ b/src/host/layer23/src/mobile/gsm48_mm.c
@@ -109,7 +109,7 @@
  *  - cell selected
  *  - cell == SIM LAI
  *
- * Otherwhise PLMN SEARCH is entered.
+ * Otherwise PLMN SEARCH is entered.
  *
  * During PLMN SEARCH NORMAL state: (4.2.2.5)
  *  - on expirery of T3212: Perform periodic location update, when back
@@ -193,7 +193,7 @@
  *
  *
  * gsm48_mm_set_plmn_search() is used enter PLMN SEARCH or PLMN SEARCH NORMAL
- * state. Depending on the conditions above, the appropiate state is selected.
+ * state. Depending on the conditions above, the appropriate state is selected.
  *
  *
  * gsm48_mm_return_idle() is used to select the Service state when returning
@@ -1006,7 +1006,7 @@
 			if (s->t3212) /* still required? */
 				gsm48_mm_loc_upd_periodic(ms, NULL);
 			else
-				LOGP(DMM, LOGL_INFO, "but not requred\n");
+				LOGP(DMM, LOGL_INFO, "but not required\n");
 			/* must exit, because this function can be called
 			 * recursively
 			 */
@@ -2135,7 +2135,7 @@
 	/* (re)start only if we still require location update */
 	if (!mm->lupd_pending) {
 		LOGP(DMM, LOGL_INFO, "No loc. upd. pending.\n");
-		/* use MM IDLE to selecte the idle state */
+		/* use MM IDLE to select the idle state */
 		return gsm48_mm_return_idle(ms, NULL);
 	}
 
@@ -2159,7 +2159,7 @@
 		if (!nmsg)
 			return -ENOMEM;
 		gsm322_plmn_sendmsg(ms, nmsg);
-		/* use MM IDLE to selecte the idle state */
+		/* use MM IDLE to select the idle state */
 		return gsm48_mm_return_idle(ms, NULL);
 	}
 
@@ -2419,7 +2419,7 @@
 	/* update has finished */
 	mm->lupd_pending = 0;
 
-	/* RA was successfull */
+	/* RA was successful */
 	mm->lupd_ra_failure = 0;
 
 	/* stop periodic location updating timer */
@@ -2531,7 +2531,7 @@
 		return -EINVAL;
 	}
 
-	/* RA was successfull */
+	/* RA was successful */
 	mm->lupd_ra_failure = 0;
 
 	/* stop periodic location updating timer */
@@ -2674,7 +2674,7 @@
 	return 0;
 }
 
-/* process failues as described in the lower part of 4.4.4.9 */
+/* process failures as described in the lower part of 4.4.4.9 */
 static int gsm48_mm_loc_upd_failed(struct osmocom_ms *ms, struct msgb *msg)
 {
 	struct gsm48_mmlayer *mm = &ms->mmlayer;
@@ -2755,7 +2755,7 @@
 		return 0;
 	}
 
-	/* RA was successfull or sent twice */
+	/* RA was successful or sent twice */
 	mm->lupd_ra_failure = 0;
 
 	/* continue with failure handling */
@@ -2938,7 +2938,7 @@
 	/* release MM connection(s) */
 	gsm48_mm_release_mm_conn(ms, abort_any, 16, 0, 0);
 
-	/* state depends on the existance of remaining MM connections */
+	/* state depends on the existence of remaining MM connections */
 	if (llist_empty(&mm->mm_conn))
 		new_mm_state(mm, GSM48_MM_ST_WAIT_NETWORK_CMD, 0);
 	else
@@ -3395,7 +3395,7 @@
 	/* release pending connection */
 	gsm48_mm_release_mm_conn(ms, 0, 102, 0, 0);
 
-	/* state depends on the existance of remaining MM connections */
+	/* state depends on the existence of remaining MM connections */
 	if (llist_empty(&mm->mm_conn)) {
 		/* start RR release timer */
 		start_mm_t3240(mm);
@@ -3470,7 +3470,7 @@
 	if (conn)
 		mm_conn_free(conn);
 
-	/* state depends on the existance of remaining MM connections */
+	/* state depends on the existence of remaining MM connections */
 	if (llist_empty(&mm->mm_conn)) {
 		/* start RR release timer */
 		start_mm_t3240(mm);
@@ -3800,7 +3800,7 @@
 	return rc;
 }
 
-/* state trasitions for radio ressource messages (lower layer) */
+/* state trasitions for radio resource messages (lower layer) */
 static struct rrdatastate {
 	uint32_t	states;
 	int		type;
@@ -4059,7 +4059,7 @@
 			msgb_free(msg);
 			return 0;
 		}
-		break; /* follow the selection proceedure below */
+		break; /* follow the selection procedure below */
 
 	case GSM48_PDISC_CC:
 		rc = gsm48_rcv_cc(ms, msg);
diff --git a/src/host/layer23/src/mobile/gsm48_rr.c b/src/host/layer23/src/mobile/gsm48_rr.c
index a94fc99..254183e 100644
--- a/src/host/layer23/src/mobile/gsm48_rr.c
+++ b/src/host/layer23/src/mobile/gsm48_rr.c
@@ -40,7 +40,7 @@
  *
  */
 
-/* Testing delayed (immediate) assigment / handover
+/* Testing delayed (immediate) assignment / handover
  *
  * When enabled, the starting time will be set by given frames in the future.
  * If a starting time is given by the network, this time is ignored.
@@ -210,7 +210,7 @@
 	case GSM48_PDISC_MM:
 	case GSM48_PDISC_CC:
 	case GSM48_PDISC_NC_SS:
-		/* all thre pdiscs share the same V(SD) */
+		/* all three pdiscs share the same V(SD) */
 		pdisc = GSM48_PDISC_MM;
 		// fall through
 	case GSM48_PDISC_GROUP_CC:
@@ -634,7 +634,7 @@
 	uint8_t ch_type, ch_subch, ch_ts;
 	char text[256];
 
-	/* don't monitor if no cell is selcted or if we scan neighbour cells */
+	/* don't monitor if no cell is selected or if we scan neighbour cells */
 	if (!cs->selected || cs->neighbour) {
 		sprintf(text, "MON: not camping on serving cell");
 		goto restart;
@@ -1454,7 +1454,7 @@
 		if (s->neci) {
 			chan_req_mask = 0x0f;
 			chan_req_val = 0x10;
-			LOGP(DRR, LOGL_INFO, "CHANNEL REQUEST: %02x (OHTER "
+			LOGP(DRR, LOGL_INFO, "CHANNEL REQUEST: %02x (OTHER "
 				"with NECI)\n", chan_req_val);
 		} else {
 			chan_req_mask = 0x1f;
@@ -1593,11 +1593,11 @@
 	rr->n_chan_req--;
 
 	if (rr->wait_assign == 0) {
-		/* first random acces, without delay of slots */
+		/* first random access, without delay of slots */
 		slots = 0;
 		rr->wait_assign = 1;
 	} else {
-		/* subsequent random acces, with slots from table 3.1 */
+		/* subsequent random access, with slots from table 3.1 */
 		switch(s->tx_integer) {
 		case 3: case 8: case 14: case 50:
 			if (s->ccch_conf != 1) /* not combined CCCH */
@@ -2077,7 +2077,7 @@
 	RR_EST_CAUSE_ANS_PAG_TCH_ANY
 };
 
-/* given LV of mobile identity is checked agains ms */
+/* given LV of mobile identity is checked against ms */
 static uint8_t gsm_match_mi(struct osmocom_ms *ms, uint8_t *mi)
 {
 	struct gsm322_cellsel *cs = &ms->cellsel;
@@ -2305,7 +2305,7 @@
 	} else
 		LOGP(DPAG, LOGL_INFO, " TMSI %08x (not for us)\n",
 			ntohl(pa->tmsi2));
-	/* thrid MI */
+	/* third MI */
 	if (ms->subscr.tmsi == ntohl(pa->tmsi3)
 	 && ms->subscr.mcc == cs->sel_mcc
 	 && ms->subscr.mnc == cs->sel_mnc
@@ -2335,7 +2335,7 @@
  * (immediate) assignment
  */
 
-/* match request reference agains request history */
+/* match request reference against request history */
 static int gsm48_match_ra(struct osmocom_ms *ms, struct gsm48_req_ref *ref)
 {
 	struct gsm48_rrlayer *rr = &ms->rrlayer;
@@ -2387,7 +2387,7 @@
 
 	/* ignore imm.ass. while not camping on a cell */
 	if (!cs->selected || cs->neighbour || !s) {
-		LOGP(DRR, LOGL_INFO, "IMMEDIATED ASSGINMENT ignored, we are "
+		LOGP(DRR, LOGL_INFO, "IMMEDIATE ASSIGNMENT ignored, we are "
 			"have not proper selected the serving cell.\n");
 
 		return 0;
@@ -2495,7 +2495,7 @@
 
 	/* ignore imm.ass.ext while not camping on a cell */
 	if (!cs->selected || cs->neighbour || !s) {
-		LOGP(DRR, LOGL_INFO, "IMMEDIATED ASSGINMENT ignored, we are "
+		LOGP(DRR, LOGL_INFO, "IMMEDIATE ASSIGNMENT ignored, we are "
 			"have not proper selected the serving cell.\n");
 
 		return 0;
@@ -2671,7 +2671,7 @@
 			/* start timer 3126 if not already */
 			if (!osmo_timer_pending(&rr->t3126))
 				start_rr_t3126(rr, 5, 0); /* TODO improve! */
-			/* stop assignmnet requests */
+			/* stop assignment requests */
 			rr->n_chan_req = 0;
 
 			/* wait until timer 3126 expires, then release
@@ -2683,7 +2683,7 @@
 	return 0;
 }
 
-/* 9.1.1 ADDITIONAL ASSIGMENT is received */
+/* 9.1.1 ADDITIONAL ASSIGNMENT is received */
 static int gsm48_rr_rx_add_ass(struct osmocom_ms *ms, struct msgb *msg)
 {
 	struct gsm48_hdr *gh = msgb_l3(msg);
@@ -2732,7 +2732,7 @@
 		if ((s->si5bis && s->nb_ext_ind_si5
 		  && s->nb_ba_ind_si5bis != rep_ba)
 		 || (s->si5ter && s->nb_ba_ind_si5ter != rep_ba)) {
-			LOGP(DRR, LOGL_NOTICE, "BA-IND missmatch on SI5*");
+			LOGP(DRR, LOGL_NOTICE, "BA-IND mismatch on SI5*");
 		} else
 			rep_valid = 1;
 	}
@@ -3054,7 +3054,7 @@
 			LOGP(DRR, LOGL_INFO, "using cell channel descr.\n");
 			if (cd->cell_desc_lv[0] != 16) {
 				LOGP(DRR, LOGL_ERROR, "cell channel descr. "
-					"has invalid lenght\n");
+					"has invalid length\n");
 				return GSM48_RR_CAUSE_ABNORMAL_UNSPEC;
 			}
 			gsm48_decode_freq_list(freq, cd->cell_desc_lv + 1, 16,
@@ -3413,7 +3413,7 @@
 }
 
 /*
- * frequency redefition, chanel mode modify, assignment, and handover
+ * frequency redefition, channel mode modify, assignment, and handover
  */
 
 /* set channel mode in case of TCH */
@@ -4537,7 +4537,7 @@
 	 	goto reject;
 	}
 
-	/* check for relevant informations */
+	/* check for relevant information */
 	if (!s->si3) {
 		LOGP(DRR, LOGL_INFO, "Not enough SI, rejecting!\n");
 		cause = RR_REL_CAUSE_TRY_LATER;
@@ -5364,7 +5364,7 @@
 }
 
 
-/* input function for L2 messags up to L3 */
+/* input function for L2 messages up to L3 */
 static int gsm48_rcv_rsl(struct osmocom_ms *ms, struct msgb *msg)
 {
 	struct abis_rsl_common_hdr *rslh = msgb_l2(msg);
@@ -5593,7 +5593,7 @@
 	int s;
 
 	if (rr->modify_state != GSM48_RR_MOD_HANDO) {
-		LOGP(DRR, LOGL_NOTICE, "Random acces confirm, but not in handover state.\n");
+		LOGP(DRR, LOGL_NOTICE, "Random access confirm, but not in handover state.\n");
 		return 0;
 	}
 
diff --git a/src/host/layer23/src/mobile/main.c b/src/host/layer23/src/mobile/main.c
index 9764b33..3002a94 100644
--- a/src/host/layer23/src/mobile/main.c
+++ b/src/host/layer23/src/mobile/main.c
@@ -166,7 +166,7 @@
 		/* The first signal causes initiating of shutdown with detach
 		 * procedure. The second signal causes initiating of shutdown
 		 * without detach procedure. The third signal will exit process
-		 * immidiately. (in case it hangs)
+		 * immediately. (in case it hangs)
 		 */
 		if (count_int == 0) {
 			fprintf(stderr, "Performing shutdown with clean "
diff --git a/src/host/layer23/src/mobile/mncc_sock.c b/src/host/layer23/src/mobile/mncc_sock.c
index d7d56cc..4822190 100644
--- a/src/host/layer23/src/mobile/mncc_sock.c
+++ b/src/host/layer23/src/mobile/mncc_sock.c
@@ -96,7 +96,7 @@
 
 	/* FIXME: make sure we don't enqueue anymore */
 
-	/* release all exisitng calls */
+	/* release all existing calls */
 	mncc_clear_trans(state->inst, GSM48_PDISC_CC);
 
 	/* flush the queue */
diff --git a/src/host/layer23/src/mobile/mnccms.c b/src/host/layer23/src/mobile/mnccms.c
index 2243291..9a37b97 100644
--- a/src/host/layer23/src/mobile/mnccms.c
+++ b/src/host/layer23/src/mobile/mnccms.c
@@ -153,7 +153,7 @@
 	mncc->bearer_cap.speech_ctm = 0;
 	/* if no specific speech_ver is given */
 	if (speech_ver < 0) {
-		/* if half rate is supported and prefered */
+		/* if half rate is supported and preferred */
 		if (set->half_v3 && set->half && set->half_prefer) {
 			mncc->bearer_cap.speech_ver[i++] = 5;
 			LOGP(DMNCC, LOGL_INFO, " support half rate v3\n");
@@ -175,7 +175,7 @@
 			mncc->bearer_cap.speech_ver[i++] = 0;
 			LOGP(DMNCC, LOGL_INFO, " support full rate v1\n");
 		}
-		/* if half rate is supported and not prefered */
+		/* if half rate is supported and not preferred */
 		if (set->half_v3 && set->half && !set->half_prefer) {
 			mncc->bearer_cap.speech_ver[i++] = 5;
 			LOGP(DMNCC, LOGL_INFO, " support half rate v3\n");
@@ -331,7 +331,7 @@
 			vty_notify(ms, "Call: Remote out of order\n");
 			break;
 		case GSM48_CC_CAUSE_INV_NR_FORMAT:
-			vty_notify(ms, "Call: Number invalid or imcomplete\n");
+			vty_notify(ms, "Call: Number invalid or incomplete\n");
 			break;
 		case GSM48_CC_CAUSE_NO_CIRCUIT_CHAN:
 			vty_notify(ms, "Call: No channel available\n");
diff --git a/src/host/layer23/src/mobile/script_lua.c b/src/host/layer23/src/mobile/script_lua.c
index 2979e7c..c8868b5 100644
--- a/src/host/layer23/src/mobile/script_lua.c
+++ b/src/host/layer23/src/mobile/script_lua.c
@@ -502,7 +502,7 @@
 	luaL_argcheck(L, lua_isnumber(L, -2), 1, "needs to be a filedescriptor");
 	luaL_argcheck(L, lua_isfunction(L, -1), 2, "Callback needs to be a function");
 
-	/* Cretae a table so a user can unregister (and unregister on GC) */
+	/* Create a table so a user can unregister (and unregister on GC) */
 	fdu = lua_newuserdata(L, sizeof(*fdu));
 	fdu->state = L;
 	fdu->fd.fd = -1;
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c
index 2001b88..70ee703 100644
--- a/src/host/layer23/src/mobile/vty_interface.c
+++ b/src/host/layer23/src/mobile/vty_interface.c
@@ -223,7 +223,7 @@
 			gsm_get_mnc(ms->cellsel.sel_mcc, ms->cellsel.sel_mnc),
 			VTY_NEWLINE);
 	}
-	vty_out(vty, "  radio ressource layer state: %s%s",
+	vty_out(vty, "  radio resource layer state: %s%s",
 		gsm48_rr_state_names[ms->rrlayer.state], VTY_NEWLINE);
 	vty_out(vty, "  mobility management layer state: %s",
 		gsm48_mm_state_names[ms->mmlayer.state]);
@@ -523,7 +523,7 @@
 
 DEFUN(sim_test, sim_test_cmd,
 	"sim testcard MS_NAME [MCC] [MNC] [LAC] [TMSI]",
-	"SIM actions\nAttach bulit in test SIM\nName of MS (see \"show ms\")\n"
+	"SIM actions\nAttach built in test SIM\nName of MS (see \"show ms\")\n"
 	"Optionally set mobile Country Code of RPLMN\n"
 	"Optionally set mobile Network Code of RPLMN\n"
 	"Optionally set location area code of RPLMN\n"
@@ -534,7 +534,7 @@
 
 DEFUN(sim_test_att, sim_test_att_cmd,
 	"sim testcard MS_NAME MCC MNC LAC TMSI attached",
-	"SIM actions\nAttach bulit in test SIM\nName of MS (see \"show ms\")\n"
+	"SIM actions\nAttach built in test SIM\nName of MS (see \"show ms\")\n"
 	"Set mobile Country Code of RPLMN\nSet mobile Network Code of RPLMN\n"
 	"Set location area code\nSet current assigned TMSI\n"
 	"Indicate to MM that card is already attached")
@@ -814,7 +814,7 @@
 DEFUN(call, call_cmd, "call MS_NAME (NUMBER|emergency|answer|hangup|hold)",
 	"Make a call\nName of MS (see \"show ms\")\nPhone number to call "
 	"(Use digits '0123456789*#abc', and '+' to dial international)\n"
-	"Make an emergency call\nAnswer an incomming call\nHangup a call\n"
+	"Make an emergency call\nAnswer an incoming call\nHangup a call\n"
 	"Hold current active call\n")
 {
 	struct osmocom_ms *ms;
@@ -1597,7 +1597,7 @@
 
 DEFUN(cfg_ms_sim, cfg_ms_sim_cmd, "sim (none|reader|test|sap)",
 	"Set SIM card to attach when powering on\nAttach no SIM\n"
-	"Attach SIM from reader\nAttach bulit in test SIM\n"
+	"Attach SIM from reader\nAttach build in test SIM\n"
 	"Attach SIM over SAP interface")
 {
 	struct osmocom_ms *ms = vty->index;
diff --git a/src/host/virt_phy/include/virtphy/virt_l1_model.h b/src/host/virt_phy/include/virtphy/virt_l1_model.h
index 67c24bb..e2485fc 100644
--- a/src/host/virt_phy/include/virtphy/virt_l1_model.h
+++ b/src/host/virt_phy/include/virtphy/virt_l1_model.h
@@ -27,7 +27,7 @@
 	uint8_t bsic;
 	/* Combined or non-combined CCCH */
 	uint8_t ccch_mode; /* enum ccch_mode */
-	/* whats the delta of the cells current GSM frame number
+	/* what's the delta of the cells current GSM frame number
 	 * compared to our current local frame number */
 	int32_t fn_offset;
 	/* how much does the TPU need adjustment (delta) to synchronize
@@ -71,9 +71,9 @@
 		uint8_t tn; // timeslot number 1-7
 		uint8_t subslot; // subslot of the dedicated channel, SDCCH/4:[0-3], SDCCH/8:[0-7]
 
-		uint8_t scn; // single-hop cellular network? (ununsed in virtual um)
-		uint8_t tsc; // training sequence code (ununsed in virtual um)
-		uint8_t h; // hopping enabled flag (ununsed in virtual um)
+		uint8_t scn; // single-hop cellular network? (unused in virtual um)
+		uint8_t tsc; // training sequence code (unused in virtual um)
+		uint8_t h; // hopping enabled flag (unused in virtual um)
 	} dedicated;
 	struct {
 		struct {
diff --git a/src/host/virt_phy/src/gsmtapl1_if.c b/src/host/virt_phy/src/gsmtapl1_if.c
index 2cf9d2d..2b21c6d 100644
--- a/src/host/virt_phy/src/gsmtapl1_if.c
+++ b/src/host/virt_phy/src/gsmtapl1_if.c
@@ -135,7 +135,7 @@
 			return true;
 		break;
 	case 1: /* RLC/MAC Control without optional octets */
-		/* forward all RLC/MAC control blocks without optional octets, i.e. not adressed
+		/* forward all RLC/MAC control blocks without optional octets, i.e. not addressed
 		 * to a specific TFI */
 		return true;
 	case 2: /* RLC/MAC with optional control octets */
diff --git a/src/host/virt_phy/src/l1ctl_sap.c b/src/host/virt_phy/src/l1ctl_sap.c
index f95a4ca..7669c86 100644
--- a/src/host/virt_phy/src/l1ctl_sap.c
+++ b/src/host/virt_phy/src/l1ctl_sap.c
@@ -313,7 +313,7 @@
  *
  * Handle frequency change in dedicated mode. E.g. used for frequency hopping.
  *
- * Note: Not needed for virtual physical layer as freqency hopping is generally disabled.
+ * Note: Not needed for virtual physical layer as frequency hopping is generally disabled.
  */
 void l1ctl_rx_dm_freq_req(struct l1_model_ms *ms, struct msgb *msg)
 {
@@ -504,7 +504,7 @@
  * The neighbor cell description is one of the info messages sent by the BTS on BCCH.
  * This method will also enable neighbor measurement in the multiframe scheduler.
  *
- * Note: Not needed for virtual physical layer as we dont maintain neigbors.
+ * Note: Not needed for virtual physical layer as we don't maintain neighbors.
  */
 void l1ctl_rx_neigh_pm_req(struct l1_model_ms *ms, struct msgb *msg)
 {
diff --git a/src/host/virt_phy/src/logging.c b/src/host/virt_phy/src/logging.c
index 7e4e79b..aa3b88a 100644
--- a/src/host/virt_phy/src/logging.c
+++ b/src/host/virt_phy/src/logging.c
@@ -131,5 +131,5 @@
 	if (type < ARRAY_SIZE(l1ctlPrimNames))
 		return l1ctlPrimNames[type];
 	else
-		return "Unknwon Primitive";
+		return "Unknown Primitive";
 }
diff --git a/src/host/virt_phy/src/virt_prim_pm.c b/src/host/virt_phy/src/virt_prim_pm.c
index 4637013..6d11f49 100644
--- a/src/host/virt_phy/src/virt_prim_pm.c
+++ b/src/host/virt_phy/src/virt_prim_pm.c
@@ -106,7 +106,7 @@
 			struct l1ctl_hdr *resp_l1h = msgb_l1(resp_msg);
 			resp_l1h->flags |= L1CTL_F_DONE;
 		}
-		/* no more space to hold mor pm info in msgb, flush to l23 */
+		/* no more space to hold more pm info in msgb, flush to l23 */
 		if (msgb_tailroom(resp_msg) < sizeof(*pm_conf)) {
 			LOGPMS(DL1C, LOGL_INFO, ms, "Tx L1CTL_PM_CONF\n");
 			l1ctl_sap_tx_to_l23_inst(ms, resp_msg);
diff --git a/src/shared/libosmocore/doc/vty/example.xml b/src/shared/libosmocore/doc/vty/example.xml
index 400c634..fdb5080 100644
--- a/src/shared/libosmocore/doc/vty/example.xml
+++ b/src/shared/libosmocore/doc/vty/example.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <vtydoc xmlns="urn:osmocom:xml:libosmocore:vty:doc:1.0">
-    <!-- test a nested hierachy -->
+    <!-- test a nested hierarchy -->
     <node id="mgcp" name="MGCP Node">
 	<!-- define a command -->
 	<command id="foo_cmd">
diff --git a/src/shared/libosmocore/include/osmocom/core/bits.h b/src/shared/libosmocore/include/osmocom/core/bits.h
index 4c68532..1b3f407 100644
--- a/src/shared/libosmocore/include/osmocom/core/bits.h
+++ b/src/shared/libosmocore/include/osmocom/core/bits.h
@@ -16,7 +16,7 @@
 typedef uint8_t pbit_t;		/*!< \brief packed bis (8 bits in a byte) */
 
 /*
-   NOTE on the endianess of pbit_t:
+   NOTE on the endianness of pbit_t:
    Bits in a pbit_t are ordered MSB first, i.e. 0x80 is the first bit.
    Bit i in a pbit_t array is array[i/8] & (1<<(7-i%8))
 */
diff --git a/src/shared/libosmocore/include/osmocom/core/bitvec.h b/src/shared/libosmocore/include/osmocom/core/bitvec.h
index 9c000d0..a021688 100644
--- a/src/shared/libosmocore/include/osmocom/core/bitvec.h
+++ b/src/shared/libosmocore/include/osmocom/core/bitvec.h
@@ -46,7 +46,7 @@
 
 /*! \brief structure describing a bit vector */
 struct bitvec {
-	unsigned int cur_bit;	/*!< \brief curser to the next unused bit */
+	unsigned int cur_bit;	/*!< \brief cursor to the next unused bit */
 	unsigned int data_len;	/*!< \brief length of data array in bytes */
 	uint8_t *data;		/*!< \brief pointer to data array */
 };
diff --git a/src/shared/libosmocore/include/osmocom/core/conv.h b/src/shared/libosmocore/include/osmocom/core/conv.h
index e5b2a97..c62396d 100644
--- a/src/shared/libosmocore/include/osmocom/core/conv.h
+++ b/src/shared/libosmocore/include/osmocom/core/conv.h
@@ -35,7 +35,7 @@
 
 #include <osmocom/core/bits.h>
 
-/*! \brief possibe termination types
+/*! \brief possible termination types
  *
  *  The termination type will determine which state the encoder/decoder
  *  can start/end with. This is mostly taken care of in the high level API
diff --git a/src/shared/libosmocore/include/osmocom/core/logging.h b/src/shared/libosmocore/include/osmocom/core/logging.h
index 655f7a4..e637004 100644
--- a/src/shared/libosmocore/include/osmocom/core/logging.h
+++ b/src/shared/libosmocore/include/osmocom/core/logging.h
@@ -137,7 +137,7 @@
 	/*! \brief should log messages be prefixed with a filename? */
 	unsigned int print_filename:1;
 
-	/*! \brief the type of this log taget */
+	/*! \brief the type of this log target */
 	enum log_target_type type;
 
 	union {
diff --git a/src/shared/libosmocore/include/osmocom/core/select.h b/src/shared/libosmocore/include/osmocom/core/select.h
index efdd716..7e7f30a 100644
--- a/src/shared/libosmocore/include/osmocom/core/select.h
+++ b/src/shared/libosmocore/include/osmocom/core/select.h
@@ -22,7 +22,7 @@
 struct osmo_fd {
 	/*! linked list for internal management */
 	struct llist_head list;	
-	/*! actual operating-system level file decriptor */
+	/*! actual operating-system level file descriptor */
 	int fd;
 	/*! bit-mask or of \ref BSC_FD_READ, \ref BSC_FD_WRITE and/or
 	 * \ref BSC_FD_EXCEPT */
diff --git a/src/shared/libosmocore/include/osmocom/core/write_queue.h b/src/shared/libosmocore/include/osmocom/core/write_queue.h
index 816c036..d9048c2 100644
--- a/src/shared/libosmocore/include/osmocom/core/write_queue.h
+++ b/src/shared/libosmocore/include/osmocom/core/write_queue.h
@@ -45,11 +45,11 @@
 	/*! \brief actual linked list implementing the queue */
 	struct llist_head msg_queue;
 
-	/*! \brief call-back in case qeueue is readable */
+	/*! \brief call-back in case queue is readable */
 	int (*read_cb)(struct osmo_fd *fd);
-	/*! \brief call-back in case qeueue is writable */
+	/*! \brief call-back in case queue is writable */
 	int (*write_cb)(struct osmo_fd *fd, struct msgb *msg);
-	/*! \brief call-back in case qeueue has exceptions */
+	/*! \brief call-back in case queue has exceptions */
 	int (*except_cb)(struct osmo_fd *fd);
 };
 
diff --git a/src/shared/libosmocore/include/osmocom/crypt/auth.h b/src/shared/libosmocore/include/osmocom/crypt/auth.h
index 871e7c8..727e12e 100644
--- a/src/shared/libosmocore/include/osmocom/crypt/auth.h
+++ b/src/shared/libosmocore/include/osmocom/crypt/auth.h
@@ -65,7 +65,7 @@
 	struct llist_head list;
 	enum osmo_auth_algo algo; /*!< algorithm we implement */
 	const char *name;	/*!< name of the implementation */
-	unsigned int priority;	/*!< priority value (resp. othe implementations */
+	unsigned int priority;	/*!< priority value (resp. other implementations */
 
 	/*! \brief callback for generate authentication vectors */
 	int (*gen_vec)(struct osmo_auth_vector *vec,
diff --git a/src/shared/libosmocore/include/osmocom/crypt/gprs_cipher.h b/src/shared/libosmocore/include/osmocom/crypt/gprs_cipher.h
index 3051071..8c67254 100644
--- a/src/shared/libosmocore/include/osmocom/crypt/gprs_cipher.h
+++ b/src/shared/libosmocore/include/osmocom/crypt/gprs_cipher.h
@@ -27,7 +27,7 @@
 
 	/* As specified in 04.64 Annex A.  Uses Kc, IV and direction
 	 * to generate the 1523 bytes cipher stream that need to be
-	 * XORed wit the plaintext for encrypt / ciphertext for decrypt */
+	 * XORed with the plaintext for encrypt / ciphertext for decrypt */
 	int (*run)(uint8_t *out, uint16_t len, uint64_t kc, uint32_t iv,
 		   enum gprs_cipher_direction direction);
 };
diff --git a/src/shared/libosmocore/include/osmocom/vty/command.h b/src/shared/libosmocore/include/osmocom/vty/command.h
index 8fbb482..baf53ae 100644
--- a/src/shared/libosmocore/include/osmocom/vty/command.h
+++ b/src/shared/libosmocore/include/osmocom/vty/command.h
@@ -299,7 +299,7 @@
 #define IN_STR  "Filter incoming routing updates\n"
 #define V4NOTATION_STR "specify by IPv4 address notation(e.g. 0.0.0.0)\n"
 #define OSPF6_NUMBER_STR "Specify by number\n"
-#define INTERFACE_STR "Interface infomation\n"
+#define INTERFACE_STR "Interface information\n"
 #define IFNAME_STR "Interface name(e.g. ep0)\n"
 #define IP6_STR "IPv6 Information\n"
 #define OSPF6_STR "Open Shortest Path First (OSPF) for IPv6\n"
diff --git a/src/shared/libosmocore/include/osmocom/vty/vector.h b/src/shared/libosmocore/include/osmocom/vty/vector.h
index 22a184d..48e32fb 100644
--- a/src/shared/libosmocore/include/osmocom/vty/vector.h
+++ b/src/shared/libosmocore/include/osmocom/vty/vector.h
@@ -33,7 +33,7 @@
 
 #define VECTOR_MIN_SIZE 1
 
-/* (Sometimes) usefull macros.  This macro convert index expression to
+/* (Sometimes) useful macros.  This macro convert index expression to
  array expression. */
 /* Reference slot at given index, caller must ensure slot is active */
 #define vector_slot(V,I)  ((V)->index[(I)])
diff --git a/src/shared/libosmocore/include/osmocom/vty/vty.h b/src/shared/libosmocore/include/osmocom/vty/vty.h
index e656abf..74e64fe 100644
--- a/src/shared/libosmocore/include/osmocom/vty/vty.h
+++ b/src/shared/libosmocore/include/osmocom/vty/vty.h
@@ -82,7 +82,7 @@
 	/*! \brief Command max length. */
 	int max;
 
-	/*! \brief Histry of command */
+	/*! \brief History of command */
 	char *hist[VTY_MAXHIST];
 
 	/*! \brief History lookup current point */
diff --git a/src/shared/libosmocore/src/backtrace.c b/src/shared/libosmocore/src/backtrace.c
index 5b93bec..b592821 100644
--- a/src/shared/libosmocore/src/backtrace.c
+++ b/src/shared/libosmocore/src/backtrace.c
@@ -21,7 +21,7 @@
  */
 
 /*! \file backtrace.c
- *  \brief Routines realted to generating call back traces
+ *  \brief Routines related to generating call back traces
  */
 
 #include <stdio.h>
diff --git a/src/shared/libosmocore/src/gb/gprs_bssgp.c b/src/shared/libosmocore/src/gb/gprs_bssgp.c
index e41c7ef..015fb35 100644
--- a/src/shared/libosmocore/src/gb/gprs_bssgp.c
+++ b/src/shared/libosmocore/src/gb/gprs_bssgp.c
@@ -97,7 +97,7 @@
 	/* FIXME: BVCI is not unique, only BVCI+NSEI ?!? */
 	ctx->ctrg = rate_ctr_group_alloc(ctx, &bssgp_ctrg_desc, bvci);
 	ctx->fc = talloc_zero(ctx, struct bssgp_flow_control);
-	/* cofigure for 2Mbit, 30 packets in queue */
+	/* configure for 2Mbit, 30 packets in queue */
 	bssgp_fc_init(ctx->fc, 100000, 2*1024*1024/8, 30, &_bssgp_tx_dl_ud);
 
 	llist_add(&ctx->list, &bssgp_bvc_ctxts);
diff --git a/src/shared/libosmocore/src/gb/gprs_ns.c b/src/shared/libosmocore/src/gb/gprs_ns.c
index cdcf36e..9983602 100644
--- a/src/shared/libosmocore/src/gb/gprs_ns.c
+++ b/src/shared/libosmocore/src/gb/gprs_ns.c
@@ -32,7 +32,7 @@
  *
  * Some introduction into NS:  NS is used typically on top of frame relay,
  * but in the ip.access world it is encapsulated in UDP packets.  It serves
- * as an intermediate shim betwen BSSGP and the underlying medium.  It doesn't
+ * as an intermediate shim between BSSGP and the underlying medium.  It doesn't
  * do much, apart from providing congestion notification and status indication.
  *
  * Terms:
@@ -543,7 +543,7 @@
 	return gprs_ns_tx(nsvc, msg);
 }
 
-/*! \brief High-level function for transmitting a NS-UNITDATA messsage
+/*! \brief High-level function for transmitting a NS-UNITDATA message
  *  \param[in] nsi NS-instance on which we shall transmit
  *  \param[in] msg struct msgb to be trasnmitted
  *
@@ -737,7 +737,7 @@
  *  \param[in] ll link-layer type in which data was received
  *  \returns 0 in case of success, < 0 in case of error
  *
- * This is the main entry point int othe NS imlementation where frames
+ * This is the main entry point into the NS implementation where frames
  * from the underlying transport (normally UDP) enter.
  */
 int gprs_ns_rcvmsg(struct gprs_ns_inst *nsi, struct msgb *msg,
@@ -910,7 +910,7 @@
 	nsi->timeout[NS_TOUT_TNS_ALIVE_RETRIES] = 10;
 
 	/* Create the dummy NSVC that we use for sending
-	 * messages to non-existant/unknown NS-VC's */
+	 * messages to non-existent/unknown NS-VC's */
 	nsi->unknown_nsvc = gprs_nsvc_create(nsi, 0xfffe);
 	llist_del(&nsi->unknown_nsvc->list);
 
diff --git a/src/shared/libosmocore/src/gb/gprs_ns_frgre.c b/src/shared/libosmocore/src/gb/gprs_ns_frgre.c
index e557c7e..5c16e6a 100644
--- a/src/shared/libosmocore/src/gb/gprs_ns_frgre.c
+++ b/src/shared/libosmocore/src/gb/gprs_ns_frgre.c
@@ -281,7 +281,7 @@
 	uint8_t *frh;
 	struct gre_hdr *greh;
 
-	/* Build socket address for the packet destionation */
+	/* Build socket address for the packet destination */
 	daddr.sin_family = AF_INET;
 	daddr.sin_addr = nsvc->frgre.bts_addr.sin_addr;
 	daddr.sin_port = IPPROTO_GRE;
diff --git a/src/shared/libosmocore/src/gsm/auth_core.c b/src/shared/libosmocore/src/gsm/auth_core.c
index 5cf8dfc..0f790b7 100644
--- a/src/shared/libosmocore/src/gsm/auth_core.c
+++ b/src/shared/libosmocore/src/gsm/auth_core.c
@@ -132,7 +132,7 @@
  * based on the permanent subscriber data, a random value as well as the
  * AUTS and RAND values returned by the SIM/MS.  This special variant is
  * needed if the sequence numbers between MS and AUC have for some
- * reason become diffrent.
+ * reason become different.
  */
 int osmo_auth_gen_vec_auts(struct osmo_auth_vector *vec,
 			   struct osmo_sub_auth_data *aud,
diff --git a/src/shared/libosmocore/src/gsm/gsm0411_smc.c b/src/shared/libosmocore/src/gsm/gsm0411_smc.c
index 4152ef1..dfd699f 100644
--- a/src/shared/libosmocore/src/gsm/gsm0411_smc.c
+++ b/src/shared/libosmocore/src/gsm/gsm0411_smc.c
@@ -44,7 +44,7 @@
  * MMSMS-REL-REQ. It is allowed to destroy this process while processing
  * this message.
  *
- * There is expeption, if MMSMS-REL-IND is received from lower layer, the
+ * There is exception, if MMSMS-REL-IND is received from lower layer, the
  * process returns to IDLE without sending MMSMS-REL-REQ.
  *
  */
diff --git a/src/shared/libosmocore/src/gsm/gsm0411_smr.c b/src/shared/libosmocore/src/gsm/gsm0411_smr.c
index 7dd8f72..41a2e23 100644
--- a/src/shared/libosmocore/src/gsm/gsm0411_smr.c
+++ b/src/shared/libosmocore/src/gsm/gsm0411_smr.c
@@ -117,7 +117,7 @@
 	{ GSM411_RP_CAUSE_INV_TRANS_REF, "Invalid Transaction Reference" },
 	{ GSM411_RP_CAUSE_SEMANT_INC_MSG, "Semantically Incorrect Message" },
 	{ GSM411_RP_CAUSE_INV_MAND_INF, "Invalid Mandatory Information" },
-	{ GSM411_RP_CAUSE_MSGTYPE_NOTEXIST, "Message Type non-existant" },
+	{ GSM411_RP_CAUSE_MSGTYPE_NOTEXIST, "Message Type non-existent" },
 	{ GSM411_RP_CAUSE_MSG_INCOMP_STATE, "Message incompatible with protocol state" },
 	{ GSM411_RP_CAUSE_IE_NOTEXIST, "Information Element not existing" },
 	{ GSM411_RP_CAUSE_PROTOCOL_ERR, "Protocol Error" },
diff --git a/src/shared/libosmocore/src/gsm/gsm0808.c b/src/shared/libosmocore/src/gsm/gsm0808.c
index 3009827..a2b66d8 100644
--- a/src/shared/libosmocore/src/gsm/gsm0808.c
+++ b/src/shared/libosmocore/src/gsm/gsm0808.c
@@ -192,7 +192,7 @@
 	/* write 3.2.2.22 */
 	msgb_tv_put(msg, GSM0808_IE_RR_CAUSE, rr_cause);
 
-	/* write cirtcuit identity  code 3.2.2.2 */
+	/* write circuit identity code 3.2.2.2 */
 	/* write cell identifier 3.2.2.17 */
 	/* write chosen channel 3.2.2.33 when BTS picked it */
 	msgb_tv_put(msg, GSM0808_IE_CHOSEN_CHANNEL, chosen_channel);
diff --git a/src/shared/libosmocore/src/gsm/gsm48.c b/src/shared/libosmocore/src/gsm/gsm48.c
index ea05d45..4910a0c 100644
--- a/src/shared/libosmocore/src/gsm/gsm48.c
+++ b/src/shared/libosmocore/src/gsm/gsm48.c
@@ -152,7 +152,7 @@
 	{ GSM48_RR_CAUSE_CALL_CLEARED,		"Call already cleared" },
 	{ GSM48_RR_CAUSE_SEMANT_INCORR,		"Semantically incorrect message" },
 	{ GSM48_RR_CAUSE_INVALID_MAND_INF,	"Invalid mandatory information" },
-	{ GSM48_RR_CAUSE_MSG_TYPE_N,		"Message type non-existant or not implemented" },
+	{ GSM48_RR_CAUSE_MSG_TYPE_N,		"Message type non-existent or not implemented" },
 	{ GSM48_RR_CAUSE_MSG_TYPE_N_COMPAT,	"Message type not compatible with protocol state" },
 	{ GSM48_RR_CAUSE_COND_IE_ERROR,		"Conditional IE error" },
 	{ GSM48_RR_CAUSE_NO_CELL_ALLOC_A,	"No cell allocation available" },
@@ -285,7 +285,7 @@
 	lai48->lac = htons(lac);
 }
 
-/* Attention: this function retunrs true integers, not hex! */
+/* Attention: this function returns true integers, not hex! */
 int gsm48_decode_lai(struct gsm48_loc_area_id *lai, uint16_t *mcc,
 		     uint16_t *mnc, uint16_t *lac)
 {
diff --git a/src/shared/libosmocore/src/gsm/gsm48_ie.c b/src/shared/libosmocore/src/gsm/gsm48_ie.c
index 78619b9..6cd6668 100644
--- a/src/shared/libosmocore/src/gsm/gsm48_ie.c
+++ b/src/shared/libosmocore/src/gsm/gsm48_ie.c
@@ -766,7 +766,7 @@
 	 *
 	 * The Range format uses "SMOD" computation.
 	 * e.g. "n SMOD m" equals "((n - 1) % m) + 1"
-	 * A cascade of multiple SMOD computations is simpified:
+	 * A cascade of multiple SMOD computations is simplified:
 	 * "(n SMOD m) SMOD o" equals "(((n - 1) % m) % o) + 1"
 	 *
 	 * The Range format uses 16 octets of data in SYSTEM INFORMATION.
diff --git a/src/shared/libosmocore/src/gsm/lapd_core.c b/src/shared/libosmocore/src/gsm/lapd_core.c
index 96099ed..a23a1b0 100644
--- a/src/shared/libosmocore/src/gsm/lapd_core.c
+++ b/src/shared/libosmocore/src/gsm/lapd_core.c
@@ -58,8 +58,8 @@
  * T203 is optional. It will be stated when entering MF EST state. It will also
  * be started when I or S frame is received in that state . It will be
  * restarted in the lapd_acknowledge() function, in case outstanding frames
- * will not trigger T200. It will be stoped, when T200 is started in MF EST
- * state. It will also be stoped when leaving MF EST state.
+ * will not trigger T200. It will be stopped, when T200 is started in MF EST
+ * state. It will also be stopped when leaving MF EST state.
  *
  */
 
@@ -323,7 +323,7 @@
 /* reset and de-allocate history buffer */
 void lapd_dl_exit(struct lapd_datalink *dl)
 {
-	/* free all ressources except history buffer */
+	/* free all resources except history buffer */
 	lapd_dl_reset(dl);
 	/* free history buffer list */
 	talloc_free(dl->tx_hist);
@@ -702,7 +702,7 @@
 	lapd_start_t200(dl);
 }
 
-/* 5.5.3.1: Common function to acknowlege frames up to the given N(R) value */
+/* 5.5.3.1: Common function to acknowledge frames up to the given N(R) value */
 static void lapd_acknowledge(struct lapd_msg_ctx *lctx)
 {
 	struct lapd_datalink *dl = lctx->dl;
@@ -833,7 +833,7 @@
 #endif
 				if (memcmp(dl->cont_res, msg->data, length)) {
 					LOGP(DLLAPD, LOGL_INFO, "Another SABM "
-						"with diffrent content - "
+						"with different content - "
 						"ignoring!\n");
 					msgb_free(msg);
 					return 0;
@@ -1037,7 +1037,7 @@
 			 * parameters" is sent to the mobile management entity.
 			 */
 			LOGP(DLLAPD, LOGL_NOTICE,
-				"U frame iwth incorrect parameters ");
+				"U frame with incorrect parameters ");
 			msgb_free(msg);
 			mdl_error(MDL_CAUSE_UFRM_INC_PARAM, lctx);
 			return -EIO;
@@ -1216,7 +1216,7 @@
 	if (lctx->cr == dl->cr.rem2loc.resp
 	 && lctx->p_f
 	 && dl->state != LAPD_STATE_TIMER_RECOV) {
-		/* 5.4.2.2: Inidcate error on supervisory reponse F=1 */
+		/* 5.4.2.2: Inidcate error on supervisory response F=1 */
 		LOGP(DLLAPD, LOGL_NOTICE, "S frame response with F=1 error\n");
 		mdl_error(MDL_CAUSE_UNSOL_SPRV_RESP, lctx);
 	}
@@ -1238,7 +1238,7 @@
 	case LAPD_S_RR:
 		LOGP(DLLAPD, LOGL_INFO, "RR received in state %s\n",
 			lapd_state_names[dl->state]);
-		/* 5.5.3.1: Acknowlege all tx frames up the the N(R)-1 */
+		/* 5.5.3.1: Acknowledge all tx frames up the the N(R)-1 */
 		lapd_acknowledge(lctx);
 
 		/* 5.5.3.2 */
@@ -1281,7 +1281,7 @@
 	case LAPD_S_RNR:
 		LOGP(DLLAPD, LOGL_INFO, "RNR received in state %s\n",
 			lapd_state_names[dl->state]);
-		/* 5.5.3.1: Acknowlege all tx frames up the the N(R)-1 */
+		/* 5.5.3.1: Acknowledge all tx frames up the the N(R)-1 */
 		lapd_acknowledge(lctx);
 
 		/* 5.5.5 */
@@ -1325,7 +1325,7 @@
 	case LAPD_S_REJ:
 		LOGP(DLLAPD, LOGL_INFO, "REJ received in state %s\n",
 			lapd_state_names[dl->state]);
-		/* 5.5.3.1: Acknowlege all tx frames up the the N(R)-1 */
+		/* 5.5.3.1: Acknowledge all tx frames up the the N(R)-1 */
 		lapd_acknowledge(lctx);
 
 		/* 5.5.4.1 */
@@ -1515,7 +1515,7 @@
 			dl->seq_err_cond = 2;
 		}
 		/* Even if N(s) sequence error, acknowledge to N(R)-1 */
-		/* 5.5.3.1: Acknowlege all transmitted frames up the N(R)-1 */
+		/* 5.5.3.1: Acknowledge all transmitted frames up the N(R)-1 */
 		lapd_acknowledge(lctx); /* V(A) is also set here */
 
 		/* Send message, if possible due to acknowledged data */
@@ -1529,7 +1529,7 @@
 	dl->v_recv = inc_mod(dl->v_recv, dl->v_range);
 	LOGP(DLLAPD, LOGL_INFO, "incrementing V(R) to %u\n", dl->v_recv);
 
-	/* 5.5.3.1: Acknowlege all transmitted frames up the the N(R)-1 */
+	/* 5.5.3.1: Acknowledge all transmitted frames up the the N(R)-1 */
 	lapd_acknowledge(lctx); /* V(A) is also set here */
 
 	/* Only if we are not in own receiver busy condition */
diff --git a/src/shared/libosmocore/src/gsm/lapdm.c b/src/shared/libosmocore/src/gsm/lapdm.c
index 1c08113..185108e 100644
--- a/src/shared/libosmocore/src/gsm/lapdm.c
+++ b/src/shared/libosmocore/src/gsm/lapdm.c
@@ -158,7 +158,7 @@
 	lapdm_entity_init(&lc->lapdm_dcch, mode, 1);
 }
 
-/*! \brief flush and release all resoures in LAPDm entity */
+/*! \brief flush and release all resources in LAPDm entity */
 void lapdm_entity_exit(struct lapdm_entity *le)
 {
 	unsigned int i;
@@ -570,7 +570,7 @@
 			rsl_rll_error(RLL_CAUSE_FRM_UNIMPL, &mctx);
 			return -EINVAL;
 		}
-		/* adress field */
+		/* address field */
 		lctx.lpd = LAPDm_ADDR_LPD(msg->l2h[0]);
 		lctx.sapi = LAPDm_ADDR_SAPI(msg->l2h[0]);
 		lctx.cr = LAPDm_ADDR_CR(msg->l2h[0]);
diff --git a/src/shared/libosmocore/src/gsm/rsl.c b/src/shared/libosmocore/src/gsm/rsl.c
index 5693b4f..72bfc61 100644
--- a/src/shared/libosmocore/src/gsm/rsl.c
+++ b/src/shared/libosmocore/src/gsm/rsl.c
@@ -470,7 +470,7 @@
 	/* construct a RSLms RLL message (DATA INDICATION, UNIT DATA
 	 * INDICATION) and send it off via RSLms */
 
-	/* Push the L3 IE tag and lengh */
+	/* Push the L3 IE tag and length */
 	msgb_tv16_push(msg, RSL_IE_L3_INFO, l3_len);
 
 	/* Then push the RSL header */
diff --git a/src/shared/libosmocore/src/gsm/tlv_parser.c b/src/shared/libosmocore/src/gsm/tlv_parser.c
index d18a6bf..b375b6e 100644
--- a/src/shared/libosmocore/src/gsm/tlv_parser.c
+++ b/src/shared/libosmocore/src/gsm/tlv_parser.c
@@ -51,7 +51,7 @@
 		return 1;
 	}
 
-	/* FIXME: use tables for knwon IEI */
+	/* FIXME: use tables for known IEI */
 	switch (def->def[tag].type) {
 	case TLV_TYPE_T:
 		/* GSM TS 04.07 11.2.4: Type 1 TV or Type 2 T */
diff --git a/src/shared/libosmocore/src/logging.c b/src/shared/libosmocore/src/logging.c
index f58265f..447515d 100644
--- a/src/shared/libosmocore/src/logging.c
+++ b/src/shared/libosmocore/src/logging.c
@@ -113,7 +113,7 @@
 	"Log simply everything",
 	"Log debug messages and higher levels",
 	"Log informational messages and higher levels",
-	"Log noticable messages and higher levels",
+	"Log noticeable messages and higher levels",
 	"Log error messages and higher levels",
 	"Log only fatal messages",
 	NULL,
diff --git a/src/shared/libosmocore/src/msgb.c b/src/shared/libosmocore/src/msgb.c
index c8564db..6b966f3 100644
--- a/src/shared/libosmocore/src/msgb.c
+++ b/src/shared/libosmocore/src/msgb.c
@@ -105,10 +105,10 @@
 }
 
 /*! \brief Re-set all message buffer pointers
- *  \param[in] m message buffer that is to be resetted
+ *  \param[in] m message buffer that is to be reset
  *
  * This will re-set the various internal pointers into the underlying
- * message buffer, i.e. remvoe all headroom and treat the msgb as
+ * message buffer, i.e. remove all headroom and treat the msgb as
  * completely empty.  It also initializes the control buffer to zero.
  */
 void msgb_reset(struct msgb *msg)
diff --git a/src/shared/libosmocore/src/socket.c b/src/shared/libosmocore/src/socket.c
index 53205cd..b2a79e8 100644
--- a/src/shared/libosmocore/src/socket.c
+++ b/src/shared/libosmocore/src/socket.c
@@ -124,7 +124,7 @@
  *  \param[in] port remote port number in host byte order
  *  \param[in] flags flags like \ref OSMO_SOCK_F_CONNECT
  *
- * This function creates (and optionall binds/connects) a socket using
+ * This function creates (and optional binds/connects) a socket using
  * \ref osmo_sock_init, but also fills the \a ofd structure.
  */
 int osmo_sock_init_ofd(struct osmo_fd *ofd, int family, int type, int proto,
@@ -154,7 +154,7 @@
  *  \param[in] proto Protocol like IPPROTO_TCP, IPPROTO_UDP
  *  \param[in] flags flags like \ref OSMO_SOCK_F_CONNECT
  *
- * This function creates (and optionall binds/connects) a socket using
+ * This function creates (and optional binds/connects) a socket using
  * \ref osmo_sock_init, but also fills the \a ss structure.
  */
 int osmo_sock_init_sa(struct sockaddr *ss, uint16_t type,
diff --git a/src/shared/libosmocore/src/talloc.c b/src/shared/libosmocore/src/talloc.c
index d3a0690..fdeda40 100644
--- a/src/shared/libosmocore/src/talloc.c
+++ b/src/shared/libosmocore/src/talloc.c
@@ -701,7 +701,7 @@
 
 /*
   remove a specific parent context from a pointer. This is a more
-  controlled varient of talloc_free()
+  controlled variant of talloc_free()
 */
 int talloc_unlink(const void *context, void *ptr)
 {
diff --git a/src/shared/libosmocore/src/timer.c b/src/shared/libosmocore/src/timer.c
index 6d4abc2..c9a24f8 100644
--- a/src/shared/libosmocore/src/timer.c
+++ b/src/shared/libosmocore/src/timer.c
@@ -119,7 +119,7 @@
  *  \return 1 if pending, 0 otherwise
  *
  * This function can be used to determine whether a given timer
- * has alredy expired (returns 0) or is still pending (returns 1)
+ * has already expired (returns 0) or is still pending (returns 1)
  */
 int osmo_timer_pending(struct osmo_timer_list *timer)
 {
@@ -174,7 +174,7 @@
 		if (timercmp(cand, current, >))
 			timersub(cand, current, &nearest);
 		else {
-			/* loop again inmediately */
+			/* loop again immediately */
 			nearest.tv_sec = 0;
 			nearest.tv_usec = 0;
 		}
diff --git a/src/shared/libosmocore/src/utils.c b/src/shared/libosmocore/src/utils.c
index cf0c934..7c05879 100644
--- a/src/shared/libosmocore/src/utils.c
+++ b/src/shared/libosmocore/src/utils.c
@@ -37,7 +37,7 @@
 /*! \brief get numeric value for given human-readable string
  *  \param[in] vs Array of value_string tuples
  *  \param[in] str human-readable string
- *  \returns numeric value (>0) or negative numer in case of error
+ *  \returns numeric value (>0) or negative number in case of error
  */
 int get_string_value(const struct value_string *vs, const char *str)
 {
diff --git a/src/shared/libosmocore/src/vty/buffer.c b/src/shared/libosmocore/src/vty/buffer.c
index e385f9f..88b1044 100644
--- a/src/shared/libosmocore/src/vty/buffer.c
+++ b/src/shared/libosmocore/src/vty/buffer.c
@@ -59,7 +59,7 @@
 /* It should always be true that: 0 <= sp <= cp <= size */
 
 /* Default buffer size (used if none specified).  It is rounded up to the
-   next page boundery. */
+   next page boundary. */
 #define BUFFER_SIZE_DEFAULT		4096
 
 #define BUFFER_DATA_FREE(D) talloc_free((D))
diff --git a/src/shared/libosmocore/src/vty/command.c b/src/shared/libosmocore/src/vty/command.c
index 7f83a5e..929127d 100644
--- a/src/shared/libosmocore/src/vty/command.c
+++ b/src/shared/libosmocore/src/vty/command.c
@@ -1790,7 +1790,7 @@
 	} else
 		index = vector_active(vline) - 1;
 
-	/* First, filter by preceeding command string */
+	/* First, filter by preceding command string */
 	for (i = 0; i < index; i++)
 		if ((command = vector_slot(vline, i))) {
 			enum match_type match;
@@ -2115,7 +2115,7 @@
 		ret = cmd_execute_command_real(vline, vty, cmd);
 		tried = 1;
 		if (ret == CMD_SUCCESS || ret == CMD_WARNING) {
-			/* succesfull command, leave the node as is */
+			/* successful command, leave the node as is */
 			return ret;
 		}
 	}
@@ -2240,7 +2240,7 @@
 	return (*matched_element->func) (matched_element, vty, argc, argv);
 }
 
-/* Configration make from file. */
+/* Configuration make from file. */
 int config_from_file(struct vty *vty, FILE * fp)
 {
 	int ret;
@@ -2272,7 +2272,7 @@
 	return CMD_SUCCESS;
 }
 
-/* Configration from terminal */
+/* Configuration from terminal */
 DEFUN(config_terminal,
       config_terminal_cmd,
       "configure terminal",
diff --git a/src/shared/libosmocore/src/vty/logging_vty.c b/src/shared/libosmocore/src/vty/logging_vty.c
index 6029d58..7d87bc3 100644
--- a/src/shared/libosmocore/src/vty/logging_vty.c
+++ b/src/shared/libosmocore/src/vty/logging_vty.c
@@ -269,7 +269,7 @@
 
 gDEFUN(cfg_description, cfg_description_cmd,
 	"description .TEXT",
-	"Save human-readable decription of the object\n"
+	"Save human-readable description of the object\n"
 	"Text until the end of the line\n")
 {
 	char **dptr = vty->index_sub;
diff --git a/src/shared/libosmocore/src/vty/vty.c b/src/shared/libosmocore/src/vty/vty.c
index cafe202..e7db2c7 100644
--- a/src/shared/libosmocore/src/vty/vty.c
+++ b/src/shared/libosmocore/src/vty/vty.c
@@ -358,7 +358,7 @@
 		if (f) {
 			while (fgets(buf, sizeof(buf), f)) {
 				char *s;
-				/* work backwards to ignore trailling isspace() */
+				/* work backwards to ignore trailing isspace() */
 				for (s = buf + strlen(buf);
 				     (s > buf) && isspace(*(s - 1)); s--) ;
 				*s = '\0';
@@ -851,7 +851,7 @@
 	vty->cp = 0;
 }
 
-/* Delete a charcter at the current point. */
+/* Delete a character at the current point. */
 static void vty_delete_char(struct vty *vty)
 {
 	int i;
diff --git a/src/target/firmware/apps/rssi/main.c b/src/target/firmware/apps/rssi/main.c
index 5020486..e137806 100644
--- a/src/target/firmware/apps/rssi/main.c
+++ b/src/target/firmware/apps/rssi/main.c
@@ -1260,7 +1260,7 @@
 /* Main Program */
 const char *hr = "======================================================================\n";
 
-/* match request reference agains request history */
+/* match request reference against request history */
 static int gsm48_match_ra(struct gsm48_req_ref *ref)
 {
 	uint8_t ia_t1, ia_t2, ia_t3;
diff --git a/src/target/firmware/board/compal/highram.lds b/src/target/firmware/board/compal/highram.lds
index 9309d83..f2e04a3 100644
--- a/src/target/firmware/board/compal/highram.lds
+++ b/src/target/firmware/board/compal/highram.lds
@@ -16,7 +16,7 @@
     XRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00020000
     /* highram binary single big zone with all rest of internal SRAM */
     /*  -> our text, initialized data */
-    /*  -> our unitialized data, stacks, heap */
+    /*  -> our uninitialized data, stacks, heap */
     RAM  (rw) : ORIGIN = 0x00820000, LENGTH = 0x00030000
 }
 SECTIONS
diff --git a/src/target/firmware/board/compal/ram.lds b/src/target/firmware/board/compal/ram.lds
index 4f08a83..ed7bb62 100644
--- a/src/target/firmware/board/compal/ram.lds
+++ b/src/target/firmware/board/compal/ram.lds
@@ -12,7 +12,7 @@
     /* compal-loaded binary: our text, initialized data */
     /* (only this zone can contain loaded data since loader is 64k limit) */
     LRAM (rw) : ORIGIN = 0x00800000, LENGTH = 0x00010000
-    /* compal-loaded binary: our unitialized data, stacks, heap */
+    /* compal-loaded binary: our uninitialized data, stacks, heap */
     IRAM (rw) : ORIGIN = 0x00810000, LENGTH = 0x00030000
 }
 SECTIONS
diff --git a/src/target/firmware/board/mediatek/ram.lds b/src/target/firmware/board/mediatek/ram.lds
index 7083c27..84568cf 100644
--- a/src/target/firmware/board/mediatek/ram.lds
+++ b/src/target/firmware/board/mediatek/ram.lds
@@ -12,7 +12,7 @@
 {
     /* mtk-loaded binary: our text, initialized data */
     LRAM (rw) : ORIGIN = 0x40000000, LENGTH = 0x00006000
-    /* mtk-loaded binary: our unitialized data, stacks, heap */
+    /* mtk-loaded binary: our uninitialized data, stacks, heap */
     IRAM (rw) : ORIGIN = 0x40006000, LENGTH = 0x00006000
 }
 SECTIONS
diff --git a/src/target/firmware/calypso/sim.c b/src/target/firmware/calypso/sim.c
index 752628f..dc5885c 100644
--- a/src/target/firmware/calypso/sim.c
+++ b/src/target/firmware/calypso/sim.c
@@ -58,7 +58,7 @@
 #define L3_MSG_HEAD 4
 
 static uint8_t sim_data[256]; /* buffer for SIM command */
-static volatile uint16_t sim_len = 0; /* lenght of data in sim_data[] */
+static volatile uint16_t sim_len = 0; /* length of data in sim_data[] */
 static volatile uint8_t sim_state = SIM_STATE_IDLE;
 	/* current state of SIM process */
 static volatile uint8_t sim_ignore_waiting_char = 0;
diff --git a/src/target/firmware/comm/sercomm.c b/src/target/firmware/comm/sercomm.c
index 490e225..cebd37d 100644
--- a/src/target/firmware/comm/sercomm.c
+++ b/src/target/firmware/comm/sercomm.c
@@ -182,7 +182,7 @@
 			sercomm_unlock(&flags);
 			return 1;
 		} else {
-			/* no more data avilable */
+			/* no more data available */
 			sercomm_unlock(&flags);
 			return 0;
 		}
diff --git a/src/target/firmware/fb/fb_rgb332.c b/src/target/firmware/fb/fb_rgb332.c
index 08d64e1..569ccc7 100644
--- a/src/target/firmware/fb/fb_rgb332.c
+++ b/src/target/firmware/fb/fb_rgb332.c
@@ -144,7 +144,7 @@
 
 	int t,tmax;		/* counter for steps */
 	int err_inc,err_accu=0;	/* error delta and accumulator for */
-				/* Brensenham's algorhithm */
+				/* Brensenham's algorithm */
 
 	fb_limit_fb_range(&x1,&y1);
 	fb_limit_fb_range(&x2,&y2);
diff --git a/src/target/firmware/fb/fb_s6b33b1x.c b/src/target/firmware/fb/fb_s6b33b1x.c
index 788ada7..e36c547 100644
--- a/src/target/firmware/fb/fb_s6b33b1x.c
+++ b/src/target/firmware/fb/fb_s6b33b1x.c
@@ -72,7 +72,7 @@
 	{ DATA, 0x0a }, /* DATA: fPCK = fOSC/6 */
 	{ CMD,  0x2a }, /* CMD   Contrast Control */
 	{ DATA, 0x2d }, /* DATA: default contrast */
-	{ CMD,  0x30 }, /* CMD   Adressing mode set */
+	{ CMD,  0x30 }, /* CMD   Addressing mode set */
 	{ DATA, 0x0b }, /* DATA: 65536 color mode */
 	{ CMD,  0x10 }, /* CMD   Driver output mode set */
 	{ DATA, 0x03 }, /* DATA: Display duty: 1/132 */
diff --git a/src/target/firmware/include/abb/twl3025.h b/src/target/firmware/include/abb/twl3025.h
index 938a425..727bde0 100755
--- a/src/target/firmware/include/abb/twl3025.h
+++ b/src/target/firmware/include/abb/twl3025.h
@@ -122,7 +122,7 @@
 enum togbr2_bits {
 	TOGBR2_KEEPR	= (1 << 0),	/* Clear KEEPON bit */
 	TOGBR2_KEEPS	= (1 << 1),	/* Set KEEPON bit */
-	TOGBR2_ACTR	= (1 << 2),	/* Dectivate MCLK */
+	TOGBR2_ACTR	= (1 << 2),	/* Deactivate MCLK */
 	TOGBR2_ACTS	= (1 << 3),	/* Activate MCLK */
 	TOGBR2_IBUFPTR1	= (1 << 4),	/* Initialize pointer of burst buffer 1 */
 	TOGBR2_IBUFPTR2	= (1 << 5),	/* Initialize pointer of burst buffer 2 */
diff --git a/src/target/firmware/include/calypso/dsp_api.h b/src/target/firmware/include/calypso/dsp_api.h
index f9751f3..234964f 100644
--- a/src/target/firmware/include/calypso/dsp_api.h
+++ b/src/target/firmware/include/calypso/dsp_api.h
@@ -45,7 +45,7 @@
   API d_task_ra;          // (7) RA task command.
   API d_fn;               // (8)  FN, in Rep. period and FN%104, used for TRAFFIC/TCH only.
                              //        bit [0..7]  -> b_fn_report, FN in the normalized reporting period.
-                             //        bit [8..15] -> b_fn_sid,    FN % 104, used for SID positionning.
+                             //        bit [8..15] -> b_fn_sid,    FN % 104, used for SID positioning.
   API d_ctrl_tch;         // (9)  Tch channel description.
                              //        bit [0..3]  -> b_chan_mode,    channel  mode.
                              //        bit [4..5]  -> b_chan_type,    channel type.
@@ -72,7 +72,7 @@
                              //        word 1, bit [0..11] -> T1.
   API d_power_ctl;        // (14) Power level control.
   API d_afc;              // (15) AFC value (enabled by "b_afc" in "d_ctrl_TCM4400 or in d_ctrl_abb").
-  API d_ctrl_system;      // (16) Controle Register for RESET/RESUME.
+  API d_ctrl_system;      // (16) Control Register for RESET/RESUME.
                              //        bit [0..2] -> b_tsq,           training sequence.
                              //        bit [3]    -> b_bcch_freq_ind, BCCH frequency indication.
                              //        bit [15]   -> b_task_abort,    DSP task abort command.
@@ -264,7 +264,7 @@
 
     // Speech Recognition module
     API d_sr_status;          // status of the DSP speech reco task
-    API d_sr_param;           // paramters for the DSP speech reco task: OOV threshold.
+    API d_sr_param;           // parameters for the DSP speech reco task: OOV threshold.
     API d_sr_bit_exact_test;  // bit exact test
     API d_sr_nb_words;        // number of words used in the speech recognition task
     API d_sr_db_level;        // estimate voice level in dB
@@ -608,7 +608,7 @@
 
     // Speech Recognition module
     API d_sr_status;          // status of the DSP speech reco task
-    API d_sr_param;           // paramters for the DSP speech reco task: OOV threshold.
+    API d_sr_param;           // parameters for the DSP speech reco task: OOV threshold.
     API d_sr_bit_exact_test;  // bit exact test
     API d_sr_nb_words;        // number of words used in the speech recognition task
     API d_sr_db_level;        // estimate voice level in dB
@@ -766,7 +766,7 @@
                                 // The size of this buffer is 15 word but some speech reco words
                                 // are overlayer with this buffer. This is the reason why the size is 3 instead of 15.
       API d_sr_status;          // status of the DSP speech reco task
-      API d_sr_param;           // paramters for the DSP speech reco task: OOV threshold.
+      API d_sr_param;           // parameters for the DSP speech reco task: OOV threshold.
       API sr_hole1;             // hole
       API d_sr_bit_exact_test;  // bit exact test
       API d_sr_nb_words;        // number of words used in the speech recognition task
@@ -989,7 +989,7 @@
                               // The size of this buffer is 15 word but some speech reco words
                               // are overlayer with this buffer. This is the reason why the size is 3 instead of 15.
     API d_sr_status;          // status of the DSP speech reco task
-    API d_sr_param;           // paramters for the DSP speech reco task: OOV threshold.
+    API d_sr_param;           // parameters for the DSP speech reco task: OOV threshold.
     API sr_hole1;             // hole
     API d_sr_bit_exact_test;  // bit exact test
     API d_sr_nb_words;        // number of words used in the speech recognition task
diff --git a/src/target/firmware/include/calypso/l1_environment.h b/src/target/firmware/include/calypso/l1_environment.h
index d4d442c..d49866e 100644
--- a/src/target/firmware/include/calypso/l1_environment.h
+++ b/src/target/firmware/include/calypso/l1_environment.h
@@ -90,9 +90,9 @@
 
 // bits in d_gsm_bgd_mgt - background task management
 #define B_DSPBGD_RECO           1       // start of reco in dsp background
-#define B_DSPBGD_UPD            2       // start of alignement update in dsp background
+#define B_DSPBGD_UPD            2       // start of alignment update in dsp background
 #define B_DSPBGD_STOP_RECO      256     // stop of reco in dsp background
-#define B_DSPBGD_STOP_UPD       512     // stop of alignement update in dsp background
+#define B_DSPBGD_STOP_UPD       512     // stop of alignment update in dsp background
 
 // bit in d_pll_config
 #define B_32KHZ_CALIB      (1 << 14) // force DSP in Idle1 during 32 khz calibration
diff --git a/src/target/firmware/include/calypso/sim.h b/src/target/firmware/include/calypso/sim.h
index 5e33bdb..8f627b1 100755
--- a/src/target/firmware/include/calypso/sim.h
+++ b/src/target/firmware/include/calypso/sim.h
@@ -160,7 +160,7 @@
 
 /* APDU transmission modes */
 #define SIM_APDU_PUT 0		/* Transmit a data body to the card */
-#define SIM_APDU_GET 1		/* Fetch data from the card eg. GET RESOPNSE */
+#define SIM_APDU_GET 1		/* Fetch data from the card eg. GET RESPONSE */
 
 
 void calypso_sim_init(void);				/* Initialize simcard interface */
diff --git a/src/target/firmware/include/fb/fb_bw8.h b/src/target/firmware/include/fb/fb_bw8.h
index c77fa71..d84f91a 100644
--- a/src/target/firmware/include/fb/fb_bw8.h
+++ b/src/target/firmware/include/fb/fb_bw8.h
@@ -3,7 +3,7 @@
 
 /* 8bit monochrome framebuffer, organized with 8 stacked pixels
    per byte, backed by local memory. fb_bw8.c lists functions that
-   are common to simmilar organized displays. */
+   are common to similar organized displays. */
 
 /*
 	Sketch of Memory Layout 
diff --git a/src/target/firmware/include/layer1/sync.h b/src/target/firmware/include/layer1/sync.h
index 3565ee2..daf998b 100644
--- a/src/target/firmware/include/layer1/sync.h
+++ b/src/target/firmware/include/layer1/sync.h
@@ -15,7 +15,7 @@
 	uint8_t		bsic;
 	/* Combined or non-combined CCCH */
 	uint8_t		ccch_mode; /* enum ccch_mode */
-	/* whats the delta of the cells current GSM frame number
+	/* what's the delta of the cells current GSM frame number
 	 * compared to our current local frame number */
 	int32_t		fn_offset;
 	/* how much does the TPU need adjustment (delta) to synchronize
diff --git a/src/target/firmware/layer1/l23_api.c b/src/target/firmware/layer1/l23_api.c
index e78020d..f55e670 100644
--- a/src/target/firmware/layer1/l23_api.c
+++ b/src/target/firmware/layer1/l23_api.c
@@ -570,7 +570,7 @@
 	struct l1ctl_traffic_req *tr = (struct l1ctl_traffic_req *) ul->payload;
 	int num = 0;
 
-	/* printd("L1CTL_TRAFFIC_REQ\n"); */ /* Very verbose, can overwelm serial */
+	/* printd("L1CTL_TRAFFIC_REQ\n"); */ /* Very verbose, can overwhelm serial */
 
 	msg->l2h = tr->data;
 
diff --git a/src/target/firmware/layer1/prim_fbsb.c b/src/target/firmware/layer1/prim_fbsb.c
index 50acefc..8eaeb5a 100644
--- a/src/target/firmware/layer1/prim_fbsb.c
+++ b/src/target/firmware/layer1/prim_fbsb.c
@@ -234,7 +234,7 @@
 
 	synchronize_tdma(&l1s.serving_cell);
 
-	/* if we have recived a SYNC burst, update our local GSM time */
+	/* if we have received a SYNC burst, update our local GSM time */
 	gsm_fn2gsmtime(&l1s.current_time, fbs.mon.time.fn + SB2_LATENCY);
 	/* compute next time from new current time */
 	l1s.next_time = l1s.current_time;
@@ -532,7 +532,7 @@
 		return;
 	}
 
-	/* FIME: use l1s.neigh_cell[fbs.cinfo_idx] */
+	/* FIXME: use l1s.neigh_cell[fbs.cinfo_idx] */
 	fbinfo2cellinfo(&l1s.serving_cell, last_fb);
 
 	/* send FBSB_CONF success message via L1CTL */
diff --git a/src/target/firmware/layer1/prim_tch.c b/src/target/firmware/layer1/prim_tch.c
index a8036d2..0254654 100644
--- a/src/target/firmware/layer1/prim_tch.c
+++ b/src/target/firmware/layer1/prim_tch.c
@@ -607,7 +607,7 @@
  * ------------------------------------------------------------------------- */
 
 /*
- * SACCH data are spread over 4 bursts, however they are so far appart that
+ * SACCH data are spread over 4 bursts, however they are so far apart that
  * we can't use the normal scheduler to schedule all them at once in a single
  * set.
  * Therefore, the task code itself decides in which burst it is, if it's the
diff --git a/src/target/firmware/layer1/sync.c b/src/target/firmware/layer1/sync.c
index 36f4297..b1eedd0 100644
--- a/src/target/firmware/layer1/sync.c
+++ b/src/target/firmware/layer1/sync.c
@@ -168,7 +168,7 @@
 	dsp_api.ndb->d_dsp_page = 0;
 
 	/* we have to really reset the TPU, otherwise FB detection
-	 * somtimes returns wrong TOA values. */
+	 * sometimes returns wrong TOA values. */
 	tpu_reset(1);
 	tpu_reset(0);
 	tpu_rewind();
diff --git a/src/target/firmware/lib/vsprintf.c b/src/target/firmware/lib/vsprintf.c
index 80e8c1a..8e92e2a 100644
--- a/src/target/firmware/lib/vsprintf.c
+++ b/src/target/firmware/lib/vsprintf.c
@@ -615,7 +615,7 @@
 
 	while(*fmt && *str) {
 		/* skip any white space in format */
-		/* white space in format matchs any amount of
+		/* white space in format matches any amount of
 		 * white space, including none, in the input.
 		 */
 		if (isspace(*fmt)) {
diff --git a/src/target/firmware/rf/trf6151.c b/src/target/firmware/rf/trf6151.c
index 9de2cc8..ec13928 100644
--- a/src/target/firmware/rf/trf6151.c
+++ b/src/target/firmware/rf/trf6151.c
@@ -300,8 +300,8 @@
 		/* Low band. We have 3 possible PLL modes that output on
 		 * the right port: GSM900, GSM850_HIGH, GSM850_LOW.
 		 *
-		 * The transistion points have been chosen looking at the VCO
-		 * and IF frequencies for various frequencies for theses modes
+		 * The transition points have been chosen looking at the VCO
+		 * and IF frequencies for various frequencies for these modes
 		 */
 		if (freq_khz < 837100) {
 			/* GSM850_LOW */
diff --git a/src/target/trx_toolkit/data_dump.py b/src/target/trx_toolkit/data_dump.py
index da42023..b91408f 100644
--- a/src/target/trx_toolkit/data_dump.py
+++ b/src/target/trx_toolkit/data_dump.py
@@ -94,7 +94,7 @@
 	#   True in case of success,
 	#   or False in case of EOF or header parsing error.
 	def _seek2msg(self, idx):
-		# Seek to the begining of the capture
+		# Seek to the beginning of the capture
 		self.f.seek(0)
 
 		# Read the capture in loop...
@@ -161,7 +161,7 @@
 	#   or None in case of EOF or header parsing error,
 	#   or False in case of message parsing error or out of range.
 	def parse_msg(self, idx):
-		# Move descriptor to the begining of requested message
+		# Move descriptor to the beginning of requested message
 		rc = self._seek2msg(idx)
 		if not rc:
 			log.error("Couldn't find requested message")
@@ -179,7 +179,7 @@
 
 		# Should we skip some messages?
 		if skip is None:
-			# Seek to the begining of the capture
+			# Seek to the beginning of the capture
 			self.f.seek(0)
 		else:
 			rc = self._seek2msg(skip)
diff --git a/src/target_dsp/calypso/dump2coff.py b/src/target_dsp/calypso/dump2coff.py
index c05a0ff..17ff9fa 100755
--- a/src/target_dsp/calypso/dump2coff.py
+++ b/src/target_dsp/calypso/dump2coff.py
@@ -104,7 +104,7 @@
 				sptr,	# long int       s_scnptr; /* File pointer to raw data */
 				0,		# long int       s_relptr; /* File pointer to relocation entries */
 				0,		# long int       s_lnnoptr;/* File pointer to line number entries */
-				0,		# unsigned short s_nreloc; /* Number of relocation entrie */
+				0,		# unsigned short s_nreloc; /* Number of relocation entries */
 				0,		# unsigned short s_nlnno;  /* Number of line number entries */
 				s.flags,# unsigned short s_flags;  /* Flags (see ``Section header flags'') */
 				'\x00',	# /

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/15789
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I962b42871693f33b1054d43d195817e9cd84bb64
Gerrit-Change-Number: 15789
Gerrit-PatchSet: 1
Gerrit-Owner: roox <mardnh at gmx.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191013/97fe0c65/attachment.htm>


More information about the gerrit-log mailing list