Merge "qcacmn: Allow nan data interface delete with peers attached"
diff --git a/os_if/linux/nan/src/os_if_nan.c b/os_if/linux/nan/src/os_if_nan.c
index f4d9220..93aae1e 100644
--- a/os_if/linux/nan/src/os_if_nan.c
+++ b/os_if/linux/nan/src/os_if_nan.c
@@ -158,11 +158,9 @@
wlan_objmgr_vdev_release_ref(nan_vdev, WLAN_NAN_ID);
/* check if there are active peers on the adapter */
- if (num_peers) {
- cfg80211_err("NDP peers active: %d, cannot delete NDI",
+ if (num_peers)
+ cfg80211_err("NDP peers active: %d, active NDPs may not be terminated",
num_peers);
- return -EINVAL;
- }
status = ucfg_nan_get_callbacks(psoc, &cb_obj);
if (QDF_IS_STATUS_ERROR(status)) {