Browse Source

qcacld-3.0: Add support to start_adapter for the p2p_go from add_iface

Presently, interface creation for the p2p_go is only supported from the
change interface. Add support for starting the adapter from the
add_virt_iface.

Change-Id: I09736226c8c4793e103d091caafee732e410a056
CRs-Fixed: 1064020
Arun Khandavalli 8 years ago
parent
commit
812d069a5e
1 changed files with 6 additions and 1 deletions
  1. 6 1
      core/hdd/src/wlan_hdd_p2p.c

+ 6 - 1
core/hdd/src/wlan_hdd_p2p.c

@@ -2058,7 +2058,12 @@ struct wireless_dev *__wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
 	if (ret)
 		return ERR_PTR(ret);
 
-	if (NL80211_IFTYPE_AP == type) {
+	/*
+	 * Once the support for session creation/deletion from
+	 * hdd_hostapd_open/hdd_host_stop is in place.
+	 * The support for starting adapter from here can be removed.
+	 */
+	if (NL80211_IFTYPE_AP == type || (NL80211_IFTYPE_P2P_GO == type)) {
 		ret = hdd_start_adapter(pAdapter);
 		if (ret) {
 			hdd_err("Failed to start %s", name);