Commit Graph

6117 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz 8b35fa1277 btio: Add BtIOMode enum to be used with BT_IO_OPT_MODE 2012-02-10 10:18:01 +01:00
Luiz Augusto von Dentz c5193182ea btio: Add L2ERTM type
L2ERTM type uses L2CAP socket in SOCK_STREAM instead of SOCK_SEQPACKET
2012-02-10 10:17:55 +01:00
Marcel Holtmann 25bde3be6b ifxmodem: Remove audio settings mode handling
With the current updated setup, the audio settings mode is no longer
provided. So don't bother even trying to configure it.
2012-02-10 10:04:34 +01:00
Marcel Holtmann b88a621528 ifxmodem: Remove another usage g_utf8_validate 2012-02-10 09:42:54 +01:00
Denis Kenzior 9d666ccce0 ifx: Don't use g_utf8_validate
Emergency Numbers can only be digits, so there's no point to use the
'Hammer of Thor' that is g_utf8_validate when a much simpler function
will do the job just as well.
2012-02-10 00:38:37 -06:00
Denis Kenzior 2708ca3b63 ifx: Take out bad merge 2012-02-09 22:35:21 -06:00
Denis Kenzior 7e42c5bbb0 ifx: Modify XLEMA behavior
XLEMA reports emergency numbers that are hardcoded (e.g. 112 and 911)
and that are already read from EFecc.  The additional emergency numbers
we are interested in should only come from the NVM or the network NITZ
update.
2012-02-09 22:34:02 -06:00
Marcel Holtmann e2fe4e4940 ifx: Use CFUN=0 (Minimum Functionality) to disable modem 2012-02-10 02:42:43 +01:00
Marcel Holtmann cfdc96186e ifxmodem: Handle malformed emergency numbers
This might be either a modem firmware bug or the SIM card is provisioned
really badly, but the last entry contains garbage characters.

ofonod[20620]: Voice: < \r\n+XLEMA: 1,9,"112",,1\r\n\r\n+XLEMA: 2,9,"911",,1\r\n\r\n+XLEMA: 3,9,"000",57,1\r\n\r\n+XLEMA: 4,9,"08",49,1\r\n\r\n+XLEMA: 5,9,"112",49,1\r\n\r\n+XLEMA: 6,9,"118",0,1\r\n\r\n+XLEMA: 7,9,"119",0,1\r\n\r\n+XLEMA: 8,9,"911",0,1\r\n\r\n+XLEMA: 9,9,"999\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377\377",0,1\r\n

Fix this by just validating the string and cutting off once an invalid
character is found.
2012-02-10 02:15:16 +01:00
Marcel Holtmann b1b0fe761e ifx: Remove handling of audio settings setup
The audio settings setup is now done as port of the audio settings atom.
2012-02-10 01:17:06 +01:00
Frédéric Danis a035f8b0e2 voicecall: Fix emulator AT+CHUP for HFP
AT+CHUP should be able to hang-up active or incoming calls
2012-02-09 14:21:51 -06:00
Denis Kenzior d5bdd1f741 ifx: Add necessary incantations for audio 2012-02-09 08:36:18 -06:00
Marcel Holtmann 31efecfe72 ifx: Fix compilation issue 2012-02-02 21:51:26 -08:00
Denis Kenzior 3805cd91c7 stkutil: Make valgrind happy
==29809== Conditional jump or move depends on uninitialised value(s)
==29809==    at 0x4E826C: stk_file_iter_next (stkutil.c:212)
==29809==    by 0x4E8CF8: parse_dataobj_file_list (stkutil.c:635)
==29809==    by 0x4EBA29: parse_dataobj (stkutil.c:2410)
==29809==    by 0x4ECFB5: parse_refresh (stkutil.c:2971)
==29809==    by 0x4EECA3: parse_command_body (stkutil.c:3826)
==29809==    by 0x4EF0DF: stk_command_new_from_pdu (stkutil.c:3948)
==29809==    by 0x4D50DA: ofono_stk_proactive_command_handled_notify
(stk.c:2885)
2012-02-02 09:17:04 -06:00
Denis Kenzior 6b44e65993 ifx: Make sure query XSIMSTATE
XSIMSTATE=1 does not seem to reliably activate XSIM notifications
anymore.  So query the XSIMSTATE at startup instead.
2012-02-02 09:15:36 -06:00
Denis Kenzior 1b5b46a23e ifx: Use a proper prefix for XGENDATA 2012-02-02 05:53:53 -06:00
Denis Kenzior a51004d4f7 sim: Fix crash due to uninitialized spn_watch 2012-02-01 20:12:51 -06:00
Vinicius Costa Gomes fc114ada8d btio: Remove the default security level from btio
The default value of sec_level when setting *any* option
using bt_io_set() was BT_SECURITY_MEDIUM. This was causing
the security procedure being started in some situations that
it should not.
2012-01-25 22:22:24 -08:00
Vinicius Costa Gomes 38c6525979 btio: Add support for getting the Encryption Key Size via btio
Some profiles specify some restriction depending on the length
of the key used to encrypt the link, this adds an way to retrieve
that value from the kernel.
2012-01-25 22:22:24 -08:00
Oleg Zhurakivskyy bdf5939520 sim: Make SPN change atomic for consumers
Due to new spn watch semantics, ofono_sim_get_spn()
will report the absence of SPN while reading it,
which is probably incorrect.
2012-01-23 10:27:54 -06:00
Marcel Holtmann 0d48ab7b7e Release 1.3 2012-01-20 16:59:32 +01:00
Denis Kenzior 1ddbdb5e1a TODO: Mark Handsfree interface task as done 2012-01-18 13:28:31 -06:00
Denis Kenzior 39ac002f50 TODO: Mark GPRS provisioning task as done 2012-01-18 13:20:29 -06:00
Denis Kenzior d2ba5c9f90 TODO: Mark SAP task as done 2012-01-18 13:10:48 -06:00
Denis Kenzior ae5829e984 modem: Use __ofono_atom_find
Also remove defunct comment about registered status
2012-01-18 13:01:16 -06:00
Denis Kenzior d218070689 stk: find_atom only returns registered atoms
This seems to be an oversight from an earlier refactoring.
2012-01-18 12:58:20 -06:00
Denis Kenzior 65393a2fb3 sms: Don't need the sim member now 2012-01-18 12:55:02 -06:00
Denis Kenzior be914cd32a cbs: finding SIM atom seems to not necessary now 2012-01-18 12:52:01 -06:00
Denis Kenzior ae14a3056a stk: Use __ofono_atom_find 2012-01-18 12:50:55 -06:00
Denis Kenzior 878573b831 gprs: Use __ofono_atom_find 2012-01-18 12:36:37 -06:00
Denis Kenzior cd3edbf984 cdma-connman: Use __ofono_atom_find 2012-01-18 12:21:36 -06:00
Denis Kenzior 15ef5861c5 voicecall: Use __ofono_atom_find 2012-01-18 12:21:36 -06:00
Denis Kenzior 688a788da5 ussd: Use __ofono_atom_find 2012-01-18 12:21:36 -06:00
Denis Kenzior 7e426f96cc emulator: Use __ofono_atom_find 2012-01-18 12:21:36 -06:00
Denis Kenzior 2ad5db2e99 call-forwarding: Use __ofono_atom_find 2012-01-18 12:21:36 -06:00
Denis Kenzior 45402f797b sms: Use __ofono_atom_find 2012-01-18 12:21:34 -06:00
Denis Kenzior dc93f5dbe0 cbs: Use __ofono_atom_find macro 2012-01-18 12:21:33 -06:00
Denis Kenzior 12e481104d network: Use __ofono_atom_find macro 2012-01-18 12:21:33 -06:00
Denis Kenzior 3757fe01f2 message-waiting: Use __ofono_atom_find macro 2012-01-18 12:21:33 -06:00
Denis Kenzior 74d545d8f4 ofono: Add __ofono_atom_find macro 2012-01-18 12:21:30 -06:00
Oleg Zhurakivskyy e04f0ef027 network: Access SPN directly from the sim atom 2012-01-18 10:44:54 -06:00
Oleg Zhurakivskyy 810bd2aa2e sim: Add ofono_sim_get_spn() implementation 2012-01-18 10:42:59 -06:00
Oleg Zhurakivskyy 80733ae875 include: Add ofono_sim_get_spn() declaration 2012-01-18 10:42:40 -06:00
Denis Kenzior 137c602351 network: Optimize away one unneeded assignment 2012-01-18 10:41:43 -06:00
Oleg Zhurakivskyy 0f79546eaf network: Use sim SPN watch API 2012-01-18 10:38:51 -06:00
Denis Kenzior b5d6d835fa gprs: Trivial code reflow 2012-01-18 10:33:56 -06:00
Oleg Zhurakivskyy 9ebdfe29db gprs: Use sim SPN watch API 2012-01-18 10:26:03 -06:00
Marcel Holtmann f9fac7100b btio: Remove support for hciX source addresses 2012-01-17 11:48:24 +01:00
Santiago Carot-Nemesio b2ed1b1ac4 btio: Fix byte order conversion when getting L2CAP CID
The L2CAP CID is passed and received in little endian byte order
through the socket interface so a conversion is in place before
passing it onwards.
2012-01-17 11:42:21 +01:00
Santiago Carot-Nemesio 4222c68155 btio: Fix byte order conversion when getting L2CAP PSM
The L2CAP PSM is passed and received in little endian byte order through
the socket interface so a conversion is in place before passing it
onwards.
2012-01-17 11:41:52 +01:00