162 Commits

Author SHA1 Message Date
Slava Monich
c8e3b0389f Version 1.1.23 1.1.23 2025-08-11 02:25:31 +03:00
Slava Monich
b0f2cebcb5 Merge pull request #45 from LaakkonenJussi/fix_build_warnings
Proper handling of the NR extension enum
2025-08-11 02:15:49 +03:00
Jussi Laakkonen
42f60e6709 [util] Proper handling of the NR extension enum. JB#62994
It is not ideal to try to handle two separate enums within one switch.
Handle those separately to avoid:

src/binder_util.c:282:5: warning: case value ‘23’ not in enumerated type ‘RADIO_PREF_NET_TYPE’ {aka ‘enum radio_pref_net_type’} [-Wswitch]
  282 |     case RADIO_PREF_NET_NR_ONLY:
      |     ^~~~
src/binder_util.c:285:5: warning: case value ‘24’ not in enumerated type ‘RADIO_PREF_NET_TYPE’ {aka ‘enum radio_pref_net_type’} [-Wswitch]
  285 |     case RADIO_PREF_NET_NR_LTE:
2025-08-07 18:37:29 +03:00
Slava Monich
be1f94671d Version 1.1.22 1.1.22 2025-03-27 06:13:23 +02:00
Slava Monich
4c071845e8 [ofono-binder] Fix implicit-function-declaration warnings
src/binder_cbs.c: In function 'binder_cbs_set_config':
src/binder_cbs.c:229:41: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  229 |                 config->fromServiceId = atoi(range[0]);

src/binder_gprs_context.c: In function 'binder_gprs_context_set_address':
src/binder_gprs_context.c:218:40: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
  218 |                     const int prefix = atoi(s + 1);
      |                                        ^~~~

src/binder_netreg.c: In function 'binder_netreg_nitz_notify':
src/binder_netreg.c:2015:23: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
 2015 |         time.utcoff = atoi(tz) * 15 * 60;
      |                       ^~~~
2025-03-27 06:04:16 +02:00
Slava Monich
3b247d58b7 Merge pull request #44 from mer-hybris/jb58545
Add support for external ringback tone
2025-03-27 05:53:15 +02:00
Matti Lehtimäki
7804af7dfd [ofono-binder-plugin] Add support for external ringback tone. JB#58545
Needed when external IMS plugin implements ringback tone.
2025-03-24 17:28:28 +02:00
Matti Lehtimäki
3aff488691 Version 1.1.21 1.1.21 2025-02-13 15:40:01 +02:00
Matti Lehtimäki
40c9293493 Merge pull request #43 from mer-hybris/jb63132
Fix VoLTE toggling. Fix some memory related and other issues
2025-02-13 15:35:57 +02:00
Matti Lehtimäki
b00ecc5417 [ofono-binder] Fix disabling and enabling VoLTE with toggle. JB#63009 2025-02-12 15:24:34 +02:00
Matti Lehtimäki
7dd348cb90 [ofono-binder] Fix incorrectly emitting binder property signals. JB#63132 2025-02-12 15:24:34 +02:00
Matti Lehtimäki
20f286f2a2 [ofono-binder] Fix null pointer dereference and incorrectly reporting call failure status. JB#63132 2025-02-12 15:24:34 +02:00
Matti Lehtimäki
33f5a70553 [ofono-binder] Fix double free when SMS sending fails. JB#63132
Only affects AIDL interface.
Fix an indentation style issue and reduce the scope of some variables.
2025-02-12 15:24:34 +02:00
Matti Lehtimäki
fadbe2be24 Version 1.1.20 1.1.20 2025-02-01 18:09:05 +02:00
Eugenio Paolantonio (g7)
4e9dc9670c [ofono-binder] util: drop RAF_EHRPD from UMTS and LTE families
EHRPD is only used in CDMA networks. The modem might not expect
it and raise an INVALID_ARGUMENT when using setPreferredNetworkTypeBitmap.

Signed-off-by: Eugenio Paolantonio (g7) <me@medesimo.eu>
2025-02-01 18:07:31 +02:00
Matti Lehtimäki
b1d9cf7c63 Version 1.1.19 1.1.19 2025-01-24 15:53:51 +02:00
Matti Lehtimäki
d9724f63bd Merge pull request #42 from mer-hybris/jb63068
Fix some memory issues in AIDL interface support
2025-01-24 15:52:01 +02:00
Matti Lehtimäki
4f6f4555f4 [ofono-binder] Fix initializing data profile for initial attach APN. JB#63068
Initialization was missing for AIDL interface.
2025-01-24 15:26:12 +02:00
Matti Lehtimäki
fd57dda0ba [ofono-binder] Fix memory allocation size for a string. JB#63068
Used in AIDL interface. Incorrect size caused writing outside of allocated memory.
2025-01-24 15:18:52 +02:00
Slava Monich
0ad76c3528 Version 1.1.18 1.1.18 2024-11-15 15:15:13 +02:00
Slava Monich
6b30a0ec0b [binder-ofono] Tweaked compilation warning binder_sms_on_sim
Replaced this warning in the release build:

src/binder_sms.c:1120:13: warning: unused variable 'ind_code' [-Wunused-variable]
     guint32 ind_code = self->interface_aidl == RADIO_MESSAGING_INTERFACE ?
             ^~~~~~~~

with this one (whichi appears in both release and debug builds):

src/binder_sms.c:1124:18: warning: comparison between 'RADIO_IND' {aka 'enum radio_ind'}
and 'enum radio_messaging_ind' [-Wenum-compare]
             code == RADIO_MESSAGING_IND_NEW_SMS_ON_SIM);
                  ^~

The enum-compare warning is at least useful because it reminds about
different enums being mixed up.
2024-11-15 15:13:17 +02:00
Slava Monich
2cfc88f62b Merge pull request #41 from monich/housekeeping
Fix compilation issues
2024-11-15 14:56:51 +02:00
Slava Monich
8287ee7558 [ofono-binder] Fix compilation issues
src/binder_voicecall.c: In function 'binder_voicecall_list_find_call_with_id':
src/binder_voicecall.c:377:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (GSList* l = list; l; l = l->next) {
     ^

src/binder_voicecall.c: In function 'binder_voicecall_merge_call_lists':
src/binder_voicecall.c:403:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (GSList* l = self->calls; l; l = l->next) {
     ^

src/binder_voicecall.c: In function 'binder_voicecall_call_state_changed_event':
src/binder_voicecall.c:1386:13: warning: unused variable 'ind_code' [-Wunused-variable]
     guint32 ind_code = self->interface_aidl == RADIO_VOICE_INTERFACE ?
             ^
2024-11-15 05:52:01 +02:00
Slava Monich
da9353ab74 Merge pull request #40 from monich/jb62411-1
Respect sms and voice IMS caps
2024-11-14 18:32:05 +02:00
Slava Monich
aebd7d431a [ofono-binder] Respect sms and voice IMS caps. JB#62411
Check the caps obtained from the IMS plugin in addition to the
registration status.
2024-11-07 03:19:46 +02:00
Matti Lehtimäki
f8eede4395 [ofono-binder] Fix external dial status. JB#62411 2024-11-03 01:41:14 +02:00
Slava Monich
50d226e401 Merge pull request #31 from NotKit/merge-ext-calls
Fallback to IRadio in binder_voicecall_answer and merge calls lists
2024-11-02 20:17:35 +02:00
Slava Monich
59d4bfb259 Merge pull request #39 from monich/build_fixes
Build fixes
2024-10-28 18:21:22 +02:00
Slava Monich
c413645fff [ofono-binder] Fix compilation errors
src/binder_plugin.c: In function 'binder_logger_dump_update_slot':
src/binder_plugin.c:471:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (RADIO_AIDL_INTERFACE i = 0; i < RADIO_AIDL_INTERFACE_COUNT; i++) {
     ^
src/binder_plugin.c:471:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
src/binder_plugin.c: In function 'binder_logger_trace_update_slot':
src/binder_plugin.c:489:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (RADIO_AIDL_INTERFACE i = 0; i < RADIO_AIDL_INTERFACE_COUNT; i++) {
     ^
src/binder_plugin.c: In function 'binder_plugin_is_slot_client_connected':
src/binder_plugin.c:533:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (RADIO_AIDL_INTERFACE i = 0; i < RADIO_AIDL_INTERFACE_COUNT; i++) {
     ^
src/binder_plugin.c: In function 'binder_plugin_slot_shutdown':
src/binder_plugin.c:608:13: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
             for (RADIO_AIDL_INTERFACE i = 0; i < RADIO_AIDL_INTERFACE_COUNT; i++) {
             ^
src/binder_plugin.c: In function 'binder_plugin_slot_enabled_changed':
src/binder_plugin.c:787:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
     for (RADIO_AIDL_INTERFACE i = 0; i < RADIO_AIDL_INTERFACE_COUNT; i++) {
     ^
make: *** [Makefile:204: build/release/binder_plugin.o] Error 1
2024-10-28 03:02:56 +02:00
Slava Monich
04c803da45 [rpm] Use make_build macro when it's available 2024-10-28 02:58:54 +02:00
Slava Monich
1e9c46a485 [rpm] Bump ofono version requirement 2024-10-28 02:57:22 +02:00
Matti Lehtimäki
8d3a7a6048 Version 1.1.17 1.1.17 2024-09-26 21:30:31 +03:00
Matti Lehtimäki
c047df31bb Merge pull request #37 from mer-hybris/aidl-fix
[ofono-binder] Fix getting IMEI with HIDL interface. JB#61702
2024-09-26 21:29:43 +03:00
Matti Lehtimäki
1f2d9a7175 [ofono-binder] Fix getting IMEI with HIDL interface. JB#61702
Writing to incorrect array index overwrote other values.
2024-09-26 20:03:07 +03:00
Matti Lehtimäki
05b9507a7c Version 1.1.16 1.1.16 2024-09-26 14:32:32 +03:00
Matti Lehtimäki
51b3dfafa6 Merge pull request #36 from mer-hybris/aidl
Add support for AIDL interfaces
2024-09-26 14:26:44 +03:00
Nikita Ukhrenkov
eaeb88b504 [ofono-binder] Add USSD requests support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
eb9fcfd261 [ofono-binder] Add IMS registration support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
73c65171c6 [ofono-binder] Add SIM toolkit support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
88de129781 [ofono-binder] Add call volume support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
e96d1e6c29 [ofono-binder] Add call settings support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
c016258c24 [ofono-binder] Add call forwarding support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
4ccfd647c9 [ofono-binder] Add support for IRadioVoice interface 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
46db487a09 [ofono-binder] Add support for AIDL call barring 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
8c9ccc3cbd [ofono-binder] Add support for AIDL IRadioMessaging boardcast SMS 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
bd479ed778 [ofono-binder] Add support for AIDL IRadioMessaging 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
44f1713c60 [ofono-binder] Add radio caps support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
56f9d4dd84 [ofono-binder] Add support for IRadioData interface 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
99b4fe71a4 [ofono-binder] Add initial cell info support for AIDL 2024-09-26 01:25:59 +03:00
Matti Lehtimäki
a3bd6ac710 [ofono-binder] Add device monitoring support for AIDL 2024-09-26 01:25:59 +03:00