mirror of git://git.sysmocom.de/ofono
atmodem: Make sure to use none_prefix
Otherwise all unsolicited notifications would also be consumed when invoking +CGAUTH/+CGDCONT
This commit is contained in:
parent
c1f7135261
commit
dd6ae48d19
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
#include "atmodem.h"
|
#include "atmodem.h"
|
||||||
|
|
||||||
|
static const char *none_prefix[] = { NULL };
|
||||||
|
|
||||||
struct lte_driver_data {
|
struct lte_driver_data {
|
||||||
GAtChat *chat;
|
GAtChat *chat;
|
||||||
struct ofono_lte_default_attach_info pending_info;
|
struct ofono_lte_default_attach_info pending_info;
|
||||||
|
@ -93,7 +95,7 @@ static void at_lte_set_default_attach_info_cb(gboolean ok, GAtResult *result,
|
||||||
ldd->pending_info.password);
|
ldd->pending_info.password);
|
||||||
|
|
||||||
cbd = cb_data_ref(cbd);
|
cbd = cb_data_ref(cbd);
|
||||||
if (g_at_chat_send(ldd->chat, buf, NULL,
|
if (g_at_chat_send(ldd->chat, buf, none_prefix,
|
||||||
at_lte_set_auth_cb, cbd, cb_data_unref) > 0)
|
at_lte_set_auth_cb, cbd, cb_data_unref) > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -112,7 +114,7 @@ static void at_lte_set_default_attach_info(const struct ofono_lte *lte,
|
||||||
cbd->user = ldd;
|
cbd->user = ldd;
|
||||||
memcpy(&ldd->pending_info, info, sizeof(ldd->pending_info));
|
memcpy(&ldd->pending_info, info, sizeof(ldd->pending_info));
|
||||||
|
|
||||||
if (g_at_chat_send(ldd->chat, buf, NULL,
|
if (g_at_chat_send(ldd->chat, buf, none_prefix,
|
||||||
at_lte_set_default_attach_info_cb,
|
at_lte_set_default_attach_info_cb,
|
||||||
cbd, cb_data_unref) > 0)
|
cbd, cb_data_unref) > 0)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
Loading…
Reference in New Issue