aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-06-30 18:16:33 +0200
committerpespin <pespin@sysmocom.de>2020-07-09 11:43:48 +0000
commit9a5d90ab968ca33c1365f21b8a264c2f2d797394 (patch)
tree57ccfb2fca376bed1f4927d3a1e3f8cdcb3982ef /src
parentecbf5a1aa02b5159ef98cbe42bfef3fcab45d11b (diff)
Revert "gsmtap_makemsg_ex: NULL for unknown chan_type"
Reverting due to being completely normal for some applications to submit usning this channel type when decoding/parsing failed and hence not being able to determine channel type. This reverts Change-Id Ib4147a33a75c3cf425c30da8b0678c7fba8a371d (commit 12f93be6073ed89055862baafbfe0e08e50ed17a.) Change-Id: I6ebaa89cc3422df1d7fd2365a6176cb2902d1c67
Diffstat (limited to 'src')
-rw-r--r--src/gsmtap_util.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gsmtap_util.c b/src/gsmtap_util.c
index 8674f1c1..9a0ac027 100644
--- a/src/gsmtap_util.c
+++ b/src/gsmtap_util.c
@@ -169,8 +169,7 @@ void chantype_gsmtap2rsl(uint8_t gsmtap_chantype, uint8_t *rsl_chantype,
* \param[in] snr Signal/Noise Ratio (SNR)
* \param[in] data Pointer to data buffer
* \param[in] len Length of \ref data
- * \return dynamically allocated message buffer containing data,
- * or NULL for unknown chan_type
+ * \return dynamically allocated message buffer containing data
*
* This function will allocate a new msgb and fill it with a GSMTAP
* header containing the information
@@ -183,9 +182,6 @@ struct msgb *gsmtap_makemsg_ex(uint8_t type, uint16_t arfcn, uint8_t ts, uint8_t
struct gsmtap_hdr *gh;
uint8_t *dst;
- if (chan_type == GSMTAP_CHANNEL_UNKNOWN)
- return NULL;
-
msg = msgb_alloc(sizeof(*gh) + len, "gsmtap_tx");
if (!msg)
return NULL;