lynxis lazus has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/34007 )
Change subject: ARA-M: fix encoding of the PkgRefDO when using aram_store_ref_ar_do
......................................................................
ARA-M: fix encoding of the PkgRefDO when using aram_store_ref_ar_do
The command wasn't used the correct dict to allow the encoders to work.
Related: OS#6121
Change-Id: Ic2bc179b413a6b139e07e3e55b93ff921cb020a9
---
M pySim/ara_m.py
1 file changed, 13 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/07/34007/1
diff --git a/pySim/ara_m.py b/pySim/ara_m.py
index e2e6da1..8144381 100644
--- a/pySim/ara_m.py
+++ b/pySim/ara_m.py
@@ -354,7 +354,7 @@
ref_do_content += [{'aid_ref_empty_do': None}]
ref_do_content += [{'dev_app_id_ref_do': opts.device_app_id}]
if opts.pkg_ref:
- ref_do_content += [{'pkg_ref_do': opts.pkg_ref}]
+ ref_do_content += [{'pkg_ref_do': {'package_name_string': opts.pkg_ref}}]
# AR
ar_do_content = []
if opts.apdu_never:
--
To view, visit https://gerrit.osmocom.org/c/pysim/+/34007
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic2bc179b413a6b139e07e3e55b93ff921cb020a9
Gerrit-Change-Number: 34007
Gerrit-PatchSet: 1
Gerrit-Owner: lynxis lazus <lynxis(a)fe80.eu>
Gerrit-MessageType: newchange
arehbein has abandoned this change. ( https://gerrit.osmocom.org/c/libosmo-netif/+/33205 )
Change subject: example: Remove calls to osmo_ipa_process_msg()
......................................................................
Abandoned
The Gerrit patch upload from July 24 included this change from in another
--
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/33205
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I53283ec7bd7f07dfa612681ae84af93d5cd098b9
Gerrit-Change-Number: 33205
Gerrit-PatchSet: 12
Gerrit-Owner: arehbein <arehbein(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-CC: daniel <dwillmann(a)sysmocom.de>
Gerrit-CC: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: abandon
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/34006 )
Change subject: cosmetic: Document foce_two_phase feature based on specs
......................................................................
cosmetic: Document foce_two_phase feature based on specs
Change-Id: I4f8e3d0dcb721d51838b50aba5b40d0551c8d0c5
---
M src/bts.cpp
1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/06/34006/1
diff --git a/src/bts.cpp b/src/bts.cpp
index 177544a..fe48018 100644
--- a/src/bts.cpp
+++ b/src/bts.cpp
@@ -970,6 +970,12 @@
LOGP(DRLCMAC, LOGL_DEBUG, "MS requests single TS uplink transmission "
"(one phase packet access)\n");
if (bts->pcu->vty.force_two_phase) {
+ /* 3GPP TS 44.018 3.5.2.1.3.1: "If the establishment cause in the
+ * CHANNEL REQUEST message indicates a request for one phase packet access,
+ * the network may grant either a one phase packet access or a single block
+ * packet access for the mobile station. If a single block packet access is
+ * granted, it forces the mobile station to perform a two phase packet access."
+ */
LOGP(DRLCMAC, LOGL_DEBUG, "Forcing two phase access\n");
chan_req.single_block = true;
}
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/34006
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I4f8e3d0dcb721d51838b50aba5b40d0551c8d0c5
Gerrit-Change-Number: 34006
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-gprs/+/34005 )
Change subject: rlcmac: Initial selection of packet-access-procedure mode based on originating cause
......................................................................
rlcmac: Initial selection of packet-access-procedure mode based on originating cause
Change-Id: I930a1fcf23506f75562a6795f9a6e42b187d2974
---
M include/osmocom/gprs/rlcmac/llc_queue.h
M src/rlcmac/gre.c
M src/rlcmac/llc_queue.c
3 files changed, 43 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/libosmo-gprs refs/changes/05/34005/1
diff --git a/include/osmocom/gprs/rlcmac/llc_queue.h b/include/osmocom/gprs/rlcmac/llc_queue.h
index 7149f76..dd7528c 100644
--- a/include/osmocom/gprs/rlcmac/llc_queue.h
+++ b/include/osmocom/gprs/rlcmac/llc_queue.h
@@ -27,6 +27,7 @@
struct gprs_llc_prio_queue {
enum gprs_rlcmac_radio_priority radio_prio; /* Radio prio of this queue, range (1..4) */
+ enum osmo_gprs_rlcmac_llc_sapi sapi; /* LLC SAPI of this queue */
struct gprs_codel codel_state;
struct llist_head queue; /* queued LLC DL data. See enum gprs_rlcmac_llc_queue_prio. */
};
@@ -50,6 +51,7 @@
enum osmo_gprs_rlcmac_llc_sapi sapi, enum gprs_rlcmac_radio_priority radio_prio);
struct msgb *gprs_rlcmac_llc_queue_dequeue(struct gprs_rlcmac_llc_queue *q, bool can_discard);
enum gprs_rlcmac_radio_priority gprs_rlcmac_llc_queue_highest_radio_prio_pending(struct gprs_rlcmac_llc_queue *q);
+enum osmo_gprs_rlcmac_llc_sapi gprs_rlcmac_llc_queue_highest_llc_sapi_pending(struct gprs_rlcmac_llc_queue *q);
void gprs_rlcmac_llc_queue_merge_prepend(struct gprs_rlcmac_llc_queue *q, struct gprs_rlcmac_llc_queue *old_q);
diff --git a/src/rlcmac/gre.c b/src/rlcmac/gre.c
index 59cf0f5..0eb6a8c 100644
--- a/src/rlcmac/gre.c
+++ b/src/rlcmac/gre.c
@@ -198,6 +198,9 @@
/* Create a new UL TBF and start Packet access procedure to get an UL assignment if needed */
int gprs_rlcmac_entity_start_ul_tbf_pkt_acc_proc_if_needed(struct gprs_rlcmac_entity *gre)
{
+ enum osmo_gprs_rlcmac_llc_sapi tx_sapi;
+ enum gprs_rlcmac_tbf_ul_ass_type ul_ass_type;
+
/* TS 44.060 5.3 "In packet idle mode, upper layers may require the
* transfer of a upper layer PDU, which implicitly triggers the
* establishment of a TBF and the transition to packet transfer mode." */
@@ -212,8 +215,27 @@
gre->ul_tbf = gprs_rlcmac_ul_tbf_alloc(gre);
if (!gre->ul_tbf)
return -ENOMEM;
+
+ tx_sapi = gprs_rlcmac_llc_queue_highest_radio_prio_pending(gre->llc_queue);
+ /* 3GPP TS 44.018 3.5.2.1.2 "Initiation of the packet access procedure: channel request" */
+ switch (tx_sapi) {
+ case OSMO_GPRS_RLCMAC_LLC_SAPI_GMM:
+ /* "If the purpose [...] is to send a Page Response, a Cell update (the mobile
+ * station was in GMM READY state before the cell reselection) or for any other
+ * GPRS Mobility Management or GPRS Session Management procedure, the mobile station
+ * shall request a one phase packet access" */
+ ul_ass_type = GPRS_RLCMAC_TBF_UL_ASS_TYPE_1PHASE;
+ break;
+ default:
+ /* "If the purpose [...] is to send user data and the requested RLC mode is
+ * acknowledged mode, the mobile station shall request either a one phase packet
+ * access or a single block packet access." */
+ /* TODO: We always use 1phase for now... ideally we should decide
+ * based on amount of Tx data and configured MultiSlot Class? */
+ ul_ass_type = GPRS_RLCMAC_TBF_UL_ASS_TYPE_1PHASE;
+ }
/* We always use 1phase for now... */
- return gprs_rlcmac_tbf_ul_ass_start(gre->ul_tbf, GPRS_RLCMAC_TBF_UL_ASS_TYPE_1PHASE);
+ return gprs_rlcmac_tbf_ul_ass_start(gre->ul_tbf, ul_ass_type);
}
int gprs_rlcmac_entity_llc_enqueue(struct gprs_rlcmac_entity *gre,
diff --git a/src/rlcmac/llc_queue.c b/src/rlcmac/llc_queue.c
index 83c926e..d1f923a 100644
--- a/src/rlcmac/llc_queue.c
+++ b/src/rlcmac/llc_queue.c
@@ -47,6 +47,7 @@
for (i = 0; i < ARRAY_SIZE(q->pq); i++) {
for (j = 0; j < ARRAY_SIZE(q->pq[i]); j++) {
q->pq[i][j].radio_prio = i; /* enum gprs_rlcmac_radio_priority, range (0..3) */
+ q->pq[i][j].sapi = i + 1; /* osmo_gprs_rlcmac_llc_sapi, range (1..11) */
INIT_LLIST_HEAD(&q->pq[i][j].queue);
gprs_codel_init(&q->pq[i][j].codel_state);
}
@@ -222,6 +223,14 @@
return prioq->radio_prio;
}
+enum osmo_gprs_rlcmac_llc_sapi gprs_rlcmac_llc_queue_highest_llc_sapi_pending(struct gprs_rlcmac_llc_queue *q)
+{
+ struct gprs_llc_prio_queue *prioq = gprs_rlcmac_llc_queue_find_msg(q);
+ OSMO_ASSERT(prioq);
+ return prioq->sapi;
+}
+
+
/* Merge old_q messages into q, prepending them. old_q must be freed by the caller. */
void gprs_rlcmac_llc_queue_merge_prepend(struct gprs_rlcmac_llc_queue *q, struct gprs_rlcmac_llc_queue *old_q)
{
--
To view, visit https://gerrit.osmocom.org/c/libosmo-gprs/+/34005
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libosmo-gprs
Gerrit-Branch: master
Gerrit-Change-Id: I930a1fcf23506f75562a6795f9a6e42b187d2974
Gerrit-Change-Number: 34005
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange
pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34003 )
Change subject: pcu: TC_dl_multislot_tbf_ms_class_from_sgsn(): Properly wait for USF
......................................................................
pcu: TC_dl_multislot_tbf_ms_class_from_sgsn(): Properly wait for USF
Change-Id: I34b31c292c00b6880311906ce6713a8e3c69a0d2
---
M pcu/PCU_Tests.ttcn
1 file changed, 13 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/03/34003/1
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index 82ecb57..e381c59 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -3198,6 +3198,7 @@
var PacketDlAssign dl_tbf_ass;
var RlcmacDlBlock dl_block;
var uint32_t poll_fn;
+ var uint32_t dl_fn;
var uint32_t sched_fn;
var GprsMS ms;
timer T := 5.0;
@@ -3224,11 +3225,12 @@
f_ms_establish_ul_tbf(ms);
/* Wait until PCU starts requesting for UL block on this TBF: */
- f_ms_wait_usf(ms);
+ dl_fn := f_ms_wait_usf(ms, nr := f_ms_tx_TsTrxBtsNum(ms));
+ sched_fn := f_next_pdch_block(dl_fn);
/* Send one UL block (with TLLI since we are in One-Phase Access
contention resolution) and make sure it is ACKED fine */
- f_ms_tx_ul_data_block(ms, data, with_tlli := true, fn := ms.ul_tbf.start_time_fn,
+ f_ms_tx_ul_data_block(ms, data, with_tlli := true, fn := sched_fn,
nr := f_ms_tx_TsTrxBtsNum(ms));
/* DL ACK/NACK sets poll+rrbp requesting PACKET CONTROL ACK */
f_rx_rlcmac_dl_block_exp_ack_nack(dl_block, poll_fn, nr := f_ms_tx_TsTrxBtsNum(ms));
--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/34003
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I34b31c292c00b6880311906ce6713a8e3c69a0d2
Gerrit-Change-Number: 34003
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: newchange