diff options
author | Patrick McHardy <kaber@trash.net> | 2011-03-20 16:20:05 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-03-20 16:20:05 +0100 |
commit | 7a75194dded7804227ed96f7e254a34ccb538e7a (patch) | |
tree | 55ab73ed33703260a67540bfa1236dac84622adb /src | |
parent | 1f428e713982182aeb47fa0ed010fc6a212eb037 (diff) |
mm: properly complete procedure consisting only of a single message
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/mm.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2197,7 +2197,6 @@ static void dect_mm_rcv_detach(struct dect_handle *dh, struct dect_mm_endpoint *mme, struct dect_msg_buf *mb) { - struct dect_mm_procedure *mp = &mme->procedure[DECT_TRANSACTION_RESPONDER]; struct dect_mm_detach_param *param; struct dect_mm_detach_msg msg; @@ -2223,7 +2222,7 @@ static void dect_mm_rcv_detach(struct dect_handle *dh, param->iwu_to_iwu = dect_ie_hold(msg.iwu_to_iwu); param->escape_to_proprietary = dect_ie_hold(msg.escape_to_proprietary); - dect_transaction_close(dh, &mp->transaction, DECT_DDL_RELEASE_PARTIAL); + dect_mm_procedure_complete(dh, mme); mm_debug(mme, "MM_DETACH-ind"); dh->ops->mm_ops->mm_detach_ind(dh, mme, param); @@ -2829,6 +2828,8 @@ static void dect_mm_rcv_info_request(struct dect_handle *dh, param->iwu_to_iwu = dect_ie_hold(msg.iwu_to_iwu); param->escape_to_proprietary = dect_ie_hold(msg.escape_to_proprietary); + dect_mm_procedure_complete(dh, mme); + mm_debug(mme, "MM_INFO-ind"); dh->ops->mm_ops->mm_info_ind(dh, mme, param); dect_ie_collection_put(dh, param); @@ -2953,7 +2954,7 @@ static void dect_mm_rcv_info_suggest(struct dect_handle *dh, param->iwu_to_iwu = dect_ie_hold(msg.iwu_to_iwu); param->escape_to_proprietary = dect_ie_hold(msg.escape_to_proprietary); - dect_transaction_close(dh, &mp->transaction, DECT_DDL_RELEASE_PARTIAL); + dect_mm_procedure_complete(dh, mme); mm_debug(mme, "MM_INFO-ind"); dh->ops->mm_ops->mm_info_ind(dh, mme, param); |