Set p2p_optimize_listen_chan=1 to default template
By setting p2p_optimize_listen_chan, supplicant
will use STA/SAP/any other interface's operating channel
(if it is 1, 6 or 11) as the listen channel. This change
will help to reduce the performance degradation on other
active interfaces due to p2p listen operation.
Bug: 243880455
Test: Confirmed from logs that listen channel is set to the
same channel as STA or SAP if their operating channel is
one of the social channels.
Change-Id: I4df2fe8091b799823b75bfcc1fcb8788c4995d95
diff --git a/wpa_supplicant/wpa_supplicant_template.conf b/wpa_supplicant/wpa_supplicant_template.conf
index 7a558f3..a1846b1 100644
--- a/wpa_supplicant/wpa_supplicant_template.conf
+++ b/wpa_supplicant/wpa_supplicant_template.conf
@@ -7,3 +7,4 @@
p2p_add_cli_chan=1
oce=1
sae_pwe=2
+p2p_optimize_listen_chan=1