优化net的led灯在call的时候常亮

Change-Id: Iad70ee6adfdbde2970d3a1e85544babcdb7a1b98
diff --git a/mbtk/mbtk_rild/src/main.c b/mbtk/mbtk_rild/src/main.c
old mode 100644
new mode 100755
index 7ca1a31..b532837
--- a/mbtk/mbtk_rild/src/main.c
+++ b/mbtk/mbtk_rild/src/main.c
@@ -543,6 +543,11 @@
         }

         reg.type = (uint8)tmp_int;

 

+        if(reg.state == 2 || reg.state == 3 || reg.state == 0)

+        {

+            mbtk_net_led_set(MBTK_NET_LED_CALL_CONNECT);

+        }

+

         urc_msg_distribute(false, INFO_URC_MSG_CALL_STATE, &reg, sizeof(mbtk_call_info_t));

 CLCC_EXIT:

         free(free_ptr);

@@ -601,6 +606,12 @@
         }

         reg.disconnected_id = tmp_int;

         reg.call_wait = MBTK_DISCONNECTED;

+

+        if(reg.call_wait == MBTK_DISCONNECTED)

+        {

+            mbtk_net_led_set(MBTK_NET_LED_CALL_DISCONNECT);

+        }

+

         urc_msg_distribute(false, INFO_URC_MSG_CALL_STATE, &reg, sizeof(mbtk_call_info_t));

 

 CALLDISCONNECTED_EXIT: