Commit Graph

6 Commits

Author SHA1 Message Date
Pau Espin a6f4ff0806 osmux: Allow forwarding AMR NO_DATA frames
Related: SYS#6161
Change-Id: If8baebc532090ba9808af7f3dd0afec86f40a7d6
2022-12-19 19:44:20 +01:00
Pau Espin 9336eacff9 osmux_output: Refactor init code to avoid calling deprecated APIs internally
Current internal use of APIs marked as deprecated seems to be causing
issues when building on debian unstable.

Simply rearrange the init code to an internal helper function to avoid
code duplication while still keeping the old deprecated APIs working as
they used to, without getting deprecation warnings at buildtime.

Related: OS#5677
Change-Id: Ie8e168740c0421edd96013620256aab0306dc6c5
2022-11-24 12:49:48 +01:00
Pau Espin 3d13c2bb42 osmux: Refactor osmux_xfrm_output_pull() to simplify code flow
Change-Id: I0da1d7875bd32f6c1022676b64f9f0d14bad3144
2022-11-21 10:56:52 +01:00
Pau Espin 81201880b8 osmux: Check received osmuxh->amr_ft is correct before using it
Fixes: Coverity CID#283432
Change-Id: Iab525c5b7eb1e455a8229fb39e96897aac53298c
2022-11-21 10:56:52 +01:00
Pau Espin 6bd64fc928 cosmetic: osmux: Make linter happy
Change-Id: I8472e1b508babfa231c7e0ecc75b4fe63e090a0d
2022-10-03 11:30:13 +02:00
Pau Espin 5fd33980b8 osmux: Split input and output code into separate files
The output and input paths are totally independent, they share no code
or structures holding state. They can be operated totally independently.
Hence, let's split the code into separate file since when someone looks
at the osmux code one is really looking specifically at Tx or Rx side,
but not at both sides.
Moreover, the "input" and "output" concepts have always been a bit
difficult to understand (would have been better calling them "src" and
"sink" instead), which adds more confusion when trying to find the
relevant part of code.

Change-Id: Ia72995092a36ca50147611e617cb88c4dcf231d5
2022-10-03 11:29:58 +02:00