All of lore.kernel.org
 help / color / mirror / Atom feed
* phonesim fix for multiple proactive command ind
@ 2010-09-14 16:22 Jeevaka Badrappan
  2010-09-14 16:22 ` [PATCH] phonesim: Fix multiple proactive command ind issue Jeevaka Badrappan
  0 siblings, 1 reply; 3+ messages in thread
From: Jeevaka Badrappan @ 2010-09-14 16:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 149 bytes --]


Hi,

 This patch fixes the multiple answering of AT+CSIM command and 
multiple notification of the new proactive command.

Regards,
jeevaka

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] phonesim: Fix multiple proactive command ind issue
  2010-09-14 16:22 phonesim fix for multiple proactive command ind Jeevaka Badrappan
@ 2010-09-14 16:22 ` Jeevaka Badrappan
  2010-09-14 16:58   ` Denis Kenzior
  0 siblings, 1 reply; 3+ messages in thread
From: Jeevaka Badrappan @ 2010-09-14 16:22 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

---
 src/phonesim.cpp |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/phonesim.cpp b/src/phonesim.cpp
index 8210f51..89089b2 100644
--- a/src/phonesim.cpp
+++ b/src/phonesim.cpp
@@ -1013,11 +1013,13 @@ bool SimRules::simCommand( const QString& cmd )
         QSimTerminalResponse resp =
             QSimTerminalResponse::fromPdu( param.mid(5) );
 
-        if ( toolkitApp->response( resp ) )
-            return simCsimOk( QByteArray() );
+        /* Incase of successful case, response is sent inside
+         * the SimApplication::response function. response function
+         * also handles the notification of new command
+         */
+        if ( !toolkitApp->response( resp ) )
+            respond( "+CSIM: 4,6F00\\n\\nOK" );
 
-        /* Response to the wrong type of command. */
-        respond( "+CSIM: 4,6F00\\n\\nOK" );
         return true;
     } else if ( param.length() >= 5 && param[1] == (char)0x2c &&
                     param[4] == (char)0x10 && param.size() >= 21 ) {
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] phonesim: Fix multiple proactive command ind issue
  2010-09-14 16:22 ` [PATCH] phonesim: Fix multiple proactive command ind issue Jeevaka Badrappan
@ 2010-09-14 16:58   ` Denis Kenzior
  0 siblings, 0 replies; 3+ messages in thread
From: Denis Kenzior @ 2010-09-14 16:58 UTC (permalink / raw)
  To: ofono

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

Hi Jeevaka,

On 09/14/2010 11:22 AM, Jeevaka Badrappan wrote:
> ---
>  src/phonesim.cpp |   10 ++++++----
>  1 files changed, 6 insertions(+), 4 deletions(-)
> 

This patch has been applied, thanks.

Regards,
-Denis

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-14 16:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-14 16:22 phonesim fix for multiple proactive command ind Jeevaka Badrappan
2010-09-14 16:22 ` [PATCH] phonesim: Fix multiple proactive command ind issue Jeevaka Badrappan
2010-09-14 16:58   ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.