diff options
Diffstat (limited to 'src/osmo-bts-sysmo/femtobts.h')
-rw-r--r-- | src/osmo-bts-sysmo/femtobts.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/femtobts.h b/src/osmo-bts-sysmo/femtobts.h index fd5142bc..a880562d 100644 --- a/src/osmo-bts-sysmo/femtobts.h +++ b/src/osmo-bts-sysmo/femtobts.h @@ -21,6 +21,14 @@ #define SUPERFEMTO_API_VERSION SUPERFEMTO_API(2,2,0) #endif +/* + * Depending on the firmware version either GsmL1_Prim_t or SuperFemto_Prim_t + * is the bigger struct. For earlier firmware versions the GsmL1_Prim_t was the + * bigger struct. + */ +#define SYSMOBTS_PRIM_SIZE \ + (OSMO_MAX(sizeof(SuperFemto_Prim_t), sizeof(GsmL1_Prim_t)) + 128) + enum l1prim_type { L1P_T_REQ, L1P_T_CONF, |