summaryrefslogtreecommitdiffstats
path: root/bcmdhd/wifi_hal
Commit message (Collapse)AuthorAgeFilesLines
* Fix a potential leak of nl_msg objectsVinit Deshpande2015-12-141-0/+3
| | | | | | | | It was discovered on other repos that a leak can be caused by repeated usage of create(). Bug: 26116598 Change-Id: Ie6cd318171e58d3ffa1a6c8f58cfa38ea7d78b00
* Fix use-after-free in wifi_cleanup()Paul Stewart2015-12-081-2/+2
|\ | | | | | | | | | | | | am: 2ce1c4952d * commit '2ce1c4952d871f2baad0bc69dd8500f830f43db4': Fix use-after-free in wifi_cleanup()
| * Fix use-after-free in wifi_cleanup()Paul Stewart2015-12-071-2/+2
| | | | | | | | | | | | | | | | | | Release reference to cmd only after possibly calling getType(). BUG: 25753768 Change-Id: Id2156ce51acec04e8364706cf7eafc7d4adae9eb (cherry picked from commit d7f3cb9915d9ac514393d0ad7767662958054b8f https://googleplex-android-review.git.corp.google.com/#/c/815223)
* | Fix crash caused in wifi_cleanupAshwin2015-09-211-3/+3
| | | | | | | | | | | | | | | | | | Check if ptr is NULL before dereferncing in debug print statements. Bug: 24196226 Change-Id: I96e811a1628f4966c9334a83fa3514775d861cf1 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* | Merge "Modify the cleanup procedure" into mnc-dr-devVinit Deshpande2015-09-042-17/+42
|\ \
| * | Modify the cleanup procedureAshwin2015-09-042-17/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Use the cleanup sockets to communicate to the evnt thread to exit and rx a ack for the same. 2. Added some missing cleanup on error during init. Bug: 23537437 Change-Id: Iac42e28c79e5ddf8c1a6a57719c3b08904330107 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* | | Merge "fix scan_id and flag for ScanData" into mnc-dr-devNavtej Singh Mann2015-09-041-1/+2
|\ \ \ | |/ / |/| |
| * | fix scan_id and flag for ScanDataNavtej Singh Mann2015-09-021-2/+3
| | | | | | | | | | | | | | | bug: 23766442 Change-Id: I4455e11e079468236800c45f98c0394f3ce26e96
* | | Fix verbose log flagKevin Cernekee2015-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Per system/core/include/log/log.h, ALOGV is compiled out if LOG_NDEBUG is 1. Bug: chrome-os-partner:44402 Change-Id: Ib57c01a11f875376c951f21c4553ac5a33be110d
* | | wifi_hal: Fix array overflow retrieving gscan resultsKevin Cernekee2015-08-301-3/+4
|/ / | | | | | | | | | | | | | | | | | | WifiNative (in frameworks) allocates a 64-element wifi_cached_scan_results array on the stack. The bcmdhd HAL can write past the end of this array if the kernel provides excess scan data. Fix the sanity check so that it terminates processing if it is out of space. Bug: chrome-os-partner:44402 Change-Id: I99a9bcb180c3aafb294b4af85727e9ec412312df
* | am 2c9d7bbf: Merge "Fix cleanup of COMPLETE_SCAN event" into mnc-devVinit Deshpande2015-08-131-1/+1
|\ \ | |/ | | | | | | * commit '2c9d7bbf80b19c3881229540d1ef05669bd27118': Fix cleanup of COMPLETE_SCAN event
| * Fix cleanup of COMPLETE_SCAN eventAshwin2015-08-121-1/+1
| | | | | | | | | | | | | | | | | | unregister the event if gscan setup fails Bug: 23030690 Change-Id: I6f20f340e96cf35af3e7fc28893fb4bc50c64ed8 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* | RSSI monitor cmd cleanupAshwin2015-08-071-1/+6
|/ | | | | | | | | Cleanup RSSI monitor cmd if it fails Bug 22826644 Change-Id: Iaca8201ea32d051bb2afd34e28257fc828908599 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* Fix a potential crash in debugging codeVinit Deshpande2015-07-281-1/+7
| | | | | | | | | | We want to catch incorrect event_cbs; but the commands they may refer to may have been deleted by the time the debugging messages are printed. This change fixes that by printing before anything is deleted. Bug: 22401861 Change-Id: I71562af940275b43057eae1f93406291924ad567
* Fix couple of issues with unregistering event handlersVinit Deshpande2015-07-162-4/+4
| | | | | | | | | | | First, on Hammerhead, we don't unregister GOOGLE_DEBUG_RING_EVENT if driver command fails - that's not correct. Also fixed a one-off error in unregistering event handlers. Bug: 22523219 Change-Id: Idaf27bc14f13d21e18cec512db8f8c3590895c66
* Clean up bad command implementationJerry Lee2015-07-152-18/+59
| | | | | | | b/22349265 Change-Id: I98132e5083155de21ae241b3b3a6b8f9410d61ec Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
* don't register command for BSSID blacklist because there is no stop for ↵Navtej Singh Mann2015-07-101-10/+6
| | | | | | | blacklist Bug:22394142 Change-Id: I2661c3833d9ca85cea8110f85aef1d039fb43c5b
* Merge "Fix incorrect wifi_cleanup" into mnc-devVinit Deshpande2015-07-087-47/+72
|\
| * Fix incorrect wifi_cleanupVinit Deshpande2015-07-077-47/+72
| | | | | | | | | | | | | | | | | | | | | | The cleanup needs to cancel commands, not the event handlers; and needs a while loop instead of a for loop. Also added command names to identify which commands are causing problems. Bug: 22302517 Change-Id: I93c3e51f7cd3ad62c1a34eeb5708d9552e37342b
* | Merge "Fix for system crash caused by accessing memory w/o permissions" into ↵Vinit Deshpande2015-07-081-1/+1
|\ \ | |/ | | | | mnc-dev
| * Fix for system crash caused by accessing memory w/o permissionsAshwin2015-07-071-1/+1
| | | | | | | | | | | | | | Fix a buffer overflow access that caused a SEGV_ACCERR Change-Id: Id38ac0637696128ee66039e8b4c5e8d73ec945a1 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* | fix WifiHAL event logging issueNavtej Singh Mann2015-07-071-2/+2
|/ | | | | | Bug: 22306117 Change-Id: Icddf6c28437be2531734d62fc24f13100b02bad0
* Merge "fix unregister command on failure and log restructuring" into mnc-devNavtej Singh Mann2015-07-062-56/+99
|\
| * fix unregister command on failure and log restructuringNavtej Singh Mann2015-07-012-56/+99
| | | | | | | | | | bug:22174291 Change-Id: I621f92a3604f9a30279c4fe25cd606432df1839e
* | Fixed channel checking and added more debug info in link stats HALChilam Ng2015-06-301-2/+12
|/ | | | | | | bug: 22051751 Change-Id: I77f393b7ff9e8f9ac1f23db3df51705c4e4e358d Signed-off-by: Chilam Ng <chilam@broadcom.com>
* Remove some unhelpful logsVinit Deshpande2015-06-251-4/+4
| | | | Change-Id: I38478947d7f86872ddb10740d9de2fedcd52f393
* Add wifi offload feature: mkeep_aliveEcco Park2015-06-244-1/+237
| | | | | | | b/21405946 Change-Id: I8e9a2f2b2f76d1d689fcd645b9332b290d710ae6 Signed-off-by: JerryLee <jerrylee@broadcom.com>
* Add a debuggability interface: stop loggingJerryLee2015-06-242-1/+36
| | | | | | | bug: 21730601 Change-Id: Icdc4e118884ec16a8b1a52ed60c9e49fa521a9fd Signed-off-by: JerryLee <jerrylee@broadcom.com>
* RSSI monitor changesAshwin2015-06-244-59/+194
| | | | | | | | RSSI monitor is used to set RSSI thresholds to driver and rx events when thresholds are crossed. also includes some code cleanup Change-Id: Ia55ded489ed5d4232e6fea0ffdcfc824522613b1 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* Fix Broadcom's crashVinit Deshpande2015-06-111-0/+8
| | | | | | Bug: 21730601 Change-Id: I3a5f442e210166acf5239c173ed0f9be94fe14b2
* am e162833..172fcf7 from mirror-m-wireless-internal-releaseVinit Deshpande2015-06-101-1/+1
|\ | | | | | | | | 172fcf7 Merge "net:wireless:bcmdhd: Update bcm4354/56 FW (7.35.79.87)" into m-wireless-dev 9ed8ceb net:wireless:bcmdhd: Update bcm4354/56 FW (7.35.79.87)
| * Remove confusing "Error polling socket" logVinit Deshpande2015-06-091-1/+1
| | | | | | | | | | | | | | | | There are lots of legitimate cases where poll() returns error; so this log isn't useful. Bug: 21733400 Change-Id: If8dee9812e4d50c11c47f3daebe0dba33b6d6f8f
| * Shut up a noisy log from HAL [DO NOT MERGE]Vinit Deshpande2015-06-051-2/+2
| | | | | | | | | | | | Bug: 20416721 Change-Id: I2cc1b4404952365e31c2dc705374d30c59930ef9
| * Fix a deadlock in wifi_cleanup [DO NOT MERGE]Vinit Deshpande2015-06-051-0/+2
| | | | | | | | | | | | | | | | | | pthread_mutex isn't re-entrant; and results in a hang if called second time from the same thread. This change ensures that it is locked only once. Bug: 21627368 Change-Id: I9c28c1df240316c2a7eafdefa990b9582bc05a9a
* | Fix a deadlock in wifi_cleanupVinit Deshpande2015-06-041-0/+2
| | | | | | | | | | | | | | | | | | pthread_mutex isn't re-entrant; and results in a hang if called second time from the same thread. This change ensures that it is locked only once. Bug: 21627368 Change-Id: I9c28c1df240316c2a7eafdefa990b9582bc05a9a
* | Remove trivial GScan logsVinit Deshpande2015-06-031-24/+25
| | | | | | | | | | | | | | | | | | | | These helped once; but now this is just noise. Also given that GMSCore starts/stops scans many times it is taking too much of log real estate. Bug: 20416721 Change-Id: I965ed919afbac56e123e8d019be84d7d33abf3f9
* | Shut up a noisy log from HALVinit Deshpande2015-06-031-2/+2
| | | | | | | | | | | | Bug: 20416721 Change-Id: I2cc1b4404952365e31c2dc705374d30c59930ef9
* | am 05e31d4..3df1ce6 from mirror-m-wireless-internal-releaseVinit Deshpande2015-06-032-15/+49
|\ \ | |/ | | | | | | | | | | 3df1ce6 Merge "Issue start/stop HAL along with load/unload driver" into m-wireless-dev f7098f4 net:wireless:bcmdhd: Update bcm4354/56 FW(7.35.79.85) Change-Id: I6e8fa3854726e01ef9a24826bf5486cd05a0356c
| * Issue start/stop HAL along with load/unload driverVinit Deshpande2015-05-272-16/+50
| | | | | | | | | | | | | | This ensures that HAL is enabled when driver is loaded; and HAL is torn down when driver is unloaded. Change-Id: Ia7a3e0a485a37b137750040aaecde7cb92eb59e4
* | am 79bf2da..25a0fb8 from mirror-m-wireless-internal-releaseVinit Deshpande2015-06-022-1/+17
|\ \ | |/ | | | | 25a0fb8 Enable adaptive channel bucket and ePNO bssid
| * Enable adaptive channel bucket and ePNO bssidAshwin2015-05-182-1/+17
| | | | | | | | | | | | | | | | | | | | 1. Enabled binary adaptive channel bucket params 2. Added BSSID to ePNO BSSID Needs FW version 7.35.79.82 or greater Change-Id: I460c309e6c0847213c268d1837e01dd446009ba8 Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
* | Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into ↵xinhe2015-05-184-21/+21
|\ \ | |/ | | | | | | | | merging Change-Id: I24f1ac9e60f09d3771ee6fb99daf75ade7c659eb
| * Merge "fix to enable lazy roam" into m-wireless-devPierre Vandwalle2015-05-142-6/+10
| |\
| | * fix to enable lazy roamPierre Vandwalle2015-05-142-6/+10
| | | | | | | | | | | | Change-Id: Id8a2bd78f924d06ebfe7c3f29758f836d4eff48f
| * | Merge "fix reseting pno list" into m-wireless-devPierre Vandwalle2015-05-141-6/+3
| |\ \ | | |/
| | * fix reseting pno listPierre Vandwalle2015-05-121-6/+3
| | | | | | | | | | | | Change-Id: If5b93c225783c0417b3aadfa41a92782a3669128
| * | Wifi HAL fix for 64bit addressingJerry Lee2015-05-112-5/+7
| |/ | | | | | | | | | | | | | | 1) Bug: 20950010 2) minor wifi HAL event enum fix which breaks loghandler Change-Id: I48a052d703e3f3b14b47aedf9faaa53ebbfa0300 Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
* | am f02e958..dee2763 from mirror-m-wireless-internal-releaseVinit Deshpande2015-05-133-21/+200
|\ \ | |/ | | | | | | | | | | dee2763 Merge "net:wireless:bcmdhd: Update bcm4339 FW (6.37.32.RC23.34.37)" into m-wireless-dev d4438c7 net:wireless:bcmdhd: Update bcm4339 FW (6.37.32.RC23.34.37) 262499e net:wireless:bcmdhd: Update bcm4354/56 FW(7.35.79.81) 040ee11 change wifi Logging header
| * change wifi Logging headerxinhe2015-05-051-19/+19
| | | | | | | | | | | | | | | | Allocate the memory at JNI layer. Thus, instead pass down ** , pass * down Bug:20853404 Change-Id: Id306ecda661ecb189c03925cfbf05077ae79c9f5
| * HAL changes for ANQPOChilam Ng2015-04-292-2/+181
| | | | | | | | | | Change-Id: Ic6c506c688e324bd048bb2e682a172c6c37ff662 Signed-off-by: Chilam Ng <chilam@broadcom.com>