summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-05-13handsfree-audio: Add additional debugsDenis Kenzior1-0/+5
2015-04-20gdbus: Close private connection if setup failsLuiz Augusto von Dentz1-0/+1
Private connection should be properly closed with dbus_connection_close otherwise libdbus exits with the following error: 'The last reference on a connection was dropped without closing the connection. This is a bug in an application. See dbus_connection_unref() documentation for details. Most likely, the application was supposed to call dbus_connection_close(), since this is a private connection.'
2015-04-09gdbus: Fix crash in g_dbus_create_error_valistSzymon Janc1-1/+4
Passing NULL format parameter to vsnprintf results in invalid argument error on glibc. But with some other libc libraries (musl and uClibc) this results in dereferencing NULL pointer and crash due to segmentation fault.
2015-04-09gdbus: Use g_dbus_create_error_valist internallySzymon Janc1-4/+1
There is no need to duplicate code in g_dbus_send_error_valist.
2015-04-07gdbus: Add g_dbus_get_flags functionMichael Janssen2-0/+6
The g_dbus_get_flags function enables detection of when the G_DBUS_FLAG_ENABLE_EXPERIMENTAL is set.
2015-03-26gdbus: Make GDBusClient work without ObjectManagerLuiz Augusto von Dentz1-2/+7
This makes GDBusClient work normally without ObjectManager.
2015-03-26gdbus/client: Allow specifying ObjectManager pathArman Uguray2-6/+22
GDBusClient currently hard-codes "/" as the remote ObjectManager path. This is generally incorrect, as an application can choose to expose an ObjectManager at any well-known path. This patch fixes this by allowing the user to pass in the ObjectManager path by introducing a new conctructor "g_dbus_client_new_full".
2015-03-26gdbus/client: Don't GetManagedObjects w/o handlersArman Uguray1-1/+2
The client code currently issues GetManagedObjects if new handlers are set via g_dbus_client_set_proxy_handlers. An application may set these to NULL before unref'ing a client or to simply prevent further events. Hence, there is no need to refresh objects or properties if all handlers are NULL.
2015-03-24hfpmodem: slc.c: make sure to use none_prefixKuba Pawlak1-3/+4
2015-03-24hfpmodem: hfpmodem.c make sure to use none_prefixKuba Pawlak1-5/+6
2015-03-24hfp_ag_bluez5: use none prefix for AT+BCC.Kuba Pawlak1-1/+2
iPhone 5s with iOS8.2 sometimes failes to acknowledge AT+BCC with OK. This means +CIEV events get consumed by this command and call ended notification is not parsed. Nov 30 00:00:19 ofonod[938]: > AT+BCC\r Nov 30 00:00:28 ofonod[938]: < \r\n+CIEV: 2,0\r\n
2015-02-24gdbus: Fix not calling disconnect functionSzymon Janc1-3/+4
If daemon gets disconnected from D-Bus sender is NULL. Watches that was explicitly added with NULL sender (ie disconnected_signal in g_dbus_set_disconnect_function) should be called anyway.
2015-02-22gdbus: Don't refresh objects/props if disconnectedArman Uguray1-5/+8
If g_dbus_client_set_proxy_handlers gets called from within a proxy_removed callback, the code may end up refreshing the proxy's properties and incorrectly access the client's proxy_list as it gets freed. This patch fixes this, so that get_managed_objects does nothing if it gets called during a service disconnect.
2015-02-20hfpmodem: Make sure to use none_prefixDenis Kenzior1-2/+2
ofonod[253]: > AT+CCWA=1\r ofonod[253]: < \r\n+BCS:2\r\n ofonod[253]: < \r\nOK\r\n
2015-02-20hfpmodem: Make sure to set the prefix properlyDenis Kenzior1-1/+2
ofonod[1239]: > AT+COPS=3,0\r ofonod[1239]: < \r\n+BCS:2\r\n ofonod[1239]: < \r\nOK\r\n
2015-02-13smsutil: Add additional sanity checkDenis Kenzior1-0/+5
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-13unit: Add test to encode / decode 11 char TP-OATommi Kenakkala1-0/+38
2015-02-13sms: Fix alphanumeric TP-OA handlingTommi Kenakkala2-4/+14
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-02AUTHORS: Mention Tommi's contributionsDenis Kenzior1-0/+1
2015-02-02handsfree-audio: Refactor manager init / cleanupTommi Kenakkala1-8/+8
2015-02-02main: Remove handsfree_audio_manager init/cleanupTommi Kenakkala1-4/+0
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-02atmodem: fix retries reporting from AT+CPINRCedric Jehasse1-1/+1
The retries array was not correctly filled in.
2015-02-02atmodem: Sierra modems should be polled after CPINCedric Jehasse1-0/+1
Sierra modem will return "CME ERROR: 14" when polled right after pin has been entered. Use the existing vendor quirk to handle this.
2015-01-31sierra: add sim state polling after CFUN enableCedric Jehasse1-2/+24
When pin is queried shortly after a Siera dongle is plugged in, "AT+CPIN?" responds with "CME ERROR 14: SIM". Poll the sim, as already done by several other vendor plugins.
2014-12-13Release 1.16Marcel Holtmann2-1/+10
2014-12-12radio-settings: Show all available technologiesAlfonso Sanchez-Beato1-2/+2
Not all possible futures technologies were being showed on the DBus interface.
2014-12-10phonesim: Instantiate radio-settings in post_simDenis Kenzior1-0/+2
2014-12-10phonesim: Add minimal radio-settings functionalityDenis Kenzior1-3/+29
2014-12-10phonesim: Add skeleton of radio settings driverDenis Kenzior1-0/+43
2014-12-10radio-settings: Always query available ratsDenis Kenzior1-1/+1
If fast dormancy query is not implemented the available rats are not queried.
2014-12-10radio-settings: Add additional sanity checkDenis Kenzior1-1/+1
2014-12-10radio-settings: rework AvailableTechnologies logicDenis Kenzior1-10/+14
Take advantage of the new enum structure to future proof and simplify the logic of generating the AvailableTechnologies property
2014-12-10include: No need for OFONO_FLAG* definesDenis Kenzior1-11/+4
2014-12-10test: Add AvailableTechnologies to list-modemsAlfonso Sanchez-Beato1-1/+2
2014-12-10src: Implement RAT list propertyAlfonso Sanchez-Beato1-1/+46
2014-12-10include: Add method to list RATs to radio-settingsAlfonso Sanchez-Beato1-0/+15
2014-12-09doc: Add AvailableTechnologies propertyAlfonso Sanchez-Beato1-0/+5
This new property in org.ofono.RadioSettings interface will hold the possible values for radio access technology for the modem.
2014-12-04sim: Fix pin retries bogus values on some arch-esDenis Kenzior1-14/+25
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-11-24test: Support receiving SMS with non-ASCII charsNeil Jerram1-1/+1
Without this I get the following Python traceback, for an SMS that contains the UK pound sign. ERROR:dbus.connection:Exception in handler for D-Bus signal: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 230, in maybe_handle_message self._handler(*args, **kwargs) File "./receive-sms", line 9, in incoming_message print("%s" % (message)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xa3' in position 51: ordinal not in range(128)
2014-10-22he910: Update copyrightKuba Pawlak1-1/+1
2014-10-22he910: enable location raporting atomKuba Pawlak1-0/+2
2014-10-22udev: add GPS port definition for HE910Kuba Pawlak1-2/+5
2014-10-22telitmodem: Fix a few coding style violationsDenis Kenzior1-4/+5
2014-10-22AUTHORS: Mention Kuba's contributionsDenis Kenzior1-0/+1
2014-10-22telitmodem: location reporting driverKuba Pawlak4-0/+394
2014-10-22doc: new file doc/telit-modem.txtKuba Pawlak2-1/+21
2014-10-20emulator: Refine +BIND supportDenis Kenzior1-1/+11
2014-10-20hfp_ag_bluez5: Bump HFP version to 1.7Denis Kenzior1-2/+2
2014-10-20emulator_fuzz: Add test pluginDenis Kenzior2-0/+129
This plugin creates an org.ofono.test.EmulatorFuzz interface on path /test. Currently only one method is implemented, SetIndicatorActive. SetIndicatorActive("DistractedDrivingReduction", True|False) allows to activate / deactivate the HF indicator via +BIND unsolicited notification.
2014-10-20emulator: Implement new APIDenis Kenzior1-0/+19