Commit Graph

9204 Commits

Author SHA1 Message Date
Liangwei Dong
8193551a89 qcacld-3.0: Fix get WLM setting failed
Add WLM setting to "csr_get_config_param"
to avoid the setting lost when set back by
csr_change_default_config_param.

Change-Id: I539a4a87f55365c701a7149784e92c60fb6c5383
CRs-Fixed: 2223340
2018-04-16 08:48:00 -07:00
nshrivas
d13634a800 Release 5.2.0.73X
Release 5.2.0.73X

Change-Id: I7b8ed8d223453bbcff4fd4932c72def9556c317e
CRs-Fixed: 774533
2018-04-16 05:50:20 -07:00
Pragaspathi Thilagaraj
71596f796d Revert "qcacld-3.0: Fix OOB write in wma_unified_debug_print_event_handler"
The change for the CR 2211133 caused compilation issue in LE
branches. This reverts commit with
change Id-I45943ae76d8fcf7b53e1f064c462d01cd6d00dcf

Change-Id: I069f1a4ae8ad320f5a073ee072dd772e05c5fc5d
CRs-Fixed: 2222536
2018-04-16 05:50:19 -07:00
nshrivas
fd91a0df0f Release 5.2.0.73W
Release 5.2.0.73W

Change-Id: I3f0b111ef6a33563cc337f70f96e440792725526
CRs-Fixed: 774533
2018-04-16 02:15:08 -07:00
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
Alok Kumar
ddd457e4a3 qcacld-3.0: Fix usage of PDEV pointer after free
Currently pdev pointer is freed prematurely in ol_txrx_pdev_pre_detach
but the same pointer is used when ol_txrx_pdev_detach is called. This
may lead to invalid pointer dereference issue.

To fix this issue, free pdev pointer in ol_txrx_pdev_detach after
ol_txrx_pdev_pre_detach is called.

Change-Id: I089d70842b90b568ee8a38c6ed56f5418df7303d
CRs-Fixed: 2207417
2018-04-10 08:52:35 -07:00
nshrivas
2e38c8cb24 Release 5.2.0.73G
Release 5.2.0.73G

Change-Id: I5520b348bc66e7fdf4d57f9c484b92c2769ceed5
CRs-Fixed: 774533
2018-04-09 21:33:47 -07:00
lihual
8b9daf255c qcacld-3.0: Init local variable cnss_info before using it
Initialize cnss_info in pld_pcie_get_soc_info()
before using it.

CRs-Fixed: 2205420
Change-Id: I4b34fc64ca50c031faa79fd1e272bae24cc0f766
2018-04-09 21:33:47 -07:00
nshrivas
a581a56a53 Release 5.2.0.73F
Release 5.2.0.73F

Change-Id: Ib69c032f97e40249d8a22edd440582c4f5afbf38
CRs-Fixed: 774533
2018-04-09 06:20:21 -07:00
Abhinav Kumar
3ef787b1ec qcacld-3.0: Fix to pass appropriate buffer length to unpack WPA IE
In lim_set_rs_nie_wp_aiefrom_sme_start_bss_req_message, length passed
to unpack WPA IE is length of WPA IE + 2 bytes extra
(rsn_ie->rsnIEdata[1] + 2) - 4. So in case of only WPA IE is present
in assoc request, the WPA IE parser will try to validate the buffer
beyond the WPA IE and might fail as the extra 2 bytes of buffer might
contains some garbage value.

Pass appropriate length to unpack WPA IE.

Change-Id: Ifad6fabf701a82abd4234569d108b4172adf2bcb
CRs-Fixed: 2217455
2018-04-09 06:20:20 -07:00
nshrivas
1a0d818fae Release 5.2.0.73E
Release 5.2.0.73E

Change-Id: I7259b0bc9e282aac099dda6056a00cc426ad026f
CRs-Fixed: 774533
2018-04-09 00:01:41 -07:00
gaolez
d11c7c5569 qcacld-3.0: fix compatible issue for timestamping feature
qcacld-2.0 to qcacld-3.0 propagation

Use qdf_do_div() for 64 bit division, because '/' can't be used for
64 bit division on arm32 platform.

Change-Id: I19a1db8adbc1fe7acaee0ec824f670b67284f628
CRs-Fixed: 2155143
2018-04-09 00:01:41 -07:00
nshrivas
836bc91b07 Release 5.2.0.73D
Release 5.2.0.73D

Change-Id: Ibe56aaaddf5f68dcf942f36e41c99288534b4978
CRs-Fixed: 774533
2018-04-08 18:30:34 -07:00
Naveen Rawat
3cb779ed91 qcacld-3.0: Add ini param to control logging for CP_STATS
Add ini param to control logging for CP_STATS.

Change-Id: I8e46ed1935e20d5f636f7c8c1504ad09c1fabf0f
CRs-Fixed: 2210323
2018-04-08 18:30:34 -07:00
nshrivas
eb5efff283 Release 5.2.0.73C
Release 5.2.0.73C

Change-Id: Ieb30f9d745844380e67551a081f804e8c2eb8e9f
CRs-Fixed: 774533
2018-04-06 21:37:43 -07:00
Arif Hussain
53cf569ad5 qcacld-3.0: Use intersection of AP's and self STBC capability
Use intersection of AP's and self STBC capability.

Change-Id: I98a5e3f424f7b5ca9c82c15e271aa9be901f4792
CRs-Fixed: 2207488
2018-04-06 21:37:43 -07:00
nshrivas
2eb1aac272 Release 5.2.0.73B
Release 5.2.0.73B

Change-Id: I1f55031abe75879563d8636f1bb65cfc061bc9ef
CRs-Fixed: 774533
2018-04-06 20:38:04 -07:00
Arif Hussain
a216f678bf qcacld-3.0: Fix integer Underflow in csr_update_fils_params_rso
Fix integer underflow in csr_update_fils_params_rso as this may
cause buffer overflow.

Change-Id: I25b31f5c0f207be09ac30d5f95911d3866d12d66
CRs-Fixed: 2204872
2018-04-06 20:38:04 -07:00
nshrivas
b949786ed5 Release 5.2.0.73A
Release 5.2.0.73A

Change-Id: If22b2810787b6f5e03c85521027a591077e87263
CRs-Fixed: 774533
2018-04-06 19:28:44 -07:00
Dustin Brown
95ff87c60e qcacld-3.0: Flush packets in datapath error case
Several packets are sent to firmware in htt_htc_attach_all(), back to
back. However, if one of the latter packets fails to send for some
reason, the previous packets are not flushed. This leads to a number of
leaks under error conditions.

If a packet fails to send in htt_htc_attach_all(), flush the endpoint
before returning failure to the upper layers.

Change-Id: If9b33a645f7bcc77442e18566525ae57b544f1a0
CRs-Fixed: 2219137
2018-04-06 19:28:44 -07:00
nshrivas
21f0bf56e8 Release 5.2.0.73
Release 5.2.0.73

Change-Id: I1f9ba981aa80babddd8ee15b1a8a318b0f45afd7
CRs-Fixed: 774533
2018-04-06 17:49:26 -07:00
Srinivas Girigowda
841da29860 qcacld-3.0: Switch from module_param_call() to module_param_cb()
The definition of module_param_call() was changed in 4.15 and
in order to have module params that work on the kernel both
before and after that change switch to using module_param_cb()
since its definition has not changed.

Change-Id: I4af7c802ae62041636eda3047805630a16490e75
CRs-Fixed: 2193703
2018-04-06 17:49:25 -07:00
nshrivas
ddd6752467 Release 5.2.0.72Z
Release 5.2.0.72Z

Change-Id: I670316db3a54c3b63ebe201d3191c78416fecde9
CRs-Fixed: 774533
2018-04-06 14:47:06 -07:00
Ashish Kumar Dhanotiya
69e72bd66a qcacld-3.0: Remove CSR dot11f IE RSN max len
Max len of CSR_DOT11F_IE_RSN is 114 which is les than the
DOT11F_IE_RSN_MAX_LEN (130) which may result in array overflow
while parsing cckm ie.

TO address this replace CSR_DOT11F_IE_RSN_MAX_LEN to with
DOT11F_IE_RSN_MAX_LEN and remove CSR_DOT11F_IE_RSN_MAX_LEN
as it is not getting used anywhere else.

Change-Id: I58f93f37bd17653db2840720ab106c01f10d535e
CRs-Fixed: 2209355
2018-04-06 14:47:05 -07:00
Kiran Kumar Lokere
0e255175b6 qcacld-3.0: Add configuration support for VHT20 MCS9
Add user configuration to enable/disable the MCS9 in VHT20
operation.

Change-Id: I1bf1156dbeb51a7850ef5a5b66295ecc0d007542
CRs-Fixed: 2217038
2018-04-06 14:47:03 -07:00
Ravi Joshi
9788fcd47d qcacld-3.0: Enhance logging levels for some SAP ACS messages
Enhance logging levels for some auto channel selection messages useful for
debugging.

CRs-Fixed: 2189466
Change-Id: I05c0f8a7c96c8e33f997b00c3d9a9d1714f283e0
2018-04-06 14:47:00 -07:00
nshrivas
685851ede2 Release 5.2.0.72Y
Release 5.2.0.72Y

Change-Id: I1c88922504cfb29786362bb89394c2777e468881
CRs-Fixed: 774533
2018-04-06 13:25:23 -07:00
jiad
bb47e130a0 qcacld-3.0: fix ipa mcc scc event notification
Issue is under AP-AP MCC config, mcc event is not sent from wlan
to IPA driver. mcc mode is decided with the help of connection
table. But for AP mode, mcc mode is checked and updated before
connection table is updated by adding the SAP vdev entry.

Fix is to make ipa mcc mode check and notification when connection
table is updated. Since block is not allowed when conn table is
updated, a new work_struct mcc_work is introduced.

Change-Id: I935222e26bb3f6b31685f52b75084b034daccad2
CRs-Fixed: 2075876
2018-04-06 13:25:23 -07:00
nshrivas
3656261689 Release 5.2.0.72X
Release 5.2.0.72X

Change-Id: I5fe0a5603893d39b734e8edb0c881bbb8027e188
CRs-Fixed: 774533
2018-04-06 01:59:02 -07:00
Srinivas Girigowda
49b48b2eae qcacld-3.0: Fix function return type for ndo_start_xmit
Fix function return type for ndo_start_xmit.
Currently .ndo_start_xmit callback functions returns int, but
the correct return type should be netdev_tx_t.

Change-Id: I36d3cc886bfa0fd74a264f2791f09a251baab2ef
CRs-Fixed: 2202134
2018-04-06 01:59:01 -07:00
jitiphil
5fdc34704f qcacld-3.0: Prevent access to rx thread after thread shutdown
During unload/SSR, the ol_rx_thread is shutdown and then the
cpu hotplug notifier is unregistered. In other context
cpu hotplug notifier could be accessing the freed contents
of rxthread resulting in use after free.

To avoid this race condition, reject the cpu hot plug
notificaiton in case of a driver SSR in addition to
load/unload.

Change-Id: Iafadff92d5660b979c6cf20a70eef42d22a9e51a
CRs-Fixed: 2219011
2018-04-06 01:58:53 -07:00
Jeff Johnson
abcce17d32 qcacld-3.0: Relocate hdd_set_peer_rate()
Currently hdd_set_peer_rate() is implemented in wlan_hdd_wext.c with a
prototype defined in wlan_hdd_wext.h. But the only client is located
in wlan_hdd_hostapd.c, and since that is where the "master mode"
ioctls are handled, relocate hdd_set_peer_rate() to wlan_hdd_hostapd.c
and make it static.

Change-Id: I5ec9c43b29fafc75cb35f1ee465c86acbc6b3b2c
CRs-Fixed: 2219456
2018-04-06 01:58:50 -07:00
Sourav Mohapatra
21b3c988b4 qcacld-3.0: Return -EGAIAN and not -ENODEV if FW is down
When wlan_hdd_validate_context returns ENODEV in the case
of FW down or when driver is in bad state, wificond will
reset and try to unload the driver while SSR/PDR may be
in progress.

Return -EGAIAN and not -ENODEV in the above case.

Change-Id: I9b2314c2d4367b5373d1202b682d2c629a5a3e9f
CRs-Fixed: 2217006
2018-04-06 01:58:47 -07:00
nshrivas
a4f4f9f766 Release 5.2.0.72W
Release 5.2.0.72W

Change-Id: Ia1b0fc473af2b1c5373d96d816bddeb5f989c215
CRs-Fixed: 774533
2018-04-05 01:29:51 -07:00
Pragaspathi Thilagaraj
0008879d13 qcacld-3.0: Fix OOB write in wma_unified_debug_print_event_handler
The routine wma_unified_debug_print_event_handler logs the data from debug
print event handler. The param event data from firmware is copied to a
destination buffer .If the maximum size of the data exceeds or equals
BIG_ENDIAN_MAX_DEBUG_BUF for big endian hosts then possible OOB write will
occur in wma_unified_debug_print_event_handler. For other hosts, OOB read
could occur if datalen exceeds maximum firmware message size
WMI_SVC_MAX_SIZE.

Add check to validate datalen doesnot exceed the maximum firmware msg size
WMI_SVC_MAX_SIZE. Return failure if it exceeds.
Add check to ensure datalen doesnot exceed or equal the maximum buffer
length value for big endian hosts BIG_ENDIAN_MAX_DEBUG_BUF.
Invoke strlcpy instead of memcpy to ensure the string is null terminated
before printed.

Change-Id: I45943ae76d8fcf7b53e1f064c462d01cd6d00dcf
CRs-Fixed: 2211133
2018-04-05 01:29:46 -07:00
Jeff Johnson
c57c13aec7 qcacld-3.0: Refactor the Green AP configuration
Refactor the Green AP configuration so that it can be easily excluded
when the feature is not enabled, and to support transition to the
converged configuration model that is under development.

Change-Id: I275833f4c60c315937a6fba3f403eb54925e151c
CRs-Fixed: 2218656
2018-04-05 01:29:43 -07:00
nshrivas
9227b6c935 Release 5.2.0.72V
Release 5.2.0.72V

Change-Id: I5513c933478f79d866cdba54a1071842d2ea473a
CRs-Fixed: 774533
2018-04-04 19:43:31 -07:00
Jeff Johnson
53fe40a9bf qcacld-3.0: Rename field enableGreenAP in struct hdd_config
Since camelCase is frowned upon in the Linux coding style, rename
field enableGreenAP in struct hdd_config.

Change-Id: Ie541289f79b2bfe9f2bf490bbcde7e0649e0395d
CRs-Fixed: 2218692
2018-04-04 19:43:31 -07:00
nshrivas
bd769ad27a Release 5.2.0.72U
Release 5.2.0.72U

Change-Id: I69017b8dfcb4805f4b0ac54886f6172ef9b4b320
CRs-Fixed: 774533
2018-04-04 17:47:16 -07:00
Manjunathappa Prakash
7a4ecb2281 qcacld-3.0: Fix argument type for ol_txrx_stats_callback
ol_txrx_stats_callback is not implemented as it is not required, fix
the calling function argument type to match the prototype.

Change-Id: I8a976737af8f226a1774950170f445c93ebf683b
CRs-Fixed: 2216859
2018-04-04 17:47:15 -07:00
nshrivas
4a7bcc1020 Release 5.2.0.72T
Release 5.2.0.72T

Change-Id: I15f71af9243607ba13007e0f160aa934b9c87174
CRs-Fixed: 774533
2018-04-04 16:39:58 -07:00
Sandeep Puligilla
db6de35f36 qcacld-3.0: PDR recovery is taking longer time
PDR recovery is taking longer time because vdev
delete is waiting for peer delete completion.

Modified vdev delete handler to get the status
of firmware. If firmware state is detected as down
then vdev delete handler will not wait for peer delete
completion.

Change-Id: I1014df239a1abecaccbe5097769a10c625597e12
CRs-Fixed: 2207795
2018-04-04 16:39:58 -07:00
Srinivas Girigowda
1e0456c9aa qcacld-3.0: Fix function types passed to qdf_trace_register
Fix function types passed to qdf_trace_register.

Change-Id: I6d22c05a866f78113c95bd21c83bb0a28a630385
CRs-Fixed: 2208843
2018-04-04 16:39:55 -07:00
Srinivas Girigowda
de28a9df54 qcacld-3.0: Fix return type mismatch in start_xmit functions
Function declaration and definition has return type mismatch.
Hence fix this.

Change-Id: Icf5f6c435811b7d0801da10bb6f1dfb322cc8dc8
CRs-Fixed: 2208843
2018-04-04 16:39:53 -07:00
nshrivas
229b5fb8a9 Release 5.2.0.72S
Release 5.2.0.72S

Change-Id: Ieefcb633d9606b0ba2047990bfc33cc4aa39c6b2
CRs-Fixed: 774533
2018-04-04 14:12:31 -07:00
Amar Singhal
5f78313578 qcacld-3.0: Reset is_acs_allowed variable when chan count is 0
When world mode is set (ACS chan list is empty) and ACS request comes to
driver, is_acs_allowed variable is not reset. Due to this, in subsequent
ACS requests, is_acs_allowed variable would become 1, leading to ACS
failure in a loop. Fix that.

Change-Id: I97689571e147505ea2c21f271c103e3c8cc74b80
CRs-Fixed: 2215385
2018-04-04 14:12:31 -07:00
nshrivas
6e5c40a16e Release 5.2.0.72R
Release 5.2.0.72R

Change-Id: I2e536044a6f1eda8ec60de44e299950579b138cd
CRs-Fixed: 774533
2018-04-04 11:07:22 -07:00
Jeff Johnson
8bb6111e1f qcacld-3.0: hdd: Refactor the Green AP feature
Refactor the hdd portion of the Green AP feature so that it can be
easily excluded when the feature is not enabled.

Change-Id: I986c5ab7640b3182a12bef93748affefba067251
CRs-Fixed: 2216247
2018-04-04 11:07:19 -07:00
nshrivas
419347a4ac Release 5.2.0.72Q
Release 5.2.0.72Q

Change-Id: I9a404987d8803e0bb982efb445c0fc12f626c8f7
CRs-Fixed: 774533
2018-04-04 04:01:57 -07:00
Jinwei Chen
19846e5a61 qcacld-3.0: Fix issue in connection to WAPI AP
Recent change in hdd_is_tx_allowed function causes failure in Tx of WAPI
Auth frames. Add check in this function to allow Tx of WAPI auth frames
so that device can connect to a WAPI AP.

Change-Id: Id5d4d31385309381383dec432698a8ac625845ad
CRs-Fixed: 2217090
2018-04-04 04:01:57 -07:00
Manjunathappa Prakash
5e12b8c46e qcacld-3.0: Remove redefinition of wmi_unified_t
typedef wmi_unified_t is redefined in
qcacld-3.0/core/dp/ol/inc/ol_defines.h previous definition is here
qca-wifi-host-cmn/wmi/inc/wmi_unified_param.h, remove redefinition.

Change-Id: I2c2af59d8b24360cd09efeb12ea19c0340771bb8
CRs-Fixed: 2216859
2018-04-04 04:01:54 -07:00
Manjunathappa Prakash
92a860057d qcacld-3.0: Use dma_sync_single_for_cpu instead of dmac_inv_range
dmac_inv_range() is obsolete, use dma_sync_single_for_cpu instead.
https://www.kernel.org/doc/Documentation/DMA-API-HOWTO.txt.

Change-Id: I8add3c905d3cf190ef91ec023c88a7a645ae92e6
CRs-Fixed: 2216859
2018-04-04 04:01:50 -07:00
nshrivas
380c42b4db Release 5.2.0.72P
Release 5.2.0.72P

Change-Id: I7e86054006dffadf9e510bed796966a5f3ee293e
CRs-Fixed: 774533
2018-04-03 23:46:26 -07:00
Min Liu
5359ab1240 qcacld-3.0: Add string length validation
qcacld-2.0 to qcacld-3.0 propagation

In hdd_parse_get_ibss_peer_info(), issue is reported by external
researcher that lack of string length validation might lead to
out-of-bounds read.
Related string length validation is added accordingly.

Change-Id: I32304404b2bab9011fa67316b77f6d37bb39df2d
CRs-Fixed: 2214899
2018-04-03 23:46:26 -07:00
nshrivas
008c90eb8e Release 5.2.0.72O
Release 5.2.0.72O

Change-Id: Ide08109ca38c1d8fc3b79c18bd0cfcd479cd48d1
CRs-Fixed: 774533
2018-04-03 19:45:57 -07:00
Yun Park
0ac1282747 qcacld-3.0: Remove extraneous parentheses around the comparison
Fix LLVM compilation error caused by equality comparison with
extraneous parentheses.

Change-Id: Ia2b7dea8751a8016524459d55c41894fb552f273
CRs-Fixed: 2216820
2018-04-03 19:45:56 -07:00
psimha
1dc65bdf61 qcacld-3.0: Change security type data structure in API call
Change htt_sec_type to cdp_sec_type since the CDP API expects a
cdp_sec_type as it's argument. Required for compilation using LLVM.

Change-Id: I8dbf59dd80bd0fce221a23544c69764508377ae0
CRs-Fixed: 2216859
2018-04-03 19:45:53 -07:00
Ashish Kumar Dhanotiya
04f09dd8d3 qcacld-3.0: Change the default value of CFG_TX_SCH_DELAY_MIN
Change the MIN, MAX and Default values of the ini
CFG_TX_SCH_DELAY_MIN to 0, 5 and 2 respectively.

Change-Id: I27d6110d69ba885535933e31dcca4e08865a7dc8
CRs-Fixed: 2216634
2018-04-03 19:45:51 -07:00
Ashish Kumar Dhanotiya
48dac7d63b qcacld-3.0: Add host support to configure TX delay
There is 1ms TX delay enabled in TX sch module if
frames queued in FW SW queue are less than 32.
This results in Tx delay in FW, and causes response time higher.

Add ini configuration to enable/disable Tx delay.

Change-Id: Ic180431ed2d0848df3dbb144f6b2bd70db61e5f4
CRs-Fixed: 2214307
2018-04-03 19:45:48 -07:00
nshrivas
f78cbb57a9 Release 5.2.0.72N
Release 5.2.0.72N

Change-Id: I95b646d9be2dbad1bbf7866e208cc1624d588f38
CRs-Fixed: 774533
2018-04-03 16:50:10 -07:00
nshrivas
7f5bdedd7b Release 5.2.0.72M
Release 5.2.0.72M

Change-Id: I4c524d47715a27a4cac173caa33a15fb15237672
CRs-Fixed: 774533
2018-04-03 11:11:22 -07:00
nshrivas
feefccba40 Release 5.2.0.72L
Release 5.2.0.72L

Change-Id: Id510c55acd50ddf154928dda74e92a782da038df
CRs-Fixed: 774533
2018-04-03 01:42:51 -07:00
jitiphil
8ad8a6f9b2 qcacld-3.0: Fix invalid use of %p in ol_txrx_peer_release_ref
Currently %p is used in ol_txrx_peer_release_ref function in
ol_txrx.c which violates security guidelines

To address this issue change %p to %pK.

Change-Id: I06fd9eb260d1c53e4de235b710cd0ea05125b976
CRs-Fixed: 2170905
2018-04-03 01:42:50 -07:00
nshrivas
28c982a64f Release 5.2.0.72K
Release 5.2.0.72K

Change-Id: Ia6234fc833b1c08cf98f56fe1360762a9c2e2ee5
CRs-Fixed: 774533
2018-04-02 20:41:43 -07:00
chenguo
861751bafa qcacld-3.0: Add target credit info in TX_QUEUE_STATS
When debug traffic stall issues, target credit number is also one
key point to trace beside status of TX queues. So add such info
in TX_QUEUE_STATS.

Change-Id: I2615545c1e041af920a4d0d6d0a8e3990768b762
CRs-Fixed: 2060945
2018-04-02 20:41:43 -07:00
nshrivas
c9a644db05 Release 5.2.0.72J
Release 5.2.0.72J

Change-Id: I11f6015cefab02cd34d1c489d7e1e4621e08d0f7
CRs-Fixed: 774533
2018-04-02 19:39:34 -07:00
Naveen Rawat
b4ea70f96e qcacld-3.0: Fail channel sap channel change request for channel 0
In function wlansap_channel_change_request validate channel requested
before processing the request.

Change-Id: I1cc8c978b15fe6ee043ce6bf712a109994dce50b
CRs-Fixed: 2212078
2018-04-02 19:39:34 -07:00
Yun Park
302bdcce10 qcacld-3.0: Remove redundant typedef 'ipa_uc_op_cb_type'
Remove a redundant typedef 'ipa_uc_op_cb_type' from ol_txrx_type.h.

Change-Id: Id3cd82b846e85a0aed39a530c0510faa5572ca61
CRs-Fixed: 2213103
2018-04-02 19:39:31 -07:00
Abhishek Singh
388d090180 qcacld-3.0: Change OCE WAN score ini for roaming and initial connection
Change the OCE WAN weightage to 2% of the scoring weightage and change
the slot size to 15 and fill the values for each slot in INI.

Change-Id: Ic67cde29a9dfdfaf6022bab106432ef2950e2340
CRs-Fixed: 2208283
2018-04-02 19:39:28 -07:00
Srinivas Girigowda
e1282d4fbf qcacld-3.0: Fix clang compilation warnings
Fix clang compilation warnings.

Change-Id: I8c766c9062672608db60c583a46af2bc86bbba8c
CRs-Fixed: 2055487
2018-04-02 19:39:26 -07:00
nshrivas
5cd9be3a5c Release 5.2.0.72I
Release 5.2.0.72I

Change-Id: I2c6c8473675a1b29253a96e16b61fe26757f91c4
CRs-Fixed: 774533
2018-04-02 16:41:39 -07:00
Jeff Johnson
e8846abed9 qcacld-3.0: Rename HDD Green AP APIs
Currently the HDD Green APIs do not have a consistent prefix. In
preparation for refactoring this feature, rename the HDD Green AP APIs
to have a consistent prefix.

Change-Id: Ib4d9a6db6ffacd9e19277d95f4976805d0bb6fa3
CRs-Fixed: 2216246
2018-04-02 16:41:38 -07:00
Jeff Johnson
6ec742cbed qcacld-3.0: wma: Featurize Green AP service event handling
Currently wma_update_hdd_cfg() has unconditional code to check for
firmware support of the WMI_SERVICE_EGAP service and to register an
event handler when it is present. However this code doesn't build
correctly when the Green AP feature is disabled in the build.
Therefore featurize the Green AP service event handling.

Change-Id: Ic5f8fcc960c4b1b6ebc3b9b78acd84f583c24b9f
CRs-Fixed: 2216245
2018-04-02 16:41:35 -07:00
nshrivas
d39cbba87b Release 5.2.0.72H
Release 5.2.0.72H

Change-Id: Ia0d052cbe39bad435b431f2c04bf22ea3d21c81d
CRs-Fixed: 774533
2018-04-02 03:08:54 -07:00
Naveen Rawat
709c0cbcf2 qcacld-3.0: Avoid un-initialized pointer access in hdd_ndi_start_bss
In function hdd_ndi_start_bss, avoid access to channel list pointer without
initializing it.

Change-Id: I9307f587bb9691d12b9b16f3a5e62945be7b2220
CRs-Fixed: 2205990
2018-04-02 03:08:54 -07:00
nshrivas
da7e53ada0 Release 5.2.0.72G
Release 5.2.0.72G

Change-Id: Ide3b3e12258c071f103e20f0ee0f7b562463185b
CRs-Fixed: 774533
2018-04-01 09:11:04 -07:00
Subhani Shaik
16821e678d qcacld-3.0: Enable oem data processing in SAP mode
The OEM data is only processed in STA mode. As part of RTT config
LCI/LCR IE element configuration is required in SAP mode.

CRs-Fixed: 2179161
Change-Id: I65e0af23aba502031f23754572ca094058c5fe74
2018-04-01 09:11:03 -07:00
nshrivas
6add0178db Release 5.2.0.72F
Release 5.2.0.72F

Change-Id: I4ecd8e5782316b4d80120258b0bac0899dbcf2dd
CRs-Fixed: 774533
2018-03-30 23:32:34 -07:00
Rajeev Kumar
7563b3fce7 qcacld-3.0: Do not disable IMPS during module start
Do not disable IMPS power save during module start because
IMPS needs to be enabled only once during startup(modue init)
and only needs to be disabled during driver exit(module_exit).

Change-Id: I16babc857658f5f4064025c5eb28d287d025dd88
CRs-Fixed: 2216146
2018-03-30 23:32:34 -07:00
nshrivas
8022a7cf91 Release 5.2.0.72E
Release 5.2.0.72E

Change-Id: I8275d4a6f953ae5ba55e88cfa4b654d0d4416847
CRs-Fixed: 774533
2018-03-30 21:08:44 -07:00
Jeff Johnson
5312f8ea04 qcacld-3.0: Avoid double free in drv_cmd_get_ibss_peer_info_all()
Change "qcacld-3.0: Fix memory leak issues in HDD" (Change-Id:
Iae551cd3acbb6bc2618f05cfdc33e4f742d63192) added logic to
drv_cmd_get_ibss_peer_info_all() to free the dynamically-allocated
buffer "extra" when either of the copy_to_user() calls
failed. Unfortunately this introduced a regression since now in the
success case the "extra" buffer is freed twice.

Update drv_cmd_get_ibss_peer_info_all() to remove the now unnecessary
call to qdf_mem_free() in the success case.

Change-Id: I7f8c17cd7576bf05ac8b6c4d6658ac40cb55782a
CRs-Fixed: 2215443
2018-03-30 21:08:44 -07:00
nshrivas
b5ba25101b Release 5.2.0.72D
Release 5.2.0.72D

Change-Id: Ide7eb616d9b6aacb87760edf75a6ea8f9028e4ec
CRs-Fixed: 774533
2018-03-30 17:00:12 -07:00
Tushnim Bhattacharyya
0725f1ad21 qcacld-3.0: Use correct enum type in function wma_get_rcpi_req
Use the wmi enum type in function wma_get_rcpi_req instead of
rcpi_measurement_type.

Change-Id: I5b506059ad8b0f4cd65c24e20df6306a47249fdb
CRs-Fixed: 2216015
2018-03-30 17:00:12 -07:00
Krunal Soni
5ee9ce4e2e qcacld-3.0: Remove dead code in protocol stack
Remove dead code in protocol stack.

Change-Id: I366705b8cf4cf13c030a6456c21dae94193d0d77
CRs-Fixed: 2216008
2018-03-30 17:00:09 -07:00
nshrivas
34e626754f Release 5.2.0.72C
Release 5.2.0.72C

Change-Id: I668a60478211cb160a33101b6f75b6303e81bb0f
CRs-Fixed: 774533
2018-03-30 14:48:15 -07:00
Jeff Johnson
d66b4d56a4 qcacld-3.0: Remove obsolete support for nAPAutoShutOff
The AP auto shutoff feature controlled by INI item nAPAutoShutOff is
obsolete, so remove it.

Change-Id: I9e96bee36acc1ea1ac6f775ae04b31929bcb8406
CRs-Fixed: 2215925
2018-03-30 14:48:15 -07:00
nshrivas
07e0e8caaf Release 5.2.0.72B
Release 5.2.0.72B

Change-Id: Iab32c9ddc0accbc9471558c28abd57ef3c2d5562
CRs-Fixed: 774533
2018-03-30 13:30:39 -07:00
Tushnim Bhattacharyya
647f93e8ed qcacld-3.0: Call scheduler_post_msg directly instead of wma_post_ctrl_msg
Call scheduler_post_msg directly instead of wma_post_ctrl_msg.

Change-Id: I01dbe3623bfb9f83cbbf182b92cdb4f6fb98bb65
CRs-Fixed: 2213784
2018-03-30 13:30:38 -07:00
Mahesh Kumar Kalikot Veetil
885a77b67c qcacld-3.0: Use in_compat_syscall() to check compatness
Use in_compat_syscall() to query the syscall type, so it works properly
on all architectures. Also maintain backward compatibility with older
kernel.

Change-Id: Ife19c9874dcacc18c5d19c1175988bee66ea1cdd
CRs-Fixed: 2215566
2018-03-30 13:30:35 -07:00
nshrivas
d2f92c4f93 Release 5.2.0.72A
Release 5.2.0.72A

Change-Id: I03b223fabc3cbbfd7aaa92c74265acbbf05f4b03
CRs-Fixed: 774533
2018-03-30 02:46:33 -07:00
gaolez
d1a229d412 qcacld-3.0: Refine the MGMT rate valid check function
qcacld-2.0 to qcacld-3.0 propagation

1. CCK rate should not allowed in 5G mode
2. Avoid configure 2 stream rates to send MGMT packet

Change-Id: Id222bc5c41264ba802a43a02d333f16578bc4a5d
CRs-Fixed: 2182955
2018-03-30 02:46:33 -07:00
Alok Kumar
b64650c29a qcacld-3.0: Handle NUD events within driver
Currently NUD events are used by Framework to detect
the Network Reachability. Framework issues disconnection
for NUD_FAILED event.

Now, NUD events are tracked within driver to detect the
reachability and based on TxRx traffic, driver takes decision
to issue disconnection.

Change-Id: I461610c220288ff1fd718bb7bc2dd8375588505c
CRs-Fixed: 2195796
2018-03-30 02:46:29 -07:00
Abhinav Kumar
fcc22e0b94 qcacld-3.0: Drop duplicate Beacon Report request
Currently, driver does not check for duplication of rrm
request. If driver receives any duplicate rrm request,
then driver sends pilot frame for second rrm request which
is not acceptable.
Add changes to drop all duplicate rrm requests to fix this.

Change-Id: I44a67a4119ae55ac94f5c9ecdb01032f6fd39c7c
CRs-Fixed: 2195990
2018-03-30 02:46:25 -07:00
Abhinav Kumar
d528d19d10 qcacld-3.0: Use max tx power allowed to compute link report power
Driver uses max tx power allowed for a particular channel to
calculate link report power and updates max tx power allowed with
calculated link report power. This can result in usage of
MIN_TX_PWR_CAP as max tx power if AP requests power below
MIN_TX_PWR_CAP in link request. Once max tx power reaches
MIN_TX_PWR_CAP, the driver will always use MIN_TX_PWR_CAP in
the link report which could be much less than power allowed for
a particular channel.

Use max tx power allowed for a particular channel always to
compute link report power to fix this issue.

Change-Id: I0060500f23e6131481baa00cd76f41419281e41a
CRs-Fixed: 2195960
2018-03-30 02:46:22 -07:00
Jeff Johnson
0604a3650d qcacld-3.0: Fix anomalies with hdd_stop_bss_link()
Address the following anomalies with hdd_stop_bss_link():
- Parameter usrDataForCallback is unused
- It returns errno but one caller is checking for QDF_STATUS

Change-Id: I31086d790066eec5774cf318eff0f90736b4c92f
CRs-Fixed: 2213062
2018-03-30 02:46:19 -07:00
Tushnim Bhattacharyya
604a7e1f53 qcacld-3.0: Remove redundant parentheses in lim function
Remove redundant parentheses in lim_obss_generate_detection_config.

Change-Id: Id28c2f5d1a44220c8f2f02b9815f1f63501226fc
CRs-Fixed: 2213784
2018-03-30 02:46:13 -07:00
Tushnim Bhattacharyya
d58e4c96f8 qcacld-3.0: Use correct return type in lim_send_addba_response_frame
Use correct return type in lim_send_addba_response_frame.

Change-Id: I3950f76c4f68e0b3fb6c5295054c5ea2b3a8f95b
CRs-Fixed: 2213784
2018-03-30 02:46:10 -07:00
Tushnim Bhattacharyya
dfbce70aaf qcacld-3.0: Use correct enum type for function variable
Use correct enum type for function variable in hdd_reset_tcp_delack
& return type in iw_get_policy_manager_ut_ops.

Change-Id: Iec8a678410b90dbe081c007f1bbfaa31f255799e
CRs-Fixed: 2213784
2018-03-30 02:46:07 -07:00
gaolez
c2b7208197 qcacld-3.0: reduce the interval of cap-tsf timer
qcacld-2.0 to qcacld-3.0 propagation

hdd_get_hosttime_from_targettime() will get wrong host time when
it's longer than WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC from last
TSF-HOST update. To fix this, TSF-HOST should be updated in at most
WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC, it couldn't be achieved if the
timer interval is also WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC, due to
processing or scheduling delay. So deduct several seconds from
WLAN_HDD_CAPTURE_TSF_INTERVAL_SEC.

Change-Id: Icce41c74568370d98509a2ebe69ae62e99ad2ce8
CRs-Fixed: 2104915
2018-03-30 02:46:00 -07:00
nshrivas
efb0974505 Release 5.2.0.72
Release 5.2.0.72

Change-Id: I6509a2c86d196af5be71d38283d72854a1051118
CRs-Fixed: 774533
2018-03-29 23:37:20 -07:00
Naveen Rawat
a600b2e226 qcacld-3.0: Fix is_waiting_for_key usage for waking up host
Fix usage of flag is_waiting_for_key such that it programs wake
timer only for secure STA connected state.

Change-Id: I336696f15c5fc932a4eedf5534c2182bda3d2e27
CRs-Fixed: 2214809
2018-03-29 23:37:19 -07:00
Dustin Brown
048239934a qcacld-3.0: Free monitor mode self-peer
When a monitor mode vdev is created, a self-peer is created
automatically. However, when the vdev is destroyed, the self-peer is
leaked. Remove the self-peer when a monitor mode vdev is removed.

Change-Id: Ib6855957b56d057da9bf9a176b328cd9ec8dab96
CRs-Fixed: 2211141
2018-03-29 23:37:17 -07:00
Jeff Johnson
32bd9740ce qcacld-3.0: Replace hdd_wlan_get_freq() with converged service
Currently HDD defines function hdd_wlan_get_freq() which uses
it own static table to perform channel to frequency mapping. This
duplicates functionality provided by the converged regulatory
function wlan_reg_chan_to_freq(), so remove hdd_wlan_get_freq()
and update its only client to use wlan_reg_chan_to_freq().

Change-Id: I6fcb11b9b967ab77dcd7c8d0c1bc185ee3c18913
CRs-Fixed: 2215576
2018-03-29 23:37:14 -07:00
nshrivas
93b17851f8 Release 5.2.0.71Z
Release 5.2.0.71Z

Change-Id: I1a51566ac3e4c4db4ff3e03aaa08ca1fef39aab9
CRs-Fixed: 774533
2018-03-29 22:30:23 -07:00
Jeff Johnson
682a7a5558 qcacld-3.0: Remove nBssLimit from struct csr_scanstruct
Remove unused field nBssLimit from struct csr_scanstruct.

Change-Id: I0f1f4b4608acd6332a9b3a2c48fc4bf430d187bd
CRs-Fixed: 2213060
2018-03-29 22:30:22 -07:00
nshrivas
0ec3f07f2c Release 5.2.0.71Y
Release 5.2.0.71Y

Change-Id: I00056e255febc536bf600d4d5c9dfbb16c2ea541
CRs-Fixed: 774533
2018-03-29 21:14:40 -07:00
Sandeep Puligilla
2fcc2548c6 qcacld-3.0: Convert eCsrPhyMode to enum wlan_phymode
Add api to convert enum eCsrPhyMode to enum wlan_phymode.

Change-Id: I94596d73940805ba7fbb07b2ea90a9e8dbbf7e03
CRs-Fixed: 2214021
2018-03-29 21:14:37 -07:00
nshrivas
e4f05f5c9c Release 5.2.0.71X
Release 5.2.0.71X

Change-Id: Icd070cb979fb9c3c20ea8a907061c08dc98331fe
CRs-Fixed: 774533
2018-03-29 18:57:21 -07:00
Dundi Raviteja
170d287f1d qcacld-3.0: Fix buf overflow in __wlan_hdd_cfg80211_update_connect_params
Currently, number of bytes being copied into keyname_nai buffer is
key_nai_length, which can be greater than FILS_MAX_KEYNAME_NAI_LENGTH.
But the size of keyname_nai is limited to FILS_MAX_KEYNAME_NAI_LENGTH,
which may cause buffer overflow.

To address this issue, add check for key_nai_length against
FILS_MAX_KEYNAME_NAI_LENGTH to ensure buffer overflow does not happen.

Change-Id: I88c89b1fef6fdb1c4bd93e0fb8f3e54634b4940f
CRs-Fixed: 2208881
2018-03-29 18:57:20 -07:00
nshrivas
bfe1433bb2 Release 5.2.0.71W
Release 5.2.0.71W

Change-Id: Ieb59719c29e3f1d353c309ba48178fcd4ffcd332
CRs-Fixed: 774533
2018-03-29 17:32:03 -07:00
Ashish Kumar Dhanotiya
d39c8b55db qcacld-3.0: Update correct reason code on receiving del sta
On receiving del station command, SAP is not updating the del
station reason code properly in station info.
Update the correct reason code in station info whenever a
del station or deauth station event comes.

Change-Id: I2004dc21f18682dbc7dee488e7b55bfccd0d242a
CRs-Fixed: 2178538
2018-03-29 17:32:02 -07:00
nshrivas
1c07d547a0 Release 5.2.0.71V
Release 5.2.0.71V

Change-Id: I58456a90a19e3fc9c1c1b3603a07d016c1c85cc5
CRs-Fixed: 774533
2018-03-29 13:16:07 -07:00
Sravan Kumar Kairam
3033844ad4 qcacld-3.0: Update SAP interface stats only for exception path
Currently sap netdev interface stats are updated even for the
IPA uc HW offload packets. This is not correct as the stats need
to be updated only for the exception packets which comes to the
host and forwarded to netdev kernel. In this change update the
soft ap interface stats only for the exception packets which
comes to host.

Change-Id: I0b017cf1d5ff74234bfee540ef37ee03c5131c48
CRs-Fixed: 2164582
2018-03-29 13:16:06 -07:00
psimha
c2cb9463f5 qcacld-3.0: Add CDP call to set security type in data path
Call cdp_set_pn_check to set PN check & security type in data path.
Required for RX defragmentation on Napier.

Change-Id: Ie00613be2e2713c58b4d83aa1c31eb4451442477
CRs-Fixed: 2213691
2018-03-29 13:16:04 -07:00
nshrivas
96d62345b2 Release 5.2.0.71U
Release 5.2.0.71U

Change-Id: Ie4a9c250ad70387b3710f01c1172531253df76ba
CRs-Fixed: 774533
2018-03-29 06:57:42 -07:00
Sandeep Puligilla
f5ccbf66e6 qcacld-3.0: Deprecate enum wmi_dwelltime_adaptive_mode
Deprecate enum wmi_dwelltime_adaptive_mode and use enum
scan_dwelltime_adaptive_mode defined in scan component.

Change-Id: I9c33b852172d9208fb8440c6dc71a12aefd717da
CRs-Fixed: 2213150
2018-03-29 06:57:42 -07:00
Vignesh Viswanathan
01e1adb512 qcacld-3.0: Fix potential buffer overflow in radio stats event handler
In function wma_unified_radio_tx_power_level_stats_event_handler,
radio_id is checked if it is greater than num_radio. However, radio_id
is an array index and its range is 0 to (num_radio-1). So if radio_id
is equal to num_radio, a buffer overflow would occur while accessing
the array link_stats_results->results.

Fix sanity check to return error if radio_id is greater than or equal
to num_radio in wma_unified_radio_tx_power_level_stats_event_handler.

Change-Id: Ib48e8388206f28e7b2cb80177363655008a109e6
CRs-Fixed: 2209106
2018-03-29 06:57:39 -07:00
nshrivas
be2173d088 Release 5.2.0.71T
Release 5.2.0.71T

Change-Id: Ie413941ac42e1f295d8c27538acd1b54c604935a
CRs-Fixed: 774533
2018-03-29 03:37:26 -07:00
Padma, Santhosh Kumar
eb90a558a3 qcacld-3.0: Trigger/handle SAE using cfg80211
Add changes to trigger SAE using cfg80211 API's. Also, add
changes to handle SAE status that comes via cfg80211 ops

Change-Id: Ie113f84d4fdc927fff26b13b0e0551b92b22fd5d
CRs-Fixed: 2211041
2018-03-29 03:37:26 -07:00
nshrivas
5314e2e545 Release 5.2.0.71S
Release 5.2.0.71S

Change-Id: I4fcd02d3b9f738b8b88c27d4ed72fbb41034f60f
CRs-Fixed: 774533
2018-03-28 21:09:10 -07:00
Nachiket Kukade
7dda8c22cc qcacld-3.0: Set wmi_handle in pdev before registering EGAP event handler
wmi_handle is needed while registering for wmi event handler. But it is
not set for pdev before registering for EGAP event handler. With this,
EGAP support remains disabled which may end up in increased power
consumption.

Move setting of wmi_handle in pdev before registering for EGAP event.

Change-Id: Icb8accc738a3aaad7fbc1201c7c0d0b77945e8f2
CRs-Fixed: 2203380
2018-03-28 21:09:09 -07:00
Yun Park
c3e355631a qcacld-3.0: Implement DHCP START/STOP indication for SAP/P2P GO
The Data Path in the WLAN host driver needs to be sending DHCP START/
STOP indications to FW during DHCP based IP address acquisition phase
in the SAP mode.
Inspect the Tx/Rx frame, and send the notification to the FW through
WMI message.

Change-Id: Iad6308980a7158516f341b97f3baffab1e4c4bc3
CRs-Fixed: 2114816
2018-03-28 21:09:07 -07:00
nshrivas
10bfe01904 Release 5.2.0.71R
Release 5.2.0.71R

Change-Id: I8e6f06ea10c7c8762000ca7c4287fb040389449e
CRs-Fixed: 774533
2018-03-28 20:01:37 -07:00
Rajeev Kumar
4a70823519 qcacld-3.0: Enable auto PS timer in hdd config file
Enable auto PS timer in hdd config such that adrastea
is never stuck in full power mode.

Change-Id: I2668b7c1ba64b67bf524e449e96ec6d79a2c1676
CRs-Fixed: 2214124
2018-03-28 20:01:37 -07:00
Jiachao Wu
7bf72b44c5 qcacld-3.0: Increase hdd disconnect wait time
wlan_hdd_disconnect wait time is 5 second.
WMA_VDEV_STOP_REQUEST_TIMEOUT is 6 second.There have 1 sec gap.
Which means if timeout happend, wlan_hdd_disconnect will exit before
wma_vdev_resp_timer is invoked. wma_vdev_resp_timer will trigger SME
to invoke callback hdd_dis_connect_handler to release vdev obj ref
count.

If unload driver during the time gap, vdev cannot destory
successfully because hdd_dis_connect_handler haven't be called.

rmmod will wait for wlan_hdd_disconnect exiting then unload driver.
So increase hdd disconnect wait time. Make sure wlan_hdd_disconnect
exit after lower layer timeout and hdd disconnect handler be called.

Change-Id: I8fddae200ed675b93c0f300a9e28dbbfd3a976a6
CRs-Fixed: 2201448
2018-03-28 20:01:34 -07:00
nshrivas
5c673fc694 Release 5.2.0.71Q
Release 5.2.0.71Q

Change-Id: I424fa6101864a5fe324b780917e17bcb6a3340bc
CRs-Fixed: 774533
2018-03-28 14:44:27 -07:00
Alok Kumar
75355aa8f3 qcacld-3.0: Add support for Tx OTA Ack stats
Add stats in vdev for Tx OTA success and failure count

Change-Id: I6849dfc1d11351f5cc63acf3a22bf72a1ef8109c
CRs-Fixed: 2211898
2018-03-28 14:44:27 -07:00
Kiran Kumar Lokere
b04f7f89f7 qcacld-3.0: Fix the band setting in 11ac phymode update
If user configures the phymode to 11ac then band is configured
with only 5G that disables the 2.4G channels.

Instead of setting the band to 5G, enable the 5G band during
11ac phymode update if the 5G band is not enabled.

Change-Id: I4a4fa3a0bddb345e7ea73b7b36f0581644029316
CRs-Fixed: 2210359
2018-03-28 14:44:25 -07:00
nshrivas
956365ee7c Release 5.2.0.71P
Release 5.2.0.71P

Change-Id: I7737d1307b33f82b22140674d6546e09438045d6
CRs-Fixed: 774533
2018-03-28 06:26:15 -07:00
Sandeep Puligilla
68908f2d02 qcacld-3.0: Never ageout connected AP scan entry
Connected AP scan entry is aged out if beacon
is not recieved within scan age out time.

Update mlme information of the connected AP/BSSID
scan entry so that scan age out hanlder will not
age it out even though the last beacon recieved
time is greater than the configured scan age out value.

Change-Id: I14c68c28459080623ca62c0bad9052e38d7fb348
CRs-Fixed: 2202010
2018-03-28 06:26:14 -07:00
Himanshu Agarwal
4f503b8676 qcacld-3.0: Compute RSSI and BSS adjustment correctly
When hw_mode=any (both 2.4Ghz nad 5Ghz bands included),
RSSI and BSS adjustment for 2.4Ghz channels happens 2
times, once in sap_interference_rssi_count() and once
in sap_interference_rssi_count_5G() which leads to wrong
computation of weight.

Check whether a channel is 2.4Ghz or 5Ghz channel before
calling the corresponding RSSI, BSS adjustment function.

Change-Id: I6c318e489cfa177c6de088e7cdfb4779ceb99b2f
CRs-Fixed: 2208069
2018-03-28 06:26:08 -07:00
nshrivas
74dc102c69 Release 5.2.0.71O
Release 5.2.0.71O

Change-Id: I4eab8572679df0078326225a0f1baaf9d555a98b
CRs-Fixed: 774533
2018-03-27 23:38:35 -07:00
Jeff Johnson
60b5fe20cc qcacld-3.0: Remove osScanChannelMask
Remove unused field osScanChannelMask in struct csr_scanstruct.

Change-Id: Id19ae20ec04284f51ebf96645257e70cdd104467
CRs-Fixed: 2213058
2018-03-27 23:38:32 -07:00
Kiran Kumar Lokere
aee823af05 qcacld-3.0: Set AMSDU support in ADDBA if peer supports
Set AMSDU in AMPDU support in addba response frames only
if supports the feature.

Change-Id: Ibdb51e9055199b688f494f31fd484b246ec11163
CRs-Fixed: 2211374
2018-03-27 23:38:29 -07:00
nshrivas
665484ac26 Release 5.2.0.71N
Release 5.2.0.71N

Change-Id: I2be49c7046300790a01bd627010dc08686e4207d
CRs-Fixed: 774533
2018-03-27 13:53:02 -07:00
Jeff Johnson
abcb1106fe qcacld-3.0: Remove lim_send_sme_neighbor_bss_ind()
lim_send_sme_neighbor_bss_ind() is unused so remove it and all related
data structures.

Change-Id: I373fb570f3b368dc79ce08b7acbc1026a7e19758
CRs-Fixed: 2213056
2018-03-27 13:53:01 -07:00
Jeff Johnson
59305cd358 qcacld-3.0: Remove LIM suspend/resume callbacks
The LIM suspend & resume callbacks are obsolete, so remove them.

Change-Id: I678c91858e1384406dd2921662f513c3315fb2cb
CRs-Fixed: 2213053
2018-03-27 13:52:59 -07:00
Jeff Johnson
5ec4d8c45e qcacld-3.0: Remove gLimHalScanState
LIM is no longer involved in scan so remove gLimHalScanState.

Change-Id: Ie6fca2c71178da642aa065f6a24493df82144156
CRs-Fixed: 2212880
2018-03-27 13:52:56 -07:00
Jeff Johnson
5bb67b78e4 qcacld-3.0: Remove obsolete idle scan flags
Remove the following obsolete fields from struct csr_scanstruct:
- fCancelIdleScan
- fRestartIdleScan
- nIdleScanTimeGap

Change-Id: I50fd4d966586487111a55fc378a06783636a7df9
CRs-Fixed: 2212877
2018-03-27 13:52:53 -07:00
Jeff Johnson
4877d76793 qcacld-3.0: Remove current country BSSID & RSSI fields
struct csr_scanstruct contains fields currentCountryBssid and
currentCountryRSSI which are obsolete, so remove them.

Change-Id: I47f40cc687b0e905d3c2db4ad67fa32f70d5181e
CRs-Fixed: 2212972
2018-03-27 13:52:51 -07:00
Jeff Johnson
ab093c3422 qcacld-3.0: Remove Is11dSupportEnabledOriginal
The flag Is11dSupportEnabledOriginal is obsolete, so remove it.

Change-Id: I41626673ab2a9a53cd4607c2c3682530ed1c0051
CRs-Fixed: 2212925
2018-03-27 13:52:48 -07:00
Jeff Johnson
0b9639b4e7 qcacld-3.0: Remove obsolete csr_set_country_code()
Function csr_set_country_code() is obsolete, so remove it.

Change-Id: Ibccc6deaecb00862a2d9640de05106b81c658e69
CRs-Fixed: 2212924
2018-03-27 13:52:45 -07:00
Jeff Johnson
bc5aecd951 qcacld-3.0: Remove eWNI_SME_CHANGE_COUNTRY_CODE message handling
Message eWNI_SME_CHANGE_COUNTRY_CODE is no longer being sent, so
remove it along with the handler for it.

Change-Id: I8fe5e1e8c0c18ab51d496dddd9604c3a4cb2b236
CRs-Fixed: 2212920
2018-03-27 13:52:43 -07:00
Jeff Johnson
0820d32488 qcacld-3.0: Remove obsolete "country change" trace code
TRACE_CODE_SME_RX_HDD_CHANGE_CNTRYCODE is obsolete, so remove it.

Change-Id: I4f86162cd912f69c7b08e3384412eec96367dc40
CRs-Fixed: 2212909
2018-03-27 13:52:40 -07:00
Jeff Johnson
c3b15737e1 qcacld-3.0: Remove obsolete sme_change_country_code()
Function sme_change_country_code() is obsolete, so remove it.

Change-Id: I1d4ce3cb8931982415f5c457d01cd6046208db44
CRs-Fixed: 2212903
2018-03-27 13:52:38 -07:00
Jeff Johnson
179762a2ae qcacld-3.0: Remove obsolete "change country code" callbacks
In HDD there are currenty two different callback functions which were
formerly used to synchronize country code changes with SME:
- wlan_hdd_change_country_code_callback()
- wlan_hdd_change_country_code_cb()

With the "converged regulatory" implementation these are no longer
used, so remove them.

Change-Id: I65da8160c9057383ad3ccf3b2094b4c52fcf5a47
CRs-Fixed: 2212959
2018-03-27 13:52:35 -07:00
Jeff Johnson
5fe539bd73 qcacld-3.0: Relocate stats-related APIs
Currently quite a few stats-related APIs which have no dependency upon
wireless extensions (wext) are located in wlan_hdd_wext.c. Relocate
the following functions to wlan_hdd_stats.c:
wlan_hdd_get_rssi()
wlan_hdd_get_snr()
wlan_hdd_get_linkspeed_for_peermac()
wlan_hdd_get_link_speed()
wlan_hdd_get_peer_rssi()
wlan_hdd_get_peer_info()
wlan_hdd_get_class_astats()
wlan_hdd_get_station_stats()
wlan_hdd_get_temperature()

Change-Id: I72a35f33648f20bbb2c01bb81cea409f6e80ee00
CRs-Fixed: 2212113
2018-03-27 13:52:32 -07:00
Liangwei Dong
22810e8615 qcacld-3.0: Add ini for BT/WLAN chain assignment
We need to set chainmask for BT /wlan share antenna
case, e.g:
2.4g:wlan 1x1 on chain 1, BT chain 0
5G: wlan 2x2 chain 1&0.

Add ini enableBTChainSeparation, default 0.
If enableBTChainSeparation set 1, chainmask will
be set to FW event though 2x2 case.

Change-Id: Ifc8c2c64824c793b72a7caa878f500c71f722e17
CRs-Fixed: 2206935
2018-03-27 13:52:30 -07:00
nshrivas
2e6712029a Release 5.2.0.71M
Release 5.2.0.71M

Change-Id: I48b95e98320eca9ee4c49e2e1543306a9df89968
CRs-Fixed: 774533
2018-03-27 12:16:19 -07:00
nshrivas
aff068c260 Release 5.2.0.71L
Release 5.2.0.71L

Change-Id: I860b24bdbe9cd6a87ac91c264016f239971bd1b6
CRs-Fixed: 774533
2018-03-27 07:29:10 -07:00
Tushnim Bhattacharyya
3b99f4b181 qcacld-3.0: Deprecate enum sir_conn_update_reason
Deprecate enum sir_conn_update_reason & use enum
policy_mgr_conn_update_reason from policy manager component.

Change-Id: Id592d5405235f29a962a2a7d8b679fa4363f556d
CRs-Fixed: 2213000
2018-03-27 07:29:09 -07:00
Vignesh Viswanathan
e25af7882c qcacld-3.0: Send 11k offload disable to FW during RSO Stop
Currently 11k offload command is sent to FW as part of RSO Start and
not explicit 11k offload disable command is sent to the FW. In case of
STA+STA concurrency cases, while 11k offload is enabled for the 2nd
STA after STA 1 is disconnected, the FW asserts because it has 11k
offload enabled for STA 1 and has not deconfigured it yet.

Send 11k offload disable command as part of RSO Stop during disconnect
to the FW so that it deconfigures 11k for the currently enabled STA
and re-configures for the second STA without assertion.

Change-Id: I8a1bcb8906c809f451f7ab3df3e4c671cef062fd
CRs-Fixed: 2208649
2018-03-27 07:29:06 -07:00
Wu Gao
6fff99355c qcacld-3.0: Not wait for all peer delete completion for P2P device
For P2P Device, firstly it will delete the last peer in wma vdev
detach, so not wait before deliver WMA_DEL_STA_SELF_REQ. Secondly,
no throughput case run on P2P device, and no need to take care the
case which no vdev stop response from FW and then deliver
WMI_VDEV_DELETE before WMI_PEER_DELETE.

Change-Id: I36358cbc6045db2dd77b354a37817991f261d856
CRs-Fixed: 2204327
2018-03-27 07:29:01 -07:00
nshrivas
a0aebf8b89 Release 5.2.0.71K
Release 5.2.0.71K

Change-Id: Ia5acd1f50f08186ac7d847f6440684b912f56a71
CRs-Fixed: 774533
2018-03-27 00:25:31 -07:00
Bala Venkatesh
c8236ca598 qcacld-3.0: Add ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN
Added ENABLE_DBS_CXN_AND_DISABLE_DBS_SCAN option for the ini
gDualMacFeatureDisable. To enable dbs support for the
connection and disable dbs support for the scan.

Change-Id: I05c613467195fffac98e79b7e4a2991471ac1d80
CRs-Fixed: 2202919
2018-03-27 00:25:30 -07:00
nshrivas
e422142256 Release 5.2.0.71J
Release 5.2.0.71J

Change-Id: Ic36a7448618f62057a56797ccf210679fcf88b31
CRs-Fixed: 774533
2018-03-26 23:07:57 -07:00
bings
fe10dd1441 qcacld-3.0: Do not switch channel when target channel is 0
When all the configured channel are in NOL list, the target channel
will be set as 0 and sap will be stopped.
Currently a workqueue is created to stop sap, so channel switch may
still happens if it is called before this workqueue is executed.

Switch channel should be not happened when target channel is 0.

Change-Id: I368830bddcd9363826f6f2c8898b86ece8dd7d89
CRs-Fixed: 2203899
2018-03-26 23:07:55 -07:00
nshrivas
213eea0f77 Release 5.2.0.71I
Release 5.2.0.71I

Change-Id: Iea31aa2e05ca0c99e7da24459ca78d657057130a
CRs-Fixed: 774533
2018-03-26 16:32:20 -07:00
Kiran Kumar Lokere
f595fd48a8 qcacld-3.0: Set BA buffer size default value to 63
Set the BA buffer size value in addba response to 63
to fix IoT issue in sending block ack for A-MPDU.

Change-Id: I48ffbcfb81d3fdf365907d2bf8eafab6fd15c701
CRs-Fixed: 2210393
2018-03-26 16:32:19 -07:00
nshrivas
d0fdd55e65 Release 5.2.0.71H
Release 5.2.0.71H

Change-Id: I0902928e88a2d1aac49f6b2869b08e7ae190d897
CRs-Fixed: 774533
2018-03-26 00:25:29 -07:00
nshrivas
f70b4a15fc Release 5.2.0.71G
Release 5.2.0.71G

Change-Id: Ia8d559b82977d3276a37402939252513baf7f63b
CRs-Fixed: 774533
2018-03-24 21:50:39 -07:00
Jeff Johnson
7f2c5915a9 qcacld-3.0: Refactor hdd_register_wext()
In addition to actually registering with wireless extensions,
hdd_register_wext() initializes data structures associated with the
STA's roam profile. Since roam profile initialization is independent
of wireless extensions, refactor all of the roam profile
initialization code out of hdd_register_wext(), and relocate it to
wlan_hdd_assoc.c.

Change-Id: Ibd19b02373694b169ba9c122c812a264e6b8a63b
CRs-Fixed: 2212067
2018-03-24 21:50:39 -07:00
nshrivas
244420655f Release 5.2.0.71F
Release 5.2.0.71F

Change-Id: Ia5b5ad0c4268f0189e585d850895b4f1c1bb4fc6
CRs-Fixed: 774533
2018-03-24 12:06:34 -07:00
Jiachao Wu
4584516ba4 qcacld-3.0: EID is wrong when set SAP hwmod
Correct wrong EID in wlan_hdd_set_sap_hwmode.
It should be WLAN_EID_SUPP_RATES.

Change-Id: Ic80f8b6bd32cc681ca5ae86c4cedf8435239350c
CRs-Fixed: 2204402
2018-03-24 12:06:34 -07:00
nshrivas
e33cb0d2a5 Release 5.2.0.71E
Release 5.2.0.71E

Change-Id: I59707ea1a8fc34a6a147eab52e0ae18317f1678f
CRs-Fixed: 774533
2018-03-24 02:51:16 -07:00
gaurank kathpalia
a398d5fb2e qcacld-3.0: Modify dwell time and DBS scan based on scan request
Update wiphy with feature to modify dwell time
and DBS scan based on scan request from cfg.

Change-Id: I23498799c05a252cbc9c9f6d50b847130dd0ceac
CRs-Fixed: 2197172
2018-03-24 02:51:13 -07:00
nshrivas
7975e57b57 Release 5.2.0.71D
Release 5.2.0.71D

Change-Id: I038e4aad51ff0208c34c72d672afb5f6b742b1e1
CRs-Fixed: 774533
2018-03-24 01:33:23 -07:00
Jeff Johnson
eefd3be525 qcacld-3.0: Remove obsolete standard wext dispatch tables
Support for standard wireless extensions has been removed from the
driver so remove the (now empty) dispatch tables as well.

Change-Id: I274906978302c029e4132cd119cefe5b02074a55
CRs-Fixed: 2211125
2018-03-24 01:33:22 -07:00
Jeff Johnson
618764fc36 qcacld-3.0: Remove obsolete standard_wext_control INI item
Previously the INI item standard_wext_control was used to control
whether or not standard wireless extensions (wext) ioctls were allowed
to be called. But since they were obsolete, all support for standard
wireless extensions ioctls have been removed from the driver. As a
result this INI items is also obsolete, so remove it.

Change-Id: I608f54fc13df691fe3d3774fdecdbfa9e0b553f8
CRs-Fixed: 2211124
2018-03-24 01:33:20 -07:00
nshrivas
ff7b43880c Release 5.2.0.71C
Release 5.2.0.71C

Change-Id: If906a65f2b60669e769c2ecd4cf982e10d9f1b06
CRs-Fixed: 774533
2018-03-24 00:32:45 -07:00
Jeff Johnson
81ea01ab8c qcacld-3.0: Remove obsolete SAP support for SIOCGIWFREQ
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
SAP implementation of SIOCGIWFREQ should no longer be used, so remove
it.

Change-Id: I2d0205a854c6216ef36274954027c3d383deea39
CRs-Fixed: 2211123
2018-03-24 00:32:44 -07:00
Jeff Johnson
adfcc89a0f qcacld-3.0: Remove obsolete STA support for SIOCGIWNAME
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCGIWNAME should no longer be used, so remove
it.

Change-Id: Ic2c5d20fe3837d0481b4ef2f936e22c6ba867ec8
CRs-Fixed: 2211122
2018-03-24 00:32:42 -07:00
nshrivas
6e3e7ae589 Release 5.2.0.71B
Release 5.2.0.71B

Change-Id: If1800cacb58cd3c9a5caa59b4ea08b1b92b5f790
CRs-Fixed: 774533
2018-03-23 23:25:30 -07:00
Jeff Johnson
980e6a1922 qcacld-3.0: Remove obsolete STA support for SIOCGIWRANGE
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCGIWRANGE should no longer be used, so remove
it.

Change-Id: I428e350e43cae5b8a67e8edfedc156102d9d7e3c
CRs-Fixed: 2211121
2018-03-23 23:25:29 -07:00
Jeff Johnson
fe2a28beda qcacld-3.0: Remove obsolete STA support for SIOCSIWCOMMIT
At one time the predecessor to the current driver was managed via
wireless extensions, but now the driver is managed by cfg80211. The
STA implementation of SIOCSIWCOMMIT should no longer be used, so
remove it.

Change-Id: Id5bceb081666f5f396765ac01ab6d4ee532719b5
CRs-Fixed: 2211120
2018-03-23 23:25:26 -07:00
Jeff Johnson
fd9928af95 qcacld-3.0: Incorporate hdd_wext_state into hdd_station_ctx
None of the data items contained in struct hdd_wext_state is actually
unique to wireless extensions(wext) -- cfg80211 also uses these data
items. Since all of these data items are now being accessed by
accessor functions, rename and relocate them to struct
hdd_station_ctx.

Change-Id: Icfdde73ed3f01fb1c48105e0728f610fe1d94717
CRs-Fixed: 2208687
2018-03-23 23:25:23 -07:00
Jeff Johnson
37ecea4381 qcacld-3.0: Update auth key mgmt semantics
Currently HDD maintains an auth key management bitmap as field
authKeyMgmt in struct hdd_wext_state utilizing bitmaps defined by
wireless.h. This current implementation suffers from the following
issues:
- The implementation is independent of wireless extensions so it
  should not use wireless.h definitons or be stored in a wext-related
  data structure.
- The name uses camelCase which is inconsistent with the Linux coding
  style.

To address these issues define a new set of bitmps along with a
properly named field located in struct hdd_station_ctx.

Change-Id: I0d1c66236f88b7e6486b2d03c3383ef38f80c134
CRs-Fixed: 2207904
2018-03-23 23:25:20 -07:00
nshrivas
daeb4014d4 Release 5.2.0.71A
Release 5.2.0.71A

Change-Id: I1df2e1479539cd07b3017f7f490bf229be10b112
CRs-Fixed: 774533
2018-03-23 21:38:47 -07:00
nshrivas
8027f29e1e Release 5.2.0.71
Release 5.2.0.71

Change-Id: I3452525f210e1526ba5ca1ff43aab5ca50114871
CRs-Fixed: 774533
2018-03-23 04:37:34 -07:00
Ashish Kumar Dhanotiya
e4e6c5b819 qcacld-3.0: Complete all wait events before shutdown
There is a race condition between complete wait events as part of fw_down
indication and wait for timeout of stop_bss_event during stop_ap.

When stop ap and SSR runs parallel, first as part of SSR, fw_down
indication comes and all the wait_events are getting set. After this
as part of SAP stop, driver is waiting for stop_bss_event which will
be never set as fw_down indication is already processed. Timeout of
stop_bss_event is much higher than the timeout of wait-for-external-
thread-completion during shutdown, hence shutdown will proceed without
setting the stop_bss_event. Now as part of the SSR, hdd_re_init gets
invoked and the memory of the hdd_hostapd_state (and as part of this
memory of stop_bss_event) is getting memset inside hdd_init_ap_mode.
After this memset the timeout of the stop_bss_event occurs and
stop_bss_event tries to access this memset memory.

To address this issue, all the events which were added in between fw_down
indication and shutdown process, should be completed as part of
the shutdown.

Change-Id: I022f125b2afc99862351407b140f2d1b72f43bc4
CRs-Fixed: 2206326
2018-03-23 04:37:33 -07:00
nshrivas
08b89eab90 Release 5.2.0.70Z
Release 5.2.0.70Z

Change-Id: Ic09359df515c8d3d93e336b383d29c3a72d80c7a
CRs-Fixed: 774533
2018-03-23 03:18:23 -07:00
nshrivas
a9b3312a91 Release 5.2.0.70Y
Release 5.2.0.70Y

Change-Id: I37c385a361b45292dd8e6d205ef82d69e5fe41e3
CRs-Fixed: 774533
2018-03-22 17:14:21 -07:00
nshrivas
d0396bbd5a Release 5.2.0.70X
Release 5.2.0.70X

Change-Id: I067dbb60f8d3193ec1bceabdb46b93a09b2b655c
CRs-Fixed: 774533
2018-03-22 01:58:50 -07:00
Himanshu Agarwal
5fb304b11a qcacld-3.0: Assign center_freq1 and center_freq2 before use
As center_freq1 and center_freq2 passed in bss start params
by hostapd are not stored in sap_config, center_chan derived
in sap_ch_params_to_bonding_channels() is coming 0. And so BSS
start failed.

Store center_freq1 and center_freq2 in sap_config in
__wlan_hdd_cfg80211_start_ap().

Change-Id: I3a5869c2d8488a5bd272762b8dab67b340d72817
CRs-Fixed: 2193663
2018-03-22 01:58:50 -07:00
nshrivas
90e0ce4cfa Release 5.2.0.70W
Release 5.2.0.70W

Change-Id: Iad076888e3de7e719adb651d136e19db8321c3bc
CRs-Fixed: 774533
2018-03-21 18:57:38 -07:00
Sravan Kumar Kairam
983a445b37 qcacld-3.0: Move IPA SMMU functions to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy HDD IPA SMMU functions to the
IPA component.

Change-Id: I3ac5ebe87cc48913f3e8e075e60737e78664f861
CRs-Fixed: 2177925
2018-03-21 18:57:34 -07:00
Sravan Kumar Kairam
5214f65bf9 qcacld-3.0: Move IPA WLAN event handler to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy HDD IPA WLAN event handler to
the IPA component.

Change-Id: Ia53adce7ef29eea747f288fa074f96a84e47925d
CRs-Fixed: 2177925
2018-03-21 18:57:30 -07:00
Sravan Kumar Kairam
1309e7eaf5 qcacld-3.0: Move IPA UC offload initialization to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA UC offload initialization to
the IPA component.

Change-Id: I221a11e7f8aa2459918f87c6b043d4682e05cb04
CRs-Fixed: 2177925
2018-03-21 18:57:23 -07:00
Sravan Kumar Kairam
858073b1f9 qcacld-3.0: Remove legacy IPA code from HDD
As part of converged driver model remove IPA from
HDD and create a new IPA CLD component. Remove the
legacy code from the HDD.

Change-Id: Id4691e0f490c2f9bd9ccc8d5225be32002a5df9e
CRs-Fixed: 2177925
2018-03-21 18:57:20 -07:00
Sravan Kumar Kairam
271fab287a qcacld-3.0: Move IPA stats and debug info API to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA stats and debug info  APIs to
the IPA component.

Change-Id: Ieb68a1579986c835f66c84e5e3b7aa2a4004383d
CRs-Fixed: 2177925
2018-03-21 18:57:17 -07:00
Sravan Kumar Kairam
9e99e9a9f9 qcacld-3.0: Move IPA set perf level API to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA set perf level APIs to the IPA
component.

Change-Id: Idbbab9cc6885b6acf1cd40d432a236f0629c8dff
CRs-Fixed: 2177925
2018-03-21 18:57:14 -07:00
Sravan Kumar Kairam
d01b445db4 qcacld-3.0: Move IPA setup and initialization to IPA component
IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA setup and initialization code
to the IPA component.

Change-Id: I63717eb2601c569131c6642f7330e4182e604424
CRs-Fixed: 2177925
2018-03-21 18:57:08 -07:00
Sravan Kumar Kairam
a0600b8a87 qcacld-3.0: Modify IPA UC offload control cmd
IPA module has been moved to CLD component under the converged
driver model. Remove legacy WMA interface IPA command and use
the new defined API.

Change-Id: Icd9a207f43f8df4dc563d0078d402470683cfd7d
CRs-Fixed: 2177925
2018-03-21 18:57:06 -07:00
Sravan Kumar Kairam
4af61cf612 qcacld-3.0: Create IPA CLD component
As part of converged driver model remove IPA from
HDD and create a new IPA CLD component. Add files for
IPA core, dispatcher and target_if. Define IPA related
public and private structures.

Change-Id: I8848331edc7dd878f9fc51ef9f5e311ad91ed70b
CRs-Fixed: 2177925
2018-03-21 18:57:03 -07:00
Jeff Johnson
f908cd0cad qcacld-3.0: Use roam profile accessor in wlan_hdd_wext.c
Update wlan_hdd_wext.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: I0b7998f674fae9b021b2f5c4d5911b930ed40a39
CRs-Fixed: 2207896
2018-03-21 16:08:45 -07:00
Jeff Johnson
eb21475834 qcacld-3.0: Use roam profile accessor in wlan_hdd_scan.c
Update wlan_hdd_scan.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: I0aec410024263a2f44b79cbcb5f49b3347a5b46f
CRs-Fixed: 2207895
2018-03-21 16:08:35 -07:00
Jeff Johnson
a0c1ca7751 qcacld-3.0: Use roam profile accessor in wlan_hdd_power.c
Update wlan_hdd_power.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: I1d7be21fa5bec21f9502e7c078360d72fc426a6d
CRs-Fixed: 2207894
2018-03-21 16:08:25 -07:00
Jeff Johnson
641839e239 qcacld-3.0: Use roam profile accessor in wlan_hdd_nan_datapath.c
Update wlan_hdd_nan_datapath.c to use the recently introduced roam
profile accessor function hdd_roam_profile().

Change-Id: I442aa7a4ea62f8a5105ed7d7783394f883d5f215
CRs-Fixed: 2207893
2018-03-21 16:08:14 -07:00
Jeff Johnson
025618cb1a qcacld-3.0: Use roam profile accessor in wlan_hdd_main.c
Update wlan_hdd_main.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: Idfb20fbf55c45051e8e67d6a2a746e44c5176ff3
CRs-Fixed: 2207892
2018-03-21 16:08:05 -07:00
Jeff Johnson
8313b9dfdd qcacld-3.0: Use roam profile accessor in wlan_hdd_ioctl.c
Update wlan_hdd_ioctl.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: I6a535f56ed93ebbeb77d3b23f21562e8cd1beb1e
CRs-Fixed: 2207891
2018-03-21 16:07:53 -07:00
Jeff Johnson
2b89f8b8bd qcacld-3.0: Use roam profile accessor in wlan_hdd_hostapd.c
Update wlan_hdd_hostapd.c to use the recently introduced roam profile
accessor function hdd_roam_profile().

Change-Id: Ieb772ec0b851d9a036f01f5002f35033c628d8db
CRs-Fixed: 2207890
2018-03-21 16:07:42 -07:00