Lines Matching refs:minfo
108 struct gsm_ppp_modem_info minfo; member
258 out_len = net_buf_linearize(modem.minfo.mdm_manufacturer, in MODEM_CMD_DEFINE()
259 sizeof(modem.minfo.mdm_manufacturer) - 1, in MODEM_CMD_DEFINE()
261 modem.minfo.mdm_manufacturer[out_len] = '\0'; in MODEM_CMD_DEFINE()
262 LOG_INF("Manufacturer: %s", modem.minfo.mdm_manufacturer); in MODEM_CMD_DEFINE()
272 out_len = net_buf_linearize(modem.minfo.mdm_model, in MODEM_CMD_DEFINE()
273 sizeof(modem.minfo.mdm_model) - 1, in MODEM_CMD_DEFINE()
275 modem.minfo.mdm_model[out_len] = '\0'; in MODEM_CMD_DEFINE()
276 LOG_INF("Model: %s", modem.minfo.mdm_model); in MODEM_CMD_DEFINE()
286 out_len = net_buf_linearize(modem.minfo.mdm_revision, in MODEM_CMD_DEFINE()
287 sizeof(modem.minfo.mdm_revision) - 1, in MODEM_CMD_DEFINE()
289 modem.minfo.mdm_revision[out_len] = '\0'; in MODEM_CMD_DEFINE()
290 LOG_INF("Revision: %s", modem.minfo.mdm_revision); in MODEM_CMD_DEFINE()
300 out_len = net_buf_linearize(modem.minfo.mdm_imei, sizeof(modem.minfo.mdm_imei) - 1, in MODEM_CMD_DEFINE()
302 modem.minfo.mdm_imei[out_len] = '\0'; in MODEM_CMD_DEFINE()
303 LOG_INF("IMEI: %s", modem.minfo.mdm_imei); in MODEM_CMD_DEFINE()
314 out_len = net_buf_linearize(modem.minfo.mdm_imsi, sizeof(modem.minfo.mdm_imsi) - 1, in MODEM_CMD_DEFINE()
316 modem.minfo.mdm_imsi[out_len] = '\0'; in MODEM_CMD_DEFINE()
317 LOG_INF("IMSI: %s", modem.minfo.mdm_imsi); in MODEM_CMD_DEFINE()
327 out_len = net_buf_linearize(modem.minfo.mdm_iccid, sizeof(modem.minfo.mdm_iccid) - 1, in MODEM_CMD_DEFINE()
329 modem.minfo.mdm_iccid[out_len] = '\0'; in MODEM_CMD_DEFINE()
330 if (modem.minfo.mdm_iccid[0] == '+') { in MODEM_CMD_DEFINE()
334 char *p = strchr(modem.minfo.mdm_iccid, ' '); in MODEM_CMD_DEFINE()
339 (void)memmove(modem.minfo.mdm_iccid, p+1, iccid_len+1); in MODEM_CMD_DEFINE()
342 LOG_INF("ICCID: %s", modem.minfo.mdm_iccid); in MODEM_CMD_DEFINE()
439 modem.minfo.mdm_rssi = -140 + (rsrp - 1); in MODEM_CMD_DEFINE()
440 LOG_DBG("RSRP: %d", modem.minfo.mdm_rssi); in MODEM_CMD_DEFINE()
442 modem.minfo.mdm_rssi = -120 + (rscp - 1); in MODEM_CMD_DEFINE()
443 LOG_DBG("RSCP: %d", modem.minfo.mdm_rssi); in MODEM_CMD_DEFINE()
445 modem.minfo.mdm_rssi = -110 + (rxlev - 1); in MODEM_CMD_DEFINE()
446 LOG_DBG("RSSI: %d", modem.minfo.mdm_rssi); in MODEM_CMD_DEFINE()
448 modem.minfo.mdm_rssi = GSM_RSSI_INVALID; in MODEM_CMD_DEFINE()
468 modem.minfo.mdm_rssi = rssi; in MODEM_CMD_DEFINE()
812 if (!((gsm->minfo.mdm_rssi) && (gsm->minfo.mdm_rssi != GSM_RSSI_INVALID) && in gsm_finalize_connection()
813 (gsm->minfo.mdm_rssi < GSM_RSSI_MAXVAL))) { in gsm_finalize_connection()
827 LOG_DBG("modem RSSI: %d, %s", gsm->minfo.mdm_rssi, "enable PPP"); in gsm_finalize_connection()
1226 return &gsm->minfo; in gsm_ppp_modem_info()
1284 gsm->context.data_manufacturer = gsm->minfo.mdm_manufacturer; in gsm_init()
1285 gsm->context.data_model = gsm->minfo.mdm_model; in gsm_init()
1286 gsm->context.data_revision = gsm->minfo.mdm_revision; in gsm_init()
1287 gsm->context.data_imei = gsm->minfo.mdm_imei; in gsm_init()
1289 gsm->context.data_imsi = gsm->minfo.mdm_imsi; in gsm_init()
1290 gsm->context.data_iccid = gsm->minfo.mdm_iccid; in gsm_init()
1292 gsm->context.data_rssi = &gsm->minfo.mdm_rssi; in gsm_init()