drivers: modem: improve modem context RSSI member

The previous bf68b67 commit incorrectly passes minfo.mdm_rssi
value to the modem context data_rssi member during the driver
initialization which causes the `modem info` shell command
to return 0 as RSSI value. Fix that by changing data_rssi
modem ctx member to a pointer that is assigned to the RSSI
variable stored within the modem driver context structure.

Signed-off-by: Bartosz Bilas <bartosz.bilas@hotmail.com>
This commit is contained in:
Bartosz Bilas 2021-11-04 20:56:13 +01:00 committed by Jukka Rissanen
commit ee7cd10563
9 changed files with 41 additions and 33 deletions

View file

@ -37,7 +37,7 @@ struct mdm_receiver_context {
char *data_imsi;
#endif
char *data_iccid;
int data_rssi;
int *data_rssi;
};
/**