From 1808164995235c8ca3a9cdf646c0d30a06b4834b Mon Sep 17 00:00:00 2001 From: Amar Singhal Date: Fri, 26 Jan 2018 16:04:13 -0800 Subject: [PATCH] qcacld-3.0: Destroy sysfs version node in stop modules Destroy the node when modules transition from opened to stopped. Otherwise duplicate creation of node can lead to warning. Change-Id: Ib1031cfa0572962454b293730fefd7a4b4cf8d09 CRs-Fixed: 2180344 --- core/hdd/src/wlan_hdd_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 8aaa7b2ad0be..e358d6556a3d 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -10145,7 +10145,9 @@ int hdd_wlan_stop_modules(struct hdd_context *hdd_ctx, bool ftm_mode) goto done; } + hdd_sysfs_destroy_version_interface(); hdd_debug("Closing CDS modules!"); + qdf_status = cds_post_disable(); if (!QDF_IS_STATUS_SUCCESS(qdf_status)) { hdd_err("Failed to process post CDS disable Modules! :%d",