diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-01-12 20:59:40 +0600 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2023-01-12 21:25:25 +0600 |
commit | 1e8c6defaf2d4fa1f138fa49ca4047efc8f3d11f (patch) | |
tree | 206fd4f040d95c683557273da53830d4d41e17eb | |
parent | c209242d196a9c30401c383104f5063d4dbde4cd (diff) |
modem: fix modem_tx_chan_req(): check if SI13 was received
There was no need for this check because the channel establishment
logic was at the end of handle_si13(), so I overlooked this.
Change-Id: I829948de325461ab5d7e950493497a7537ba06ac
Fixes: 8a506dcd4e2736aac2bf30d1784f0e1f0c3a9d00
Related: OS#5500
-rw-r--r-- | src/host/layer23/src/modem/app_modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/layer23/src/modem/app_modem.c b/src/host/layer23/src/modem/app_modem.c index 8af32430..ad05603f 100644 --- a/src/host/layer23/src/modem/app_modem.c +++ b/src/host/layer23/src/modem/app_modem.c @@ -73,8 +73,8 @@ static int modem_tx_chan_req(struct osmocom_ms *ms, bool single_block) OSMO_ASSERT(rr->state == GSM48_RR_ST_IDLE); - if (!app_data.si.si1) - return -EBUSY; + if (!app_data.si.si1 || !app_data.si.si13) + return -EAGAIN; if (!app_data.si.gprs.supported) return -ENOTSUP; |