Commit Graph

6133 Commits

Author SHA1 Message Date
bings
f904765f82 qcacld-3.0: Fix chain_stats memory illegal access
chain_stats in WMI_UPDATE_STATS_EVENTID_param_tlvs may be set as
NULL by wlan firmware.

When access chain_stats, make sure it is not NULL.

Change-Id: I3a78534899a3a56f378c4825ff5b8abedb543b8c
CRs-Fixed: 2102247
2017-09-07 06:12:52 -07:00
snandini
036d449d4b Release 5.2.0.41T
Release 5.2.0.41T

Change-Id: Ieee9cb03581f0fe5eb24c0eaf8578c86bea0cad9
CRs-Fixed: 774533
2017-09-07 05:30:36 -07:00
Dustin Brown
5fbb1052ee qcacld-3.0: Fix compile error for cfg80211_sched_scan_results()
The 4.12 Linux kernel adds a request id parameter to
cfg80211_sched_scan_results(). Add conditional compilation to provide
the correct parameters based on the kernel version.

Change-Id: I2008895e390af88af0b22df6bfd7ef753d25b419
CRs-Fixed: 2092070
2017-09-07 05:30:36 -07:00
Dustin Brown
3fb1504642 qcacld-3.0: Add wrapper for nla_parse()
The Linux kernel version 4.12 introduced an API change to nla_parse().
Add conditional complilation to call nla_parse with the correct
parameters based on the version of the linux kernel being compiled
against.

Change-Id: Ibacd71f65760f9de4d2d87c77392a1c20bae5fa1
CRs-Fixed: 2093345
2017-09-07 05:30:32 -07:00
snandini
278f2bcede Release 5.2.0.41S
Release 5.2.0.41S

Change-Id: I5edf1cef690a4e92f782326eff7056c15153a41a
CRs-Fixed: 774533
2017-09-07 03:21:36 -07:00
Govind Singh
d062a9e434 qcacld-3.0: Unlock rx hash lock in error cases
RX hash lock is not unlocked in case hash_table is
NULL and context is returned immediately without
unlocking the rx hash lock.

Unlock the rx hash lock before returning from the context.

Change-Id: I4ec2c272ac92cf5c0e93c64e34ce96cafe5cc11c
CRs-Fixed: 2104297
2017-09-07 03:21:36 -07:00
snandini
02d8fa53b7 Release 5.2.0.41R
Release 5.2.0.41R

Change-Id: I7001b62d335589208b5e572b090b25002e7974c1
CRs-Fixed: 774533
2017-09-06 22:52:31 -07:00
Sandeep Puligilla
ef41536a85 qcacld-3.0: Delete vdev object before sme close session
- Flush the active scan list during sme close
session
- Close sme session before deleting the vdev
object.

Change-Id: I8dd8fc794231a613e72089a01ddee5796b56abb7
CRs-Fixed: 2103543
2017-09-06 22:52:30 -07:00
Krunal Soni
3378790ded qcacld-3.0: Use updated serialization api to purge the commands
Few enhancements are made in serialization module to flush the commands
per vdev. Use updated serialization API to accommodate new changes.

Change-Id: I8df9900d83bea758ca5c50cbe0edf31e06f83a4c
CRs-Fixed: 2099063
2017-09-06 22:52:28 -07:00
snandini
a69395abe6 Release 5.2.0.41Q
Release 5.2.0.41Q

Change-Id: I14f9205ae5d25e5d62c41d27de171ea5ed9cdae1
CRs-Fixed: 774533
2017-09-06 20:56:09 -07:00
psimha
884025c68b qcacld-3.0: Cleanup of QCA_WIFI_NAPIER_EMULATION flag
Replacing the QCA_WIFI_NAPIER_EMULATION with QCA_WIFI_QCA6290 as
part of code cleanup for SoD.

Change-Id: I3ebcf3531041a27b6831b205bf45ff2cf6e2bf38
CRs-Fixed: 2085946
2017-09-06 20:56:09 -07:00
snandini
31ba9913c4 Release 5.2.0.41P
Release 5.2.0.41P

Change-Id: Icd3ee273ed2a8b1d19b0d3c2949e2a3578db9808
CRs-Fixed: 774533
2017-09-06 11:27:14 -07:00
Zhu Jianmin
35fcd0dbe7 qcacld-3.0: Enable log to cnss_diag for non-perf sdx
sdx/mdm:
  no-perf: Enable log to cnss_diag by default, have rich debug log.
           Avoid system crash when turn on much log in printk
           QXDM can be used too
  perf:    Disable log to cnss_diag by default for better performance

change-Id: I3b8011b327c78625abe56e9b51167d6ca2e3757f
CRs-Fixed: 2101171
2017-09-06 11:27:13 -07:00
snandini
8ef7707f04 Release 5.2.0.41O
Release 5.2.0.41O

Change-Id: Id02a406a98d7415dd1aa986114bf289eb38a1b71
CRs-Fixed: 774533
2017-09-06 08:13:03 -07:00
Dustin Brown
dfc5ef604e qcacld-3.0: Add reqid to sched_scan_stop callback
Linux kernel version 4.12 added a reqid parameter to the sched_scan_stop
callback signature. Add conditional compilation to use the correct
callback signature based on the version of the Linux kernel being
compiled against.

Change-Id: I500807de15ef5301b480e7f25a3dd146073f573d
CRs-Fixed: 2094028
2017-09-06 08:13:02 -07:00
snandini
088e7ccc4c Release 5.2.0.41N
Release 5.2.0.41N

Change-Id: I8262c38f28929d1dff5c798563f70fc5131e9e02
CRs-Fixed: 774533
2017-09-06 07:32:37 -07:00
Dustin Brown
ce46d1d24f qcacld-3.0: Fix implicit declaration of function ‘cdp_register_pause_cb’
The header where cdp_register_pause_cb is defined was mistakenly
included under a FEATURE_WLAN_CH_AVOID feature guard. This caused
compilation issues when FEATURE_WLAN_CH_AVOID was not defined. Move the
include out of the feature guard.

Change-Id: I340cbf888efc74f3761c0ea0fb53ea6d619f9306
CRs-Fixed: 2093249
2017-09-06 07:32:37 -07:00
snandini
842e33e84e Release 5.2.0.41M
Release 5.2.0.41M

Change-Id: I19a58eca4374a9d274bed94a99255832137e7de3
CRs-Fixed: 774533
2017-09-05 22:07:29 -07:00
Dustin Brown
9ed30a5a05 qcacld-3.0: move add/change interface flags into params
Linux kernel versions 4.12+ move the interface 'flags' parameter into
the vif_params struct. Consequently, the add/change interface callback
signatures were changed to match. Add conditional compilation to adjust
the add/change interface callback signatures based on the version of the
Linux kernel being compiled against.

Change-Id: I0b7f6e04922d219cdb992a2c098bbe862845ccee
CRs-Fixed: 2093983
2017-09-05 22:07:29 -07:00
snandini
a80960bacd Release 5.2.0.41L
Release 5.2.0.41L

Change-Id: I68fa3169230ce31decc57a76d584cf6edced93dc
CRs-Fixed: 774533
2017-09-04 00:12:43 -07:00
Abhishek Singh
4294f801f1 qcacld-3.0: Reduce the log spam in lim
Move the logs to appropriate log levels to reduce the
log spam in lim_process_sme_req_messages.c and
lim_session.c

Change-Id: I3f81b3c2885814d80c8bf1e695454ce1bf279372
CRs-Fixed: 1093093
2017-09-04 00:12:43 -07:00
Abhishek Singh
5d8d7332fc qcacld-3.0: Reduce the log spam in Kmsg
Move the logs to appropriate log levels to reduce
the log spam in kmsg

Change-Id: I2138de8f2be2e432ba84ee0615c14946da228fc9
CRs-Fixed: 1093093
2017-09-04 00:12:41 -07:00
snandini
76ae4aace5 Release 5.2.0.41K
Release 5.2.0.41K

Change-Id: I1b53890c313150c438985e75fa692db5fc159799
CRs-Fixed: 774533
2017-09-03 22:33:17 -07:00
Abhishek Singh
e4a1f88512 qcacld-3.0: Reduce the log spam in sme_api.c
Move the logs to appropriate log levels to reduce
the log spam in sme_api.c

Change-Id: Ie3f663c646837652fce5fab008bbcc7286ae8b83
CRs-Fixed: 1093093
2017-09-03 22:33:15 -07:00
Abhishek Singh
2c77d7d192 qcacld-3.0: Reduce the log spam in sme_power_save.c
Move the logs to appropriate log levels to reduce
the log spam in sme_power_save.c and sme_trace.c

Change-Id: I3d3c4e35db8dc8b94bf5e71be79dc4dd7958762c
CRs-Fixed: 1093093
2017-09-03 22:33:10 -07:00
Abhishek Singh
245182fcba qcacld-3.0: Reduce the log spam in csr_api_roam.c
Move the logs to appropriate log levels to reduce
the log spam in csr_api_roam.c

Change-Id: I583c149bb8dd9768d8a06bbf87fc24d296bcab12
CRs-Fixed: 1093093
2017-09-03 22:33:06 -07:00
Abhishek Singh
438cd7ea60 qcacld-3.0: Reduce the log spam in csr_api_scan.c
Move the logs to appropriate log levels to reduce
the log spam in csr_api_scan.c

Change-Id: I2bb870f5b784b24cf47307ddffcc12a67ea40d70
CRs-Fixed: 1093093
2017-09-03 22:33:01 -07:00
Abhishek Singh
7bdb19cbef qcacld-3.0: Reduce the log spam in csr files
Move the logs to appropriate log levels to reduce the
log spam in csr_neighbor_roam.c, csr_roam_preauth.c,
csr_tdls_process.c and csr_util.c

Change-Id: Ib59c127591f41664593fd66a423a3153ceabd18e
CRs-Fixed: 1093093
2017-09-03 22:32:57 -07:00
snandini
89748e0235 Release 5.2.0.41J
Release 5.2.0.41J

Change-Id: Ida0fbf08fa29da951097a8e9dae7ce1071082e86
CRs-Fixed: 774533
2017-09-03 21:36:26 -07:00
jiad
5b98663690 qcacld-3.0: Fix potential spinlock recursion on UP
wlan_hdd_update_txq_timestamp tries to grab txq spinlock
in __dev_queue_xmit context. Issue is txq spinlock is
already held before calling into driver's ndo_start_xmit
callback. On UP system, kernel throws a BUG and system
crashes.

Fix is to detect spinlock recursion and only tries
to grab the lock when it is not held on the same
CPU or not held.

Change-Id: I3956ef00c4f4a563155dc82ed8f95f097129fb0c
CRs-Fixed: 2050134
2017-09-03 21:36:23 -07:00
snandini
d13036f3f7 Release 5.2.0.41I
Release 5.2.0.41I

Change-Id: I7a2a048b2cb257ef501a5f4181adf826cd8b91d3
CRs-Fixed: 774533
2017-09-02 04:19:38 -07:00
Sandeep Puligilla
856e8016a9 qcacld-3.0: Remove legacy scan complete callback
Remove legacy scan code related to
scan complete callback API.

Change-Id: Ia8b85548ff64ad77b5066fe03229e2b0b2f7fae3
CRs-Fixed: 2101188
2017-09-02 04:19:37 -07:00
Sandeep Puligilla
3ee7ddf085 qcacld-3.0: cleanup legacy scan code
-Remove legacy scan code related to wext interface.
-Remove code under NAPIER_SCAN macro
-Remove legacy abort scan code

Change-Id: I38900a4c786b5ba5f31006e6e29332c081a565cf
CRs-Fixed: 2101188
2017-09-02 04:19:31 -07:00
snandini
8527526309 Release 5.2.0.41H
Release 5.2.0.41H

Change-Id: Id1ee0976c0ba9723ed39bcba94cbda1039eb51c4
CRs-Fixed: 774533
2017-09-02 03:38:32 -07:00
Dustin Brown
35b61f6b69 qcacld-3.0: Deinit/ini WMA VDEV around mem zero
The WMA vdev structure contains wakelocks which must be deinitialized
and initialized any time these structures are mem-zeroed. Add
deinit/init calls to vdev attach error cases.

Change-Id: I36012606d4cc49c076ac6903ff49530c45433374
CRs-Fixed: 2102645
2017-09-02 03:38:31 -07:00
snandini
94a55310a2 Release 5.2.0.41G
Release 5.2.0.41G

Change-Id: I95b09533bd186e7e8cedd5ef23c6394508302824
CRs-Fixed: 774533
2017-09-02 01:13:19 -07:00
Abhishek Singh
748d8a27aa qcacld-3.0: Fix assert in qdf_mc_timer_stop for host roam timers
The host roam timers are deactivated and deleted in
lim_delete_timers_host_roam but again in lim_deactivate_timers
they are deactivated which results in assert.

Fix this by deactivating roam timers before they are destroyed.

Change-Id: I03f069edaf4361111dc5240fce2003c04c9c6509
CRs-Fixed: 2095265
2017-09-02 01:13:18 -07:00
snandini
0fef708275 Release 5.2.0.41F
Release 5.2.0.41F

Change-Id: I5bc2f9ff3cf624b4f4298a2d460821b734a62f6c
CRs-Fixed: 774533
2017-09-02 00:17:54 -07:00
Houston Hoffman
b18dc6e0fe qcacld-3.0: Move nl_serv_init to before cfg printing
HDD_CFG prints were being dropped from the qxdm log.
Initialize the nl server before the logging service
to guarantee all logs are delivered over the nl sockets.

Change-Id: I5719f8e2791e37a8c5e61ccf5c025afd1084ed99
CRs-Fixed: 2094161
2017-09-02 00:17:51 -07:00
Dustin Brown
7b3dea22f9 qcacld-3.0: Statically allocate wlan logging buffer
To aid in debugging memory leaks, and improve the robustness of log
recovery from crash dumps, statically allocate pglog_msg in the global
scope. This allows logs to be inspected even in cases where a crash
came late in the unload process. It also improves log recovery
robustness by removing the possibility of using a NULL pointer offset
under certain memory corruptions scenarios.

Change-Id: I7301254d3d3ff811b322e435962e78f997937c2b
CRs-Fixed: 2074611
2017-09-02 00:17:49 -07:00
snandini
05bdeeac75 Release 5.2.0.41E
Release 5.2.0.41E

Change-Id: I51b353a68534149d8c7276361fb30333769ef4bb
CRs-Fixed: 774533
2017-09-01 22:09:08 -07:00
Will Huang
496b36c936 qcacld-3.0: Add support of request peer stats info(part 3)
qcacld-2.0 to qcacld-3.0 propagation

FW has limitation to support old WMI_REQUEST_STATS_CMDID and
WMI_UPDATE_STATS_EVENTID interface on AP vDev. FW suggest to use new
WMI_REQUEST_PEER_STATS_INFO_CMDID and WMI_PEER_STATS_INFO_EVENTID to
get tx/rx rate.

This checkin is about HDD layer, provide APIs/callbacks to upper layer
to query rssi/tx/rx statistics of peer station associated with SAP,
and provide a default disabled ini setting and checking FW's
WMI_SERVICE_PEER_STATS_INFO capability to control this get peer info
interface. Add/change iwpriv/QCA_NL80211_VENDOR_SUBCMD_GET_STATION/
cfg80211_ops.get_station interfaces to upper layer.

Change-Id: Ib1571219faa16e3bc8c3eb1260137ae08b8b6016
CRs-Fixed: 2059507
2017-09-01 22:09:05 -07:00
snandini
dbc2d2f736 Release 5.2.0.41D
Release 5.2.0.41D

Change-Id: Ibd71e3e0b9e27810ae88565f5842a8606b010d63
CRs-Fixed: 774533
2017-09-01 20:38:33 -07:00
Nachiket Kukade
c3f92f7f44 qcacld-3.0: Set start and end channel configuration option
Add changes to enforce start and end channel limit in do_acs
if driver force acs and vendor based acs are enabled.

Also add changes to fix memory leak in set vendor channel API

Change-Id: Id45aaf3eb3c3dc1606a249136d3801a63ee854c4
CRs-Fixed: 2088567
2017-09-01 20:38:31 -07:00
Nandini Suresh
1efb016666 Release 5.2.0.41C
Release 5.2.0.41C

Change-Id: Iee69a5d1627f0ca897d8f6dfc004effbffbbe012
CRs-Fixed: 774533
2017-09-01 11:18:05 -07:00
Jeff Johnson
1083b6ebfb qcacld-3.0: Replace hdd_context_t in wlan_hdd_wmm.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Iebaa140de17abf4face710245c8431680663a0a0
CRs-Fixed: 2100153
2017-09-01 06:58:10 -07:00
Jeff Johnson
2cd9211f2f qcacld-3.0: Replace hdd_context_t in wlan_hdd_disa.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Ia1b151d2590493b15422bd600dedb427a6eb39db
CRs-Fixed: 2100152
2017-09-01 06:58:10 -07:00
Jeff Johnson
03f8f3611d qcacld-3.0: Replace hdd_context_t in wlan_hdd_debugfs_llstat.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Id69553b8ef9cc8daad1e1c136c0edfccfb820860
CRs-Fixed: 2100150
2017-09-01 06:58:10 -07:00
Jeff Johnson
5676b738b9 qcacld-3.0: Replace hdd_context_t in wlan_hdd_napi.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: If336b3f168d6e4b5cd1925030cd65e171f8100b3
CRs-Fixed: 2100148
2017-09-01 06:58:09 -07:00
Jeff Johnson
c1ad741419 qcacld-3.0: Replace hdd_context_t in wlan_hdd_wowl.c
The Linux Coding Style enumerates a few special cases where typedefs
are useful, but stresses "NEVER EVER use a typedef unless you can
clearly match one of those rules." The hdd_context_t typedef does not
meet any of those criteria, so replace references to it with a
reference to the underlying struct.

Change-Id: Icf9c75c9b99c7f94b14d0f70597ab05eebadc4f5
CRs-Fixed: 2100145
2017-09-01 06:58:09 -07:00