aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/events.c
diff options
context:
space:
mode:
authorPeng Xu <pxu@qca.qualcomm.com>2016-06-24 18:36:18 (GMT)
committerJouni Malinen <j@w1.fi>2016-07-03 19:36:58 (GMT)
commita6f5b1937ad45ced659d87b1eb5a665c8d137d34 (patch)
tree00bc2063071ce6c79ed121ed89d96155b5598ea2 /wpa_supplicant/events.c
parent35d66557558159d149698ac760971d4e3c424b82 (diff)
downloadhostap-a6f5b1937ad45ced659d87b1eb5a665c8d137d34.zip
hostap-a6f5b1937ad45ced659d87b1eb5a665c8d137d34.tar.gz
hostap-a6f5b1937ad45ced659d87b1eb5a665c8d137d34.tar.bz2
P2P: Allow P2P listen being offloaded to the driver/firmware
This allows P2P Listen to be offloaded to device to enhance power saving. To start P2P listen offload, from wpa_cli interface, issue the command: p2p_lo_start <freq> <period> <interval> <count> To stop P2P listen offload, issue the command: p2p_lo_stop Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/events.c')
-rw-r--r--wpa_supplicant/events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c
index b7a3bc0..dffba32 100644
--- a/wpa_supplicant/events.c
+++ b/wpa_supplicant/events.c
@@ -4067,6 +4067,14 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
&data->acs_selected_channels);
#endif /* CONFIG_ACS */
break;
+ case EVENT_P2P_LO_STOP:
+#ifdef CONFIG_P2P
+ wpa_s->p2p_lo_started = 0;
+ wpa_msg(wpa_s, MSG_INFO, P2P_EVENT_LISTEN_OFFLOAD_STOP
+ P2P_LISTEN_OFFLOAD_STOP_REASON "reason=%d",
+ data->p2p_lo_stop.reason_code);
+#endif /* CONFIG_P2P */
+ break;
default:
wpa_msg(wpa_s, MSG_INFO, "Unknown event %d", event);
break;