Commit Graph

1320 Commits

Author SHA1 Message Date
Venkateswara Swamy Bandaru
2aa2c6913e qcacmn: regtable population of QCA8074
Added qca8074def.c that holds the register
table entries for qca8074.

Change-Id: I40b170722c2177cf5f53b5728cfae3730eeb8500
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1042915
2016-09-20 20:25:39 +05:30
Venkateswara Swamy Bandaru
e20c6dceda qcacmn: Fix AHB & disable soc-sleep durring driver load
Instead of checking target type, check bus type for skipping soc-sleep
durring driver load code.  Also enhance comments to explain why
hif_pci_target_sleep_state_adjust is called instead of
hif_target_sleep_state_adjust for the disable soc-sleep
durring driver load feature

Change-Id: I891e1b1782b46b32c1718e2c539215282e090bad
2016-09-20 20:25:20 +05:30
Venkateswara Swamy Bandaru
13164aac76 qcacmn: Make host_ce_config and target_ce_config per radio
Moving global variables host_ce_config and target_ce_config to
per radio structure.

Change-Id: Iaaee722af16812e06aae068f0fa0092cf5c8f78a
CRs-Fixed: 1042915
2016-09-20 20:24:54 +05:30
Venkateswara Swamy Bandaru
c5de4d9fd7 qcacmn: Cleanup target reg table
Remove unused fields in target reg table.

Change-Id: Ic183f7a27ffd5d4542dfe1c3eccb11825539c70f
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1042915
2016-09-20 20:23:50 +05:30
qcabuildsw
127461b4e7 Release 5.1.1.1D
Release 5.1.1.1D

Change-Id: Idefe3c78d1e9864d66f86abe00e947580483ff0d
CRs-Fixed: 688141
2016-09-19 01:20:36 -07:00
Pratik Gandhi
424c62e877 qcacmn: Address compilation issues for WIN new fw headers
Address compilation issues for WIN with new Lithium Firmware headers.
Also removed dependency on htt.h from header files, which may need to
add explicit dependency on htt.h in .c files.

Change-Id: Ia5027963837e645bc3f81a3db98c2ea06789aea8
CRs-Fixed: 1061096
2016-09-19 01:19:28 -07:00
qcabuildsw
483484f03a Release 5.1.1.1C
Release 5.1.1.1C

Change-Id: Ibf7c20d6a234417ee0f8ed5cc985d859b5666000
CRs-Fixed: 688141
2016-09-16 05:50:16 -07:00
Himanshu Agarwal
cf0b41853f qcacmn: Add support to get per chain rssi stats
Propagation from qcacld-2.0 to qcacmn.

Add support to get per chain rssi from fw through the
already existing WMI command WMI_REQUEST_STATS_CMDID
and then store it in the station_info structure defined
by cfg80211.

Change-Id: Id50c96dd322b5ca4db34cf2df901730d8b103251
CRs-Fixed: 1005367
2016-09-16 05:50:15 -07:00
qcabuildsw
6debe6553a Release 5.1.1.1B
Release 5.1.1.1B

Change-Id: I5ef77b1a2f901b1b814cf9465f42696f76cdc230
CRs-Fixed: 688141
2016-09-16 02:54:56 -07:00
Himanshu Agarwal
87f80ed6d0 qcacmn: CL 1641391 – update fw common interface files
Propagation from qcacld-2.0 to qcacmn.

WMI modification for DISA feature

Change-Id: I57441642986ecfb6d3ee42d602810f6b22f83c46
CRs-Fixed: 865207
2016-09-14 20:43:24 +05:30
Manjeet Singh
99f7d6ef03 qcacmn: CL 1614559 - update fw common interface files
qcacld-2.0 to qcacmn propagation.

Add support for WLAN counters and stats

Change-Id: I5601a9207529060c6c97e70f067c8e43ca45488a
CRs-fixed: 865207
2016-09-14 19:45:22 +05:30
Manjeet Singh
9347f94f95 qcacmn: CL 1613065 - update fw common interface files
qcacld-2.0 to qcacmn propagation.

Add WMI types and macros definitions for antenna isolation detect

Change-Id: I69b715c224d30b40e37d4a6a6e780b1980b490e0
CRs-fixed: 865207
2016-09-14 19:45:10 +05:30
qcabuildsw
77627801b1 Release 5.1.1.1A
Release 5.1.1.1A

CRs-Fixed: 688141
2016-09-12 19:29:16 -07:00
qcabuildsw
24bee7a4c0 Release 5.1.0.23S
Release 5.1.0.23S

CRs-Fixed: 688141
2016-09-12 19:26:51 -07:00
Manjunathappa Prakash
21196d2578 qcacmn: Fix multi queue NAPI build errors
Fix build errors on the platform where multi queue NAPI is
not supported.

Change-Id: Id9916cff11f9337f279f9aed6dfe35e7a6beb1ed
CRs-Fixed: 1066020
2016-09-12 19:26:37 -07:00
Orhan K AKYILDIZ
7ce54e770f qcacmn: add multi-queue NAPI
Add CPU cluster management functionality. On low throughput,
the system works as normal. On high throughput, the driver gets
control of WLAN datapath interrupts and disperses them on different
CPUs and pegs them to maximize performance. Add init code, topology
table construction and hotplugin notifiers.

Change-Id: I247edb57003797ed6a04f70d15067072e22c2396
CRs-Fixed: 1065477
2016-09-12 18:02:29 -07:00
Mohit Khanna
2235081d87 qcacmn: Maintain length for each TSO segment
In current codeflow, we are maintaining the length of the TSO segments
belonging to one jumbo packet inside tso_info, which is common for
all the segments of one jumbo packet. This works if the length of
the segments (frag[1]) is the same. In case it is not, it ends up
assigning incorrect length to all the segments. This is resulting
GMS login failure.
Fix issue by maintaining the total length of the segment in the
qdf_tso_seg_t structure.
Re-factor code for easy readability
Add TSO_DEBUG prints which can be enabled (compile time) to debug
TSO issues

Change-Id: Ifb5a0f1493224c66c3acc394e47a74b2dd84bbc9
CRs-Fixed: 1062556
2016-09-12 18:02:29 -07:00
qcabuildsw
d8dca2d3ba Release 5.1.0.23R
Release 5.1.0.23R

Change-Id: I3583e3eece05ef1a490debf0c899ab897200ba7d
CRs-Fixed: 688141
2016-09-12 18:02:29 -07:00
Houston Hoffman
fd52ffbe33 qcacmn: Track size of qdf_mem_list
Decrement qdf_mem_list.count when removing elements to avoid
assert when destroying the list.

Change-Id: I0d0989f3a9009184b898b8b27517e6d12fa3dc97
CRs-Fixed: 1063093
2016-09-12 18:02:28 -07:00
qcabuildsw
c10a0f60ef Release 5.1.0.23Q
Release 5.1.0.23Q

Change-Id: I21e9fa67bdd57d8a57b9bfe1050fc4427001d4c4
CRs-Fixed: 688141
2016-09-12 18:02:28 -07:00
Naveen Rawat
24eb14ce29 qcacmn: Send HT/VHT CAPs IE to firmware per band
Send HT/VHT CAPs IE to firmware per band. This will allow certain
features like LDPC to be configured per band.

Change-Id: I21c83af984f9be3ade46121ef148b52568c3ad0f
CRs-Fixed: 1059454
2016-09-12 18:02:28 -07:00
qcabuildsw
c6388debfd Release 5.1.0.23P
Release 5.1.0.23P

Change-Id: If85477ede7cc53c9e4c52de0a0431e70cb4c9510
CRs-Fixed: 688141
2016-09-12 18:02:28 -07:00
Himanshu Agarwal
df9ac5731e qcacmn: Add NULL check for HIF device before dereferencing
Propagation from qcacld-2.0 to qcacmn.

Add NULL check for HIF device structure in hif_enable_func before
dereferencing it.

Change-Id: I535d5138c2247b4b9acdf63211f30a57a1d3116f
CRs-Fixed: 1055684
2016-09-12 18:02:27 -07:00
Himanshu Agarwal
8d0cdea5b4 qcacmn: Add sanity check to avoid NULL pointer dereference
Propagation from qcacld-2.0 to qcacmn.

Add sanity check to avoid NULL pointer dereferencing of tx
completion handler callback in hif_send_buffer_cleanup_on_pipe.

Change-Id: If38b4b7cdd1154d8272e5150c6653f90df8f4b5e
CRs-Fixed: 1057490
2016-09-12 18:02:27 -07:00
qcabuildsw
af9db8b8f7 Release 5.1.0.23O
Release 5.1.0.23O

Change-Id: I8acaec24647ad96d956398019c8179bc7dc9cc1d
CRs-Fixed: 688141
2016-09-08 18:22:29 -07:00
Anurag Chouhan
61d118eb9b qcacmn: Remove ani_global.h from qca-cmn
Currently ani_global.h is included in qca-cmn,
This change removes ani_global.h and there are
corresponding changes in Driver

Change-Id: I4c1cf70e8eb1f4391a25783a560c02a43c483054
CRs-Fixed: 1012452
2016-09-08 18:22:28 -07:00
qcabuildsw
87b90e5d12 Release 5.1.0.23N
Release 5.1.0.23N

Change-Id: I748590bc98215bf96e5f8856e1c1d3c233ae0110
CRs-Fixed: 688141
2016-09-08 18:22:28 -07:00
Houston Hoffman
c1064a8fd8 qcacmn: Move ADRASTEA_BU inside pci code
Prepare to make ADRASTEA_BU true only for emulation
builds.

Change-Id: Iaeea8d8b1431f5eb670adc43e6fd54d5446bbc0f
CRs-Fixed: 1049433
2016-09-08 18:22:28 -07:00
qcabuildsw
82ef9d23ee Release 5.1.0.23M
Release 5.1.0.23M

Change-Id: I0c201f846528581d1e23d97d9600faa99c37243f
CRs-Fixed: 688141
2016-09-08 18:22:28 -07:00
Selvaraj, Sridhar
83ac1bd294 qcacmn: Add support to provide default scan IE's to FW
As part of MBO(MultiBand Operations), host driver need to supply
the default scan IEs to firmware at wifi init time using existing
VDEV SET IE command. FW uses these Scan IE's in subsequent scans
.i.e. FW initiated Probe Requests.

This Fix updates the vdev_ie_info_param struct with ie_source.
ie_source will be set with zero for VDEV SET IE commands from
host driver

Change-Id: Ie2e87da8aa94b76aef431e25d9974b8fed63eba9
CRs-Fixed: 1039969
2016-09-08 18:22:27 -07:00
Abhishek Singh
53b478ce4e qcacmn: Fix mismatch in mem alloc and mem free API
qcacld-2.0 to qcacmn propagation

In some cases wmi_buf_alloc is used to allocate memory, while
adf_os_mem_free(vos_mem_free) is used to free the memory.
vos_mem_free checks if memory is present in vosMemList to detect
double free.

Now as wmi_buf_alloc doesnot add the allocated memory to
vosMemList, vos_mem_free assume it to be double free case and cause
kernel panic.

Use proper corresponding API to free memory

Change-Id: I3602887d2bfdb407e5805aedd7a97a57440a4567
CRs-Fixed: 1004079
2016-09-08 18:22:27 -07:00
qcabuildsw
0515323392 Release 5.1.0.23L
Release 5.1.0.23L

Change-Id: I5a4d0862e43654c85b3c86eb7277a7b1340aae89
CRs-Fixed: 688141
2016-09-08 18:22:27 -07:00
Houston Hoffman
4989bafb07 qcacmn: Check nbytes before posting in SLUB
Check for valid nbytes values before posting descriptors
to copy engines when sending messages to FW in slub builds.

Change-Id: I6996aa5dc607be60c2434f04cd6b3249bc7df415
CRs-Fixed: 1060096
2016-09-08 18:22:26 -07:00
Vishwajith Upendra
e1257fb4b4 qcacmn: Merge remote-tracking branch 'origin/wlan-cmn.driver.lnx.1.0-dev' into wlan-cmn.driver.lnx.2.0-dev
Fast-forwarding wlan-cmn.driver.lnx.2.0-dev to the tip of wlan-cmn.driver.lnx.1.0-dev which has driver version 5.1.0.23K

* origin/wlan-cmn.driver.lnx.1.0-dev:
  Release 5.1.0.23K
  qcacmn: Add APIs to get lower 32 and upper 32 bits
  Release 5.1.0.23J
  qcacmn: Fix index recording for FAST_TX_SOFTWARE_INDEX_UPDATE
  qcacmn: Double CE2 resources on host and firmware
  Release 5.1.0.23I
  qcacmn: Modify LFR3 firmware OKC flag
  Release 5.1.0.23H
  qcacmn: Add fwtest interface
  Release 5.1.0.23G
  qcacmn: Added a member in qca_napi_info structure
  Release 5.1.0.23F
  qcacmn: fake apps ensures correct ce_id before resume
  Release 5.1.0.23E
  qcacmn: Support for wifidown and wifiup without modules removal
  Release 5.1.0.23D
2016-09-08 17:08:05 -07:00
Service qcabuildsw
d3724937c3 Merge changes Ifa659ac4,I28379233 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23K
  qcacmn: Add APIs to get lower 32 and upper 32 bits
2016-09-07 21:12:27 -07:00
Service qcabuildsw
b6087e0421 Merge changes Ie13f66eb,I1f208429 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23J
  qcacmn: Fix index recording for FAST_TX_SOFTWARE_INDEX_UPDATE
2016-09-07 21:12:13 -07:00
Service qcabuildsw
ffe91c5c0f Merge "qcacmn: Double CE2 resources on host and firmware" into wlan-cmn.driver.lnx.1.0-dev 2016-09-07 21:12:10 -07:00
Service qcabuildsw
9f9bbd982c Merge changes I34cc7916,I19ad7ea2 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23I
  qcacmn: Modify LFR3 firmware OKC flag
2016-09-07 21:11:42 -07:00
Service qcabuildsw
c99a83ee84 Merge changes Ica6da5c6,Ic2dc113e,I45a132e8,Idcb07751 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23H
  qcacmn: Add fwtest interface
  Release 5.1.0.23G
  qcacmn: Added a member in qca_napi_info structure
2016-09-07 21:09:52 -07:00
Service qcabuildsw
d479aa85ed Merge changes I77bd699c,I810c59bb into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23F
  qcacmn: fake apps ensures correct ce_id before resume
2016-09-07 21:09:40 -07:00
Service qcabuildsw
29705b8fa9 Merge changes I6cb56ab1,Icc88647d into wlan-cmn.driver.lnx.1.0-dev
* changes:
  Release 5.1.0.23E
  qcacmn: Support for wifidown and wifiup without modules removal
2016-09-07 21:09:32 -07:00
qcabuildsw
fa599b22ec Merge "Release 5.1.0.23D" into wlan-cmn.driver.lnx.1.0-dev 2016-09-07 20:17:44 -07:00
Vishwajith Upendra
20114535de qcacmn: Merge remote-tracking branch 'origin/wlan-cmn.driver.lnx.1.0-dev' into wlan-cmn.driver.lnx.2.0-dev
* origin/wlan-cmn.driver.lnx.1.0-dev:
  qcacmn: Use suspend_noirq callback instead of disabling irqs
  Release 5.1.0.23C
  qcacmn: Implement QDF API to get queue mapping and total ram size
  qcacmn: Fixing incorrect qdf_mem_set API usage in wmi_unified_non_tlv.c
  qcacmn: Fix for kernel panic in wifi down path for peregrine
  Release 5.1.0.23B
  qcacmn: Free WMI HB command buffer in case of errors
  Release 5.1.0.23A
  qcacmn: Add WMI API for setting bandwidth fairness
  Release 5.1.0.23
  qcacmn: unmap buffer for CE destination ring en-queue error
  Release 5.1.0.22Z
  qcacmn: Add WCN3990 to hw names
  qcacmn: Add htc_pm_runtime put/get apis
  Release 5.1.0.22Y
  qcacmn: Fix compilation errors in WMI for Big Endian platform
  Release 5.1.0.22X
  qcacmn: Fail PM suspend if target has sent initial wake up
2016-09-07 16:04:52 -07:00
Service qcabuildsw
b1880153b8 Merge changes I5ec5ce2a,If129b9c7,I86daffeb,Id50136f6,Id187b8e6,I22928dea,I15577c50,Ib952643a,Ib9984c43,Ic44825f4,If23398b0,I206d3008 into wlan-cmn.driver.lnx.1.0-dev
* changes:
  qcacmn: Use suspend_noirq callback instead of disabling irqs
  Release 5.1.0.23C
  qcacmn: Implement QDF API to get queue mapping and total ram size
  qcacmn: Fixing incorrect qdf_mem_set API usage in wmi_unified_non_tlv.c
  qcacmn: Fix for kernel panic in wifi down path for peregrine
  Release 5.1.0.23B
  qcacmn: Free WMI HB command buffer in case of errors
  Release 5.1.0.23A
  qcacmn: Add WMI API for setting bandwidth fairness
  Release 5.1.0.23
  qcacmn: unmap buffer for CE destination ring en-queue error
  Release 5.1.0.22Z
2016-09-06 16:58:08 -07:00
Service qcabuildsw
0808aa8431 Merge "qcacmn: Add WCN3990 to hw names" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 16:58:05 -07:00
Service qcabuildsw
977a611a65 Merge "qcacmn: Add htc_pm_runtime put/get apis" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 16:58:02 -07:00
qcabuildsw
4df6c85411 Merge "Release 5.1.0.22Y" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 16:57:10 -07:00
Service qcabuildsw
838f6529c1 Merge "qcacmn: Fix compilation errors in WMI for Big Endian platform" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 13:43:58 -07:00
qcabuildsw
89072beafe Merge "Release 5.1.0.22X" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 13:40:55 -07:00
Service qcabuildsw
0dbf4ff24c Merge "qcacmn: Fail PM suspend if target has sent initial wake up" into wlan-cmn.driver.lnx.1.0-dev 2016-09-06 13:40:51 -07:00