diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-24 13:56:48 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-24 13:56:48 +0200 |
commit | ec71711ebf1a00bcbd6d9dba0d39a827a8dfecf7 (patch) | |
tree | 61ce3f730d5cdd7230c53692312b08398293ac56 /src/host/layer23/include | |
parent | 04190eabd327cc598a7409cdad56013d1c8b5820 (diff) |
introduce LAPDM entity flags for PH-EMPTY_FRAME.req and pollling
polling means that we never try to proactively generate a PH-DATA.req
unless there was a PH-RTS.ind first.
Diffstat (limited to 'src/host/layer23/include')
-rw-r--r-- | src/host/layer23/include/osmocom/bb/common/lapdm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/host/layer23/include/osmocom/bb/common/lapdm.h b/src/host/layer23/include/osmocom/bb/common/lapdm.h index 19eeeb7e..946ca278 100644 --- a/src/host/layer23/include/osmocom/bb/common/lapdm.h +++ b/src/host/layer23/include/osmocom/bb/common/lapdm.h @@ -118,12 +118,16 @@ struct lapdm_cr_ent { uint8_t resp; }; +#define LAPDM_ENT_F_EMPTY_FRAME 0x0001 +#define LAPDM_ENT_F_POLLING_ONLY 0x0002 + /* register message handler for messages that are sent from L2->L3 */ struct lapdm_entity { struct lapdm_datalink datalink[_NR_DL_SAPI]; int last_tx_dequeue; /* last entity that was dequeued */ int tx_pending; /* currently a pending frame not confirmed by L1 */ enum lapdm_mode mode; /* are we in BTS mode or MS mode */ + unsigned int flags; struct { /* filled-in once we set the lapdm_mode above */ @@ -174,4 +178,7 @@ int lapdm_channel_set_mode(struct lapdm_channel *lc, enum lapdm_mode mode); void lapdm_entity_reset(struct lapdm_entity *le); void lapdm_channel_reset(struct lapdm_channel *lc); +void lapdm_entity_set_flags(struct lapdm_entity *le, unsigned int flags); +void lapdm_channel_set_flags(struct lapdm_channel *lc, unsigned int flags); + #endif /* _OSMOCOM_LAPDM_H */ |