mod_gsmopen: convert reported RSSI from AT+CSQ to dBm.

Add to gsmopen_dump and events.
This commit is contained in:
Dušan Dragić committed 2014-09-21 20:14:12 +02:00
1 parent 13a595a15e
commit 4aa7c98d5a
3 files changed
+13

No files matched your search

@@ -996,6 +996,12 @@ int gsmopen_serial_read_AT(private_t *tech_pvt, int look_for_ack, int timeout_us
tech_pvt->got_signal = 2;
}
if (signal_quality == 99) {
tech_pvt->signal_strength = 0;
} else {
tech_pvt->signal_strength = (signal_quality * 2) - 113; /* RSSI [dBm] = reported_value * 2 - 113dB */
}
}
}