From 2aa67b809f5b06fb86a6f8dfc556bfb7c9169729 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 13 Oct 2013 18:22:44 +0200 Subject: 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. --- include/gsmd/vendorplugin.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/gsmd') 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 -- cgit v1.2.3