diff options
author | Patrick McHardy <kaber@trash.net> | 2010-08-02 19:23:23 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-08-03 00:10:06 +0200 |
commit | e31ee2ae7fcb4f21ca0524add23331a022af7aef (patch) | |
tree | e874c7ab49cfe104b38549281f25f662e6500f78 /example | |
parent | c26e9df6e76978918ffb9da30fed79bf9d92dddb (diff) |
llme: add MAC_ME_INFO-ind indication to notify of FP capability changes
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'example')
-rw-r--r-- | example/dummy_ops.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/example/dummy_ops.c b/example/dummy_ops.c index 1c022a4..6ed89fa 100644 --- a/example/dummy_ops.c +++ b/example/dummy_ops.c @@ -2,6 +2,17 @@ #include "common.h" /* + * LLME Ops + */ + +static void llme_mac_me_info_ind(struct dect_handle *dh, + const struct dect_fp_capabilities *fpc) +{ +} + +static struct dect_llme_ops_ dummy_llme_ops; + +/* * LCE Ops */ @@ -287,11 +298,19 @@ static struct dect_ss_ops dummy_ss_ops; void dect_dummy_ops_init(struct dect_ops *ops) { + struct dect_llme_ops_ *llme_ops; struct dect_lce_ops *lce_ops; struct dect_cc_ops *cc_ops; struct dect_mm_ops *mm_ops; struct dect_ss_ops *ss_ops; + if (!ops->llme_ops) + ops->llme_ops = &dummy_llme_ops; + llme_ops = (void *)ops->llme_ops; + + if (!llme_ops->mac_me_info_ind) + llme_ops->mac_me_info_ind = llme_mac_me_info_ind; + if (!ops->lce_ops) ops->lce_ops = &dummy_lce_ops; lce_ops = (void *)ops->lce_ops; |