Commit graph

966 commits

Author SHA1 Message Date
Yue Ma
9be730f61b qcacmn: Update credit flow control enable/disable in HTC
There are two ways to enable/disable HTC credit flow control. One is
in HTC itself with a static variable. The other is from the modules
who want to establish HTC service (e.g. WMI or HTT) by sending the
request. Make sure credit flow control enable/disable can be safely
done by other modules so that HTC layer can be converged.

Change-Id: I169c1ac7b410a7c9e7203c174bf1f1ec8a07ca06
CRs-fixed: 982024
2016-04-01 11:53:21 -07:00
Vishwajith Upendra
e8e3b12939 qcacmn: Incremental Release 5.1.0.1E
qcacmn: Incremental Release 5.1.0.1E
Matches with driver version 5.1.0.1E

Change-Id: I98f5994f50d9821fce93c56d4cd244ea129fa9bd
CRs-Fixed: 688141
2016-03-31 23:27:54 -07:00
Houston Hoffman
20968291c5 qcacmn: Reset the Runtime PM state when exiting
qcacld-2.0 to qcacld-3.0 propagation
Add prevent method to reset the Runtime PM state before driver
unload to ensure Runtime PM is recovered by driver load.

Change-Id: I5fccc345e5217d1a26c3c4f0cda1dca5ee71004c
CRs-Fixed: 899522
2016-03-31 22:47:12 -07:00
Houston Hoffman
b21a053526 qcacmn: Fix runtime pm compilation
Runtime PM compilation broke while it was disabled.

Change-Id: I1378e5a10c8982b11ccaaff3041223da94bf25ae
CRs-Fixed: 935300
2016-03-31 22:47:03 -07:00
Houston Hoffman
b4149dda4f qcacmn: pointerize hif power_management apis
Bus power management requirements are different for different busses.
Add them to the bus opps table.

Change-Id: Ia5a2500dc2f1db3be2ddbbaea6a5969420ec0c51
CRs-Fixed: 978810 978802
2016-03-31 22:46:46 -07:00
Rajeev Kumar
febbf6b9ec qcacmn: Clean-up log messages from data path
In data path per packet logging is overwriting previous useful
logs. Use HDD data module ID for WMM per packet logging with
debug log level such that by defualt per packet WMM debug log
messages are not logged.

Change-Id: I64053a6d5048a14277e01f35fcb6e0bbf6ac42b9
CRs-Fixed: 969712
2016-03-31 22:46:37 -07:00
Vishwajith Upendra
5653d6e94f qcacmn: Incremental Release 5.1.0.1D
qcacmn: Incremental Release 5.1.0.1D
Matches with driver version 5.1.0.1D

Change-Id: I9411cf30faadc1455401d61f85be0b676ddbcf9b
CRs-Fixed: 688141
2016-03-31 13:53:25 -07:00
Manjunathappa Prakash
5f45de5139 qcacmn: APIs to access core datapath data structures
Non datapath modules use these APIs when they work with datapath
module data structures.

Change-Id: Ic257c6fc621820199b1691b8e62f7f7109237b01
CRs-Fixed: 993414
2016-03-31 13:35:44 -07:00
Manjunathappa Prakash
a22c2169fb qcacmn: Converged datapath APIs (set 1.1)
Add below changes:
1) Add peer handling functions.
2) Bring in the APIs under else(#else) part of compile time flags
   QCA_SUPPORT_TXRX_LOCAL_PEER_ID, QCA_COMPUTE_TX_DELAY and
   QCA_SUPPORT_TX_THROTTLE.

Change-Id: I08b101702a7d0d870e9fab9b8a3cc7cc19d3464f
CRs-Fixed: 993414
2016-03-31 13:35:43 -07:00
Dhanashri Atre
9c222b15b0 qcacmn: Data path converged internal APIs (Set 1)
Initial check-in of the data path converged APIs that
are currently only implemented by MCL.

Change-Id: I8132aeef4631a8e2fb5e132126a0fc5292c96d12
CRs-Fixed: 993414
2016-03-31 13:35:41 -07:00
Dhanashri Atre
d90a4473ec qcacmn: include the qdf_event header file when using qdf events
Fix compilation error since qdf_event is used without including
the appropriate header file.

Change-Id: Iecc2f4080f8cb699ada4892dd431d68df4a080ca
CRs-Fixed: 994652
2016-03-31 13:35:39 -07:00
Dhanashri Atre
5b64648f9f qcacmn: Data path converged common APIs
Initial check-in of the shared converged APIs and structures
on the data path

Change-Id: I29a9a587832cbe25a43267135e3df896f1a3e7b1
CRs-Fixed: 993414
2016-03-31 13:35:37 -07:00
Dhanashri Atre
795d5196b6 qcacmn: Clean-up the data path folder
Clean-up the data path folder to create an empty canvas which
should contain only the converged data path APIs.

Change-Id: I90002dc48ef1a2f8d11ab7064ec900fcd82c0fe9
CRs-Fixed: 993414
2016-03-31 13:35:35 -07:00
Komal Seelam
7508012ea9 qcacmn: Rename hif_callbacks and remove unwanted header files in source files
Rename hif_callbacks structure to hif_driver_state_callbacks and remove
get_monotonic callback and use qdf API to get monotonic time.

Remove following unwanted header files in the hif source files.
osdep.h, athdefs.h, a_types.h, osapi_linux.h.

Change-Id: Ib7a03cab1b056a33b39247989fa3dfca41c85f77
CRs-Fixed: 967765
2016-03-31 13:35:33 -07:00
Prakash Dhavali
39ac6ff576 qcacmn: Incremental Release 5.1.0.1C
qcacmn: Incremental Release 5.1.0.1C
Matches with driver version 5.1.0.1C

Change-Id: Ia59b8788ae4c910baf555356961cc6d73a29f57c
CRs-Fixed: 688141
2016-03-30 13:00:45 -07:00
Service qcabuildsw
e50ae58587 Merge "qcacmn: Add tlv formation of key installation commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-30 12:12:19 -07:00
Service qcabuildsw
39d02fc965 Merge "qcacmn: Fix tlv formation of vdev start command" into wlan-cmn.driver.lnx.1.0-dev 2016-03-30 12:12:16 -07:00
Service qcabuildsw
2ee07ffec6 Merge "qcacmn: Use IEEE80211_ADDR_LEN macro for size of mac address" into wlan-cmn.driver.lnx.1.0-dev 2016-03-30 12:12:14 -07:00
Service qcabuildsw
aa592b4dca Merge "qcacmn: Fix tlv formation of arp ns offload command" into wlan-cmn.driver.lnx.1.0-dev 2016-03-30 12:12:10 -07:00
Service qcabuildsw
f515949f90 Merge "qcacmn: Fix tlv formation of Peer assoc wmi command" into wlan-cmn.driver.lnx.1.0-dev 2016-03-30 12:12:08 -07:00
Himanshu Agarwal
a41da1d50f qcacmn: Add tlv formation of key installation commands in common wmi layer
Move tlv formation of wmi setup key installation commands from umac to
common wmi layer.

Change-Id: I51250a9b1b6bb5aed06657b9f88f4659430f4c74
CRs-Fixed: 987362
2016-03-30 12:06:53 -07:00
Siddarth Poddar
7e30287bde qcacmn: Fix tlv formation of vdev start command
Add channel info in tlv formation of vdev start command

Change-Id: I83164934978f6cac179e1e66c576549a732e356d
CRs-Fixed: 987362
2016-03-30 23:13:11 +05:30
Govind Singh
0609ff776b qcacmn: Use IEEE80211_ADDR_LEN macro for size of mac address
Use IEEE80211_ADDR_LEN macro consistently for size of
802.11 address.

Change-Id: I799433a6dc509f98d723f8d8c09d9ba348d9f07e
CRs-Fixed: 987362
2016-03-30 10:40:06 -07:00
Govind Singh
210485e9b7 qcacmn: Fix tlv formation of arp ns offload command
Fix arp ns offload command formation by removing the double
free of arp ns offload parameter structure.

Change-Id: I38d11c770f8e79d39f7593bcea3712ab07d34660
CRs-Fixed: 987362
2016-03-30 18:54:27 +05:30
Govind Singh
3fdb3a5761 qcacmn: Fix tlv formation of Peer assoc wmi command
Fix TLV header length calculation and pass peer mac address in
wmi peer assoc command.

Change-Id: I025ad7564901cba583bd78bddf0ccfa5e894c751
CRs-Fixed: 987362
2016-03-29 15:20:30 +05:30
Anurag Chouhan
19717c09c9 qcacmn: Replace linux API with QDF API's
Replace linux spinlock API's with OS abstracted spinlock API's.

Change-Id: I6292b306a92b853eaddb19839fe0f976edf2f93f
CRs-Fixed: 981187
2016-03-24 03:08:20 -07:00
Anurag Chouhan
85bc91a97b qcacmn: Add WIN Driver compilation fix.
Fix compilation errors for WIN driver.

Change-Id: Iae6201b06c3b9931f3f6af78c2e1691755b8bcf7
CRs-Fixed: 981187
2016-03-24 15:34:06 +05:30
Himanshu Agarwal
915c270701 qcacmn: Add tlv formation of some wmi vdev commands in common wmi layer
Move tlv formation of wmi vdev start/restart commands from umac to
common wmi layer.

Change-Id: Id040983068ff610e68880dd5f503edf9b9c8cff9
CRs-Fixed: 987362
2016-03-17 11:22:37 -07:00
Himanshu Agarwal
e2082f28fd qcacmn: Add tlv formation of wmi roam scan commands in common wmi layer
Move tlv formation of roam scan related commands from umac to
common wmi layer

Change-Id: Ib582f09ccc90e29eeace1af1bfcd43e0ff1e5203
CRs-Fixed: 987362
2016-03-17 11:22:23 -07:00
Service qcabuildsw
50a16579d6 Merge changes I2f659159,I7eed7108 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  qcacmn: Replace mac_id with pdev_id in common wmi layer
  qcacmn: Protect rx execution context for wmi events
2016-03-17 11:00:44 -07:00
Service qcabuildsw
04eb73b29b Merge "qcacmn: Adpat common wmi layer with QDF os abstraction" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:39 -07:00
Service qcabuildsw
d93a8dbe21 Merge "qcacmn: Add tlv formation of wmi main commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:37 -07:00
Service qcabuildsw
89e9ef33a6 Merge "qcacmn: Add tlv formation of wmi init commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:35 -07:00
Service qcabuildsw
be42b19933 Merge "qcacmn: Add tlv formation of wmi feature commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:33 -07:00
Service qcabuildsw
017a6b7e35 Merge "qcacmn: Add tlv formation of wmi scan roam commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:30 -07:00
Service qcabuildsw
4169246876 Merge "qcacmn: Add tlv formation of wmi data commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:28 -07:00
Service qcabuildsw
36fed118a4 Merge "qcacmn: Add tlv formation of ocb commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:26 -07:00
Service qcabuildsw
3999631dc8 Merge "qcacmn: Add tlv formation of wmi power commands in common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:23 -07:00
Service qcabuildsw
3a1f8f90c6 Merge "qcacmn: Add tlv formation of scan commands" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:21 -07:00
Service qcabuildsw
4b50810638 Merge "qcacmn: support of common wmi rx event handling for common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:18 -07:00
Service qcabuildsw
2e9d6068eb Merge "qcacmn: Add tlv implementation of common unified API" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:16 -07:00
Service qcabuildsw
9ba7cf7bcb Merge "qcacmn: Modify wmi handle and api for common wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:12 -07:00
Service qcabuildsw
2b557a22fc Merge "qcacmn: Restructure and add new files in wmi layer" into wlan-cmn.driver.lnx.1.0-dev 2016-03-17 11:00:10 -07:00
Houston Hoffman
3c017e7bcf qcacmn: Pointerize hif_dump_registers
Allow different busses to have different register sets to dump
in case of a crash.

Change-Id: I2b0665f276594dfb29ca34fe3f363c2f414cd2e7
CRs-Fixed: 986480
2016-03-16 13:49:56 -07:00
Houston Hoffman
162164c8cd qcacmn: Unify hif_bus_get_context_size
Since the open logic needs to allocate the bus context
before initializing the bus ops table, we need a single
function that is aware of the bus context size for all
busses.

Change-Id: I681e91ed1a792da7e753b477f869ee415ea8f3c7
CRs-Fixed: 986480
2016-03-16 13:49:52 -07:00
Houston Hoffman
795299c42c qcacmn: Resolve duplicate hif_get_target_type definition
Duplicate deffinitions of hif_get_target_type prevented compilation
of snoc and pci functionality at the same time.

Change-Id: I44cdca79c6f296c4294a54a4e1bfb459a519f46b
CRs-Fixed: 986480
2016-03-16 13:49:47 -07:00
Houston Hoffman
8f239f67a2 qcacmn: Pointerize more HIF apis
Pointerizing these apis is easier than removing external
references or unifying them.  Support multibus by
pointerizing them.

Change-Id: Iab86adf2076a082b75d9ba393123798e16f5b82e
CRs-Fixed: 986480
2016-03-16 13:49:43 -07:00
Houston Hoffman
4411ad4d0c qcacmn: Replace A_TARGET_ACCESS_BEGIN/END_RET_PTR
Macros should not alter the execution of function bodies.
Fix possible memory leaks that this cleanup exposed.

Change-Id: I546c5822d7c28e0c9dd77094a5bb0f7e3e7544d4
CRs-Fixed: 986480
2016-03-16 13:49:38 -07:00
Houston Hoffman
987ab445de qcacmn: Fix return codes from A_TARGET_ACCESS_BEGIN_RET
A_TARGET_ACCESS_BEGIN_RET hid nonsensical return values.
Replace nonsensical return values with sensible ones.
In many cases, the returned value is changed and not
just renamed.

Change-Id: I8bf1d4a44d4ebd76e3aa60bc4d24416ce0d45d61
CRs-Fixed: 986480
2016-03-16 13:49:33 -07:00
Houston Hoffman
2c32cf6dd1 qcacmn: Replace A_TARGET_ACCESS_BEGIN/END_RET apis
Macros should not alter the execution of function bodies.

Change-Id: I54c90230c5c0f43cb20412110f4eb7aa568e654d
CRs-Fixed: 986480
2016-03-16 13:45:20 -07:00