radio-settings: Show all available technologies

Not all possible futures technologies were being showed on the DBus
interface.
This commit is contained in:
Alfonso Sanchez-Beato 2014-12-12 12:25:35 +01:00 committed by Denis Kenzior
parent bb71141d79
commit 10f173981c
1 changed files with 2 additions and 2 deletions

View File

@ -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))