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:
parent
69f1236657
commit
ee7cd10563
9 changed files with 41 additions and 33 deletions
|
@ -37,7 +37,7 @@ struct mdm_receiver_context {
|
|||
char *data_imsi;
|
||||
#endif
|
||||
char *data_iccid;
|
||||
int data_rssi;
|
||||
int *data_rssi;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue