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
This commit is contained in:
Amar Singhal 2018-01-26 16:04:13 -08:00 • committed by snandini
commit 1808164995

View file

@ -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",