Commit Graph

7559 Commits

Author SHA1 Message Date
Himanshu Agarwal
dfc4dcac67 qcacld-3.0: Code cleanup in Vendor ACS support code
1. Add modularity to the vendor acs logic
2. Add error conditions, return values and their handling.
3. Add appropriate kernel doc.

Change-Id: I5e07910d243686f77a8abbed373ea7970992b6d0
CRs-Fixed: 2100804
2017-10-30 01:39:13 -07:00
snandini
9b89a2681d Release 5.2.0.51V
Release 5.2.0.51V

Change-Id: Ia23aa9c8726e64e2323bd5fb0e766aa8b92836cf
CRs-Fixed: 774533
2017-10-28 03:37:28 -07:00
Kiran Kumar Lokere
e6476b2c02 qcacld-3.0: Add iwpriv support to set HE bss color
Add iwpriv support to set HE bss color in SAP 11AX mode operation

Change-Id: Ib58b93e8a66d9154024e61581885c4a10d737631
CRs-Fixed: 2130322
2017-10-28 03:37:27 -07:00
snandini
006ea7f34e Release 5.2.0.51U
Release 5.2.0.51U

Change-Id: I3eb313dbd2600cad4b65a4239fa930835d0da635
CRs-Fixed: 774533
2017-10-27 17:40:16 -07:00
Zhang Qian
d9bb45657e qcacld-3.0: Fix 80211 frame subtype value in DoS attacks check
Propagation from qcacld-2.0 to qcacld-3.0

The subtype values used in the Dos attacks check are not correct.
No MGMT frame will be dropped in a DoS attack.

Change-Id: I0fdcffd7151a78abf21bb0f4223aaba3e86a46ab
CRs-Fixed: 2103880
2017-10-27 17:40:16 -07:00
snandini
52a4b1564f Release 5.2.0.51T
Release 5.2.0.51T

Change-Id: Idbd8b23d0ba07c9ab830dc7f6b69f5bc018fbe67
CRs-Fixed: 774533
2017-10-27 13:33:08 -07:00
Kiran Kumar Lokere
a2dfefe6f8 qcacld-3.0: Add knobs to configure the scan paramters
Add user configuration parameters to configure the number of
probes in scan request and probe repeate time during scan.

Change-Id: I65a3734d8080d8adfe3e9ffa26905e6adc196197
CRs-Fixed: 2071697
2017-10-27 13:33:07 -07:00
snandini
5850c8cf13 Release 5.2.0.51S
Release 5.2.0.51S

Change-Id: I8c9f821605cb4fb42dd4154068b43a763c62d7dc
CRs-Fixed: 774533
2017-10-27 11:53:32 -07:00
Yingying Tang
84e0d5f2a8 qcacld-3.0: Add "static" to fix compilation error for HL bus
Add "static" before some functions which only be used in 1 file to
resolve compilation error.

Change-Id: Id1b1101c3bb04910ad1e3639887f74e44d5b7c36
CRs-Fixed: 2010227
2017-10-27 11:53:32 -07:00
snandini
d7cbe08653 Release 5.2.0.51R
Release 5.2.0.51R

Change-Id: I6da8dd2718714ca2dce55a6e934bb72d441014eb
CRs-Fixed: 774533
2017-10-27 07:56:52 -07:00
Zhu Jianmin
b639e9beaf qcacld-3.0: Fixed wrong warning log for no return issue
warning log: Bug report already in progress - dropping! type
if caller check return value, have potential issues

Change-Id: Idc8f74437e979880e1d0e4209359c96fcfdba4d9
CRs-Fixed: 2133211
2017-10-27 07:56:51 -07:00
snandini
b217491a2b Release 5.2.0.51Q
Release 5.2.0.51Q

Change-Id: Ibca109e66abdc30ec0c0a3eff1c8a33a5c909ee7
CRs-Fixed: 774533
2017-10-27 03:49:59 -07:00
Arif Hussain
dbea6e1204 qcacld-3.0: Fix incorrect length of encrypted auth frame
Change id “I684dbc89945ba3aef3186c872e5e1f7564d7e44c”
and  “I5ba5748c9ae00b61743883862ca884ac1134da15”
fixes merged in reverse order, there by reverting second fix.

Correcting the same.

Change-Id: I6b4912bf3717a0cc68b4184e4e2a8482766d4ad8
CRs-Fixed: 2128343
2017-10-27 03:49:59 -07:00
jiad
cdaf9bd6be qcacld-3.0: Fix build error in LRO without MSM_PLATFORM
When compiling without MSM_PLATFORM, error is seen like
'struct hdd_context has no member named cur_rx_level'.
cur_rx_level is defined in struct hdd_context only when
MSM_PLATFORM is defined.

Fix is to define a new API to send throughput indication
within MSM_PLATFORM.

Change-Id: Ibbc997f3bda806d0c3f78d3d90cbbc1a20f06015
CRs-Fixed: 2132918
2017-10-27 03:49:57 -07:00
snandini
d9dbfb26c3 Release 5.2.0.51P
Release 5.2.0.51P

Change-Id: I0dac828242d95a6704e0c402ed7fd1946af2727c
CRs-Fixed: 774533
2017-10-27 01:58:03 -07:00
Orhan K AKYILDIZ
e7445a2e75 qcacld-3.0: Set CPU floor freq on high throughput
On high throughput mode, send a message to perfd, through
cnss-daemon, to set the min freq for perf cluster to 700 KHz,
and release it on transition to low throughput.

Goes with corresponding changes on cnss-daemon (1834087).

Change-Id: I9c5c701fa33992e44fc3bad5e58599da0b45cbd7
CRs-Fixed: 1115614
2017-10-27 01:58:03 -07:00
snandini
af469ebe46 Release 5.2.0.51O
Release 5.2.0.51O

Change-Id: I92a2b9db1f7fed8fcd465351f19972e73d57e442
CRs-Fixed: 774533
2017-10-26 23:48:13 -07:00
Jayachandran Sreekumaran
9f18042578 qcacld-3.0: Restrict AP switching to DFS channel
Restrict AP switching to DFS channel to enforce SCC
in AP+STA+AP case

Change-Id: I5b581142abb02a9209200ee21fb6a2e1fbc18795
CRs-Fixed: 2133126
2017-10-26 23:48:13 -07:00
snandini
19fb9579fc Release 5.2.0.51N
Release 5.2.0.51N

Change-Id: I244bfe9fe2a0bd8525da216543b99c5d79ee79b8
CRs-Fixed: 774533
2017-10-26 21:49:26 -07:00
Yun Park
4625568612 qcacld-3.0: Rework HDD IPA stats
Rework WLAN IPA uC stats:
-IPA resource info
-IPA session info
-HDD IPA TX/RX stats
-WLAN FW WDI stats
-IPA WDI stats
Update HDD IPA private data dump
Remove deprecated stats in qcacld-3.0

Change-Id: I8f5170116156b48530ebb3f04f0a9f377972860c
CRs-Fixed: 2124144
2017-10-26 21:49:26 -07:00
Yun Park
199c2ed245 qcacld-3.0: Add warning log for IPA session control critical code path
Add warning log at the critical code path of IPA session transition
for the race condition detection
Set INFO log level to enter/exit logs for IPA session transition
code path.

Change-Id: I5089db5f53d13e5f78093171672ad86f7bd1cdc2
CRs-Fixed: 2124144
2017-10-26 21:49:24 -07:00
Varun Reddy Yeturu
62c3265af2 qcacld-3.0: Check firmware MAWC capability
Check for the target capability for MAWC(Motion Aided Wireless
Connectivity) feature before sending the roaming or PNO based
MAWC WMI commands to the firmware.

Change-Id: I0cc344d8307cf43996c2eede835bf9069790fa56
CRs-Fixed: 2117825
2017-10-26 16:53:08 -07:00
Varun Reddy Yeturu
5303e081e2 qcacld-3.0: Check vdev status before sending vdev up
Check the vdev status if it is already UP before sending the
vdev up command to the firmware. Take care of the below
scenario by not sending the vdev up as the firmware cannot
handle another vdev up command if the vdev is already UP.
1)STA mode VDEV restart is going on and host sends VDEV restart
request to FW.
2)At the same time peer assoc request message is posted from
LIM to WMA.
3)FW WMI VDEV start response is received through
WMI_VDEV_RESTART_RESP_EVENT.
4)In this case 2) will send vdev up and no 3) also will send the
second vdev up.

Change-Id: I7fe97473c26a0653b8328d1dab2e5799cbd21f10
CRs-Fixed: 2131729
2017-10-26 16:52:50 -07:00
snandini
21fff3db42 Release 5.2.0.51M
Release 5.2.0.51M

Change-Id: I85474d4f8175400b830429314030a802bb6cbfd9
CRs-Fixed: 774533
2017-10-26 15:39:32 -07:00
Dustin Brown
f79711973f qcacld-3.0: Return failure from cds_open for all failure paths
cds_open() currently returns success for a large subset of its failure
paths. Ensure a failure reason is returned for every failure path in
cds_open().

Change-Id: I857ffce4eac30ce3fc332c5392c1e859217c414f
CRs-Fixed: 2132715
2017-10-26 15:39:31 -07:00
Sandeep Puligilla
5ac6bd2920 qcacld-3.0: Allow recovery during firmware down
Host is triggering crash during vdev response
timeout handler when firmware is down.

If firmware is down, Send failure response to
upper layer from WMA vdev timeout response handler
so that recovery can complete.

Change-Id: Ib5cf2c539fded700b07a694fa6771c9ba8550173
CRs-Fixed: 2128282
2017-10-26 15:39:29 -07:00
snandini
e6119931d6 Release 5.2.0.51L
Release 5.2.0.51L

Change-Id: I6fc16706d01aff171f3e0260fff6df03c4406176
CRs-Fixed: 774533
2017-10-26 13:39:22 -07:00
Dustin Brown
a5cf8e0207 qcacld-3.0: Cleanup ACS channels in stop adapter
Currently, the auto channel selection (ACS) channel list is cleaned up
when ACS is disabled from userspace. Make sure the ACS channel list is
cleaned up as part of adapter stop to cover cases where userspace does
not trigger the cleanup of the ACS channel list.

Change-Id: I92b63c7ea53fba55a39e6b414d0f3ed28d4019a2
CRs-Fixed: 2129647
2017-10-26 13:39:21 -07:00
snandini
39cbfc1bfc Release 5.2.0.51K
Release 5.2.0.51K

Change-Id: I0a47c3636fa2a9ddabb2afb7ce46e044d6f27765
CRs-Fixed: 774533
2017-10-26 11:43:30 -07:00
Bala Venkatesh
f4928a4688 qcacld-3.0: Adding the missed p2p_listen_defer_interval
Included CFG_P2P_LISTEN_DEFER_INTERVAL_NAME in g_registry_table.

Change-Id: Iec0e3581ea6de3965b7767f4895f6f2ef231e25a
CRs-Fixed: 2130649
2017-10-26 11:43:30 -07:00
snandini
d886f8da6b Release 5.2.0.51J
Release 5.2.0.51J

Change-Id: Ief8bf6620a7ab0cd46b63410eb1fa2e6c807a9cf
CRs-Fixed: 774533
2017-10-26 09:46:32 -07:00
Poddar, Siddarth
47c2340287 qcacld-3.0: Enable/Disable LRO for low throughput based on rx packet count
It is observed that LRO is affecting the throughput in low TPUT noisy
scenario as by its nature LRO suppresses the TCP acks.

Change-Id: I9f74418b53492ae12934fc09277aafa0c002ae0b
CRs-Fixed: 2056706
2017-10-26 09:46:32 -07:00
snandini
c3d2863036 Release 5.2.0.51I
Release 5.2.0.51I

Change-Id: I7b928b157a91484b10beec78680e43d64bdbd135
CRs-Fixed: 774533
2017-10-26 07:27:52 -07:00
Sarada Prasanna Garnayak
f04667af34 qcacld-3.0: add device pointer in pld snoc API
Add device pointer in all pld snoc API to support
for numerous WLAN module.

Change-Id: Id6c3d559ebc67d40536a60ab78d468fb5f0fbf03
2017-10-26 07:27:52 -07:00
snandini
b941e3371a Release 5.2.0.51H
Release 5.2.0.51H

Change-Id: I9a1424ec094be20fffdd25086e83e6b0fff85157
CRs-Fixed: 774533
2017-10-26 05:39:57 -07:00
Yeshwanth Sriram Guntuka
4ce0a1b2b5 qcacld-3.0: Check sme session opened flag for opened interfaces
Sap context memory is allocated on adding softap interface.
If wlan interface is disabled after softap interface is added,
iface_idle_work is scheduled since DEVICE_IFACE_OPENED will
not be set. Memory leak will happen as sap context is not
freed in this case.

Fix is to check for DEVICE_IFACE_OPENED or SME_SESSION_OPENED
flag for opened interfaces.

Change-Id: I3585078135dc042222a92cf5c896ad26a086e506
CRs-Fixed: 2126666
2017-10-26 05:39:57 -07:00
snandini
87ee5c25d5 Release 5.2.0.51G
Release 5.2.0.51G

Change-Id: Ib0d313c30a94da9241fa83d38ac0336663b1ebd3
CRs-Fixed: 774533
2017-10-26 04:08:03 -07:00
Ganesh Kondabattini
930304cc26 qcacld-3.0: ini parameter to allow STA+SAP SCC on DFS channel
Add an ini parameter to allow STA+SAP SCC on DFS channel with
master mode support disabled.

CRs-Fixed: 2127458
Change-Id: I52c5687e10bf94f0d01e60d269357a9d3d1d5fe3
2017-10-26 04:08:03 -07:00
snandini
bcff4a4ec3 Release 5.2.0.51F
Release 5.2.0.51F

Change-Id: I4457684bb25e61c3f2692f1ce233fdba950936d9
CRs-Fixed: 774533
2017-10-25 23:40:51 -07:00
Vignesh Viswanathan
a2ef8b1904 qcacld-3.0: Fix OOB read in wma_mgmt_tx_bundle_completion_handler
In function wma_mgmt_tx_bundle_completion_handler
cmpl_params->num_reports, param_buf->desc_ids and param_buf->status
are received from the FW. num_reports is used as array index to access
desc_ids and status. If the value of num_reports exceeds the max
allowed array index, out of bounds access would happen.

Add sanity check to make sure num_reports does not exceed the max
allowed limit. Also make sure num_reports is not greater than
num_desc_ids and num_status

Change-Id: I300411febf6449680e873e5947fa767298afe962
CRs-Fixed: 2119439
2017-10-25 23:40:50 -07:00
snandini
6c4d02ee48 Release 5.2.0.51E
Release 5.2.0.51E

Change-Id: I7bb1b120a85338b73aa0f631bc81a6e913e790cf
CRs-Fixed: 774533
2017-10-25 21:26:44 -07:00
Jingxiang Ge
04c945017f qcacld-3.0: Add buffer length check to avoid over-read
In wma_mgmt_rx_process, mgmt_rx_params->buf_len is read
from message, if mgmt_rx_params->buf_len is larger than
data_len, it is possible to over-read from bufp with
corrupted message.

Change-Id: I7f06d81fd18960d0d6c57cdb4594680178022087
CRs-Fixed: 2126972
2017-10-25 21:26:44 -07:00
snandini
d4d7c8d1f6 Release 5.2.0.51D
Release 5.2.0.51D

Change-Id: I9b28aeb75a8013052011ed4cac3edfb415bbd926
CRs-Fixed: 774533
2017-10-25 19:41:30 -07:00
Jeff Johnson
7c0d3b27a5 qcacld-3.0: Rename hdd_station_ctx WextState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field WextState in struct hdd_station_ctx.

Change-Id: I57efdc0120b4e84b1c9f385d77ed148080d6db82
CRs-Fixed: 2132662
2017-10-25 19:41:30 -07:00
Jeff Johnson
8380f231b3 qcacld-3.0: Rename hdd_station_ctx staDebugState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field staDebugState in struct hdd_station_ctx.

Change-Id: Iab6712fac703b0a610226805a83349406e4109c9
CRs-Fixed: 2132661
2017-10-25 19:41:28 -07:00
Jeff Johnson
690fe95c47 qcacld-3.0: Rename hdd_station_ctx hdd_ReassocScenario field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hdd_ReassocScenario in struct hdd_station_ctx.

Change-Id: Ief794badd19ef9291a75c375ab919f1ffadb488a
CRs-Fixed: 2132660
2017-10-25 19:41:26 -07:00
Dustin Brown
018477577d qcacld-3.0: Reject interface up during SSR
A recent change added a sleeping wait to the interface up handing code
in hdd_open, which can lead to transient deadlocks and cascading bad
behavior when Sub-System Restart (SSR) is in progress. Instead, simply
return -EBUSY when SSR is in progress, allowing the user to try again.

Change-Id: Id029090f9aafefa76d9778f8e5de5698b852495b
CRs-Fixed: 2132580
2017-10-25 19:41:23 -07:00
Orhan K AKYILDIZ
57a78ea90d qcacld-3.0: Trigger recovery in rx-hash no-match
In case host receives a paddr in a HTT_RX_IN_ORDER_IND_PADDR msg
from FW that is not found in the rx_hash, instead of forcing an
APPS crash, iniate a host-triggered recovery. If the feature
is not enabled, this would be equivalent to the old code.

Change-Id: Iaab5329c13d626c4b94c690f5537899eecf2637b
CRs-Fixed: 2084522
2017-10-25 19:41:21 -07:00
snandini
7dbfa474db Release 5.2.0.51C
Release 5.2.0.51C

Change-Id: I9cf9db204a4e61b506f826d2186bf6710773089b
CRs-Fixed: 774533
2017-10-25 17:48:23 -07:00
Yuanyuan Liu
67abd8054f Revert "qcacld-3.0: Do not access target register in driver unloading"
This reverts Change-Id: I2a4980b6cd4b689da07c34f2acdfaafbbb0715bb.
This change set driver unload state before unload work is scheduled,
which causes async between platform driver and wlan host driver.

Change-Id: Ieaf1cf0a257f69bf8958085c48d9020f1b5ec610
CRs-Fixed: 2124953
2017-10-25 17:48:22 -07:00