diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-01-07 04:09:33 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-01-07 08:30:02 +0700 |
commit | befe5d5d33d6bb90c054b49cdd6901645d5d55c6 (patch) | |
tree | bad5b1e1aecb011b077f22248225ab10062d4526 | |
parent | bc6cab19471deb4cabdbf0db48d574e8960ad61c (diff) |
modem: fix unusual argument order: *ms always first
Change-Id: I9fabe39575f191ce6c893a1fecaa7ac040ef0e3e
Related: SYS#5500
-rw-r--r-- | src/host/layer23/src/modem/app_modem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/host/layer23/src/modem/app_modem.c b/src/host/layer23/src/modem/app_modem.c index d6439914..c135ff32 100644 --- a/src/host/layer23/src/modem/app_modem.c +++ b/src/host/layer23/src/modem/app_modem.c @@ -141,7 +141,7 @@ static int handle_si13(struct osmocom_ms *ms, struct msgb *msg) return 0; } -static int modem_rx_bcch(struct msgb *msg, struct osmocom_ms *ms) +static int modem_rx_bcch(struct osmocom_ms *ms, struct msgb *msg) { const struct gsm48_system_information_type_header *si_hdr = msgb_l3(msg); const uint8_t si_type = si_hdr->system_information; @@ -163,7 +163,7 @@ static int modem_rx_bcch(struct msgb *msg, struct osmocom_ms *ms) }; } -static int modem_rx_imm_ass(struct msgb *msg, struct osmocom_ms *ms) +static int modem_rx_imm_ass(struct osmocom_ms *ms, struct msgb *msg) { const struct gsm48_imm_ass *ia = msgb_l3(msg); uint8_t ch_type, ch_subch, ch_ts; @@ -241,7 +241,7 @@ static bool is_fill_frame(const struct msgb *msg) return false; } -static int modem_rx_ccch(struct msgb *msg, struct osmocom_ms *ms) +static int modem_rx_ccch(struct osmocom_ms *ms, struct msgb *msg) { const struct gsm48_system_information_type_header *sih = msgb_l3(msg); @@ -263,7 +263,7 @@ static int modem_rx_ccch(struct msgb *msg, struct osmocom_ms *ms) switch (sih->system_information) { case GSM48_MT_RR_IMM_ASS: - return modem_rx_imm_ass(msg, ms); + return modem_rx_imm_ass(ms, msg); default: return 0; } @@ -291,9 +291,9 @@ static int modem_rx_rslms_rll_ud(struct osmocom_ms *ms, struct msgb *msg) switch (rllh->chan_nr) { case RSL_CHAN_PCH_AGCH: - return modem_rx_ccch(msg, ms); + return modem_rx_ccch(ms, msg); case RSL_CHAN_BCCH: - return modem_rx_bcch(msg, ms); + return modem_rx_bcch(ms, msg); default: return 0; } |