pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/39777?usp=email )
Change subject: encoding: Use defines to set PAYLOAD_TYPE
......................................................................
encoding: Use defines to set PAYLOAD_TYPE
Change-Id: I3d663cb91672fb383aeb72b223490fa615bdcdf0
---
M src/encoding.cpp
M src/gsm_rlcmac.c
M src/gsm_rlcmac.h
3 files changed, 10 insertions(+), 10 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
fixeria: Looks good to me, but someone else must approve
pespin: Looks good to me, approved
diff --git a/src/encoding.cpp b/src/encoding.cpp
index 75b9a30..b10b9a3 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -602,7 +602,7 @@
Dynamic_Allocation_t *da;
/* RLC/MAC control block without the optional RLC/MAC control header */
- block->PAYLOAD_TYPE = 0x01; // Payload Type
+ block->PAYLOAD_TYPE = PAYLOAD_TYPE_CTRL_NO_OPT_OCTET; // Payload Type
block->RRBP = rrbp; // RRBP (e.g. N+13)
block->SP = poll; // RRBP field is valid
block->USF = 0x00; // Uplink state flag
@@ -720,7 +720,7 @@
uint8_t tn;
- block->PAYLOAD_TYPE = 0x1; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
+ block->PAYLOAD_TYPE = PAYLOAD_TYPE_CTRL_NO_OPT_OCTET; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
block->RRBP = rrbp; // 0: N+13
block->SP = poll; // RRBP field is valid
block->USF = 0x0; // Uplink state flag
@@ -1759,7 +1759,7 @@
uint8_t container_idx, PNCDContainer_t *container)
{
- block->PAYLOAD_TYPE = 0x1; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
+ block->PAYLOAD_TYPE = PAYLOAD_TYPE_CTRL_NO_OPT_OCTET; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
block->RRBP = 0; // 0: N+13
block->SP = 0; // RRBP field is not valid
block->USF = 0x0; // Uplink state flag
@@ -1784,7 +1784,7 @@
uint16_t arfcn, uint8_t bsic, uint8_t container_id)
{
- block->PAYLOAD_TYPE = 0x1; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
+ block->PAYLOAD_TYPE = PAYLOAD_TYPE_CTRL_NO_OPT_OCTET; // RLC/MAC control block that does not include the optional octets of the RLC/MAC control header
block->RRBP = rrbp; // RRBP (e.g. N+13)
block->SP = poll; // RRBP field is valid?
block->USF = 0x0; // Uplink state flag
diff --git a/src/gsm_rlcmac.c b/src/gsm_rlcmac.c
index 931c85c..79fda90 100644
--- a/src/gsm_rlcmac.c
+++ b/src/gsm_rlcmac.c
@@ -36,12 +36,6 @@
#include <arpa/inet.h>
#include <gprs_debug.h>
-/* Payload type as defined in TS 44.060 / 10.4.7 */
-#define PAYLOAD_TYPE_DATA 0
-#define PAYLOAD_TYPE_CTRL_NO_OPT_OCTET 1
-#define PAYLOAD_TYPE_CTRL_OPT_OCTET 2
-#define PAYLOAD_TYPE_RESERVED 3
-
/* CSN1 structures */
/*(not all parts of CSN_DESCR structure are always initialized.)*/
static const
diff --git a/src/gsm_rlcmac.h b/src/gsm_rlcmac.h
index c43d418..d34024a 100644
--- a/src/gsm_rlcmac.h
+++ b/src/gsm_rlcmac.h
@@ -48,6 +48,12 @@
typedef guint8 N51_t;
typedef guint8 N26_t;
+/* Payload type as defined in TS 44.060 / 10.4.7 */
+#define PAYLOAD_TYPE_DATA 0
+#define PAYLOAD_TYPE_CTRL_NO_OPT_OCTET 1
+#define PAYLOAD_TYPE_CTRL_OPT_OCTET 2
+#define PAYLOAD_TYPE_RESERVED 3
+
/* Starting Time IE as specified in 04.08 */
typedef struct
{
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/39777?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I3d663cb91672fb383aeb72b223490fa615bdcdf0
Gerrit-Change-Number: 39777
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
pespin has posted comments on this change by pespin. ( https://gerrit.osmocom.org/c/osmo-pcu/+/39777?usp=email )
Change subject: encoding: Use defines to set PAYLOAD_TYPE
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/39777?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I3d663cb91672fb383aeb72b223490fa615bdcdf0
Gerrit-Change-Number: 39777
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-Comment-Date: Thu, 13 Mar 2025 18:42:50 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39446?usp=email )
(
4 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: usb desc: use per-interface dev class instead of CDC
......................................................................
usb desc: use per-interface dev class instead of CDC
Change-Id: I9d4f88b973f0c16d2c1241343d416496b35019a0
---
M sysmoOCTSIM/usb_descriptors.c
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, approved
diff --git a/sysmoOCTSIM/usb_descriptors.c b/sysmoOCTSIM/usb_descriptors.c
index 94a473e..d3084cc 100644
--- a/sysmoOCTSIM/usb_descriptors.c
+++ b/sysmoOCTSIM/usb_descriptors.c
@@ -31,7 +31,7 @@
.bLength = sizeof(struct usb_dev_desc),
.bDescriptorType = USB_DT_DEVICE,
.bcdUSB = USB_V2_0,
- .bDeviceClass = 0x02,
+ .bDeviceClass = 0x00,
.bDeviceSubClass = 0,
.bDeviceProtocol = 0,
.bMaxPacketSize0 = CONF_USB_CDCD_ACM_BMAXPKSZ0,
--
To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/39446?usp=email
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: osmo-ccid-firmware
Gerrit-Branch: master
Gerrit-Change-Id: I9d4f88b973f0c16d2c1241343d416496b35019a0
Gerrit-Change-Number: 39446
Gerrit-PatchSet: 8
Gerrit-Owner: Hoernchen <ewild(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>