diff options
author | Max Stepanov <Max.Stepanov@intel.com> | 2015-06-10 08:43:32 (GMT) |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2015-06-14 20:16:55 (GMT) |
commit | 07c1e987d51c908e95cf924fb5589722ef06a7d2 (patch) | |
tree | 1404432b631fe4ac13eca41d8771d9a6e2952455 /wpa_supplicant/config_file.c | |
parent | 734ddf6125ccd911ad87814234d1fbed5410847b (diff) | |
download | hostap-07c1e987d51c908e95cf924fb5589722ef06a7d2.zip hostap-07c1e987d51c908e95cf924fb5589722ef06a7d2.tar.gz hostap-07c1e987d51c908e95cf924fb5589722ef06a7d2.tar.bz2 |
P2PS: Enable Probe Request frame processing by P2P Client
1. Add global p2p_cli_probe property to enable/disable Probe Request
frame RX reporting for connected P2P Clients. The property can be set to
0 - disable or 1 - enable. The default value is 0.
2. Enable Probe Request frame RX reporting for P2P Client on
WPA_COMPLETED state if p2p_cli_probe property is set to 1. Disable it
when an interface state is changing to any other state.
3. Don't cancel Probe Request frame RX reporting on wpa_stop_listen for
a connected P2P Client handling Probe Request frames.
Signed-off-by: Max Stepanov <Max.Stepanov@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/config_file.c')
-rw-r--r-- | wpa_supplicant/config_file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wpa_supplicant/config_file.c b/wpa_supplicant/config_file.c index 2508ca9..e946567 100644 --- a/wpa_supplicant/config_file.c +++ b/wpa_supplicant/config_file.c @@ -1131,6 +1131,9 @@ static void wpa_config_write_global(FILE *f, struct wpa_config *config) if (config->p2p_ignore_shared_freq) fprintf(f, "p2p_ignore_shared_freq=%u\n", config->p2p_ignore_shared_freq); + if (config->p2p_cli_probe) + fprintf(f, "p2p_cli_probe=%u\n", + config->p2p_cli_probe); #endif /* CONFIG_P2P */ if (config->country[0] && config->country[1]) { fprintf(f, "country=%c%c\n", |