wireless: scsc: fix CONFIG_SCSC_LOG_COLLECTION ifdefs
authorStricted <info@stricted.net>
Fri, 14 Jan 2022 07:57:47 +0000 (07:57 +0000)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:24:03 +0000 (20:24 +0300)
Change-Id: I280d122ffa74a201027bcab61208bf6f5a568d89

drivers/net/wireless/scsc/mgt.c

index 3befd5451e8525bfbfb9bf193c7f1dd05aeafd90..c1cf139baf94422a6d809510cecf245048b9b7cd 100755 (executable)
@@ -6368,7 +6368,9 @@ void slsi_subsystem_reset(struct work_struct *work)
                        sdev->mib[0].mib_file_name = slsi_mib_file;
                        sdev->mib[1].mib_file_name = slsi_mib_file2;
                }
+#ifdef CONFIG_SCSC_LOG_COLLECTION
                sdev->collect_mib.num_files = 0;
+#endif
                /* Place MIB files in shared memory */
                for (i = 0; i < SLSI_WLAN_MAX_MIB_FILE; i++) {
                        err = slsi_mib_open_file(sdev, &sdev->mib[i], &fw[i]);
@@ -6513,7 +6515,9 @@ void slsi_chip_recovery(struct work_struct *work)
                        sdev->mib[0].mib_file_name = slsi_mib_file;
                        sdev->mib[1].mib_file_name = slsi_mib_file2;
                }
+#ifdef CONFIG_SCSC_LOG_COLLECTION
                sdev->collect_mib.num_files = 0;
+#endif
                /* Place MIB files in shared memory */
                for (i = 0; i < SLSI_WLAN_MAX_MIB_FILE; i++) {
                        err = slsi_mib_open_file(sdev, &sdev->mib[i], &fw[i]);