summaryrefslogtreecommitdiff
path: root/gsupplicant
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@linux.intel.com>2013-05-17 08:26:57 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2013-05-17 12:20:32 (GMT)
commit42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1 (patch)
tree9927c1efdd7f07e9eaed2b368333ee460813d536 /gsupplicant
parent843cb6e4084c282f43054fdfd3b2daa44744c882 (diff)
downloadconnman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.zip
connman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.tar.gz
connman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.tar.bz2
wifi: Scan all stored hidden networks
Previously the number of scanned hidden WiFi networks was restricted by the fast scan limit of the WiFi driver. This patch takes into account the driver fast scan limit and will scan for all configured hidden WiFi networks. Thanks to Jukka for testing this.
Diffstat (limited to 'gsupplicant')
-rw-r--r--gsupplicant/gsupplicant.h1
-rw-r--r--gsupplicant/supplicant.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
index 1b1fce2..da45075 100644
--- a/gsupplicant/gsupplicant.h
+++ b/gsupplicant/gsupplicant.h
@@ -148,6 +148,7 @@ struct _GSupplicantScanParams {
uint8_t num_ssids;
+ uint8_t num_freqs;
uint16_t *freqs;
};
diff --git a/gsupplicant/supplicant.c b/gsupplicant/supplicant.c
index 471c0bc..30f0660 100644
--- a/gsupplicant/supplicant.c
+++ b/gsupplicant/supplicant.c
@@ -2742,7 +2742,7 @@ static void add_scan_frequencies(DBusMessageIter *iter,
unsigned int freq;
int i;
- for (i = 0; i < scan_data->num_ssids; i++) {
+ for (i = 0; i < scan_data->num_freqs; i++) {
freq = scan_data->freqs[i];
if (!freq)
break;