From 98894948100b57fb82223a7742ea6d4d0c2e35be Mon Sep 17 00:00:00 2001 From: Krunal Soni Date: Wed, 9 Dec 2015 19:59:52 -0800 Subject: [PATCH] qcacld-3.0: Don't remove p2p device adapter when SAP comes up With current code, as soon as change interface command comes to convert interface type to AP, it removes p2p device adapter which is not required. In new platform, various concurrencies are supported which includes SAP+GO, SAP+STA+GO, and so on. To make these concurrencies work properly, no longer remove the p2p device adapter when SAP comes up. Change-Id: Icb1729f25e0604e0c342a136d9b4cf332e50d7c8 CRs-Fixed: 953788 --- core/hdd/src/wlan_hdd_cfg80211.c | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index f2cbcda32a63..583dcc840948 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -5915,33 +5915,6 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy, wlan_hdd_cancel_existing_remain_on_channel (pAdapter); } - - if (NL80211_IFTYPE_AP == type) { - /* As Loading WLAN Driver one interface being created for - * p2p device address. This will take one HW STA and the - * max number of clients that can connect to softAP will be - * reduced by one. so while changing the interface type to - * NL80211_IFTYPE_AP (SoftAP) remove p2p0 interface as it is - * not required in SoftAP mode. - */ - - /* Get P2P Adapter */ - hdd_adapter_t *pP2pAdapter = NULL; - pP2pAdapter = - hdd_get_adapter(pHddCtx, - WLAN_HDD_P2P_DEVICE); - - if (pP2pAdapter) { - hdd_stop_adapter(pHddCtx, - pP2pAdapter, - true); - hdd_deinit_adapter(pHddCtx, - pP2pAdapter, true); - hdd_close_adapter(pHddCtx, - pP2pAdapter, - true); - } - } hdd_stop_adapter(pHddCtx, pAdapter, true); /* De-init the adapter */