Hi Mohamed,
> For fast scan append ssids and frequencies to scan request so
> wpa_supplicant will only issue active scans for these passed
> in frequencies.
> ---
> gsupplicant/gsupplicant.h | 16 ++++
> gsupplicant/supplicant.c | 144 +++++++++++++++++++++++++++++--
> plugins/wifi.c | 216
> ++++++++++++++++++++++++++++++++++++++++++++-
> 3 files changed, 368 insertions(+), 8 deletions(-)
>
> diff --git a/gsupplicant/gsupplicant.h b/gsupplicant/gsupplicant.h
> index a634141..848ceb5 100644
> --- a/gsupplicant/gsupplicant.h
> +++ b/gsupplicant/gsupplicant.h
> @@ -73,6 +73,8 @@ extern "C" {
> #define G_SUPPLICANT_PAIRWISE_TKIP (1 << 1)
> #define G_SUPPLICANT_PAIRWISE_CCMP (1 << 2)
>
> +#define G_SUPPLICANT_MAX_FAST_SCAN 4
> +
> typedef enum {
> G_SUPPLICANT_MODE_UNKNOWN,
> G_SUPPLICANT_MODE_INFRA,
> @@ -131,6 +133,19 @@ struct _GSupplicantSSID {
>
> typedef struct _GSupplicantSSID GSupplicantSSID;
>
> +struct _GSupplicantScanParams {
> + struct scan_ssid {
> + void *ssid;
doing an unsigned char ssid[32] would also work here. Does it make sense
for us to keep allocating four memory areas.
> + unsigned int ssid_len;
And of course unsigned char ssid_len (or uint8 if you prefer) is enough
here.
> + } ssids[G_SUPPLICANT_MAX_FAST_SCAN];
> +
> + int num_ssids;
Same here.
> + int freqs[G_SUPPLICANT_MAX_FAST_SCAN];
And our frequencies are uint16.
> +};
Regards
Marcel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman