diff options
author | Patrick McHardy <kaber@trash.net> | 2010-08-17 22:37:20 +0200 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-08-17 22:37:20 +0200 |
commit | dddf792e7e5f833841170ccffc8caac3dac0f2f3 (patch) | |
tree | 38722af702687582d7093704e8e68b1cba36381e /example | |
parent | 3d98bc7b6e09e244b48af30134b9503589fbdc4d (diff) |
examples: minor fixes
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'example')
-rw-r--r-- | example/dummy_ops.c | 3 | ||||
-rw-r--r-- | example/pp-access-rights.c | 7 | ||||
-rw-r--r-- | example/pp-location-update.c | 5 |
3 files changed, 13 insertions, 2 deletions
diff --git a/example/dummy_ops.c b/example/dummy_ops.c index b5da377..cf1b711 100644 --- a/example/dummy_ops.c +++ b/example/dummy_ops.c @@ -225,6 +225,9 @@ static void mm_identity_ind(struct dect_handle *dh, struct dect_mm_endpoint *mme, struct dect_mm_identity_param *param) { + struct dect_mm_identity_param reply = {}; + + dect_mm_identity_res(dh, mme, &reply); } static void mm_identity_cfm(struct dect_handle *dh, diff --git a/example/pp-access-rights.c b/example/pp-access-rights.c index 5d74650..039455d 100644 --- a/example/pp-access-rights.c +++ b/example/pp-access-rights.c @@ -191,8 +191,11 @@ int main(int argc, char **argv) dect_common_init(&ops, argv[1]); - debug("waiting for ACCESS_RIGHTS_REQUESTS capability ...\n"); - dect_event_loop(); + if (!(dect_llme_fp_capabilities(dh)->hlc & + DECT_HLC_ACCESS_RIGHTS_REQUESTS)) { + debug("waiting for ACCESS_RIGHTS_REQUESTS capability ...\n"); + dect_event_loop(); + } mme = dect_mm_endpoint_alloc(dh, &ipui); if (mme == NULL) diff --git a/example/pp-location-update.c b/example/pp-location-update.c index 97b550e..19ac39a 100644 --- a/example/pp-location-update.c +++ b/example/pp-location-update.c @@ -25,6 +25,11 @@ static const struct dect_ipui ipui = { static void mm_locate_cfm(struct dect_handle *dh, struct dect_mm_endpoint *mme, bool accept, struct dect_mm_locate_param *param) { + struct dect_mm_identity_assign_param reply = {}; + + if (param->portable_identity) + dect_mm_identity_assign_res(dh, mme, true, &reply); + dect_event_loop_stop(); } |