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 */