[media] siano: fix start of statistics
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 10 Mar 2013 02:01:48 +0000 (23:01 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Mar 2013 10:47:39 +0000 (07:47 -0300)
It seems that the first u32 after the header for some stats are used by
something not documented.
The stats struct starts after it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/common/siano/smsdvb.c

index a5f52721154cfb2e4d4f7a3c1bc928341c9dc3fb..70ea3e9b4ac6f710147fd32919a61d0351fb5220 100644 (file)
@@ -724,7 +724,8 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
                        smsdvb_update_isdbt_stats(client, p);
                        break;
                default:
-                       smsdvb_update_dvb_stats(client, p);
+                       /* Skip SmsMsgStatisticsInfo_ST:RequestResult field */
+                       smsdvb_update_dvb_stats(client, p + sizeof(u32));
                }
 
                is_status_update = true;
@@ -732,7 +733,8 @@ static int smsdvb_onresponse(void *context, struct smscore_buffer_t *cb)
 
        /* Only for ISDB-T */
        case MSG_SMS_GET_STATISTICS_EX_RES:
-               smsdvb_update_isdbt_stats_ex(client, p);
+               /* Skip SmsMsgStatisticsInfo_ST:RequestResult field? */
+               smsdvb_update_isdbt_stats_ex(client, p + sizeof(u32));
                is_status_update = true;
                break;
        default:
This page took 0.025423 seconds and 5 git commands to generate.