aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/staging/prima/CORE/HDD/src/wlan_hdd_cfg80211.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/drivers/staging/prima/CORE/HDD/src/wlan_hdd_cfg80211.c b/drivers/staging/prima/CORE/HDD/src/wlan_hdd_cfg80211.c
index d0dbdfc5099..24448ca7cf2 100644
--- a/drivers/staging/prima/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/drivers/staging/prima/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -8048,7 +8048,6 @@ int __wlan_hdd_cfg80211_change_iface( struct wiphy *wiphy,
struct wireless_dev *wdev;
hdd_adapter_t *pAdapter = WLAN_HDD_GET_PRIV_PTR( ndev );
hdd_context_t *pHddCtx;
- hdd_adapter_t *pP2pAdapter = NULL;
tCsrRoamProfile *pRoamProfile = NULL;
eCsrRoamBssType LastBSSType;
hdd_config_t *pConfig = NULL;
@@ -8208,35 +8207,6 @@ 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
- pP2pAdapter = hdd_get_adapter(pHddCtx, WLAN_HDD_P2P_DEVICE);
-
- if (pP2pAdapter)
- {
- hdd_stop_adapter(pHddCtx, pP2pAdapter, VOS_TRUE);
- hdd_deinit_adapter(pHddCtx, pP2pAdapter, TRUE);
- hdd_close_adapter(pHddCtx, pP2pAdapter, VOS_TRUE);
- }
- }
- //Disable IMPS & BMPS for SAP/GO
- if(VOS_STATUS_E_FAILURE ==
- hdd_disable_bmps_imps(pHddCtx, WLAN_HDD_P2P_GO))
- {
- //Fail to Exit BMPS
- VOS_ASSERT(0);
- }
-
- hdd_stop_adapter( pHddCtx, pAdapter, VOS_TRUE );
-
#ifdef FEATURE_WLAN_TDLS
/* A Mutex Lock is introduced while changing the mode to