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:
parent
5a53eff4cb
commit
0c470759da
|
@ -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 */
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue