[Bugfix][108][bug-view-1948][Network] even out of service, still report signal strength per 5 seconds
Only Configure:No
Affected branch:Na
Affected module:Network
Is it affected on:only asr
Self-test:Yes
Doc Update:No
Change-Id: I69fb1660a0f783323aa45755f0f67087652a68f5
diff --git a/mbtk/libgsw_lib/gsw_nw_interface.c b/mbtk/libgsw_lib/gsw_nw_interface.c
index 42dd7f4..7824fe8 100755
--- a/mbtk/libgsw_lib/gsw_nw_interface.c
+++ b/mbtk/libgsw_lib/gsw_nw_interface.c
@@ -1378,15 +1378,15 @@
if(ret != 0)
{
LOGE(GSW_NW,"mbtk_net_signal_get fail, ret is %d\n",ret);
-
+ memset((void*) &sig_strength,0,sizeof (sig_strength));
}
else
{
convert_mbtk_sig_info_to_gsw_sig_info(&signal,&sig_strength);
- if(sig_cb != NULL)
- {
- sig_cb(sig_strength);
- }
+ }
+ if(sig_cb != NULL)
+ {
+ sig_cb(sig_strength);
}
sleep(SIG_TIMER);
}