History log of /hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6587f308b0c2d658dfe7cd988518d158cbd2f202 05-May-2016 Sreenath Sharma <sreenath.sharma@broadcom.com> WiFi HAL: fix delete mismatch warning

Use 'delete[]' instead of 'delete' for memory allocated with 'new[]'

Cherry pickerd from
https://partner-android-review.googlesource.com/#/c/598071/

BUG=28614926

Change-Id: I75dfd8a8d94d7a754723381e1f549b2d1bc1c69b
Signed-off-by: Sreenath Sharma <sreenath.sharma@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
6af064b77bfdc84a6f425a7c9d0941fad11f4489 22-Apr-2016 Sreenath Sharma <sreenath.sharma@broadcom.com> WiFi HAL: memory leak fix

- freeing of allocated memory after use by invoking release method
- addition of NULL checking for handling allocation failures
- fixing of existing compilation warnings
- code cleanup

BUG=28274383

Change-Id: Iea00bd7dd0a7c02f551b88137cbdbf84dfd39ebb
Signed-off-by: Sreenath Sharma <sreenath.sharma@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
d122c5c4cbdb8fdee2576789733e42ea0ecb9d9c 29-Mar-2016 gautam <gautam.shukla@broadcom.com> Wifi-HAL: Adding preamble for RTT API

Adding preamble support in capabilities of
responder.

Change-Id: I2107f9f71717e69bc2a90967aec4f33a205e90af
Signed-off-by: gautam <gautam.shukla@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
65f9c6fbd929be309642cdaf255e8394aad2b0ca 10-Mar-2016 Jun Lim <jun.lim@broadcom.com> WiFi HAL: ND offload enhancement

Initial check-in of ND offload HAL API support

BUG=27598285

Change-Id: I1b451c5af8e1c6f5102d1e0f4b61868adf1f34c1
Signed-off-by: Jun Lim <jun.lim@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
dfe5b594561312993f587dc29e524d400e8fbc77 12-Feb-2016 Sreenath Sharma <sreenath.sharma@broadcom.com> net: wireless: bcmdhd: Android Packet Filter (APF)

Initial check-in of Android Packet Filter (APF)

BUG=26997810

Change-Id: Icf9aa7bb1152a42de340982eae58020faad7ff1a
Signed-off-by: Sreenath Sharma <sreenath.sharma@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
5527cdbb42cd36d1c3772f5c548bacab8b87a9a4 02-Mar-2016 Sreenath Sharma <sreenath.sharma@broadcom.com> Merge "WiFi HAL: debugability - packet logging" into mm-wireless-dev
am: 6e89e01f1d

* commit '6e89e01f1d167d9ba0726166fcf4f2eae16a0cdc':
WiFi HAL: debugability - packet logging
6e89e01f1d167d9ba0726166fcf4f2eae16a0cdc 02-Mar-2016 Mukesh Agrawal <quiche@google.com> Merge "WiFi HAL: debugability - packet logging" into mm-wireless-dev
e99338ee4fb06f30c04a8af136c5265053d76d9b 01-Mar-2016 gautam <gautam.shukla@broadcom.com> Enabling responder for rtt
am: 89b86262c9

* commit '89b86262c90552a05a6177944d0ced6b01f27d80':
Enabling responder for rtt
89b86262c90552a05a6177944d0ced6b01f27d80 29-Feb-2016 gautam <gautam.shukla@broadcom.com> Enabling responder for rtt

Added command implementation for responder

Change-Id: I9d61c2c336558ccf438c54895083f433a6180c70
Signed-off-by: gautam <gautam.shukla@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
7e8b4497898f0de16faa50d0b65fcd7d09085e24 23-Feb-2016 Sreenath Sharma <sreenath.sharma@broadcom.com> WiFi HAL: debugability - packet logging

Initial check-in of debugability - packet logging

BUG=27212817

Change-Id: Ida7df4dc95356720f362c511db12b2b7e9459982
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
bc05bd7eb0201f019544dc00671c8b961b1d7906 25-Jan-2016 Mitchell Wills <mwills@google.com> Updates for gscan HAL updates in N
am: 89296a7fc9

* commit '89296a7fc953e68649cdb1366d22376c034ace05':
Updates for gscan HAL updates in N
89296a7fc953e68649cdb1366d22376c034ace05 17-Dec-2015 Mitchell Wills <mwills@google.com> Updates for gscan HAL updates in N

This will compile, but all new functionality may not work

Change-Id: Ica790a74bbf28996b1b5c5c7b959c639fa6f6301
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
d7f3cb9915d9ac514393d0ad7767662958054b8f 18-Nov-2015 Paul Stewart <pstew@google.com> Fix use-after-free in wifi_cleanup()

Release reference to cmd only after possibly calling getType().

BUG: 25753768
Change-Id: Id2156ce51acec04e8364706cf7eafc7d4adae9eb
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
5cbe0dca22a31ea90201e47989df44b124f6f13e 20-Sep-2015 Ashwin <ashwin.bhat@broadcom.com> Fix crash caused in wifi_cleanup

Check if ptr is NULL before dereferncing in debug print statements.

Bug: 24196226

Change-Id: I96e811a1628f4966c9334a83fa3514775d861cf1
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
56c89ca266b11be506192f3a13a1dba3f109c2cf 28-Aug-2015 Ashwin <ashwin.bhat@broadcom.com> Modify the cleanup procedure

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>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
340c22b114039948cbdc124797fd84d58a80462c 06-Aug-2015 Ashwin <ashwin.bhat@broadcom.com> RSSI monitor cmd cleanup

Cleanup RSSI monitor cmd if it fails

Bug 22826644

Change-Id: Iaca8201ea32d051bb2afd34e28257fc828908599
Signed-off-by: Ashwin <ashwin.bhat@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
6d9f23bf01b35074e29c6319c4009a1295cb4aa6 28-Jul-2015 Vinit Deshpande <vinitd@google.com> Fix a potential crash in debugging code

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
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
56deba26a624507fc2e0e6b134f8bd88d091a141 13-Jul-2015 Jerry Lee <jerrylee@broadcom.com> Clean up bad command implementation

b/22349265

Change-Id: I98132e5083155de21ae241b3b3a6b8f9410d61ec
Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
d4f6adc737f93d75d3a1be8427a144f907a4dde6 07-Jul-2015 Vinit Deshpande <vinitd@google.com> Fix incorrect wifi_cleanup

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
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
8f1ec7e8e43ec37e94806764b2873c93368cf137 19-Jun-2015 Ecco Park <eccopark@broadcom.com> Add wifi offload feature: mkeep_alive

b/21405946

Change-Id: I8e9a2f2b2f76d1d689fcd645b9332b290d710ae6
Signed-off-by: JerryLee <jerrylee@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
c604b53461cfea0a1e6f6f5ad84b0a35be69b8e0 18-Jun-2015 JerryLee <jerrylee@broadcom.com> Add a debuggability interface: stop logging

bug: 21730601

Change-Id: Icdc4e118884ec16a8b1a52ed60c9e49fa521a9fd
Signed-off-by: JerryLee <jerrylee@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
fef13c11034313585be68c32322b9a53c43a37b2 12-Jun-2015 Ashwin <ashwin.bhat@broadcom.com> RSSI monitor changes

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>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
cfd222036ee493ecdcfa753afd981ea3e1604b5b 10-Jun-2015 Vinit Deshpande <vinitd@google.com> am e162833..172fcf7 from mirror-m-wireless-internal-release

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)
e16283338c9f0e8798228c400e31415d612f7d09 10-Jun-2015 Vinit Deshpande <vinitd@google.com> Remove confusing "Error polling socket" log

There are lots of legitimate cases where poll()
returns error; so this log isn't useful.

Bug: 21733400
Change-Id: If8dee9812e4d50c11c47f3daebe0dba33b6d6f8f
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
940146c69912ab98f42d412f00438ef193647ffd 04-Jun-2015 Vinit Deshpande <vinitd@google.com> Shut up a noisy log from HAL [DO NOT MERGE]

Bug: 20416721

Change-Id: I2cc1b4404952365e31c2dc705374d30c59930ef9
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
74d118dc34771593b3892d7fb72b5b8e07f4da63 05-Jun-2015 Vinit Deshpande <vinitd@google.com> Fix a deadlock in wifi_cleanup [DO NOT MERGE]

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
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
974df1c535fa4aa5c191d47877aa27c79fad0263 05-Jun-2015 Vinit Deshpande <vinitd@google.com> Fix a deadlock in wifi_cleanup

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
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
854a437fc5530b1555cd469319d1f96ba184b178 04-Jun-2015 Vinit Deshpande <vinitd@google.com> Shut up a noisy log from HAL

Bug: 20416721

Change-Id: I2cc1b4404952365e31c2dc705374d30c59930ef9
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
7475da732b09fd89a54ef829f4683d2634383d9d 03-Jun-2015 Vinit Deshpande <vinitd@google.com> am 05e31d4..3df1ce6 from mirror-m-wireless-internal-release

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
05e31d445f52da4746ff0cc0703d83814cea98d0 28-May-2015 Vinit Deshpande <vinitd@google.com> Issue start/stop HAL along with load/unload driver

This ensures that HAL is enabled when driver is loaded; and
HAL is torn down when driver is unloaded.

Change-Id: Ia7a3e0a485a37b137750040aaecde7cb92eb59e4
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
865ee9aa73c86404aa1ec3895a0a828a2b888ec5 18-May-2015 xinhe <xinhe@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into merging

Change-Id: I24f1ac9e60f09d3771ee6fb99daf75ade7c659eb
f060fbe12899e67fc4c491af52718ef5e5f1e3ee 12-May-2015 Pierre Vandwalle <vandwalle@google.com> fix to enable lazy roam

Change-Id: Id8a2bd78f924d06ebfe7c3f29758f836d4eff48f
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
62b585af23eca07ccf6022f7e23c58f419ba90f5 24-Apr-2015 xinhe <xinhe@google.com> Fix halutil build error [DO NOT MERGE]

Change-Id: Icbd5309b42f674bf8eef19b4e8b93d9062087299
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
cab099c7be6490bad1e0402b630840f8d0fcc99b 24-Apr-2015 xinhe <xinhe@google.com> Fix halutil build error

Change-Id: Icbd5309b42f674bf8eef19b4e8b93d9062087299
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
1184763d6c24a6b393417eb4e8e7838f71bb97a5 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'aa306e5' into merge2
ec74fa4fcb49a35e6af54e086e63692b37d21b02 22-Apr-2015 Vinit Deshpande <vinitd@google.com> Reduce logs from gscan

Made some logs verbose to reduce log clutter

Bug: 20416721

Change-Id: Id8bebe26740ec91b21e1478f92eae8fa2b4d4446
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
aa306e5f46b3e0e72d7917760b8af6aaebc35b1e 15-Apr-2015 Jerry Lee <jerrylee@broadcom.com> Support debugability feature (wifi-hal)

1) Bug : 18821170
2) support ring buffers for event ring and verbose ring
3) support FW Dump, FW version and DHD version

Change-Id: I4e00f7d7720331926f7f42157cdd4cb7cc68f784
Signed-off-by: Jerry Lee <jerrylee@broadcom.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
bc53131b56a6a4a493142dae31889c7a63f49050 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am abe2d48..ee8188b from mirror-m-wireless-internal-release

ee8188b make rssi a signed char
f0f7cc2 Merge "clean up the object of RTTCommand class" into m-wireless-dev
026c12a changes to support wifi_logger.h API changes
6fcd7d0 clean up the object of RTTCommand class
026c12a13d5b8736aaff4786e0f691531334fcba 10-Apr-2015 Pierre Vandwalle <vandwalle@google.com> changes to support wifi_logger.h API changes

Change-Id: I20b7d10e21a69817e9ea9d0b444e7976784317ef
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
7f02be87573205de39d9535f25d8853709280d04 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit 'c86b0f1' into merge_work

Change-Id: I7c4cb626c735523cfdc29051e3ad6b4a5ed08a25
91fe524d06419514a57c7f95aff67e57cee6012a 03-Apr-2015 xinhe <xinhe@google.com> Wifi HAL should not require stubs for all functions [Do not Merge]

Bug:19949178
Change-Id: I68b14d9731d2fe36e6f75beee7237a930eff0b0d
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
cbbc31d5d0d387068be5b84251f53d6b74bfc6f5 31-Mar-2015 xinhe <xinhe@google.com> Add general stubs for wifi hal

Bug:19949178
Change-Id: I067761e4784b309b32e2d91762c5beb2191d9c46
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
508ee337afdefb09b15a8de9f7a61660269b39e8 25-Mar-2015 Prerepa Viswanadham <dham@google.com> Fix build issue

Change-Id: I64385b816f29835cba0b8ee90d602e9695b5c836
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
c02e00563882d87ab29822c43097cbb1ce04b55d 20-Mar-2015 xinhe <xinhe@google.com> Merge Broadcom HAL codes for set country code
net: wireless: bcmdhd changes for set country

Change-Id: I7fdb4efe00a5f6df166b8dbb071939c4aa311845
Signed-off-by: eccopark@broadcom.com <eccopark@broadcom.com>
Bug:19829530
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
732a5f920e3add302768eb521fa511943e017867 18-Mar-2015 Pierre Vandwalle <vandwalle@google.com> stubs for HAL API functions

Change-Id: I74d53ae187d002edafb6f3de32079c36c8c10552
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
cc370437327c04d82dc8b3addc556d5bc30efc77 28-Aug-2014 Vinit Deshpande <vinitd@google.com> Recover from socket POLLERR

This happens because socket buffer is full. Since this is just an
eventing socket, and if data loss is equivalent to an event loss, we
can live with the data loss. All we really need to do is to reset
the socket error - an explicit read on the socket does that.

Bug: 17226060

Change-Id: I5a008e09fd59c1ebab4feaa99e63681fbc80eca7
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
b4ac10a4e1eddf00ddad32f3307cc050bb4e0963 25-Aug-2014 Dmitry Shmidt <dimitrysh@google.com> bcmdhd: wifi: hal: Add wifi_set_nodfs_flag() function

Bug: 17181998

Change-Id: I8337fe6ce41716993bbe02538ef55af6129ca7b3
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
f0d5070a931327e6356d765478069b9e66452a5b 05-Aug-2014 Ashwin <ashwin.bhat@broadcom.com> PNO MAC rotation + Hotlist Lost event
modified: bcmdhd/wifi_hal/common.h
modified: bcmdhd/wifi_hal/gscan.cpp
modified: bcmdhd/wifi_hal/wifi_hal.cpp

Change-Id: I85b8975f1d0578e4524e30c94e8947246b8b128f
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
28237f92de2634ec1d529c63b2d61d80e7485c83 31-Jul-2014 Vinit Deshpande <vinitd@google.com> Fix a deadlock in event/command interaction

There are two locks, one in HAL which takes care of adding/removing event
handlers from a common data structure; and another in the Framework
which synchronizes access to WifiNative. Commands and events grab these
locks in opposite order, and hence can cause deadlock.

This change fixes the deadlock by holding on to the HAL lock only for
a short time. This is achieved by refcounting the commands so they
don't have to be destroyed while holding locks.

Bug: 16660861


Change-Id: I35f9f688c8c1ddb2116b228c52e0bb1125df0568
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
9a23388d5a9f58f106169700bb179de0a4af7840 26-Jun-2014 Ashwin <ashwin.bhat@broadcom.com> More GScan feature tweaks

1. Scan complete event
2. get feature list
3. get channel list

Changes to be committed:
modified: bcmdhd/firmware/bcm4339/fw_bcmdhd.bin
modified: bcmdhd/wifi_hal/common.h
modified: bcmdhd/wifi_hal/gscan.cpp
modified: bcmdhd/wifi_hal/wifi_hal.cpp

Change-Id: I98383f8aca1a486dbe16560e0e65a6764556cca3
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
bb8a4d506769d7dc8b33445c6725a40b7523063c 02-Jun-2014 Vinit Deshpande <vinitd@google.com> Add mutual exclusion to wifi HAL infrastructure

This change restricts free access from multiple threads to event buffers.
Mutual exclusion is added to avoid crashes and corruption that may
happen because of simultaneous access from a command and an event.

Access to commands from multiple threads is still not protected. But
thankfully, framework takes care of it.

Bug: 15188917
Change-Id: I41e294f01a85097e30078f603b113da9a319ba83
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
642bfbe829f5438db3d99ce4678bcb770359a632 23-May-2014 Vinit Deshpande <vinitd@google.com> More Libnl fixes for Broadcom's WifiHAL

We don't look for sequence match on event messages; also removed
references to netlink-types which is from an older version.

This change also reduces NUM_SCANS_TO_CACHE from 10 to 4 in order to
work around a driver bug.

Change-Id: I09de75b00a79635b0921a9fb1c2939438bc13287
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
922bc148ebc612b6ecf7233b028099aab78feae4 14-May-2014 Vinit Deshapnde <vinitd@google.com> changes related to full scan result and band

Change-Id: I7accbd79f86a616c1d7e11fcebae12dbefaa3612
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp
1a526434ae215b48970501ccb463d4e77af39c9e 09-Apr-2014 Vinit Deshapnde <vinitd@google.com> Moving Wifi HAL to hardware

This change moves all Wifi HAL headers to libhardware_legacy; and moves
hal implementation under hardware/<vendor>/wlan. This way different
vendors will be able to tailor implementation to their drivers.

Change-Id: I55789bb6788ab694f4896aa36d76f7887b32dad6
/hardware/broadcom/wlan/bcmdhd/wifi_hal/wifi_hal.cpp