dumpstate: remove wifi fw symbol table

In b/183180525, vendor mentioned they won't provide
fw symbol table (logstrs.bin) in terms of their internal
concern. Hence, remove wifi fw symbol table from dumpstate.

Bug: 197849117
Test: build pass, device can connect to AP.
Change-Id: I91f5c38b87fd099961a95ac2ddf7fb8232003cd7
This commit is contained in:
Roger Wang 2021-08-27 10:24:13 +08:00
parent 930b449775
commit 49d98956fc

View file

@ -1014,26 +1014,6 @@ Return<DumpstateStatus> DumpstateDevice::dumpstateBoard_1_1(const hidl_handle& h
dumpModem(fd, fdModem); dumpModem(fd, fdModem);
} }
// Keep this at the end as very long on not for humans
static const char* kBcmdhd43752Path =
"/sys/module/bcmdhd43752/parameters/info_string";
static const char* kBcmdhd4389Path =
"/sys/module/bcmdhd4389/parameters/info_string";
std::string chip_info;
if (android::base::ReadFileToString(kBcmdhd43752Path, &chip_info) &&
(chip_info.find("Chip: aae8") != std::string::npos)) {
RunCommandToFd(fd, "WLAN FW Log Symbol Table",
{"/vendor/bin/base64",
"/vendor/etc/wifi/logstrs_43752.bin"});
} else if (android::base::ReadFileToString(kBcmdhd4389Path, &chip_info) &&
(chip_info.find("Chip: 4389") != std::string::npos)) {
RunCommandToFd(fd, "WLAN FW Log Symbol Table",
{"/vendor/bin/base64",
"/vendor/firmware/logstrs.bin"});
}
return DumpstateStatus::OK; return DumpstateStatus::OK;
} }