PCU: Add verion number of PCU interface to PCU INFO IND message

The client (PCU) can check if it is compiled with a different version.
This commit is contained in:
Andreas Eversberg 2012-07-16 18:50:26 +02:00 committed by Harald Welte
parent 5a53eff4cb
commit 0c470759da
2 changed files with 4 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#ifndef _PCUIF_PROTO_H
#define _PCUIF_PROTO_H
#define PCU_IF_VERSION 0x01
/* msg_type */
#define PCU_IF_MSG_DATA_REQ 0x00 /* send data to given channel */
#define PCU_IF_MSG_DATA_IND 0x02 /* receive data from given channel */
@ -74,6 +76,7 @@ struct gsm_pcu_if_info_trx {
} __attribute__ ((packed));
struct gsm_pcu_if_info_ind {
uint32_t version;
uint32_t flags;
struct gsm_pcu_if_info_trx trx[8]; /* TRX infos per BTS */
/* RAI */

View File

@ -120,6 +120,7 @@ int pcu_tx_info_ind(void)
return -ENOMEM;
pcu_prim = (struct gsm_pcu_if *) msg->data;
info_ind = &pcu_prim->u.info_ind;
info_ind->version = PCU_IF_VERSION;
if (avail_lai && avail_nse && avail_cell && avail_nsvc[0]) {
info_ind->flags |= PCU_IF_FLAG_ACTIVE;