Fix common misspellings and typos
Change-Id: I962b42871693f33b1054d43d195817e9cd84bb64
This commit is contained in:
parent
9731f0d322
commit
1f7a2ab5d3
|
@ -30,7 +30,7 @@ Layer3 calls rslms_recvmsg() with a msgb that has the msgb->l2h pointing to a
|
|||
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 ===
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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 @@ struct gsm322_plmn {
|
|||
|
||||
/* 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 @@ struct gsm322_neighbour {
|
|||
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;
|
||||
|
|
|
@ -204,7 +204,7 @@ struct gsm48_mm_conn {
|
|||
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;
|
||||
|
|
|
@ -58,7 +58,7 @@ struct gsm_call {
|
|||
#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 @@ struct gsm_mncc {
|
|||
/* 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;
|
||||
|
|
|
@ -208,7 +208,7 @@ void sighandler(int sigset)
|
|||
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);
|
||||
|
||||
|
|
|
@ -177,7 +177,7 @@ void sap_msgb_add_param(struct msgb *msg,
|
|||
* \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)
|
||||
|
|
|
@ -1132,7 +1132,7 @@ int sim_apdu_resp(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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;
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ int gsm48_sysinfo_dump(struct gsm48_sysinfo *s, uint16_t arfcn,
|
|||
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)
|
||||
|
|
|
@ -53,7 +53,7 @@ static int signal_cb(unsigned int subsys, unsigned int signal,
|
|||
|
||||
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 actual L3 */
|
||||
fps_init();
|
||||
l1ctl_tx_reset_req(ms, L1CTL_RES_T_FULL);
|
||||
return osmo_signal_register_handler(SS_L1CTL, &signal_cb, NULL);
|
||||
|
|
|
@ -179,7 +179,7 @@ static int signal_cb(unsigned int subsys, unsigned int signal,
|
|||
|
||||
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 actual L3 */
|
||||
|
||||
g_ms = ms;
|
||||
lapdm_channel_set_l3(&ms->lapdm_channel, &rcv_rsl, ms);
|
||||
|
|
|
@ -166,7 +166,7 @@ static int gsm48_rx_imm_ass(struct msgb *msg, struct osmocom_ms *ms)
|
|||
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;
|
||||
|
||||
|
|
|
@ -438,7 +438,7 @@ static int ta_result(uint8_t ta)
|
|||
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;
|
||||
|
|
|
@ -100,7 +100,7 @@ int mobile_signal_cb(unsigned int subsys, unsigned int signal,
|
|||
|
||||
/* 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;
|
||||
}
|
||||
|
|
|
@ -156,7 +156,7 @@ static int gsm322_nb_meas_ind(struct osmocom_ms *ms, uint16_t arfcn,
|
|||
*
|
||||
* * 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 @@ static int gsm322_nb_meas_ind(struct osmocom_ms *ms, uint16_t arfcn,
|
|||
*
|
||||
* * 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 @@ static int gsm322_nb_meas_ind(struct osmocom_ms *ms, uint16_t arfcn,
|
|||
* 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 @@ static int16_t calculate_c2(int16_t c1, int serving, int last_serving,
|
|||
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 @@ static int gsm322_sort_list(struct osmocom_ms *ms)
|
|||
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 @@ static int gsm322_a_go_wait_for_plmns(struct osmocom_ms *ms, struct msgb *msg)
|
|||
|
||||
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 @@ static int gsm322_a_no_more_plmn(struct osmocom_ms *ms, struct msgb *msg)
|
|||
|
||||
/* 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 @@ static int gsm322_m_display_plmns(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* 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 @@ static int gsm322_cs_select(struct osmocom_ms *ms, int index, uint16_t mcc,
|
|||
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 @@ static int gsm322_cs_select(struct osmocom_ms *ms, int index, uint16_t mcc,
|
|||
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 @@ static int gsm322_cs_scan(struct osmocom_ms *ms)
|
|||
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 @@ static int gsm322_cs_scan(struct osmocom_ms *ms)
|
|||
}
|
||||
|
||||
/* 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 @@ indicate_plmn_avail:
|
|||
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 @@ struct gsm322_ba_list *gsm322_cs_sysinfo_sacch(struct osmocom_ms *ms)
|
|||
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 @@ static int gsm322_c_camp_sysinfo_bcch(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm322_c_camp_sysinfo_bcch(struct osmocom_ms *ms, struct msgb *msg)
|
|||
&& 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 @@ static int gsm322_c_scan_sysinfo_bcch(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm322_c_scan_sysinfo_bcch(struct osmocom_ms *ms, struct msgb *msg)
|
|||
&& (!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 @@ static void gsm322_cs_loss(void *arg)
|
|||
/* 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 @@ static int gsm322_c_stored_cell_sel(struct osmocom_ms *ms,
|
|||
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 @@ static int gsm322_c_any_cell_sel(struct osmocom_ms *ms, struct msgb *msg)
|
|||
|
||||
/* 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 @@ static int gsm322_c_sim_remove(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ struct gsm322_ba_list *gsm322_cs_ba_range(struct osmocom_ms *ms,
|
|||
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 @@ static int gsm322_nb_check(struct osmocom_ms *ms, int any)
|
|||
/* 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 @@ static int gsm322_nb_scan(struct osmocom_ms *ms)
|
|||
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 @@ no_cell_found:
|
|||
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 @@ static int gsm322_nb_start(struct osmocom_ms *ms, int synced)
|
|||
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 @@ int gsm322_init(struct osmocom_ms *ms)
|
|||
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)) {
|
||||
|
|
|
@ -125,7 +125,7 @@ static int gsm411_sms_report(struct osmocom_ms *ms, struct gsm_sms *sms,
|
|||
{
|
||||
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));
|
||||
|
|
|
@ -287,7 +287,7 @@ static int gsm480_trans_free(struct gsm_trans *trans)
|
|||
}
|
||||
|
||||
/*
|
||||
* endcoding
|
||||
* encoding
|
||||
*/
|
||||
|
||||
#define GSM480_ALLOC_SIZE 512+128
|
||||
|
@ -933,7 +933,7 @@ static int gsm480_rx_result(struct gsm_trans *trans, const uint8_t *data,
|
|||
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;
|
||||
|
|
|
@ -1750,7 +1750,7 @@ static int gsm48_cc_rx_release(struct gsm_trans *trans, struct msgb *msg)
|
|||
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 */
|
||||
|
|
|
@ -109,7 +109,7 @@ static int gsm48_mm_loc_upd(struct osmocom_ms *ms, struct msgb *msg);
|
|||
* - 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 @@ static int gsm48_mm_loc_upd(struct osmocom_ms *ms, struct msgb *msg);
|
|||
*
|
||||
*
|
||||
* 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 @@ static void new_mm_state(struct gsm48_mmlayer *mm, int state, int substate)
|
|||
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 @@ static int gsm48_mm_loc_upd(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* (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 @@ static int gsm48_mm_loc_upd(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_mm_rx_loc_upd_acc(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* 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 @@ static int gsm48_mm_rx_loc_upd_rej(struct osmocom_ms *ms, struct msgb *msg)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* RA was successfull */
|
||||
/* RA was successful */
|
||||
mm->lupd_ra_failure = 0;
|
||||
|
||||
/* stop periodic location updating timer */
|
||||
|
@ -2674,7 +2674,7 @@ static int gsm48_mm_loc_upd_delay_retry(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_mm_rel_loc_upd_abort(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_mm_rx_cm_service_rej(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* 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 @@ static int gsm48_mm_timeout_mm_con(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* 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 @@ static int gsm48_mm_release_active(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ int gsm48_mmxx_downmsg(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_mm_data_ind(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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);
|
||||
|
|
|
@ -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 @@ static int gsm48_apply_v_sd(struct gsm48_rrlayer *rr, struct msgb *msg)
|
|||
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 @@ static void timeout_rr_meas(void *arg)
|
|||
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 @@ static int gsm48_rr_chan_req(struct osmocom_ms *ms, int cause, int paging,
|
|||
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 @@ fail:
|
|||
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 @@ static int gsm48_rr_chan2cause[4] = {
|
|||
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 @@ static int gsm48_rr_rx_pag_req_3(struct osmocom_ms *ms, struct msgb *msg)
|
|||
} 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 @@ static int gsm48_rr_rx_pag_req_3(struct osmocom_ms *ms, struct msgb *msg)
|
|||
* (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 @@ static int gsm48_rr_rx_imm_ass(struct osmocom_ms *ms, struct msgb *msg)
|
|||
|
||||
/* 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 @@ static int gsm48_rr_rx_imm_ass_ext(struct osmocom_ms *ms, struct msgb *msg)
|
|||
|
||||
/* 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 @@ static int gsm48_rr_rx_imm_ass_rej(struct osmocom_ms *ms, struct msgb *msg)
|
|||
/* 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 @@ static int gsm48_rr_rx_imm_ass_rej(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_rr_tx_meas_rep(struct osmocom_ms *ms)
|
|||
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 @@ static int gsm48_rr_render_ma(struct osmocom_ms *ms, struct gsm48_rr_cd *cd,
|
|||
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 @@ static int gsm48_rr_rx_chan_rel(struct osmocom_ms *ms, struct msgb *msg)
|
|||
}
|
||||
|
||||
/*
|
||||
* 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 @@ static int gsm48_rr_est_req(struct osmocom_ms *ms, struct msgb *msg)
|
|||
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 @@ static int gsm48_rcv_cch(struct osmocom_ms *ms, struct msgb *msg)
|
|||
}
|
||||
|
||||
|
||||
/* 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 @@ static int gsm48_rr_rand_acc_cnf_dedicated(struct osmocom_ms *ms, struct msgb *m
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -166,7 +166,7 @@ void sighandler(int sigset)
|
|||
/* 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 "
|
||||
|
|
|
@ -96,7 +96,7 @@ static void mncc_sock_close(struct mncc_sock_state *state)
|
|||
|
||||
/* 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 */
|
||||
|
|
|
@ -153,7 +153,7 @@ static void mncc_set_bearer(struct osmocom_ms *ms, int8_t speech_ver,
|
|||
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 @@ static void mncc_set_bearer(struct osmocom_ms *ms, int8_t speech_ver,
|
|||
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 @@ int mncc_recv_mobile(struct osmocom_ms *ms, int msg_type, void *arg)
|
|||
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");
|
||||
|
|
|
@ -502,7 +502,7 @@ static int lua_register_fd(lua_State *L)
|
|||
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;
|
||||
|
|
|
@ -223,7 +223,7 @@ static void gsm_ms_dump(struct osmocom_ms *ms, struct vty *vty)
|
|||
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 @@ static int _sim_test_cmd(struct vty *vty, int argc, const char *argv[],
|
|||
|
||||
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, sim_test_cmd,
|
|||
|
||||
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(network_select, network_select_cmd,
|
|||
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_sap, cfg_ms_sap_cmd, "sap-socket PATH",
|
|||
|
||||
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;
|
||||
|
|
|
@ -27,7 +27,7 @@ struct l1_cell_info {
|
|||
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 @@ struct l1_state_ms {
|
|||
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 {
|
||||
|
|
|
@ -135,7 +135,7 @@ static bool gprs_dl_block_matches_ms(struct l1_model_ms *ms, struct msgb *msg, u
|
|||
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 */
|
||||
|
|
|
@ -313,7 +313,7 @@ void l1ctl_rx_dm_est_req(struct l1_model_ms *ms, struct msgb *msg)
|
|||
*
|
||||
* 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 @@ void l1ctl_rx_tch_mode_req(struct l1_model_ms *ms, struct msgb *msg)
|
|||
* 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)
|
||||
{
|
||||
|
|
|
@ -131,5 +131,5 @@ const char *getL1ctlPrimName(uint8_t type)
|
|||
if (type < ARRAY_SIZE(l1ctlPrimNames))
|
||||
return l1ctlPrimNames[type];
|
||||
else
|
||||
return "Unknwon Primitive";
|
||||
return "Unknown Primitive";
|
||||
}
|
||||
|
|
|
@ -106,7 +106,7 @@ void l1ctl_rx_pm_req(struct l1_model_ms *ms, struct msgb *msg)
|
|||
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);
|
||||
|
|
|
@ -1260,7 +1260,7 @@ static void handle_assign(void)
|
|||
/* 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;
|
||||
|
|
|
@ -16,7 +16,7 @@ MEMORY
|
|||
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
|
||||
|
|
|
@ -12,7 +12,7 @@ MEMORY
|
|||
/* 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
|
||||
|
|
|
@ -12,7 +12,7 @@ MEMORY
|
|||
{
|
||||
/* 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
|
||||
|
|
|
@ -58,7 +58,7 @@ enum {
|
|||
#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;
|
||||
|
|
|
@ -182,7 +182,7 @@ int sercomm_drv_pull(uint8_t *ch)
|
|||
sercomm_unlock(&flags);
|
||||
return 1;
|
||||
} else {
|
||||
/* no more data avilable */
|
||||
/* no more data available */
|
||||
sercomm_unlock(&flags);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -144,7 +144,7 @@ void fb_rgb332_lineto(uint16_t x2,uint16_t y2){
|
|||
|
||||
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);
|
||||
|
|
|
@ -72,7 +72,7 @@ s6b33b1x_initdata[] = {
|
|||
{ 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 */
|
||||
|
|
|
@ -122,7 +122,7 @@ enum vrpcsts_reg_bits {
|
|||
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 */
|
||||
|
|
|
@ -45,7 +45,7 @@ typedef struct
|
|||
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 @@ typedef struct
|
|||
// 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 @@ T_DB_DSP_TO_MCU;
|
|||
|
||||
// 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 @@ T_DB_DSP_TO_MCU;
|
|||
|
||||
// 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 @@ T_DB_DSP_TO_MCU;
|
|||
// 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 @@ typedef struct
|
|||
// 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
|
||||
|
|
|
@ -90,9 +90,9 @@ typedef signed short API_SIGNED;
|
|||
|
||||
// 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
|
||||
|
|
|
@ -160,7 +160,7 @@ void calypso_sim_powerdown(void); /* Powerdown simcard */
|
|||
|
||||
/* 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 */
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -15,7 +15,7 @@ struct l1_cell_info {
|
|||
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
|
||||
|
|
|
@ -570,7 +570,7 @@ static void l1ctl_rx_traffic_req(struct msgb *msg)
|
|||
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;
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ static int l1s_sbdet_resp(__unused uint8_t p1, uint8_t attempt,
|
|||
|
||||
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 @@ static void l1a_fb_compl(__unused enum l1_compl c)
|
|||
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 */
|
||||
|
|
|
@ -607,7 +607,7 @@ const struct tdma_sched_item tch_d_sched_set[] = {
|
|||
* ------------------------------------------------------------------------- */
|
||||
|
||||
/*
|
||||
* 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
|
||||
|
|
|
@ -168,7 +168,7 @@ void l1s_reset_hw(void)
|
|||
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();
|
||||
|
|
|
@ -615,7 +615,7 @@ int vsscanf(const char * buf, const char * fmt, va_list args)
|
|||
|
||||
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)) {
|
||||
|
|
|
@ -300,8 +300,8 @@ static void trf6151_pll_tx(uint32_t freq_khz,
|
|||
/* 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 */
|
||||
|
|
|
@ -94,7 +94,7 @@ class DATADumpFile(DATADump):
|
|||
# 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 @@ class DATADumpFile(DATADump):
|
|||
# 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 @@ class DATADumpFile(DATADump):
|
|||
|
||||
# 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)
|
||||
|
|
|
@ -104,7 +104,7 @@ class CalypsoCOFF(object):
|
|||
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', # /
|
||||
|
|
Loading…
Reference in New Issue