Bläddra i källkod

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
Krunal Soni 9 år sedan
förälder
incheckning
9889494810
1 ändrade filer med 0 tillägg och 27 borttagningar
  1. 0 27
      core/hdd/src/wlan_hdd_cfg80211.c

+ 0 - 27
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 */