From 0227e4d04caa62698a16894a2883bbac38dff6cc Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 4 Jun 2017 18:26:00 +0700 Subject: cosmetic: fix some typos Change-Id: Ib9172735bc7a05d9d7425a0e66dd90ff2569ee05 --- include/osmo-bts/scheduler.h | 4 ++-- include/osmo-bts/scheduler_backend.h | 2 +- src/common/scheduler.c | 6 +++--- src/osmo-bts-trx/scheduler_trx.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/osmo-bts/scheduler.h b/include/osmo-bts/scheduler.h index 33a99bbe..9dbc9461 100644 --- a/include/osmo-bts/scheduler.h +++ b/include/osmo-bts/scheduler.h @@ -127,7 +127,7 @@ struct l1sched_ts { uint8_t mf_period; /* period of multiframe */ const struct trx_sched_frame *mf_frames; /* pointer to frame layout */ - struct llist_head dl_prims; /* Queue primitves for TX */ + struct llist_head dl_prims; /* Queue primitives for TX */ /* Channel states for all logical channels */ struct l1sched_chan_state chan_state[_TRX_CHAN_MAX]; @@ -160,7 +160,7 @@ int trx_sched_ph_data_req(struct l1sched_trx *l1t, struct osmo_phsap_prim *l1sap /*! \brief Handle a PH-TCH.req from L2 down to L1 */ int trx_sched_tch_req(struct l1sched_trx *l1t, struct osmo_phsap_prim *l1sap); -/*! \brief PHY informs us of new (current) GSM freme nunmber */ +/*! \brief PHY informs us of new (current) GSM frame number */ int trx_sched_clock(struct gsm_bts *bts, uint32_t fn); /*! \brief handle an UL burst received by PHY */ diff --git a/include/osmo-bts/scheduler_backend.h b/include/osmo-bts/scheduler_backend.h index e63b9616..af1cfbf4 100644 --- a/include/osmo-bts/scheduler_backend.h +++ b/include/osmo-bts/scheduler_backend.h @@ -29,7 +29,7 @@ struct trx_chan_desc { trx_sched_dl_func *dl_fn; /*! \brief function to call when burst received from PHY */ trx_sched_ul_func *ul_fn; - /*! \breif is this channel automatically active at start? */ + /*! \brief is this channel automatically active at start? */ int auto_active; }; extern const struct trx_chan_desc trx_chan_desc[_TRX_CHAN_MAX]; diff --git a/src/common/scheduler.c b/src/common/scheduler.c index 27b7630b..121475a9 100644 --- a/src/common/scheduler.c +++ b/src/common/scheduler.c @@ -105,7 +105,7 @@ const ubit_t _sched_egprs_tsc[8][78] = { 0,1,0,0,1,1,1,1,0,0,1,0,0,1,0,0,1,0,0,1,1,1,1,1,1,1, }, }; -/*! \brief SCH trainign sequence (TS 05.02 Chapter 5.2.5) */ +/*! \brief SCH training sequence (TS 05.02 Chapter 5.2.5) */ const ubit_t _sched_sch_train[64] = { 1,0,1,1,1,0,0,1,0,1,1,0,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,1,1,1,1, 0,0,1,0,1,1,0,1,0,1,0,0,0,1,0,1,0,1,1,1,0,1,1,0,0,0,0,1,1,0,1,1, @@ -584,7 +584,7 @@ struct trx_sched_frame { enum trx_chan_type dl_chan; /*! \brief downlink block ID */ uint8_t dl_bid; - /*! \breff uplink TRX channel type */ + /*! \brief uplink TRX channel type */ enum trx_chan_type ul_chan; /*! \brief uplink block ID */ uint8_t ul_bid; @@ -1307,7 +1307,7 @@ struct trx_sched_multiframe { uint8_t period; /*! \brief pointer to scheduling structure */ const struct trx_sched_frame *frames; - /*! \brife human-readable name */ + /*! \brief human-readable name */ const char *name; }; diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index 9ec95923..8531d5cd 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -570,7 +570,7 @@ inval_mode2: } if (msgb_l2len(msg_tch) != len) { LOGP(DL1C, LOGL_ERROR, "Cannot send payload with " - "invalid length! (expecing %d, received %d)\n", + "invalid length! (expecting %d, received %d)\n", len, msgb_l2len(msg_tch)); free_bad_msg: /* free message */ @@ -1354,7 +1354,7 @@ bfi: /* TCH or BFI */ /* Note on FN 19 or 20: If we received the last burst of a frame, * it actually starts at FN 8 or 9. A burst starting there, overlaps - * with the slot 12, so an extra FN must be substracted to get correct + * with the slot 12, so an extra FN must be subtracted to get correct * start of frame. */ return _sched_compose_tch_ind(l1t, tn, -- cgit v1.2.3