Commit Graph

9000 Commits

Author SHA1 Message Date
Paul Zhang
b1f35df0b0 qcacld-3.0: update the adapter->rssi from fw
Currently, sta's adapter.rssi does not reset when disconnect
with the previous ap and for new connection there might be no
valid rssi so it will get 0 when hdd_get_station_statistics_cb
or hdd_get_rssi_cb is invoking. Then it uses the previous ap's
rssi for the new conneciton.

Per the code logic, it is ok to set adapter.rssi with 0 value.
Because it invokes hdd_get_rssi_snr_by_bssid to get the
rssi & snr when issue happens.

Change-Id: I737cfcf16d58501546f2fceab06ed1e5418e7b06
CRs-Fixed: 2199782
2018-04-16 02:15:07 -07:00
nshrivas
47b4b77dc3 Release 5.2.0.73V
Release 5.2.0.73V

Change-Id: I6885556ebb2d3ad1747de27b008ed1cf1513b6f2
CRs-Fixed: 774533
2018-04-15 23:15:20 -07:00
Min Liu
2bfab5b7ff qcacld-3.0: Ignore regulatory notifier from CORE
Since WLAN host driver is regulatory offload design,
regulatory notifier from CORE should always be ignored.

Change-Id: Iaf23bdd1606e84cb309101246088ce6d506aa78b
CRs-Fixed: 2215884
2018-04-15 23:15:19 -07:00
CNSS_WLAN Service
bbae68be7a Merge "Release 5.2.0.73U" into wlan-cld3.driver.lnx.2.0 2018-04-15 16:58:21 -07:00
CNSS_WLAN Service
7a3658671d Merge "qcacld-3.0: Remove obsolete WOWL messaging" into wlan-cld3.driver.lnx.2.0 2018-04-15 16:58:20 -07:00
nshrivas
1b12253c45 Release 5.2.0.73U
Release 5.2.0.73U

Change-Id: I524cc03e35f6cd5c547c10c396d78889265b6490
CRs-Fixed: 774533
2018-04-15 16:36:59 -07:00
Jeff Johnson
9bf3b65da5 qcacld-3.0: Remove obsolete WOWL messaging
The driver contains considerable debris from the obsolete WOWL
messaging, so clean it up.

Change-Id: I432f7fc1567b0aa31a7be758c05f2213340baed0
CRs-Fixed: 2223859
2018-04-15 10:17:50 -07:00
CNSS_WLAN Service
12c237f2ed Merge changes I174a45c1,I0ee93760,I432e85e3,I639d4fb5,I22f41e6b,I1200fa57,I301031a0,I4abd9d26,I4fbd8f9d into wlan-cld3.driver.lnx.2.0
* changes:
  Release 5.2.0.73T
  qcacld-3.0: Compile out WMI non_tlv file from Kbuild
  Release 5.2.0.73S
  qcacld-3.0: Update io smmu mapping to osdev
  Release 5.2.0.73R
  qcacld-3.0: Remove WLAN_AP_STA_CONCURRENCY feature flag
  qcacld-3.0: Kbuild: Define CONFIG_FEATURE_SKB_PRE_ALLOC
  qcacld-3.0: Fix a race btw tx and tx-compl
  Release 5.2.0.73Q
2018-04-15 01:36:21 -07:00
Linux Build Service Account
8ed1641591 Merge "qcacld-3.0: Add support to configure HE LTF" 2018-04-14 21:07:24 -07:00
CNSS_WLAN Service
6220113164 Merge "qcacld-3.0: fix non-linear data TX dma failed issue" into wlan-cld3.driver.lnx.2.0 2018-04-14 18:19:47 -07:00
CNSS_WLAN Service
95faebb096 Merge "qcacld-3.0: Add CFG INI item to control various unit test features" into wlan-cld3.driver.lnx.2.0 2018-04-14 18:19:46 -07:00
CNSS_WLAN Service
d103a0f119 Merge "Release 5.2.0.73P" into wlan-cld3.driver.lnx.2.0 2018-04-14 18:19:44 -07:00
CNSS_WLAN Service
2d033a8ad0 Merge "qcacld-3.0: Fix bss color event validation for false detection" into wlan-cld3.driver.lnx.2.0 2018-04-14 18:19:40 -07:00
nshrivas
9bbda0b216 Release 5.2.0.73T
Release 5.2.0.73T

Change-Id: I174a45c13a4156fda6cded20e8b5e4863650c7f2
CRs-Fixed: 774533
2018-04-14 16:50:40 -07:00
nshrivas
f3fac1b7c4 Release 5.2.0.73S
Release 5.2.0.73S

Change-Id: I432e85e310154b25101a324b6073f087a760302a
CRs-Fixed: 774533
2018-04-14 15:41:54 -07:00
Sravan Kumar Kairam
5a8c4ba2e2 qcacld-3.0: Update io smmu mapping to osdev
Update io smmu mapping to osdev during smmu map set up.

Change-Id: I639d4fb515d66c1bafab4303d97546b013fc2078
CRs-Fixed: 2223185
2018-04-14 15:41:53 -07:00
nshrivas
94a0a991d6 Release 5.2.0.73R
Release 5.2.0.73R

Change-Id: I22f41e6b489abb33cfaba9ac6a65028fdeb4a3a0
CRs-Fixed: 774533
2018-04-14 07:37:34 -07:00
Tushnim Bhattacharyya
7b5b137807 qcacld-3.0: Remove WLAN_AP_STA_CONCURRENCY feature flag
STA+SAP concurrency is a default feature now. Remove
WLAN_AP_STA_CONCURRENCY feature flag.

Change-Id: I1200fa57b27ded67b0a17aa9e43c88926a822034
CRs-Fixed: 2223507
2018-04-14 07:37:33 -07:00
Orhan K AKYILDIZ
15e2d83d23 qcacld-3.0: Fix a race btw tx and tx-compl
While handling a multi-segment TSO packet, there is a race condition
where, if tx complete arrives fast enough, the un-sent TSO segments
may be lost forever and a previously sent segment would be attempted
to be sent over.

Fix the race condition. Dont use the segment after send to go to the
next one.

Change-Id: I4abd9d26f50c749141925894a8845cf82df4d222
CRs-Fixed: 2168778
2018-04-14 07:37:26 -07:00
nshrivas
d9f72f1327 Release 5.2.0.73Q
Release 5.2.0.73Q

Change-Id: I4fbd8f9d3c29c09b6d4a2de60724cd43055d1da0
CRs-Fixed: 774533
2018-04-14 06:14:42 -07:00
Kiran Kumar Lokere
a006a3010f qcacld-3.0: Add support to configure HE LTF
Add support for configuring HE LTF.

Change-Id: Ieabe844729c32c47403a7c94864cb689fa7fb8aa
CRs-Fixed: 2201837
2018-04-14 06:14:41 -07:00
jinweic chen
5104601ba7 qcacld-3.0: fix non-linear data TX dma failed issue
Currently non-linear, non-tso TX data is not handled correctly,
only the non-tso, single linear data is supported. the frag paged
data in skb is missed while packet length for HW access
is entire packet length, HW DMA failed.

temporarily to linearize skb so that non-linear data could be TX
correctly.

Change-Id: Ic0f2b7a0b021ca190c870551a66181f50ae72c65
CRs-Fixed: 2180318
2018-04-14 06:14:38 -07:00
Rajeev Kumar
15b40a23a9 qcacld-3.0: Add CFG INI item to control various unit test features
Suspend/Resume unit test IOCTLs and other unit test features are only
enabled in defconfig debug builds and always disabled in production
builds. Add CFG INI item to disable these test IOCTLs even in defconfig
build such that by default on all build combinations unit test IOCTLs
are always disabled.

Change-Id: I71a63d2b85800b630d7c18eb77a3cffddcd66fbb
CRs-Fixed: 2221874
2018-04-14 06:14:36 -07:00
nshrivas
c31a26d44a Release 5.2.0.73P
Release 5.2.0.73P

Change-Id: I2978ff8bac570d58e3a490817fdbd43cfe6689c3
CRs-Fixed: 774533
2018-04-14 04:53:11 -07:00
Arif Hussain
9e8c561b30 qcacld-3.0: Fix bss color event validation for false detection
Secondary bit map starts with color 32, So current color minus 31
will shift color bit beyond the expected position which is 0th,
Fix it by subtracting with 32 instead 31.

Change-Id: I7ede16faee129c42c71d490f653244398061a8b6
CRs-Fixed: 2222003
2018-04-14 04:53:07 -07:00
Padma, Santhosh Kumar
96086a6d52 qcacld-3.0: Fix use after free in sme_qos_del_ts_req
In sme_qos_del_ts_req, there is a chance that driver can access
del ts req pMsg even after free. In umac_send_mb_message_to_mac
driver frees pMsg if there is some failure. But driver still
tries to access pMsg in sme_qos_del_ts_req even if umac_send_mb_
message_to_mac returns failure.

Access pMsg only if umac_send_mb_message_to_mac returns success
to avoid this use after free issue.

Change-Id: I3638a38746b9cd917e01a7ff6f38430344e6e78d
CRs-Fixed: 2214718
2018-04-13 18:09:55 -07:00
Kabilan Kannan
33fcd68b5b qcacld-3.0: Add magic string for debug enhancement
Add magic string in the driver to automate the
stability analysis.

Change-Id: Id0294dfc46cfb07db61d80faf725bc17ef967de3
CRs-Fixed: 2205177
2018-04-13 18:09:51 -07:00
Pragaspathi Thilagaraj
78474348ae qcacld-3.0: Fix Use after free in wma_del_tdls_sta
The function wma_del_tdls_sta is used to process delete sta
request from UMAC in TDLS. peerStateParams is a pointer to the
structure tTdlsPeerStateParams. The memory allocated for
peerStateParams is freed in the call to the function
wma_update_tdls_peer_state(). When peerStateParams is used to
access vdev_id again after free, then a use after free case will
occur.

Retrieve the vdev_id value from the del_sta structure that is
passed into wma_del_tdls_sta initially.

Change-Id: Iad7edf87058bfc20aadc0e72d474b1c330790512
CRs-Fixed: 2216242
2018-04-13 18:09:48 -07:00
nshrivas
526c75f5f6 Release 5.2.0.73O
Release 5.2.0.73O

Change-Id: I0a9b8cf26f57bd1ca0deb43f897a562171d407ac
CRs-Fixed: 774533
2018-04-13 14:51:20 -07:00
Wu Gao
94488c28fb qcacld-3.0: Remove not used INI CFG
Cleanup not used INI configures. This is part of FR about WNI and INI
CFG.

Change-Id: I374e870610d79cc0d172ae126bfa70dc6d2db9a9
CRs-Fixed: 2206061
2018-04-13 14:51:19 -07:00
Wu Gao
301909c576 qcacld-3.0: Remove not used WNI in cfg.txt
Cleanup not used WNI CFG in cfg.txt. This is part of FR about WNI and
INI CFG.

Change-Id: Ib3e0c6be2c70144db300ebb27d07b23a126fdcd4
CRs-Fixed: 2208165
2018-04-13 14:51:15 -07:00
Wu Gao
8800cb17f1 qcacld-3.0: Remove not used WNI CFG
Cleanup not used WNI configures. This is part of FR about WNI and INI
CFG.

Change-Id: Iee92add09366188ccb5a6f2385d07758221f8d67
CRs-Fixed: 2206059
2018-04-13 14:51:12 -07:00
nshrivas
233dfacd74 Release 5.2.0.73N
Release 5.2.0.73N

Change-Id: I5f7da79d962d627749c48d17be877ed7685ad785
CRs-Fixed: 774533
2018-04-13 12:15:52 -07:00
gaurank kathpalia
63311d11a2 qcacld-3.0: Avoid disconnect timeout in try disconnect
If connection is in progress and new connection req is
received from supplicant, hdd tries to disconnect the
current session and post force disassoc command and wait
for it to get completed. If the current ongoing connect
operation fails and this force disassoc is processed as
sme session is in disconnected state it is silently
dropped and thus there is no event sent to the HDD
to stop the wait for disconnect and HDD wait for 5
sec before returning connect failure.

Fix this by Calling disconnect handler if, disconnect
with force dissoc is called in disconnected state

Change-Id: I3a78308b54fb048fba5a6aed3d8e8b193c371647
CRs-Fixed: 2223313
2018-04-13 12:15:51 -07:00
nshrivas
36e192dc1b Release 5.2.0.73M
Release 5.2.0.73M

Change-Id: I6d725f44003f90b38909f13b4e049231bf531367
CRs-Fixed: 774533
2018-04-13 09:30:28 -07:00
Padma, Santhosh Kumar
c88de4811d qcacld-3.0: Hold wakelock till connection completion
There is a chance that kernel can trigger suspend while
connection in progress. If driver allows this suspend, this can
result in fw panic.

Specific scenario:
If driver allows suspend to go when it waits for probe response,
fw least expects suspend indication as fw is in vdev start state.
This unexpected suspend indication in vdev start state can cause
fw panic.

Hold wakelock till the completion of association to fix this issue.

Change-Id: I168ead2ab1ef4fff1d9af3f3142c82536c3f4798
CRs-Fixed: 2217140
2018-04-13 09:30:27 -07:00
lifeng
fe6c3e2283 qcacld-3.0: Export antenna info to the userspace
qcacld-2.0 to qcacld-3.0 propagation
Discard the original wmi interface:
WMI_PEER_ANTDIV_INFO_REQ_CMDID/PEER_ANTDIV_INFO_EVENTID,
replace with the new one:
WMI_PDEV_DIV_GET_RSSI_ANTID_CMDID/WMI_PDEV_DIV_RSSI_ANTID_EVENTID
to support chain value along with corresponding antenna info.

Change-Id: Ie9ea9d160e1ac1e2e65de422c85989159fb5a556
CRs-Fixed: 2005820
2018-04-13 09:30:22 -07:00
nshrivas
fbaa02c909 Release 5.2.0.73L
Release 5.2.0.73L

Change-Id: I44b6d503da6d8ebae90a987f674ccf87e992525d
CRs-Fixed: 774533
2018-04-11 22:25:13 -07:00
wadesong
8abb30d292 qcacld-3.0: Add support for SIFS burst enabling through iwpriv
When CLD3.2 driver is setting pdev burst mode to FW, 3
possible values are supported:

	0: disabled
	1: enabled for legacy burst
	3: enabled for SIFS burst

but the iwpriv command handling code only supports setting
0 or 1 to FW.

Add value checking for WE_SET_BURST_ENABLE to support setting
3 to FW.

Change-Id: I35506b83d584f6e8d066adfc43df8dd03ce54661
CRs-Fixed: 2214992
2018-04-11 22:25:13 -07:00
nshrivas
2311524096 Release 5.2.0.73K
Release 5.2.0.73K

Change-Id: If8302bb9ebfa3a43f74fc142e9ceac2f3b025087
CRs-Fixed: 774533
2018-04-11 10:52:37 -07:00
jiad
b0419bf348 qcacld-3.0: Fix missing-prototype build error
When CONFIG_MOBILE_ROUTER feature is enabled, FEATURE_WLAN_TDLS is
turned off. As a result, compiler complains no prototype for
lim_disassoc_tdls_peers error.

Fix is to define lim_disassoc_tdls_peers as static inline when
FEATURE_WLAN_TDLS is not defined.

Change-Id: Idad1f7d2e27853307750fcc7ffbe7ab1e3504c3b
CRs-Fixed: 2215100
2018-04-11 10:52:37 -07:00
nshrivas
a814ea040b Release 5.2.0.73J
Release 5.2.0.73J

Change-Id: I714f4f4a94be2614b0e3f468353f452350fe840a
CRs-Fixed: 774533
2018-04-11 09:15:04 -07:00
Padma, Santhosh Kumar
a5eaeb8686 qcacld-3.0: Enable SAE and GCMP by default
Add changes to enable SAE/GCMP by default.

Change-Id: I4d7597e019379429916e9684fa1126fda3c97e41
CRs-Fixed: 2217451
2018-04-11 09:15:03 -07:00
nshrivas
e12087d89e Release 5.2.0.73I
Release 5.2.0.73I

Change-Id: I3bc170fc6e1608ea4bff17f0d93d5488cc6804ee
CRs-Fixed: 774533
2018-04-11 03:38:08 -07:00
Jeff Johnson
20f84ba9bc qcacld-3.0: Remove obsolete HAL_SELF_STA_PER_BSS condition
Currently Kbuild unconditionally sets -DHAL_SELF_STA_PER_BSS=1. There
is only one place where this macro is referenced, and it actually
requires that the macro be set for the driver to work. Since this
logic isn't really conditional, remove the conditional compilation.

Change-Id: I09a03339df086146b81b3012fb281e166fccd5da
CRs-Fixed: 2221852
2018-04-11 03:37:57 -07:00
Jeff Johnson
78772177b6 qcacld-3.0: Remove obsolete WLANTL_DEBUG code
Macro WLANTL_DEBUG is currently used to define some SAP debug
counters, but these counters are unused, so remove this obsolete code.

Change-Id: Ie7d976efcb5fb335b3f60a5af48a70dd214b3bd0
CRs-Fixed: 2220915
2018-04-11 03:37:24 -07:00
Jeff Johnson
a3005a1c1a qcacld-3.0: Remove obsolete ANI_COMPILER_TYPE macros
Currently a set of ANI_COMPILER_TYPE macros are checked against, but
other than that they serve no purpose. As part of ongoing Kbuild
cleanup remove these obsolete macros.

Change-Id: Ia112d7d5ae8d12eae46144b53addc8ad54393bba
CRs-Fixed: 2220285
2018-04-11 03:37:13 -07:00
nshrivas
9c0e778409 Release 5.2.0.73H
Release 5.2.0.73H

Change-Id: I09fc35d1804c12e544cda4ed38808cecd175bfd1
CRs-Fixed: 774533
2018-04-10 08:52:41 -07:00
Pragaspathi Thilagaraj
e8f5b1d4bc qcacld-3.0: Fix OOB write in wma_extscan_change_results_event_handler
The routine wma_extscan_change_results_event_handler sends the ext scan
results to upper layers. This contains the bssid info, rssi values of
different APs that are scanner. If the num_rssi_samples is negative or
greater than UINT32_MAX,then an OOB write could happen.

Add check to ensure rssi_num is not negative or exceeds UINT32_MAX.
Also make sure the numap value is not negative.

Change-Id: If82c4fd1193c45d38bd4495c187a406deb25acad
CRs-Fixed: 2205957
2018-04-10 08:52:40 -07:00
jitiphil
fb410619e0 qcacld-3.0: Reset txrx connectivity stats after SSR
After SSR, FW clear its txrx connectivity stats.
In host, as adapter is intact, host connectivity
stats counts are still available. Now if the set
stats command is used again, then host increments
its counts start from its last saved value, i.e.,
count before SSR, and FW increments its count from 0.
This sends a mismatch of packet counts b/w
host and FW to framework that creates ambiquity.

To address the issue, reset the host counts so that after SSR
both FW and host start increment their counts from 0.

Change-Id: I11f849d6f00abe11f3bb8947cc81e47a3bc004fa
CRs-Fixed: 2202890
2018-04-10 08:52:37 -07:00