if (!mib_file_name || !fw)
return -EINVAL;
+
+#ifdef CONFIG_SCSC_LOG_COLLECTION
if (index > SLSI_WLAN_MAX_MIB_FILE + 1) {
SLSI_ERR(sdev, "collect mib index is invalid:%d\n", index);
return -EINVAL;
}
+#endif
+
mib_info->mib_data = NULL;
mib_info->mib_len = 0;
mib_info->mib_hash = 0; /* Reset mib hash value */
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]);
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]);