summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wcnss (follow)
Commit message (Collapse)AuthorAge
* fixup! BACKPORT: treewide: Fix function prototypes for module_param_call()Nolen Johnson2022-11-01
| | | | Change-Id: Id4056255732a1865e4b97a443ba936a51954e407
* wcnss: Read multiple SMD Packet from SMD ChannelSandeep Singh2019-07-10
| | | | | | | | | | It observe that sometime, there are multiple SMD packets in SMD channel. In current scenario, driver reading one packet at single event. Reading all SMD packets to avoid any packets miss. Change-Id: Id7ef388af6200891b17bbe1456cc2fffa580a3d3 Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
* wcnss: fix integer underflow in wcnss_wlanSandeep Singh2018-10-09
| | | | | | | | | | | Fix integer underflow which may eventually results in an buffer overread in wcnss_nvbin_dnld when the firmware file size is less than 4 Byte. Add a check on file size before performing arithmetic operation which avoids buffer underflow. CRs-Fixed: 2279226 Change-Id: Ia7fdb859e8c999f8a2e81c957c7cab35ef312844 Signed-off-by: Sandeep Singh <sandsing@codeaurora.org>
* wcnss: update the regulator parsing and config methodSarada Prasanna Garnayak2018-04-03
| | | | | | | | | Use the resource managed regulator API for the wcnss regulator parsing and configuration. CRs-Fixed: 2214888 Change-Id: Ib376893c26bb9aa797e7e9df25cc7302a84a3726 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: fix the wcnss power up sequence after ssrSarada Prasanna Garnayak2018-04-03
| | | | | | | | | | Update the voltage regulator enable/disable status during proxy vote and unvote request by wcnss wlan module. CRs-Fixed: 2211050 Change-Id: I334df98612b0915fe00d5390fbcd37c95e9f6509 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: fix the potential buffer overflow in wlan ctrl data processSarada Prasanna Garnayak2017-12-05
| | | | | | | | | | | | Validate the userspace wlan control cmd data, info and length before copy into wcnss driver buffer. Avoid unnecessary string manipulation and use kernel defined format specifier to print wlan MAC address. CRs-Fixed: 2149331 Change-Id: Ib59fdcc0e6b84cdd73972dcb62b2c05e4741f5f7 Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org> Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* Merge "wcnss: modularize wcnss power up sequence and debug logs"Linux Build Service Account2017-08-21
|\
| * wcnss: modularize wcnss power up sequence and debug logsSarada Prasanna Garnayak2017-08-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modularize the wcnss power up sequence like wcnss voltage regulator enable/disable sequence and voltage regulator current and voltage level parsing method. Remove hack code from the power wcnss power process and enable/disable the power resource if it's defined in the wcnss device node. Update the debug logs to track the exact state of the power state during device bootup. Remove the unnecessary logging for the optional resource request fails during device bootup. CRs-Fixed: 2086414 Change-Id: I30b1e2196eb9d1c933275f3db34ca0ff5664ea3b Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* | wcnss: update MAC address generate logic from the serial numberSarada Prasanna Garnayak2017-08-18
|/ | | | | | | | | | | | The WLAN host driver use device serial number to generate MAC address. The wcnss platform driver export symbol for WLAN host driver to read the device serial number to generate the MAC address. Add updated SOC API to get the device serial number in the wcnss platform driver. CRs-Fixed: 2089225 Change-Id: Ic540f2e6e705131f18b59e8f139087d5d99024f6 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: remove the wcn external gpio configuration supportSarada Prasanna Garnayak2017-08-02
| | | | | | | | | | The wcn external gpio configuration has moved to WLAN firmware code. To avoid the gpio resource request conflict and power offload failure between wcnss platform driver and WLAN firmware. Remove external gpio configuration from the wcnss platform driver. Change-Id: Iaef979437d9e48d66a5e9e2fc88bc5783fed7480 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: Update the wcnss wlan module power up sequenceSarada Prasanna Garnayak2017-08-02
| | | | | | | | | | | | | | | The wcnss wlan module power up sequence has been changed. To add support for the wcnss new power up sequence configured 3.3v external GPIO in wcnss platform driver. Add check for the target to support the 3.3v external gpio for the wcnss power up and routine to control the gpio like gpio init, enable, disable for the device power management in different state of the wcnss wlan device. CRs-Fixed: 2065396 Change-Id: Ie6b79415b670522aa0abee58a23a31cffec76f5a Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: Add support to read wifi dual band capabilitySarada Prasanna Garnayak2017-08-02
| | | | | | | | | | | | | | The WLAN dual band support vary from target to target and to enable/disable dual band support for a particular target the wcnss platform driver read the wlan hardware qfuse register and export the dual band capability info to wlan host driver to enable/disable this dual band feature. Add export symbol for dual band capability info. CRs-Fixed: 1115909 Change-Id: I7dc26435e3ac0ac1eec71f0e334878b35e25224d Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: Add support to enable and disable wcnss snoc clockSarada Prasanna Garnayak2017-08-02
| | | | | | | | | | | | | It is a hardware requirement to increase snoc clock frequency in HID sniff mode due to low wlan throughput. To provide this, add support to enable and disable snoc clock. Update the voltage regulator configuration API as per upstream kernel. CRs-Fixed: 1101377 Change-Id: I1130353bf861ca31792c40ef51243497788ed56d Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: fix the potential buffer flow issue in firmware setupSarada Prasanna Garnayak2017-07-24
| | | | | | | | | | | | Add the check against negative or invalid firmware size passed by the userspace thread in firmware setup sysfs write operation. Update the datatype of the variable which holds the firmware size passed by userspace thread during firmware setup and WLAN calibration data update process. CRs-Fixed: 2072966 Change-Id: I8c84ad0d1b0a5f44a39c9c5b228734b0f693e8dd Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* Merge "wcnss: fix the race condition issue during cal data extraction"Linux Build Service Account2017-04-25
|\
| * wcnss: fix the race condition issue during cal data extractionSarada Prasanna Garnayak2017-04-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wcnss platform driver update the wlan calibration data by the user space wlan daemon. The wlan user space daemon store the updated wlan calibration data reported by wlan firmware in user space and write it back to the wcnss platform calibration data buffer for the calibration data download and update. During the wlan calibration data extraction there are some potential race condition which leads to memory leak and buffer overflow during the context switch. Fix the above issue by adding protection code. CRs-Fixed: 2015791 Change-Id: I231807f6b2d8094d7138b95c659ed6272897ba2d Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* | wcnss: fix the potential memory leak and heap overflowSarada Prasanna Garnayak2017-04-20
|/ | | | | | | | | | | | | | | | | | | The wcnss platform driver update the wlan calibration data by the user space wlan daemon. The wlan user space daemon store the updated wlan calibration data reported by wlan firmware in user space and write it back to the wcnss platform calibration data buffer for the calibration data download and update. During the wlan calibration data store and retrieve operation there are some potential race condition which leads to memory leak and buffer overflow during the context switch. Fix the above issue by adding protection code and avoid usage of global pointer during the device file read and write operation. CRs-Fixed: 2015858 Change-Id: Ib5b57eb86dcb4e6ed799b5222d06396eaabfaad3 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: fix the buffer overflow in MAC address store sysfsSarada Prasanna Garnayak2017-04-18
| | | | | | | | | | | | | Invalid typecast in MAC address store sysfs entry method causing device crash due to the buffer overflow. To fix the above issue check the length of the userspace MAC address before write. Update the datatype and parsing method to store the userspace MAC address. CRs-Fixed: 2034549 Change-Id: I0d4709c5b623c8333a99991c042552df1e7da923 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: Avoid user buffer overloading for write cal dataAnand Kumar2016-07-20
| | | | | | | | | | compare size of allocated cal data buffer from heap and count bytes provided to write by user to avoid heap overflow for write cal data. Change-Id: Id70c3230f761385489e5e94c613f4519239dfb1f CRs-Fixed: 1032174 Signed-off-by: Anand Kumar <anandkumar@codeaurora.org>
* wcnss: Access boot remap address registerSunkad, Anand Ningappa2016-03-25
| | | | | | | | | Dump boot remap address register for having more debug information about boot remap address for pronto. CRs-Fixed: 989321 Change-Id: I072718da718cc2553d0234af327662958e1758b9 Signed-off-by: Sunkad, Anand Ningappa <asunka@codeaurora.org>
* wcnss: Access A2xb split timeout limit registerSunkad, Anand Ningappa2016-03-23
| | | | | | | | | | Dump A2xb split timeout limit register, while dumping pronto register dumps during pronto subsystem restart. To check a2xb split time out value configured. CRs-fixed: 975027 Change-Id: I1480d23b14f26dad59a552293e38bad9916ef0e4 Signed-off-by: Sunkad, Anand Ningappa <asunka@codeaurora.org>
* wcnss: Remove dump of SAW2 registersSunkad, Anand Ningappa2016-03-23
| | | | | | | | | Remove dump of SAW2 registers in case of wcnss abort to avoid kernel panic. CRs-Fixed: 967730 Change-Id: I08f9ca6268575b2d6d1e266353a98714fbeeee10 Signed-off-by: Sunkad, Anand Ningappa <asunka@codeaurora.org>
* net: wireless: decouple cnss crypto from cnss memory pre-allocSarada Prasanna Garnayak2016-03-23
| | | | | | | | | | | | | | | The cnss crypto add support for wlan host driver for security Protocol and cipher key generation where cnss memory pre-alloc feature enable wlan driver to use pre allocated memory for its internal usage and release it to back to pre-allocated pool. Decouple cnss crypto from cnss memory pre-alloc and add kernel config flag for this crypto module compilation and update the defocnfig of required targets. CRs-Fixed: 949992 Change-Id: If34819fd76076ba522a9a42ac41fdae1f541f5c8 Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
* wcnss: Expose dump stack functionalityPadma, Santhosh Kumar2016-03-23
| | | | | | | | | Add changes to expose dump stack functionality which can be used by driver to dump stack information when it requires. CRs-Fixed: 943322 Change-Id: I0fde7142dea2c18daf6b1fb0c5ee4bb8a31a6be0 Signed-off-by: Padma, Santhosh Kumar <skpadma@codeaurora.org>
* net: wcnss: Add snapshot of wcnss driverYue Ma2016-03-22
This is a snapshot of the wcnss driver and associated files as of msm-3.18 commit: e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1 (Promotion of kernel.lnx. 3.18-151201.) Signed-off-by: Yue Ma <yuem@codeaurora.org>