Fix net state ind.
Change-Id: Ifecc16e565a5d8dabee58f2e131319514c09c522
diff --git a/mbtk/test/mbtk_info_test.c b/mbtk/test/mbtk_info_test.c
index 7be5f8f..0c60df3 100755
--- a/mbtk/test/mbtk_info_test.c
+++ b/mbtk/test/mbtk_info_test.c
@@ -21,7 +21,15 @@
void net_state_change_cb(const void* data, int data_len)
{
-
+ if(data && data_len > 0) {
+ const uint8 *ptr = (const uint8*)data;
+ if(*ptr == 0) { // CS
+ printf("CS:act=%d, mode=%d\n", *(ptr + 1), *(ptr + 2));
+ } else { // PS
+ printf("PS[%s]:act=%d, mode=%d\n", *(ptr + 3) == 0 ? "GSM/WCDMA" : "LTE", *(ptr + 1), *(ptr + 2));
+ }
+ } else
+ LOGD("NET_CB : NULL");
}
void call_state_change_cb(const void* data, int data_len)
@@ -242,7 +250,7 @@
//signal(SIGTSTP, sig_process);
//signal(SIGSEGV, sig_process);
- mbtk_log_init(NULL,"INFO_CLI");
+ mbtk_log_init("radio","INFO_CLI");
//test2(0, "192.168.1.198");
//test2(1, "2409:8162:140:cd3c:1:2:1494:72ba");