summaryrefslogtreecommitdiff
path: root/core/pld/src/pld_common.c
AgeCommit message (Collapse)Author
2018-01-29qcacld-3.0: WLAN upgrade to 5.1.1.44VSrinivas Girigowda
3122353 qcacld-3.0: Update DTIM value in WMA for modulated DTIM d5f23c7 qcacld-3.0: Fix dereferencing NULL peer 4d830ec qcacld-3.0: Enable channel 12 and 13 in world mode 3631077 qcacld-3.0: Add channels 5735-5835 to the world mode 7012990 qcacld: Modify defualt world rules 83d6273 Release 5.1.1.44V 15b1778 qcacld-3.0: At SAP,cache every station's info only once 55a9571 qcacld-3.0: Add a check for HAl context f335516 Release 5.1.1.44U 40fe570 qcacmn: Untrack nbuf map on map failure 917c576 qcacmn: Hold lock for entire nbuf debug iteration 6bbcf5c qcacmn: Add nbuf map/unmap history tracking d0f7852 qcacmn: Extend wmi interface command to support other connectivity stats 363936b qcacmn: Add connectivity stats rx function pointer e82d3d0 fw-api: CL 4011873 - update fw common interface files e13edce fw-api: CL 4003829 - update fw common interface files c0c7c48 fw-api: CL 4003828 - update fw common interface files Bug: 71763975 Bug: 72173962 Bug: 69611483 Bug: 67750750 Change-Id: I3c84e7e637b289410bdaa46d56a695b55b7bc938 Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
2017-11-04qcacld-3.0: add device pointer in pld snoc APISarada Prasanna Garnayak
Add device pointer in all pld snoc API to support for numerous WLAN module. CRs-Fixed: 2127364 Change-Id: Id6c3d559ebc67d40536a60ab78d468fb5f0fbf03
2017-09-26qcacld-3.0: save the cc source to platform driverPaul Zhang
qcacld-2.0 to qcacld-3.0 propagation There is a design limitation of our solution. Driver sends regulatory_hint_user for both user-space and 11d country to kernel. So when wiphy re-registration happens, kernel tells the source as USER even for 11d. And per driver logic the 11d needs to be disabled if INI gCountryCodePriority is set. To mitigate this issue, storing the country source in the platform driver. Change-Id: I912a071991432305e69a3e572df4e02cedefee93 CRs-Fixed: 2114969
2017-09-21Revert "qcacld-3.0: save the cc source to platform driver"Sameer Thalappil
This reverts commit Change-Id: Ib245d1db47955a8f70ec7444fa2996390ee3a3fc icnss_utils is supposed to be removed on mainline, and all driver changes should refer cnss_utils. CNSS2 and ICNSS should share cnss_utils. CRs-Fixed: 2114328 Change-Id: I05fa89051076091b02045f4853f3b9eb594a667a
2017-09-19qcacld-3.0: save the cc source to platform driverPaul Zhang
qcacld-2.0 to qcacld-3.0 propagation There is a design limitation of our solution. Driver sends regulatory_hint_user for both user-space and 11d country to kernel. So when wiphy re-registration happens, kernel tells the source as USER even for 11d. And per driver logic the 11d needs to be disabled if INI gCountryCodePriority is set. To mitigate this issue, storing the country source in the platform driver. CRs-Fixed: 2051710 Change-Id: Ib245d1db47955a8f70ec7444fa2996390ee3a3fc
2017-09-18qcacld-3.0: pld: Replace instances of unadorned %pJeff Johnson
Replace instances of unadorned %p in core/pld. Change-Id: I949474a148429d14587864e6fa3ce5c71d2ceb92 CRs-Fixed: 2100997
2017-09-14qcacld-3.0: Enable SDIO based WLAN self-recoverywadesong
WLAN self-recovery based on SDIO bus is currently missing in CLD3.x, resulting in crash injection to TF card taking no effect during some special case. Add the recovery feature back to CLD3.x based on the same logics in CLD2.0 Change-Id: I719b77ac9679a0449863a94b47ad22233bc9b574 CRs-fixed: 2103969
2017-07-08qcacld-3.0: skip FW dump for SDIO SSRLiangwei Dong
Skip FW memory dump in SSR case for HL SDIO solution. HL SDIO uses the diag read API to read by 4 bytes, which is too slow to meet SSR time requirement. Change-Id: Iacde90ab0ec84f29f3744bf4497ec8fd8517600a CRs-Fixed: 2071329
2017-07-06qcacld-3.0: Use cnss_utils APIsYuanyuan Liu
Use cnss_utils APIs to set/get wlan info as these APIs are platform independent. CRs-Fixed: 2071683 Change-Id: Ia35a648a1d4dff308b830bce3b4e9992de2a2834
2017-06-09qcacld-3.0: Do not always reject core regulatory callbackAmar Singhal
Core regulatory callback can happan on driver reload also. User may set country 00 when wlan is off. In that case on driver re-registration core callback would happen. To avoid rejecting such a callback, save the driver reload state with the platform driver. CRs-Fixed: 2057997 Change-Id: I43b2ed8fe9c29ca98ce64273a1be049a2005c0c3
2017-03-24qcacld-3.0: enable FW dump for SDIOYu Wang
When FW assert happen, it won't do FW dump if the bus type is SDIO. Enable FW dump for SDIO target Change-Id: I24655ca74003c915d9eda1106aad7cf87856947e CRs-Fixed: 2010613
2017-02-02qcacld-3.0: Add support for setting fw log mode for msm8998Yuanyuan Liu
Add support for setting fw log mode for msm8998. Change the log mode from bool type to tristate to support multiple log modes. CRs-Fixed: 1115611 Change-Id: I6aef023d1e3cb1b68f1520f800af094f6f6decdb
2017-01-17qcacld-3.0: Add support for host initiated recoverySameer Thalappil
If platform has a mechanism to initiate target assert, trigger that interface to force assert target. Certain integrated platforms (where WLAN runs on it's own PD) provides a mechanism to initiate PDR from host. That interface can be triggered when WLAN host detect timeout scenarios. CRs-Fixed: 1110243 Change-Id: I6a9408f47ca4245380dbf4177363c3c461ff948d
2016-12-05qcacld-3.0: Add support of getting MAC address from platform driverYuanyuan Liu
Add support of getting WLAN MAC address from ICNSS platform driver. Change-Id: Ie31d9147e8dc4e11e14a6fdf93200122acbb4000 CRs-Fixed: 1096290
2016-11-01qcacld-3.0: Remove obsolete codeswap featureYue Ma
Codeswap feature is introduced for a WLAN chipset which is already cancelled. It is no longer used in host driver. Remove the feature to avoid any confusion for future development. Change-Id: I70ae291ded2d2e290408e2f5b177e872f1f3d7e8 CRs-fixed: 1082183
2016-10-31qcacld-3.0: Add PLD API to get QMI support infoHardik Kantilal Patel
Call ICNSS API to get QMI support info and based on this information later WLAN host driver decide to allocate 1 MB Memory for MSA region or not. CRs-Fixed: 1081443 Change-Id: I1ae0f3a0c92ded2df8e8c710be1faab6fde5cc10
2016-10-20qcacld-3.0: Fix -Wmissing-prototypes in PLDJeff Johnson
We want to enable the compiler's -Wmissing-prototypes switch, but there is existing code that is generating warnings. Fix all warnings in core/pld. Change-Id: Icef77666d1d1ef214491dcf1fcd56741091cec4f CRs-Fixed: 1078826
2016-10-17qcacld-3.0: Use PLD API to query MAC Address from Platform DriverKomal Seelam
Move CNSS API to PLD API to query WLAN MAC Address from Platform Driver Change-Id: I97724711cdf08824e0a46398284e40b798b4553d CRs-Fixed: 1063837
2016-09-26qcacld-3.0: Use PLD API to get SOC serial numberYuanyuan Liu
Socinfo API is not a standard system API. Hence, use PLD API to get SOC serial number instead of calling socinfo API directly to enhance driver portability. Change-Id: I1d673d2f3b0066f4e05f2f465abc8a6cad7a1f8f CRs-Fixed: 1069480
2016-09-23qcacld-3.0: Clean up PLD source files and remove unused functionYuanyuan Liu
Clean up PLD source file by moving one-line function calls to header file and make it static inline. Also, remove unused function. Change-Id: Ibaa7357db4ac305f0bab9d8ad2f7dfe9351fda7d CRs-Fixed: 1070075
2016-09-21qcacld-3.0: Provide PLD APIs for SMMU operationsYuanyuan Liu
Proivde PLD wrapper APIs for getting SMMU mapping context and mapping SMMU to a specific physical address. Change-Id: I3feb61b26c839547e4d050f62963e64f5ca062a7 CRs-Fixed: 1057714
2016-09-21qcacld-3.0: Add PLD ATHDIAG read/write supportYuanyuan Liu
Add PLD wrapper for platform athdiag read/write. HIF will call these two functions when a athdiag read/write triggered from user space. CRs-Fixed: 1061837 Change-Id: Ie34c634beaf1cd91e24eca1b7ce5b6444a60393e
2016-09-15qcacld-3.0: Call pld_pcie_power_off in pld_power_offYuanyuan Liu
There's mistake that pld_power_off calls pld_pcie_power_on. Fix this by calling the correct pcie power function. Change-Id: I9e968d749479856510e0dd7f32f5babc57b6ebed CRs-Fixed: 1064058
2016-09-15qcacld-3.0: Call ICNSS APIs for get/set channels and dfsYuanyuan Liu
Call ICNSS API for get/set unsafe channels and dfs nol when bus type is SNOC. Change-Id: I82f4f32097f38c0b26b80b861a15fda9b04b24d9 CRs-Fixed: 1061220
2016-09-11Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"qcabuildsw
This reverts Change-Id: I12e1db54468c7215318333b55d991c53886d21ff WLAN driver is blocked from promotion as the dependent kernel change is not merged yet. Getting/setting unsafe channels and dfs nol are no longer be present after reverting. CRs-Fixed: 1061220 Change-Id: I110df8d25464ff0d70428aa275538a98667ac57d
2016-09-08qcacld-3.0: Call ICNSS APIs for get/set channels and dfsYuanyuan Liu
Call ICNSS API for get/set unsafe channels and dfs nol when bus type is SNOC. Change-Id: I12e1db54468c7215318333b55d991c53886d21ff CRs-Fixed: 1061220
2016-09-08Revert "qcacld-3.0: Call ICNSS APIs for get/set channels and dfs"Yuanyuan Liu
This reverts Change-Id Ic0627a14a65f07faeb5cfa0ec4fcdc85b79e3f63. WLAN driver is blocked from promotion as the dependent kernel change is not merged yet. Getting/setting unsafe channels and dfs nol are no longer be present after reverting. CRs-Fixed: 1061220 Change-Id: Id4e374310c5140cc7c5432183562998b2584853a
2016-09-02qcacld-3.0: Call ICNSS APIs for get/set channels and dfsYuanyuan Liu
Call ICNSS API for get/set unsafe channels and dfs nol when bus type is SNOC. CRs-Fixed: 1061220 Change-Id: Ic0627a14a65f07faeb5cfa0ec4fcdc85b79e3f63
2016-08-19qcacld-3.0: Add USB bus support (PLD)Mohit Khanna
Add PLD specific changes for USB bus support. CRs-Fixed: 1023663 Change-Id: I030ee8a5e6dd13ed8bd970d80f435219677c4e4b
2016-08-19qcacld-3.0: Provide PLD API for getting IRQ numberYuanyuan Liu
Provide PLD API of getting IRQ number for a given CE ID. Change-Id: Icd293993e84ab4daa98430db231b8b73e082cd29 CRs-Fixed: 1047259
2016-08-05qcacld-3.0: Export APIs for power on/off WLAN hardwareArun Khandavalli
Export APIs to WLAN driver to power on/off WLAN hardware. Change-Id: I3743b8fe333d3a64b01109e3e821ce44443bdafd CRs-Fixed: 1017496
2016-07-14qcacld-3.0: Return correct failure codeYuanyuan Liu
Return correct failure code for pld_register_driver. Change-Id: I2f441db9a817ffce9d278c4672a0f68476c11b5c CRs-Fixed: 1039663
2016-06-14qcacld-3.0: Add PLD layer for SDIO bus(Part 7 - HIF SDIO)Govind Singh
PLD stands for platform driver. It is a interface between CLD and CNSS/ICNSS. It hides the CNSS/ICNSS APIs from CLD and provides a set of common APIs. Other modules should include pld_common.h if they want to call PLD APIs. Change-Id: I7591761d2a2be0e22fcad13a504e9fe5f92b9608 CRs-Fixed: 1015316
2016-06-14qcacld-3.0: Re-organize header file including structureYuanyuan Liu
Include pld_common.h in pld_internal.h as it uses data structures defined in pld_common.h. CRs-Fixed: 1022636 Change-Id: I17f8abfbec08b620be5af677e1599554c5fc7ea6
2016-06-14qcacld-3.0: Provide common functions of adding/deleting dev nodeYuanyuan Liu
Provide common functions of adding/deleting dev node from PLD global context. These two APIs should be called in probe/remove callback functions. CRs-Fixed: 1023650 Change-Id: Iff8157ab4396266ffb013700076d4107a3a21566
2016-06-14qcacld-3.0: Add PCIE/SNOC wrapper functions in PLDYuanyuan Liu
It is not flexible to call CNSS/ICNSS APIs directly in pld_common as PCIE and SDIO share some CNSS APIs. It will introduce "duplicate definition" errors when SDIO is added. Hence, add wrapper functions for all used CNSS/ICNSS APIs. CRs-Fixed: 1022778 Change-Id: I6a38434cfa99fc47543e995dd82b7d8ddc4453a7
2016-06-14qcacld-3.0: Use PLD internal flagsYuanyuan Liu
Use PLD internal flags in PLD layer instead of using CNSS/ICNSS kernel flags. CRs-Fixed: 1018099 Change-Id: Id32c62ccd1749ef5a38fd11aba6ce6e4fbe84a6e
2016-06-09qcacld-3.0: Return error code when any of bus register failedYuanyuan Liu
Return error code when any of bus register functions failed. Change-Id: I3cdc6afaa3899f1c32ab85fec5b89fa2e736d7b8 CRs-Fixed: 1023647
2016-05-23qcacld-3.0: Get FW file names from PLDYuanyuan Liu
Get FW file names from PLD. CRs-Fixed: 1014363 Change-Id: I332cba76a3338eed27d37244bd9351ece99dcd97
2016-05-23qcacld-3.0: Use PLD APIsYuanyuan Liu
Replace CNSS/ICNSS APIs with PLD APIs. Change-Id: Ic0be1ff00dd7b4fc0b125e625f5d3977f4580c5e CRs-Fixed: 1014363
2016-05-06qcacld-3.0: Add PM semaphore related APIs in PLDYuanyuan Liu
Add PM semaphore related APIs in PLD, which is being used in BMI. CRs-Fixed: 1010156 Change-Id: Ief52f7b078ea62cae18508b9e523e2a19f3519b3
2016-05-02qcacld-3.0: Add PLD layerYuanyuan Liu
PLD stands for platform driver. It is a interface between CLD and CNSS/ICNSS. It hides the CNSS/ICNSS APIs from CLD and provides a set of common APIs. Other modules should include pld_common.h if they want to call PLD APIs. CRs-Fixed: 979275 Change-Id: I3571fc70f502dc367c65f13b412cd5d37ee41d3c