diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2013-05-17 11:26:57 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2013-05-17 15:20:32 +0300 |
commit | 42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1 (patch) | |
tree | 9927c1efdd7f07e9eaed2b368333ee460813d536 /gsupplicant | |
parent | 843cb6e4084c282f43054fdfd3b2daa44744c882 (diff) | |
download | connman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.tar.gz connman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.tar.bz2 connman-42754a96081ac41a1eff4c1d5f81fbe4ee5ef3a1.zip |
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.h | 1 | ||||
-rw-r--r-- | gsupplicant/supplicant.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h index 1b1fce25..da45075a 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 471c0bc1..30f0660b 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; |