sndcp: Initiate LL-XID.req only if we have something to send at L3

Change-Id: I324d841ae4d725d55d2807067cdd56c4457fa941
This commit is contained in:
Pau Espin 2023-05-03 14:28:28 +02:00
parent 1352cae927
commit 028380ddbb
2 changed files with 8 additions and 4 deletions

View File

@ -637,9 +637,14 @@ static int gprs_sndcp_prim_handle_sndcp_snsm_activate_ind(struct osmo_gprs_sndcp
* return rc;
*/
/* TS 24.007 C.6 "LLC link exists already, only XID exchange" */
sne->xid_req_in_transit_orig_snsm_activate_ind = true;
rc = gprs_sndcp_sne_submit_llc_ll_xid_req(sne);
if (sne->l3xid_req && sne->l3xid_req_len > 0) {
/* TS 24.007 C.6 "LLC link exists already, only XID exchange" */
sne->xid_req_in_transit_orig_snsm_activate_ind = true;
rc = gprs_sndcp_sne_submit_llc_ll_xid_req(sne);
} else {
/* TS 24.007 C.6 "LLC link exists already, no XID exchange"*/
rc = gprs_sndcp_sne_submit_snsm_activate_rsp(sne);
}
return rc;
}

View File

@ -5,7 +5,6 @@ test_sndcp_prim_up_cb(): Rx SN-UNITDATA.indication TLLI=0xe1c5d364 SAPI=SNDCP3 N
test_sndcp_prim_down_cb(): Rx LL-UNITDATA.request TLLI=0xe1c5d364 SAPI=SNDCP3 L3=[65 00 00 00 73 6f 6d 65 2d 6e 70 64 75 2d 64 61 74 61 2d 6c 69 6b 65 2d 61 6e 2d 69 70 2d 70 6b 74 00 ]
==== test_sndcp_prim_net() [end] ====
==== test_sndcp_prim_ms() [start] ====
test_sndcp_prim_down_cb(): Rx LL-XID.request
test_sndcp_prim_snsm_cb(): Rx SNSM-ACTIVATE.response
test_sndcp_prim_down_cb(): Rx LL-XID.request
test_sndcp_prim_up_cb(): Rx SN-XID.confirm