On 09/15/2015 05:19 AM, Viallard Anthony wrote:
My module (SIMCOM5216) sends "PB DONE" when the phonebook is ready. So,
I would like to wait for this message before instantiated the phonebook
interface in ofono.
In the phonebook AT driver, there is a quirk for ifx vendor. So, I try
to do the same thing, not with the "+PBREADY" message, but with "PB
DONE" and it doesn't work.
I don't known where to put my quirk. Can you give me some hints ?
A quirk setting is usually done in two places:
1. The atom driver itself. e.g. drivers/atmodem/phonebook.c
2. The modem driver. Instead of passing 0 as the second argument, you
pass in the vendor quirk. e.g.:
ofono_phonebook_create(modem, VENDOR_QUIRK, "atmodem", ...);
Hope this helps.