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
Cette révision appartient à :
Arun Khandavalli
2016-09-01 19:11:56 +05:30
révisé par Gerrit - the friendly Code Review server
Parent 9ad88f04ac
révision 812d069a5e

Voir le fichier

@@ -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);