diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-10-13 18:22:44 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-10-13 18:22:44 +0200 |
commit | 2aa67b809f5b06fb86a6f8dfc556bfb7c9169729 (patch) | |
tree | 81aabb15f5635ebc4cf07806bd98345a20fd5675 /include/gsmd | |
parent | 58a9b679e9084f4a7061dc3d00a6a3177e2559fa (diff) |
wavecom/sysmocom: use AT@COPS if available, instead of AT+COPS
In certain sysmocom proprietary versions of the wavecom modem,
we have a non-blocking operator scan command called AT@COPS=?,
which we can use instead of AT+COPS=?.
The wavecom vendor plugin checks at start time if the command is
available. If yes, iti s used in case a libgsm client is asking for an
operator scan, instead of the standard AT+COPS=? variant.
Diffstat (limited to 'include/gsmd')
-rw-r--r-- | include/gsmd/vendorplugin.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/gsmd/vendorplugin.h b/include/gsmd/vendorplugin.h index 8669bb7..d4c8b29 100644 --- a/include/gsmd/vendorplugin.h +++ b/include/gsmd/vendorplugin.h @@ -24,6 +24,14 @@ extern int gsmd_vendor_plugin_register(struct gsmd_vendor_plugin *pl); extern void gsmd_vendor_plugin_unregister(struct gsmd_vendor_plugin *pl); extern int gsmd_vendor_plugin_find(struct gsmd *g); +/* should we use AT@COPS=? instead of AT+COPS=? */ +extern int g_use_ATatCOPS; +/* the last user that requested an AT@COPS=? scan */ +extern struct gsmd_user *g_last_cops_user; +extern int g_last_cops_id; +struct gsmd_atcmd; +int network_opers_cb(struct gsmd_atcmd *cmd, void *ctx, char *resp); + #endif /* __GSMD__ */ #endif |