mirror of git://git.sysmocom.de/ofono
stk: Remove ofono_stk_terminal_response_sent_notify
Not needed for now. We can always put this back in later if need be.
This commit is contained in:
parent
77c20d8a27
commit
51aecde6cc
|
@ -70,9 +70,6 @@ void ofono_stk_proactive_session_end_notify(struct ofono_stk *stk);
|
||||||
void ofono_stk_proactive_command_handled_notify(struct ofono_stk *stk,
|
void ofono_stk_proactive_command_handled_notify(struct ofono_stk *stk,
|
||||||
int length,
|
int length,
|
||||||
const unsigned char *pdu);
|
const unsigned char *pdu);
|
||||||
void ofono_stk_terminal_response_sent_notify(struct ofono_stk *stk,
|
|
||||||
int length,
|
|
||||||
const unsigned char *pdu);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
18
src/stk.c
18
src/stk.c
|
@ -2411,6 +2411,17 @@ void ofono_stk_proactive_command_handled_notify(struct ofono_stk *stk,
|
||||||
struct stk_command *cmd;
|
struct stk_command *cmd;
|
||||||
struct stk_response dummyrsp;
|
struct stk_response dummyrsp;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Modems send us the proactive command details and terminal responses
|
||||||
|
* sent by the modem as a response to the command. Terminal responses
|
||||||
|
* start with the Command Details CTLV tag (0x81). We filter terminal
|
||||||
|
* responses here
|
||||||
|
*/
|
||||||
|
if (length > 0 && pdu[0] == 0x81) {
|
||||||
|
stk_alpha_id_unset(stk);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
stk_proactive_command_cancel(stk);
|
stk_proactive_command_cancel(stk);
|
||||||
|
|
||||||
cmd = stk_command_new_from_pdu(pdu, length);
|
cmd = stk_command_new_from_pdu(pdu, length);
|
||||||
|
@ -2463,13 +2474,6 @@ void ofono_stk_proactive_command_handled_notify(struct ofono_stk *stk,
|
||||||
stk_command_free(cmd);
|
stk_command_free(cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ofono_stk_terminal_response_sent_notify(struct ofono_stk *stk,
|
|
||||||
int length,
|
|
||||||
const unsigned char *pdu)
|
|
||||||
{
|
|
||||||
stk_alpha_id_unset(stk);
|
|
||||||
}
|
|
||||||
|
|
||||||
int ofono_stk_driver_register(const struct ofono_stk_driver *d)
|
int ofono_stk_driver_register(const struct ofono_stk_driver *d)
|
||||||
{
|
{
|
||||||
DBG("driver: %p, name: %s", d, d->name);
|
DBG("driver: %p, name: %s", d, d->name);
|
||||||
|
|
Loading…
Reference in New Issue