mirror of git://git.sysmocom.de/ofono
ste: add support for gnss
This commit is contained in:
parent
acf687e216
commit
7c2568b098
|
@ -57,6 +57,7 @@
|
|||
#include <ofono/gprs-context.h>
|
||||
#include <ofono/radio-settings.h>
|
||||
#include <ofono/stk.h>
|
||||
#include <ofono/gnss.h>
|
||||
|
||||
#include <drivers/atmodem/atutil.h>
|
||||
#include <drivers/atmodem/vendor.h>
|
||||
|
@ -64,17 +65,18 @@
|
|||
#include <drivers/stemodem/caif_socket.h>
|
||||
#include <drivers/stemodem/if_caif.h>
|
||||
|
||||
#define NUM_CHAT 5
|
||||
#define NUM_CHAT 6
|
||||
#define AT_DEFAULT 0
|
||||
#define AT_NET 1
|
||||
#define AT_VOICE 2
|
||||
#define AT_GPRS 3
|
||||
#define AT_SIM 4
|
||||
#define AT_GNSS 5
|
||||
|
||||
#define MAX_PDP_CONTEXTS 4
|
||||
|
||||
static char *chat_prefixes[NUM_CHAT] = { "Default: ", "Net: ", "Voice: ",
|
||||
"GPRS: ", "SIM: " };
|
||||
"GPRS: ", "SIM: ", "GNSS:" };
|
||||
|
||||
struct ste_data {
|
||||
GAtChat *chat[NUM_CHAT];
|
||||
|
@ -471,6 +473,8 @@ static void ste_post_online(struct ofono_modem *modem)
|
|||
ofono_call_barring_create(modem, 0, "atmodem", data->chat[AT_DEFAULT]);
|
||||
ofono_call_volume_create(modem, 0, "atmodem", data->chat[AT_DEFAULT]);
|
||||
ofono_cbs_create(modem, 0, "atmodem", data->chat[AT_DEFAULT]);
|
||||
ofono_gnss_create(modem, OFONO_VENDOR_STE, "atmodem",
|
||||
data->chat[AT_GNSS]);
|
||||
|
||||
gprs = ofono_gprs_create(modem, OFONO_VENDOR_MBM,
|
||||
"atmodem", data->chat[AT_GPRS]);
|
||||
|
|
Loading…
Reference in New Issue