Commit Graph

8676 Commits

Author SHA1 Message Date
Jingxiang Ge
4168a2387c qcacld-3.0: Fix memory leak for mlm_set_keys_req
mlm_set_keys_req may leak if return in some fail case or
there is no WMA_SET_STAKEY_RSP.

Change-Id: Ib89709a6656cfcff18341257e116861774489c8c
CRs-Fixed: 2166374
2018-01-03 23:36:12 -08:00
snandini
a6cf3a9c50 Release 5.2.0.60B
Release 5.2.0.60B

Change-Id: If6706c626bc1018e49f9914588456548021d4238
CRs-Fixed: 774533
2018-01-03 21:36:22 -08:00
Jiachao Wu
6e9b9f970b qcacld-3.0: Extend fw log level string length
The string length of FwDebugModuleLogleveconfig is over 255 if set all
firmware log level in config file. Now FW moudle number is 67 which mean
the string length might be 336(67*5+1).
Extend the length to 512.

Change-Id: If9842f3bfdc9ae6b3351c27c3166e2940de71fb8
CRs-Fixed: 2166118
2018-01-03 21:36:21 -08:00
snandini
6626107dbc Release 5.2.0.60A
Release 5.2.0.60A

Change-Id: Ife35d71c2b37cddf7e8f27d09ca4fc8d912528bf
CRs-Fixed: 774533
2018-01-03 20:09:34 -08:00
Dustin Brown
20024e390a qcacld-3.0: Defer setting con_mode until success
__con_mode_handler sets the new con_mode value before doing any of the
connection mode transition steps. Thus, if any step fails, the driver
will incorrectly report the new connection mode. Defer setting the new
con_mode value until the connection mode has be successfully changed.

Change-Id: Ib248ab06cf1bf8ef71c1c1bd26aa1beb91e9fa89
CRs-Fixed: 2166530
2018-01-03 20:09:33 -08:00
Tushnim Bhattacharyya
9bd058f5d4 qcacld-3.0: Keep HW mode in sync with FW when hdd stop happens
Stop the opportunistic timer & take action to keep HW mode in sync
when hdd stop happens.

Change-Id: Id34adb579987605831d2c7c4e22c2d76fe7d25dd
CRs-Fixed: 2165105
2018-01-03 20:09:30 -08:00
Govind Singh
27a7403814 qcacld-3.0: Use HOST defined target type
Target types are moved to target_type.h from hif.h.
Add new target type include for target definitions.

Change-Id: I54185fff428eebf678310f95f59a63db4f82aa80
CRs-Fixed: 2144470
2018-01-03 20:09:26 -08:00
snandini
20e0b3c8ef Release 5.2.0.60
Release 5.2.0.60

Change-Id: I2a7d860a1f1b9ee3bd96bb3655135026540a6bed
CRs-Fixed: 774533
2018-01-03 19:26:15 -08:00
Dustin Brown
db2a8bed51 qcacld-3.0: Close FTM vdev leak
When the driver transitions into Factory Test Mode (FTM), the existing
vdev is not properly destroyed. This ultimately leads to a vdev object
leak when the driver is unloaded while in FTM. To close the leak, tear
down the existing station vdev before doing the module stop operation.

Change-Id: I48ca4e6fc5750e593b6afc4e6b44a603570101cc
CRs-Fixed: 2137144
2018-01-03 16:40:19 -08:00
snandini
181f5b0a10 Release 5.2.0.59Z
Release 5.2.0.59Z

Change-Id: Icfa29740732c8270f8c0afa6da8fc0e48fe91e6a
CRs-Fixed: 774533
2018-01-03 14:16:53 -08:00
Kiran Kumar Lokere
471274844d qcacld-3.0: Check the channel width value in CSA processing
Check the channel width value in CSA IE before we process the
channel switch so that if the AP sends the wrong channel width in
CSA driver can process with correct configuration

Change-Id: Ib14a0146502b0f731f319ac1fe6657a389388cec
CRs-Fixed: 2162235
2018-01-03 14:16:52 -08:00
snandini
ab5eef1aee Release 5.2.0.59Y
Release 5.2.0.59Y

Change-Id: I1c859890b775def51c385d59476edda92f73d5c2
CRs-Fixed: 774533
2018-01-03 13:22:58 -08:00
Himanshu Agarwal
fc4dab9c75 qcacld-3.0: Do recovery/assert on vdev delete/start if bss started
In wma_vdev_detach(), ignore vdev delete request at present if it is
received before VDEV_STOP and VDEV_DOWN which results in fw assert on
VDEV_START as no VDEV_DELETE is present before VDEV_START on the same vdev.

Do cds recovery or assert on vdev deletion or on vdev start if BSS
is already in started state and no VDEV_STOP is queued in the queue.

Change-Id: I273e6240840e7a0a54c2d7ad3de12c8a30d42a18
CRs-Fixed: 2164701
2018-01-03 13:22:58 -08:00
Himanshu Agarwal
a79c676daf qcacld-3.0: Add sanity check for rxNss value
Add sanity check for rxNss value in lim_set_nss_change()
as rxNss cannot be zero.

Change-Id: Ie8043d41413a26469539a1f370ff4bca09870b61
CRs-Fixed: 2157501
2018-01-03 13:22:56 -08:00
Yeshwanth Sriram Guntuka
72a2fb2513 Revert "qcacld-3.0: Save previous auth algo in pe session"
This reverts commit 7cf307e148
as the check to drop auth frame if previous sequence number
and auth algo match with current sequence number and auth
algo returns true instead of false in a correct scenario.

Change-Id: I8dee272f535acaadb9dfff69ee9ce68ddea4eec1
CRs-Fixed: 2166125
2018-01-03 13:22:53 -08:00
snandini
6f680870f0 Release 5.2.0.59X
Release 5.2.0.59X

Change-Id: I4b1d0ab3e5b1c505bd8b2baa637336e8c1628e64
CRs-Fixed: 774533
2018-01-03 12:31:08 -08:00
Vignesh Viswanathan
fa90d6210f qcacld-3.0: Remove add PMKSA cache logic from connect path
Currently host is adding PMKSA cache on bssid from connect request
if PMKID is present in the RSNIE. This may cause duplicate
entry of PMKSA since supplicant may add the same PMKSA on basis of
SSID + cache identifier. This also cause different caches present
in driver and supplicant.
Setting PMKSA in connect request is not needed since supplicant
will always set/delete PMKSA cache using seperate kernel APIs.

Add changes to remove set PMKSA logic during connect path and
increased PMKSA cache path logging.

Change-Id: I7aa13daa59c4221380daebab3bee49de5d681d6b
CRs-Fixed: 2054351
2018-01-03 12:31:08 -08:00
Varun Reddy Yeturu
ab628711da qcacld-3.0: Check for valid FILS info before referencing
Check if the FILS info is populated before deferencing
the value for the same.

Change-Id: Iabc7d11c4033c92a4047d29da915415cf5ca1167
CRs-Fixed: 2162242
2018-01-03 12:31:04 -08:00
Kiran Kumar Lokere
ee2bbf2946 qcacld-3.0: Fix the channel BW capability in HE caps
Fix channel bandwidth capability advertisement in HE caps

Change-Id: I3dc9a390e806725c45a7919e7a62fefaa073399b
CRs-Fixed: 2160791
2018-01-03 12:31:01 -08:00
snandini
a1aa96c98a Release 5.2.0.59W
Release 5.2.0.59W

Change-Id: I51dcc05615eb205298225880f0eed3d92f9fc916
CRs-Fixed: 774533
2018-01-02 15:37:36 -08:00
Kapil Gupta
2a0781fb4c qcacld-3.0: Remove excessive logging for FILS based connection
Currently host driver is dumping all the connection related
info for FILS connection.

Add changes to remove excessive logging for FILS connection

Change-Id: Ib23a90672413e00c06ae61f01fbbb0fb51edda56
CRs-Fixed: 2077465
2018-01-02 15:37:35 -08:00
snandini
f3f65873ab Release 5.2.0.59V
Release 5.2.0.59V

Change-Id: Ib56b621a0a667e51fe54d309eb71099361792277
CRs-Fixed: 774533
2018-01-02 07:26:38 -08:00
wadesong
c46581bc1c qcacld-3.0: Fix an ACS hw mode mapping discrepancy
When ACS is started, acs_cfg.hw_mode in AP context will
be set after mapping from values defined in enum
qca_wlan_vendor_acs_hw_mode to values defined in enum
eCsrPhyMode, but when ACS scan fails due to some reason,
such as scan timeout, the code in function
sap_select_default_oper_chan is still using values
defined in enum qca_wlan_vendor_acs_hw_mode to setup
the default channel.

Change the code in function sap_select_default_oper_chan
to use the values defined in enum eCsrPhyMode when
setting up the default channel.

Change-Id: Ic0d43c43bf9b9a9a36c290d2754c30ebb40bb0e3
CRs-Fixed: 2163658
2018-01-02 07:26:38 -08:00
snandini
b2503551ac Release 5.2.0.59U
Release 5.2.0.59U

Change-Id: I80748c06b091075f7ac315f10c7275595f50e990
CRs-Fixed: 774533
2017-12-29 06:17:01 -08:00
Yeshwanth Sriram Guntuka
7cf307e148 qcacld-3.0: Save previous auth algo in pe session
DUT retries auth with open system if shared key
authentication is not supported by AP. If auth
response from AP for open system auth has same
sequence number as that of shared key response,
host drops the frame.

Fix is to drop the auth frame only if previous
sequence number and auth algo match with current
sequence number and auth algo.

Change-Id: Ia02408d72371dfb91a7cae190ae9399cdf2e2e8b
CRs-Fixed: 2163231
2017-12-29 06:17:00 -08:00
snandini
92dff40b76 Release 5.2.0.59T
Release 5.2.0.59T

Change-Id: I12c7da84ecbc22f811d05020dca2b961b1a1f3f2
CRs-Fixed: 774533
2017-12-29 05:28:42 -08:00
Himanshu Agarwal
ff399e36cb qcacld-3.0: Calculate buf_len properly for extscan hotlist event buffer
Calculate buf_len properly for extscan hotlist event buffer in
wma_extscan_hotlist_match_event_handler()

Change-Id: I923f0d86d83902539a7d3a7b8ea8322dcb83ba00
CRs-Fixed: 2161977
2017-12-29 05:28:40 -08:00
Ganesh Kondabattini
b6fdb6311f qcacld-3.0: Increase the max beacon count value to 10
Modify the upper limit of beacon count to 10.

CRs-Fixed: 2165013
Change-Id: Id6e6fb7eb2435f91e8052b6e8af10435dc25a2d2
2017-12-29 05:28:34 -08:00
Sandeep Puligilla
00d2a1f2c6 qcacld-3.0: Add HDD support to spectral scan
Add HDD support to spectral scan vendor commands

Change-Id: Ie58fabfca07077fd1b886eeb63c1a9361030035f
CRs-Fixed: 2165256
2017-12-29 05:28:28 -08:00
snandini
29751c6b69 Release 5.2.0.59S
Release 5.2.0.59S

Change-Id: I6c002b2e444d366474004b31500c650377aeaed8
CRs-Fixed: 774533
2017-12-28 21:26:32 -08:00
Vignesh Viswanathan
9dd88d39b7 qcacld-3.0: Determine transition status for BSS transition candidates
Determine bss transition status for preferrable candidates provided
by userspace based on the transition reason, rssi of connected and
candidate bssids and other parameters like whether transitiong to the
candidate will result in sub-optimal scenario. The transition status
is either accept or a reason for reject.

Change-Id: Ib83c81909f4d8e31b4125309b8ac392a26a0d6bf
CRs-Fixed: 2007107
2017-12-28 21:26:31 -08:00
snandini
b399834d69 Release 5.2.0.59R
Release 5.2.0.59R

Change-Id: Id7b118b71aaf99623855e205a26341f6d9e1d964
CRs-Fixed: 774533
2017-12-28 15:25:55 -08:00
Rajeev Kumar
6d0b2eaaf0 qcacld-3.0: Rate limit error logs in data path
Rate limit error logs in data path to avoid watch dog bark.

Change-Id: Id20f6224928c6b5e27a04daa6b9a10084ad122b9
CRs-Fixed: 2162954
2017-12-28 11:59:44 -08:00
snandini
63e72af541 Release 5.2.0.59Q
Release 5.2.0.59Q

Change-Id: I74d26e81a21794f9e7581362f697709f3d419313
CRs-Fixed: 774533
2017-12-28 05:06:53 -08:00
Jiachao Wu
d58cfc9eee qcacld-3.0: Check NULL pointer of roam_profile
__wlan_hdd_cfg80211_get_key was invoked when unloading driver.
SAP ctx had been freed at this time.wlan_sap_get_roam_profile will
return NULL.
Check NULL pointer before use roam_profile.

Change-Id: If1f11f0fb7027a6af4e3242fe9af722740d32850
CRs-Fixed: 2162395
2017-12-28 05:06:52 -08:00
Himanshu Agarwal
61990374c0 qcacld-3.0: Add data_len check to avoid OOB access
Add data_len check in wma_stats_ext_event_handler()
to avoid OOB access.

Change-Id: I756ec66fee1cf937f144441a051e973cd561909d
CRs-Fixed: 2160395
2017-12-28 05:06:50 -08:00
snandini
55424ec371 Release 5.2.0.59P
Release 5.2.0.59P

Change-Id: I83d76f13884f55c199acdc7e8ece9c116f3be41d
CRs-Fixed: 774533
2017-12-28 04:27:42 -08:00
Himanshu Agarwal
822187985e qcacld-3.0: Add num_debug_register check to avoid OOB access
Add num_debug_register check in
wma_unified_power_debug_stats_event_handler() to avoid OOB access.

Change-Id: Iae206bc467a940a8fbc1128bff498af958df1c04
CRs-Fixed: 2160403
2017-12-28 04:27:41 -08:00
Himanshu Agarwal
55e1621dd2 qcacld-3.0: Add data_len check to avoid OOB access
Add data_len check in wma_nan_rsp_event_handler()
to avoid OOB access.

Change-Id: Iff42da84567381a4b64bc07e69ff1a0cd4b5a543
CRs-Fixed: 2160375
2017-12-28 04:27:39 -08:00
snandini
a1ebf33bbb Release 5.2.0.59O
Release 5.2.0.59O

Change-Id: If873a066d582d7804f5285cc930ee263a6ae78d8
CRs-Fixed: 774533
2017-12-28 03:38:25 -08:00
Tiger Yu
6a10e3e173 qcacld-3.0: Fix potential buffer overwrite in the htt_t2h_lp_msg_handler
qcacld-2.0 to qcacld-3.0 propagation

Check for the validity of tx_desc_id when received the htt message of
HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND from firmware to ensure the buffer
overwrite does not happen.

Change-Id: I0afc781b7fff303525352b817e7eb60b8b05e4d3
CRs-Fixed: 2164705
2017-12-28 03:38:24 -08:00
Himanshu Agarwal
1b34c1f30f qcacld-3.0: Add num_peer check to avoid OOB access
Add num_peer check in wma_ibss_peer_info_event_handler()
to avoid OOB access.

Change-Id: Id798a2143b201e60fbcc4a3881c1cda3e3376eca
CRs-Fixed: 2160461
2017-12-28 03:38:21 -08:00
Hanumanth Reddy Pothula
07e5f99716 qcacld-3.0: Remove FW memory dump feature
qcacld-2.0 to qcacld-3.0 propagation

FW memory dump feature is no longer used. Hence remove FW memory
dump feature code changes.

Change-Id: Ida655f83630c369df746e7c0c9d61a8fee2932a2
CRs-Fixed: 2140261
2017-12-28 11:54:10 +05:30
snandini
daf47342e0 Release 5.2.0.59N
Release 5.2.0.59N

Change-Id: I399dfbac843e1d69130b6cac99bbbe79ae411782
CRs-Fixed: 774533
2017-12-26 17:26:58 -08:00
Sandeep Puligilla
342d2a6bfc qcacld-3.0: Kbuild changes to enable spectral scan
Add Kbuild changes to build the spectral scan files

Change-Id: Ieeccb322a34ca27642016fec3dc0d7232c7dcf59
CRs-Fixed: 2163445
2017-12-26 17:26:57 -08:00
snandini
f37ce13c6c Release 5.2.0.59M
Release 5.2.0.59M

Change-Id: I29df3be2b462a61b4a9567ae3b95178f89dd2b4f
CRs-Fixed: 774533
2017-12-25 23:26:38 -08:00
Dustin Brown
36e24e273b qcacld-3.0: close all adapters before module stop
Adapter resources are not being released until after stop modules. This
leads to resource leaks on PCIe targets. Move the call to close adapters
to before stop modules.

Change-Id: I18ceba26bb6aab634da91a14cc6890a7b7bd836f
CRs-Fixed: 2162868
2017-12-25 23:26:38 -08:00
Kabilan Kannan
75bd4b3310 qcacld-3.0: Rate limit TX data transmit error in HDD
TX data transmit error is flooding out the logging
system.
Rate limit the TX transmit error to avoid
log buffer overrun.

Change-Id: Ie6f857378f1d8d2ee07ba0d6e10639f6f5dcbd1c
CRs-Fixed: 2160835
2017-12-25 23:26:34 -08:00
Vignesh Viswanathan
bdfbaa9cbf qcacld-3.0: Fix buffer overwrite in lim_send_probe_rsp_template_to_hal
In function lim_send_probe_rsp_template_to_hal, memset is done for the
allocated packet for length nBytes which is calculated as size of payload +
MAC header + addn_ielen.
However, the buffer used psessionEntry->pSchProbeRspTemplate is allocated
for length 512 (SCH_MAX_PROBE_RESP_SIZE) only as part of create session.
This leads to a potential overflow of the memory if nBytes calculated is
greater than 512 leading to kernel panic while freeing the memory in
delete session.

Add sanity check to make sure we do not exceed the SCH_MAX_PROBE_RESP_SIZE
before doing a memset on the buffer.

Change-Id: I4657d34a429b1f0c11ac8ca24869727c222669b8
CRs-Fixed: 2160086
2017-12-25 23:26:31 -08:00
snandini
e6bce00c2c Release 5.2.0.59L
Release 5.2.0.59L

Change-Id: Ie3eb7e2b1ac9f163ebb5993a26b060e07eb5af52
CRs-Fixed: 774533
2017-12-25 21:26:13 -08:00