diff options
| author | Yang Gu <yang.gu@intel.com> | 2010-05-13 18:48:31 +0800 | 
|---|---|---|
| committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-13 13:52:20 -0500 | 
| commit | 0dc5c5df6f0d898bd4e0381cf2c9fb5811620c15 (patch) | |
| tree | 0e7e4250aad92777007c172fabbdb958ef60f72a /src/stkutil.c | |
| parent | 48bc1c3575e127658568e5af803bceeb0ec4ea6a (diff) | |
| download | ofono-0dc5c5df6f0d898bd4e0381cf2c9fb5811620c15.tar.bz2 | |
stkutil: Add polling off proactive command parser
Diffstat (limited to 'src/stkutil.c')
| -rw-r--r-- | src/stkutil.c | 15 | 
1 files changed, 15 insertions, 0 deletions
| diff --git a/src/stkutil.c b/src/stkutil.c index 75144924..2ed110a3 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -2561,6 +2561,18 @@ static gboolean parse_refresh(struct stk_command *command,  	return TRUE;  } +static gboolean parse_polling_off(struct stk_command *command, +					struct comprehension_tlv_iter *iter) +{ +	if (command->src != STK_DEVICE_IDENTITY_TYPE_UICC) +		return FALSE; + +	if (command->dst != STK_DEVICE_IDENTITY_TYPE_TERMINAL) +		return FALSE; + +	return TRUE; +} +  struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,  						unsigned int len)  { @@ -2652,6 +2664,9 @@ struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,  	case STK_COMMAND_TYPE_REFRESH:  		ok = parse_refresh(command, &iter);  		break; +	case STK_COMMAND_TYPE_POLLING_OFF: +		ok = parse_polling_off(command, &iter); +		break;  	default:  		ok = FALSE;  		break; |