From 3e04ed60832bc3f5e2ab04872cee7cbbe0b555a3 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 8 Feb 2012 18:13:34 +0100 Subject: [PATCH] gsmtap: Add GSMTAP_GPRS_CS() / GSMTAP_GPRS_MCS() As requested by Mike Morrin , we introduce GSMTAP sub-types for all the different GPRS and EGPRS coding schemes. This is neccessary due to the fact that the RLC PDU doesn't contain any explicit indication of the coding scheme used on the radio layer. --- include/osmocom/core/gsmtap.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/osmocom/core/gsmtap.h b/include/osmocom/core/gsmtap.h index 5dc869d45..a4e5d4208 100644 --- a/include/osmocom/core/gsmtap.h +++ b/include/osmocom/core/gsmtap.h @@ -82,6 +82,14 @@ #define GSMTAP_CHANNEL_PDCH 0x0d #define GSMTAP_CHANNEL_PTCCH 0x0e #define GSMTAP_CHANNEL_CBCH51 0x0f + +/* GPRS Coding Scheme CS1..4 */ +#define GSMTAP_GPRS_CS_BASE 0x20 +#define GSMTAP_GPRS_CS(N) (GSMTAP_GPRS_CS_BASE + N) +/* (E) GPRS Coding Scheme MCS0..9 */ +#define GSMTAP_GPRS_MCS_BASE 0x30 +#define GSMTAP_GPRS_MCS(N) (GSMTAP_GPRS_MCS_BASE + N) + #define GSMTAP_CHANNEL_ACCH 0x80 /* ====== DO NOT MAKE UNAPPROVED MODIFICATIONS HERE ===== */