mirror of git://git.sysmocom.de/ofono
radio-settings: Show all available technologies
Not all possible futures technologies were being showed on the DBus interface.
This commit is contained in:
parent
bb71141d79
commit
10f173981c
|
@ -225,12 +225,12 @@ static DBusMessage *radio_get_properties_reply(DBusMessage *msg,
|
|||
}
|
||||
|
||||
if (rs->available_rats) {
|
||||
const char *rats[sizeof(uint32_t) + 1];
|
||||
const char *rats[sizeof(uint32_t) * CHAR_BIT + 1];
|
||||
const char **dbus_rats = rats;
|
||||
int n = 0;
|
||||
unsigned int i;
|
||||
|
||||
for (i = 0; i < sizeof(uint32_t); i++) {
|
||||
for (i = 0; i < sizeof(uint32_t) * CHAR_BIT; i++) {
|
||||
int tech = 1 << i;
|
||||
|
||||
if (!(rs->available_rats & tech))
|
||||
|
|
Loading…
Reference in New Issue