diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-10 16:15:51 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2016-03-10 16:15:51 +0100 |
commit | 91565b2d51646657002f91fdc22dce3c7320e13a (patch) | |
tree | 5358694e71bced2e6bd85d6a17467bd9c76ad6d6 /src/osmo-bts-octphy | |
parent | 2278fdc580c9c095bffe539b95b0bf77b32de83e (diff) |
octphy: Use the event defaults as base
Bad parameters are passed to the event structure and the default
initialization should happen.
Diffstat (limited to 'src/osmo-bts-octphy')
-rw-r--r-- | src/osmo-bts-octphy/l1_oml.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/osmo-bts-octphy/l1_oml.c b/src/osmo-bts-octphy/l1_oml.c index c50f1d6a..6870c52a 100644 --- a/src/osmo-bts-octphy/l1_oml.c +++ b/src/osmo-bts-octphy/l1_oml.c @@ -48,6 +48,7 @@ #include <octphy/octvc1/gsm/octvc1_gsm_api_swap.h> #include <octphy/octvc1/gsm/octvc1_gsm_default.h> #include <octphy/octvc1/gsm/octvc1_gsm_id.h> +#include <octphy/octvc1/main/octvc1_main_default.h> /* Map OSMOCOM logical channel type to OctPHY Logical channel type */ static tOCTVC1_GSM_LOGICAL_CHANNEL_COMBINATION_ENUM pchan_to_logChComb[_GSM_PCHAN_MAX] = @@ -1105,6 +1106,8 @@ int l1if_enable_events(struct gsm_bts_trx *trx) mse = (tOCTVC1_MAIN_MSG_API_SYSTEM_MODIFY_SESSION_EVT_CMD *) msgb_put(msg, sizeof(*mse)); + mOCTVC1_MAIN_MSG_API_SYSTEM_MODIFY_SESSION_EVT_CMD_DEF(mse); + l1if_fill_msg_hdr(&mse->Header, msg, fl1h, cOCTVC1_MSG_TYPE_COMMAND, cOCTVC1_MAIN_MSG_API_SYSTEM_MODIFY_SESSION_EVT_CID); mse->ulEvtActiveFlag = cOCT_TRUE; |