Set the P2P mode (R1 only, R2 only, or PCC) to the driver when bringing
up the P2P GO.
Signed-off-by: Shivani Baranwal <shivani.baranwal@oss.qualcomm.com>
* bssid_filter_count - Number of allowed BSSIDs
*/
unsigned int bssid_filter_count;
+
+ /**
+ * p2p_mode - P2P R1 only, P2P R2 only, or PCC mode
+ */
+ enum wpa_p2p_mode p2p_mode;
};
enum hide_ssid {
wpa_printf(MSG_DEBUG, "nl80211: Setup AP operations for P2P "
"group (GO)");
nlmode = NL80211_IFTYPE_P2P_GO;
+#ifdef CONFIG_DRIVER_NL80211_QCA
+ nl80211_set_p2p_mode(drv->first_bss, params->p2p_mode);
+#endif /* CONFIG_DRIVER_NL80211_QCA */
} else
nlmode = NL80211_IFTYPE_AP;
#ifdef CONFIG_P2P
if (ssid->mode == WPAS_MODE_P2P_GO ||
- ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION)
+ ssid->mode == WPAS_MODE_P2P_GROUP_FORMATION) {
params.p2p = 1;
+ params.p2p_mode = wpa_s->p2p_mode;
+ }
#endif /* CONFIG_P2P */
if (wpa_s->p2pdev->set_ap_uapsd)