diff options
Diffstat (limited to 'bcmdhd/wifi_hal/common.cpp')
-rw-r--r-- | bcmdhd/wifi_hal/common.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bcmdhd/wifi_hal/common.cpp b/bcmdhd/wifi_hal/common.cpp index f0184d6..69ed256 100644 --- a/bcmdhd/wifi_hal/common.cpp +++ b/bcmdhd/wifi_hal/common.cpp @@ -164,6 +164,9 @@ wifi_error wifi_register_cmd(wifi_handle handle, int id, WifiCommand *cmd) ALOGV("Successfully added command %d: %p at %d", id, cmd, info->num_cmd); info->num_cmd++; result = WIFI_SUCCESS; + } else { + ALOGE("Failed to add command %d: %p at %d, reached max limit %d", + id, cmd, info->num_cmd, info->alloc_cmd); } return result; @@ -187,6 +190,10 @@ WifiCommand *wifi_unregister_cmd(wifi_handle handle, int id) } } + if (!cmd) { + ALOGI("Failed to remove command %d: %p", id, cmd); + } + return cmd; } |