Commit 2375ed1
committed
[nrf fromlist] modem: cmux: Wake up before sending disconnect
If CMUX is going to be shut down while in power-saving mode,
we need to wake-up before doing the state transitioning.
If we directly transition from STATE_POWERSAVE to
STATE_DISCONNECTING, the UART is not woken up and the
disconnect commands are not send.
Use is_connection() helper on both disconnect and connect APIs
to clean up the state check.
Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
Upstream PR #: 1089781 parent 5c1a216 commit 2375ed1
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1831 | 1831 | | |
1832 | 1832 | | |
1833 | 1833 | | |
1834 | | - | |
| 1834 | + | |
| 1835 | + | |
| 1836 | + | |
| 1837 | + | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
| 1842 | + | |
1835 | 1843 | | |
1836 | 1844 | | |
1837 | 1845 | | |
| |||
2208 | 2216 | | |
2209 | 2217 | | |
2210 | 2218 | | |
2211 | | - | |
| 2219 | + | |
2212 | 2220 | | |
2213 | 2221 | | |
2214 | 2222 | | |
| |||
2246 | 2254 | | |
2247 | 2255 | | |
2248 | 2256 | | |
2249 | | - | |
| 2257 | + | |
2250 | 2258 | | |
2251 | 2259 | | |
2252 | 2260 | | |
| |||
0 commit comments