From b378fccef11b41009f224ded1f42bdbf254eee6d Mon Sep 17 00:00:00 2001 From: Martin Hauke Date: Sun, 13 Oct 2019 19:09:39 +0200 Subject: Fix common misspellings and typos Change-Id: I403b9029f57fec3fdec2c1e2cbeac0f6eab53f24 --- src/osmo-bts-octphy/l1_if.c | 6 +++--- src/osmo-bts-octphy/l1_oml.c | 6 +++--- src/osmo-bts-octphy/octphy_vty.c | 2 +- src/osmo-bts-octphy/octpkt.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) (limited to 'src/osmo-bts-octphy') diff --git a/src/osmo-bts-octphy/l1_if.c b/src/osmo-bts-octphy/l1_if.c index bf2fa355..8f06b34e 100644 --- a/src/osmo-bts-octphy/l1_if.c +++ b/src/osmo-bts-octphy/l1_if.c @@ -998,7 +998,7 @@ static int handle_ph_readytosend_ind(struct octphy_hdl *fl1, set_log_ctx_sapi(evt->LchId.bySAPI); - /* Retrive the data */ + /* Retrieve the data */ fn = evt->ulFrameNumber; ts_num = (uint8_t) evt->LchId.byTimeslotNb; sc = (uint8_t) evt->LchId.bySubChannelNb; @@ -1194,7 +1194,7 @@ static int handle_ph_data_ind(struct octphy_hdl *fl1, /* burst timing in 1x but PCU is expecting 4X */ l1sap->u.data.ta_offs_256bits = data_ind->MeasurementInfo.sBurstTiming4x*64; snr = data_ind->MeasurementInfo.sSNRDb; - /* FIXME: better converion formulae for SnR -> C / I? + /* FIXME: better conversion formulae for SnR -> C / I? l1sap->u.data.lqual_cb = (snr ? snr : (snr - 65536)) * 10 / 256; LOGP(DL1C, LOGL_ERROR, "SnR: raw %d, computed %d\n", snr, l1sap->u.data.lqual_cb); */ @@ -1681,7 +1681,7 @@ static int rx_octphy_msg(struct msgb *msg) } /* we first need to decode the common OCTPKT header and dispatch - * based on contrl (command/resp) or data (event=indication) */ + * based on control (command/resp) or data (event=indication) */ switch (format) { case cOCTVOCNET_PKT_FORMAT_CTRL: ctlh = (tOCTVOCNET_PKT_CTL_HEADER *) (msg->l1h + 4); diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c index d44f7211..9c5dd199 100644 --- a/src/osmo-bts-octphy/l1_oml.c +++ b/src/osmo-bts-octphy/l1_oml.c @@ -506,7 +506,7 @@ static int set_ciph_compl_cb(struct octphy_hdl *fl1, struct msgb *resp, void *da * sub-channel, only th request contains this information :( */ lchan = &ts->lchan[(unsigned long) data]; - /* TODO: This state machine should be shared accross BTS models? */ + /* TODO: This state machine should be shared across BTS models? */ switch (lchan->ciph_state) { case LCHAN_CIPH_RX_REQ: lchan->ciph_state = LCHAN_CIPH_RX_CONF; @@ -1191,7 +1191,7 @@ static int app_info_compl_cb(struct octphy_hdl *fl1h, struct msgb *resp, if (!no_fw_check) { LOGP(DL1C, LOGL_ERROR, - "use option -I to override the check (not recommened)\n"); + "use option -I to override the check (not recommended)\n"); LOGP(DL1C, LOGL_ERROR, "exiting...\n"); exit(1); @@ -1346,7 +1346,7 @@ int l1if_trx_open(struct gsm_bts_trx *trx) if (plink->u.octphy.tx_atten_flag) { oc->RfConfig.ulTxAttndB = plink->u.octphy.tx_atten_db; } else { - /* Take the Tx Attn received in set radio attribures + /* Take the Tx Attn received in set radio attributes * x4 is for the value in db */ oc->RfConfig.ulTxAttndB = (trx->max_power_red) << 2; } diff --git a/src/osmo-bts-octphy/octphy_vty.c b/src/osmo-bts-octphy/octphy_vty.c index d250a957..afc2ce7b 100644 --- a/src/osmo-bts-octphy/octphy_vty.c +++ b/src/osmo-bts-octphy/octphy_vty.c @@ -60,7 +60,7 @@ static struct gsm_bts *vty_bts; DEFUN(cfg_phy_hwaddr, cfg_phy_hwaddr_cmd, "octphy hw-addr HWADDR", - OCT_STR "Configure the hardware addess of the OCTPHY\n" + OCT_STR "Configure the hardware address of the OCTPHY\n" "hardware address in aa:bb:cc:dd:ee:ff format\n") { struct phy_link *plink = vty->index; diff --git a/src/osmo-bts-octphy/octpkt.c b/src/osmo-bts-octphy/octpkt.c index d96d93d8..c6aea1f7 100644 --- a/src/osmo-bts-octphy/octpkt.c +++ b/src/osmo-bts-octphy/octpkt.c @@ -101,7 +101,7 @@ void octvc1_fill_msg_hdr(tOCTVC1_MSG_HEADER *mh, uint32_t len, #include /*! \brief Initialize a packet socket - * \param[in] tye Socket type like SOCK_RAW or SOCK_DGRAM + * \param[in] type Socket type like SOCK_RAW or SOCK_DGRAM * \param[in] proto The link-layer protocol in network byte order * \param[in] bind_dev The name of the interface to bind to (if any) * \param[in] flags flags like \ref OSMO_SOCK_F_BIND -- cgit v1.2.3