int ssid_len;
int rssi;
int mode;
+ unsigned int frequency;
} bssid_scan_info_s;
typedef struct {
const char *prop_bssid = "bssid";
const char *prop_rssi = "rssi";
const char *prop_mode = "mode";
+ const char *prop_freq = "frequency";
bssid_scan_data_s *scan_data = NULL;
builder = g_variant_builder_new(G_VARIANT_TYPE("a{sv}"));
int ssid_len = (int)bss_info->ssid_len;
int rssi = (int)bss_info->rssi;
int mode = (int)bss_info->mode;
+ guint32 frequency = (guint32)bss_info->frequency;
int i = 0;
g_snprintf(bssid_buff, 18, "%02x:%02x:%02x:%02x:%02x:%02x",
bss_info->bssid[0], bss_info->bssid[1], bss_info->bssid[2],
bss_info->bssid[3], bss_info->bssid[4], bss_info->bssid[5]);
- DBG("BSS found; SSID %s, BSSID %s, RSSI %d MODE %d", ssid, bssid_str, rssi, mode);
+ DBG("BSS found; SSID %s, BSSID %s, RSSI %d MODE %d, Frequency %d",
+ ssid, bssid_str, rssi, mode, frequency);
builder1 = g_variant_builder_new(G_VARIANT_TYPE("ay"));
for (i = 0; i < ssid_len; i++)
g_variant_builder_add(builder, "{sv}", prop_bssid, g_variant_new_string(bssid_str));
g_variant_builder_add(builder, "{sv}", prop_rssi, g_variant_new_int32(rssi));
g_variant_builder_add(builder, "{sv}", prop_mode, g_variant_new_int32(mode));
+ g_variant_builder_add(builder, "{sv}", prop_freq, g_variant_new_uint32(frequency));
}
}
signal = g_variant_get_int16(value);
bss_info->rssi = signal;
+ } else if (g_strcmp0(key, "Frequency") == 0) {
+ gint16 frequency;
+
+ frequency = g_variant_get_uint16(value);
+ bss_info->frequency = (unsigned int)frequency;
}
}
}