commit | 0eb820e5aa5689413367985d056e8f66d08ca30b | [log] [tgz] |
---|---|---|
author | Subhani Shaik <subhanis@codeaurora.org> | Wed Apr 13 19:15:53 2016 +0530 |
committer | Etan Cohen <etancohen@google.com> | Tue May 03 07:39:49 2016 -0700 |
tree | 1b974155af41382eb101c4939951fdf10aa38c01 | |
parent | 06674e86b6bc55c7312e02d1ad54d653cf940d24 [diff] |
WiFi-HAL: Validate gscan capabilities driver/firmware can return invalid gscan_capabilities in some cases and they can cause potential issues in framework. max_scan_buckets is such gscan capability parameter which is used by framework to allocate memory for the bucket configuration. To avoid such issues, return failure to the API wifi_get_gscan_capabilities() if max_scan_buckets is 0 or failed to receive capabilities from driver. Bug: 28530708