NET_REG_STATUS_GET_REQ
};
- DBG("");
-
if (!cbd)
goto error;
struct ofono_network_operator op;
struct isi_sb_iter iter;
- DBG("");
-
if (!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
goto error;
0x00 /* No sub-blocks */
};
- DBG("");
-
if (!cbd)
goto error;
int common = 0;
int detail = 0;
- DBG("");
-
if(!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
goto error;
op = list + detail++;
if (!isi_sb_iter_get_oper_code(&iter, op->mcc, op->mnc, 2))
goto error;
-
break;
}
0x00
};
- DBG("");
-
if (!cbd)
goto error;
struct netreg_data *net = cbd->user;
ofono_netreg_register_cb_t cb = cbd->cb;
- DBG("");
-
if(!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
goto error;
0x00 /* Index not used */
};
- DBG("");
-
if (!cbd)
goto error;
struct netreg_data *nd = ofono_netreg_get_data(netreg);
ofono_netreg_register_cb_t cb = cbd->cb;
- DBG("");
-
if(!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
goto error;
0x00, 0x00 /* Filler */
};
- DBG("");
-
if (!cbd)
goto error;
struct ofono_netreg *netreg = opaque;
struct netreg_data *nd = ofono_netreg_get_data(netreg);
- struct isi_sb_iter iter = { 0 };
+ struct isi_sb_iter iter;
- DBG("");
-
if (!msg || len < 3 || msg[0] != NET_RAT_IND)
return;
- isi_sb_iter_init(msg + 3, len - 3, &iter);
+ if (!isi_sb_iter_init(msg + 3, len - 3, &iter))
+ return;
while (isi_sb_iter_is_valid(&iter)) {
struct ofono_netreg *netreg = opaque;
struct netreg_data *nd = ofono_netreg_get_data(netreg);
- struct isi_sb_iter iter = { 0 };
+ struct isi_sb_iter iter;
- DBG("");
-
if(!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
return true;
}
-
if (len < 3 || msg[0] != NET_RAT_RESP)
return true;
const unsigned char *msg = data;
struct ofono_netreg *netreg = opaque;
- DBG("");
-
if (!msg || len < 3 || msg[0] != NET_RSSI_IND)
return;
struct isi_sb_iter iter;
int strength = -1;
- DBG("");
-
if(!msg) {
DBG("ISI client error: %d", g_isi_client_error(client));
goto error;
NET_CURRENT_CELL_RSSI
};
- DBG("");
-
if (!cbd)
goto error;
NET_CURRENT_RAT
};
- DBG("");
-
g_isi_client_set_debug(nd->client, net_debug, NULL);
g_isi_subscribe(nd->client, NET_RSSI_IND, rssi_ind_cb, netreg);