Fix p2p on DFS channel issue: p2p_dfs_chan_enable is NOT enabled on p2p interface
When wpa_supplicant init p2p dev interface, it reads config items from p2p_supplicant_overlay.conf. But when init p2p wlan interface, the config file name is null. We have to save the config items to global p2p data struct.
Bug: 272298287
Test: Manually verified it working from logs
Change-Id: I211a36515bfa76ea23c077cc9e43fc811d9e139f
diff --git a/src/p2p/p2p.h b/src/p2p/p2p.h
index 27bdac3..7784128 100644
--- a/src/p2p/p2p.h
+++ b/src/p2p/p2p.h
@@ -508,6 +508,11 @@
bool p2p_6ghz_disable;
/**
+ * p2p_dfs_chan_enable - Enable p2p Go to operate on dfs channel
+ */
+ bool p2p_dfs_chan_enable;
+
+ /**
* pri_dev_type - Primary Device Type (see WPS)
*/
u8 pri_dev_type[8];
@@ -2114,6 +2119,7 @@
const struct p2p_channels *cli_chan);
bool is_p2p_6ghz_disabled(struct p2p_data *p2p);
+bool is_p2p_dfs_chan_enabled(struct p2p_data *p2p);
/**
* p2p_set_best_channels - Update best channel information