Denis Kenzior
bb9a1954ea
radio-settings: Implement get_modem()
2015-11-05 20:50:12 -06:00
Simon Fels
046f032b32
emulator: add codec negotiation support
2015-10-26 11:43:04 -05:00
Tony Espy
f2f279b28d
src: make bearer/operator enums public
...
Move enums for operator_status and packet_bearer to common.h to avoid
duplication in drivers.
2015-10-13 16:00:17 -05:00
Denis Kenzior
c8eb4e384e
emulator: Add ofono_emulator_set_handsfree_card
2015-10-06 09:04:12 -05:00
Simon Fels
5a7410e9e4
handsfree-audio: add type for our audio cards
...
When registering audio cards for the handsfree and gateway roles we
need a way for our users to differentiate between both to decide which
of them they start using for their purpose.
2015-10-05 11:46:30 -05:00
Alfonso Sanchez-Beato
51fc828c5e
sms: Add trace when datagram is not delivered
2015-09-08 09:14:03 -05:00
Alfonso Sanchez-Beato
ac14de37ca
smsutil: Do not check the origin port
...
Do not check if the origin port is reserved, as some operators use that
range of values.
2015-09-08 09:14:03 -05:00
Denis Kenzior
9ec8d03c7c
voicecall: Don't accept USSD strings in Dial()
2015-08-06 17:16:03 -05:00
Denis Kenzior
8be0245664
cdma-connman: Make static analysis tools happy
...
The kernel simply puts a null terminator at index 15 prior to ifr_name
processing. So we do the same.
Original report by:
Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com>
Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning:
Calling strncpy with a maximum size argument of 16 bytes on destination
array ifr.ifr_ifrn.ifrn_name of size 16 bytes might leave the
destination string unterminated.
92 strncpy(ifr.ifr_name, interface, IFNAMSIZ);
2015-07-28 10:18:26 -05:00
Denis Kenzior
dbb3ec13e5
gprs: Try re-attaching when we switch cells
2015-07-20 13:51:29 -05:00
Alfonso Sanchez-Beato
1b3302322a
message-waiting: Fix reading EF_MWIS records
2015-07-16 20:22:38 -05:00
Alfonso Sanchez-Beato
cd76f913f0
message-waiting: Update properly EF_MWIS SIM file
2015-07-16 20:17:27 -05:00
Denis Kenzior
35ebbf4c97
handsfree: Mark GetProperties method ASYNC
2015-07-06 04:06:45 -05:00
Sergey Alirzaev
4a937b96aa
build: make ofono build against musl
...
ifdef away GNU libc extensions and use a POSIXly correct pointer type
2015-07-01 08:09:53 -05:00
Denis Kenzior
fceb5a41c2
handsfree: Fix potential buffer overflow
...
Function: ag_features_list
static const char *list[10]; (Out of bounds write, line 75)
Incrementing i the value is now 10, for “hf-indicators”
Reported by: blanca.e.sabas.rosales@intel.com
2015-06-30 16:58:36 -05:00
Denis Kenzior
48da783732
sim: Fix up whitespace issues
2015-06-18 14:59:06 -05:00
Tommi Kenakkala
eebe2f3ac2
Emit LockedPins after pin_type is queried
...
Fixes property change not being emited when hot-swapping a
PIN-enabled card.
2015-06-18 14:56:05 -05:00
Tommi Kenakkala
4677729502
sim: Reset pin_type on card remove
...
Fixes PinRequired not being emitted when a card is inserted
2015-06-17 23:09:03 -05:00
Alfonso Sanchez-Beato
e70afdd9dc
gprs: Add comment to gprs_reset_contexts
2015-05-18 12:13:04 -05:00
Alfonso Sanchez-Beato
946b568f43
gprs: Refactor to remove forward declaration
2015-05-18 09:08:33 -05:00
Alfonso Sanchez-Beato
444611c086
gprs: Add DBus method to reset contexts
...
Add DBus method that removes the current contexts and re-provisions
using the APN database.
2015-05-18 09:08:13 -05:00
Denis Kenzior
fdba39b8ed
handsfree-audio: Call sco_connected_hint
2015-05-13 09:57:52 -05:00
Denis Kenzior
1c2987670d
handsfree-audio: Add additional debugs
2015-05-13 09:57:52 -05:00
Denis Kenzior
e2398b4dfa
smsutil: Add additional sanity check
...
We make sure that after performing the UTF8 -> GSM conversion, the
number of GSM bytes is not greater than 11, which is the maximum
payload.
2015-02-13 09:59:59 -06:00
Tommi Kenakkala
2af3c733b7
sms: Fix alphanumeric TP-OA handling
...
TP-OA max length comparisons were incorrect because TP-OA's 7-bit
coded octets transport eleven 8-bit chars. The current code assumed
only 10 chars were possible.
The patch
- increases the array size to 23, (maximum of 22 bytes for UTF8
encoding + null terminator)
- Updates the sanity check to account for the correct maximum
- For encoding, checks the maximum length in UTF8 characters instead of
bytes
2015-02-13 09:49:39 -06:00
Tommi Kenakkala
04218d3a86
handsfree-audio: Refactor manager init / cleanup
2015-02-02 09:28:34 -06:00
Tommi Kenakkala
41fadd3787
main: Remove handsfree_audio_manager init/cleanup
...
Init allocates a SCO audio socket always. oFono should do that
with bluez5 but not with bluez4. This patch starts the refactoring of
the handsfree_audio_manager init/cleanup functionality.
2015-02-02 09:26:58 -06:00
Alfonso Sanchez-Beato
10f173981c
radio-settings: Show all available technologies
...
Not all possible futures technologies were being showed on the DBus
interface.
2014-12-12 08:54:14 -06:00
Denis Kenzior
95482cb84a
radio-settings: Always query available rats
...
If fast dormancy query is not implemented the available rats are not
queried.
2014-12-10 11:03:16 -06:00
Denis Kenzior
fce95b767a
radio-settings: Add additional sanity check
2014-12-10 11:03:16 -06:00
Denis Kenzior
44049f064a
radio-settings: rework AvailableTechnologies logic
...
Take advantage of the new enum structure to future proof and simplify
the logic of generating the AvailableTechnologies property
2014-12-10 11:03:16 -06:00
Alfonso Sanchez-Beato
5210b85c22
src: Implement RAT list property
2014-12-10 11:03:16 -06:00
Denis Kenzior
7dca0a7315
sim: Fix pin retries bogus values on some arch-es
...
On some architectures the SimManager.Retries property was getting bogus
values. This is because we were sending an array which pointed to int
values instead of the expected unsigned char values.
This fix allocates a temporary array of unsigned chars to hold the
actual D-Bus values being sent. Additionally, the dictionary array is
changed to point to the temporary unsigned char based values instead of
the raw 'int' based retry values.
2014-12-04 08:57:48 -06:00
Denis Kenzior
6c4ac05fbc
emulator: Refine +BIND support
2014-10-20 13:40:29 -05:00
Denis Kenzior
f9d5ee5fa9
emulator: Implement new API
2014-10-20 13:40:28 -05:00
Denis Kenzior
d3560b3784
handsfree: Be extra pedantic with booleans
2014-10-20 13:40:28 -05:00
Denis Kenzior
de02f68a2e
handsfree: Don't try to send a method return
...
When we are simply updating the AG of HF indicator changes, do not try
to send a method return message.
2014-10-20 13:40:28 -05:00
Denis Kenzior
6c0f90fc1b
handsfree: Implement new HF indicators API
2014-10-20 13:40:28 -05:00
Denis Kenzior
7166aebd51
emulator: Refactor data types
2014-10-20 13:40:28 -05:00
Denis Kenzior
ab5b6d1217
handsfree: Skeleton implementation of DDR
...
Distracted Driving Reduction or Enhanced Safety is implemented using HF
indicator 0x0001
2014-10-20 13:40:28 -05:00
Denis Kenzior
66cf2a30fa
handsfree: Implement new Features property value
2014-10-20 13:40:28 -05:00
Denis Kenzior
43e83852dc
emulator: Enable HF Indicator feature
2014-10-20 13:40:28 -05:00
Denis Kenzior
36a21da227
emulator: Extend BRSF bitmap
...
The current check of 8 bits is not enough with HFP 1.7
2014-10-20 13:40:28 -05:00
Denis Kenzior
bef4d610a3
emulator: Add +BIEV implementation
2014-10-20 13:40:28 -05:00
Denis Kenzior
2d158167c2
emulator: Add +BIND implementation
2014-10-20 13:40:27 -05:00
Denis Kenzior
02c5b73f6e
emulator: Fix CHLD=? not treated as part of SLC
2014-10-20 13:40:27 -05:00
Denis Kenzior
0727da1d5b
emulator: Improve SLC establishment logic
2014-10-20 13:40:27 -05:00
Denis Kenzior
d292e0e0ed
hfp: Add enum for known HF Indicators
2014-10-20 13:40:27 -05:00
Denis Kenzior
881207ce18
hfp: Update for new HFP 1.7 values
2014-10-20 13:40:27 -05:00
Marcel Holtmann
8ebb17977b
handsfree-audio: Fix broken coding style in switch statement
2014-09-20 16:13:45 +02:00