HAL: Fixed to unregister the cmd when wifi_reset_log_handler is called
Exceeds the maximum registered cmd count.
"WifiHAL : Failed to add command 2: 0xb400007181ce01d0 at 64, reached max limit 64"
[Analysis]
11-04 20:49:53.142 875 875 V WifiHAL : registering command 0 - (LogHandler, set by framework)
11-04 20:49:53.142 875 875 V WifiHAL : registering command 2 - (FILE_DUMP_REQUEST_ID)
11-04 20:49:58.104 875 875 V WifiHAL : un-registering command 0 - (LogHandler, set by framework)
the cmd(FILE_DUMP_REQUEST_ID) is not un-registered and it causes to exceed the maximum cmd count.
[Reproduce the issue]
It is reproduced when enable/disable logging around 64 times on the Pixel Logger app.
[Solution]
Fixed to un-register the cmd(FILE_DUMP_REQUEST_ID) when wifi_reset_log_handler is called.
Bug:256994683
Test: passed reproduction test
Signed-off-by: Dennis Jeon <dennis.jeon@broadcom.corp-partner.google.com>
Change-Id: I472262817c3fb76c848ec0531e0f7a60c26ec762
2 files changed