diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 8069607071d2..8e3f481df1f4 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -12907,7 +12907,12 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy, policy_mgr_clear_concurrency_mode(hdd_ctx->hdd_psoc, adapter->device_mode); - hdd_notify_teardown_tdls_links(adapter->hdd_vdev); + if (!(adapter->device_mode == QDF_P2P_DEVICE_MODE && + type == NL80211_IFTYPE_STATION)) { + hdd_debug("Teardown tdls links and disable tdls in FW as new interface is coming up"); + hdd_notify_teardown_tdls_links(adapter->hdd_vdev); + } + if ((adapter->device_mode == QDF_STA_MODE) || (adapter->device_mode == QDF_P2P_CLIENT_MODE) || (adapter->device_mode == QDF_P2P_DEVICE_MODE) ||