diff options
author | Alfonso Sanchez-Beato <alfonso.sanchez-beato@canonical.com> | 2014-12-12 12:25:35 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2014-12-12 08:54:14 -0600 |
commit | 10f173981cf2bbd1ede9992d288e8985bb009562 (patch) | |
tree | 51a8d942bef6ea8396e16a1fc55d3fa5b52b716d /src | |
parent | bb71141d79e3f733dd5fcb5f7321f52693ff7b97 (diff) | |
download | ofono-10f173981cf2bbd1ede9992d288e8985bb009562.tar.bz2 |
radio-settings: Show all available technologies
Not all possible futures technologies were being showed on the DBus
interface.
Diffstat (limited to 'src')
-rw-r--r-- | src/radio-settings.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/radio-settings.c b/src/radio-settings.c index 0a49305c..1a511dc8 100644 --- a/src/radio-settings.c +++ b/src/radio-settings.c @@ -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)) |