Commit Graph

8048 Commits

Author SHA1 Message Date
Kabilan Kannan
bfa9220002 qcacld-3.0: Fix ref count leak in set hw mode function
In set hw mode function, Vdev reference count is not
freed in all error paths, and it causes leak in
the system.
Release the vdev ref count in all error handling
path.

Change-Id: Ib63a00c1cb601937925b49064719078b7e9a57d1
CRs-Fixed: 2140442
2017-11-10 02:55:29 -08:00
snandini
040aeec14b Release 5.2.0.53L
Release 5.2.0.53L

Change-Id: I83149492cdfa560909860943b3b8bb0c6268eae9
CRs-Fixed: 774533
2017-11-10 00:27:43 -08:00
Jeff Johnson
c1e6278e02 qcacld-3.0: Use enum QDF_OPMODE
Change "qcacmn: Rename enum tQDF_ADAPTER_MODE" (qca-wifi-host-cmn
Change-Id I20f1b6d1a0ab4b8fe6a85cefdff96a49e2f4652c) renamed enum
tQDF_ADAPTER_MODE to QDF_OPMODE. Update all references to use the
new name.

Change-Id: Ic6f663dac11a100f168b2626c7c0fbcaccbfca4f
CRs-Fixed: 2141065
2017-11-10 00:27:42 -08:00
Jeff Johnson
80c1b19913 qcacld-3.0: Fix style issues in wlan_hdd_lro.h
The checkpatch script identified multiple Linux coding style issues in
wlan_hdd_lro.h, so fix them.

Change-Id: I1e419f86db33f36c7af4f25b0e61f79a2890d27b
CRs-Fixed: 2141064
2017-11-10 00:27:39 -08:00
snandini
d2b92e3039 Release 5.2.0.53K
Release 5.2.0.53K

Change-Id: I56669f08ef637fd38315f917b935318174b3a56d
CRs-Fixed: 774533
2017-11-09 23:42:51 -08:00
Arif Hussain
da9ba08e4a qcacld-3.0: lim_utils: Replace instances of unadorned %p
Replace instances of unadorned %p in lim_utils.

Change-Id: Ie322c66ab70346757032ae97ee546bad67d1bb00
CRs-Fixed: 2133308
2017-11-09 23:42:50 -08:00
Kabilan Kannan
8dac350e53 qcacld-3.0: Add messages in stop adapter
Add messages in stop adapter function to identify critical
errors in SSR and other user call sequences.

Change-Id: Iec02b8f4a55b2e82c43d186818758f5400e9cab8
CRs-Fixed: 2134279
2017-11-09 23:42:47 -08:00
snandini
abb05e061b Release 5.2.0.53J
Release 5.2.0.53J

Change-Id: I7c3ca382e7e51e5de979acc68411dec6b5746a67
CRs-Fixed: 774533
2017-11-09 22:07:56 -08:00
wadesong
43468c4626 qcacld-3.0: Lock the packet lists before freeing
1) The htt htc free packet list is accessed without being protected
by a lock when packets are being removed from it, which may
introduce a potential racing condition during stability stress
test. Protect the list by htt tx mutex before any pakcets are freed
from it.

2) The same protection should be done to the htt htc packet misc
list.

Change-Id: Ife075a24f119ccfff9b56ec6ce3bee5dd73c9dea
CRs-Fixed: 2137038
2017-11-09 22:07:55 -08:00
Rajeev Kumar
8b33049b43 qcacld-3.0: Do not panic on fw ready timeout on non-debug builds
Currently WLAN host driver is triggering panic on fw ready time out
on all builds without checking if self recovery is enabled or not.
On end user builds WLAN self recovery is enabled which helps to avoid
rebooting the device in this case which is easily recoverable during
next WiFi turn on. Add self recovery enabled check on fw ready timeout
before calling qdf_bug.

Change-Id: I9c9ee3f4b87118679e79e646fb326cc4afdb1845
CRs-Fixed: 2141066
2017-11-09 22:07:53 -08:00
snandini
3edeb2c337 Release 5.2.0.53I
Release 5.2.0.53I

Change-Id: I446f00731161a99ec8f052b075a2fc66fb25cdec
CRs-Fixed: 774533
2017-11-09 11:46:42 -08:00
Rajeev Kumar
d1a7ac420b qcacld-3.0: Rename pmo_ucfg_* APIs to ucfg_pmo_* APIs
Rename pmo_ucfg_* APIs to ucfg_pmo_* to match existing
naming convention for component ucfg APIs.

Change-Id: I9fba71ee5d5cf6428f043c7d7782ef585951e059
CRs-Fixed: 2140474
2017-11-09 11:46:42 -08:00
Padma, Santhosh Kumar
8472cb885f qcacld-3.0: Avoid buffer overflow
Add max check for probe request length against max length of probe
request buffer to avoid buffer overflow.

Change-Id: Ie0fad7443b2c749c66bb9ad662625a16d3a840c3
CRs-Fixed: 2138555
2017-11-09 11:46:39 -08:00
snandini
ccd23a8f8c Release 5.2.0.53H
Release 5.2.0.53H

Change-Id: I9f9ae0c822bd1fd014b571a8966f8166d67dad4c
CRs-Fixed: 774533
2017-11-09 07:46:48 -08:00
Sandeep Puligilla
8d6011b588 qcacld-3.0: Remove legacy scan request handling
Remove legacy scan request handling from
SME.

Change-Id: Ibff2bb52ad16011d275457e970eb34420256efc4
CRs-Fixed: 2140795
2017-11-09 07:46:48 -08:00
snandini
0d175ae7af Release 5.2.0.53G
Release 5.2.0.53G

Change-Id: Iec4c5c40dba906ad2a03f3c37a71d2bbc7b631c7
CRs-Fixed: 774533
2017-11-08 21:57:23 -08:00
Abhishek Singh
02cb9e02f1 qcacld-3.0: Changes to support DPP AKM
Add changes to support and parse AKM required for DPP.

Change-Id: Ie38a6b78e94d3cd918c02c7314bcb5696f53db24
CRs-Fixed: 2137519
2017-11-08 21:57:22 -08:00
Abhishek Singh
86dc221bd6 qcacld-3.0: Fix logic to get nw type for BSS in roam sync indication
In lim_roam_fill_bss_descr the nw type for 11b AP is not filled and
thus network type remain 11a for 11b AP. Now this entry is added in
scan cache and when driver try to connect to this AP as the network
type is 11a, the preferred dot11mode is set to 11a for an 11g channel
in csr_get_phy_mode_from_bss.

Now while calculating phymode as channel is 11g and dot11mode is 11a
the phymode is not calculated properly, leading to firmware crash.

Fix the logic to calculate nw type properly in lim_roam_fill_bss_descr.

Change-Id: Ie076d0315a7ee5ec123a3cb9dbd22668648e7af4
CRs-Fixed: 2138824
2017-11-08 21:57:19 -08:00
snandini
5366589ffd Release 5.2.0.53F
Release 5.2.0.53F

Change-Id: I0ee5c3300d4a92e8bf5cfb1658964dc4944f0159
CRs-Fixed: 774533
2017-11-08 19:42:52 -08:00
Jeff Johnson
172237b859 qcacld-3.0: Replace typedef tCsrRoamInfo
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 tCsrRoamInfo typedef does not
meet any of those criteria, and the underlying struct is already being
used in some places, so replace all remaining tCsrRoamInfo references
with a reference to the underlying struct.

Change-Id: I1da4b04ec92e176fe28b33d30ec7823828c35c8d
CRs-Fixed: 2140349
2017-11-08 19:42:51 -08:00
Jeff Johnson
174b6a4956 qcacld-3.0: Rename struct tagCsrRoamProfile
Per the Linux coding style "mixed-case names are frowned upon" so
rename struct tagCsrRoamProfile.

Change-Id: If88fbb18cd521938105701d96173bae221be8de2
CRs-Fixed: 2140347
2017-11-08 19:42:46 -08:00
Jeff Johnson
e6bf719666 qcacld-3.0: Rename struct tagCsrDelStaParams
Per the Linux coding style "mixed-case names are frowned upon" so
rename struct tagCsrDelStaParams.

Change-Id: I60d6448f4bae15e604a8ea55e72a6070a6ebdfbe
CRs-Fixed: 2140346
2017-11-08 19:42:43 -08:00
Jeff Johnson
df66e3f0a6 qcacld-3.0: Rename struct tagCsrRoamInfo
Per the Linux coding style "mixed-case names are frowned upon" so
rename struct tagCsrRoamInfo.

Change-Id: I21e6c423408f74603e9b469cace00884274d2b61
CRs-Fixed: 2140345
2017-11-08 19:42:39 -08:00
Jeff Johnson
60cbd2db9c qcacld-3.0: Rename hdd_context enableSapSuspend field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field enableSapSuspend in struct hdd_context.

Change-Id: I8f5321fa57c01a36df72dec17499969d0848e3dd
CRs-Fixed: 2140344
2017-11-08 19:42:36 -08:00
Jeff Johnson
450d244335 qcacld-3.0: Fix style issues in hdd_skb_fill_gso_size()
The checkpatch script identified multiple style issues in
hdd_skb_fill_gso_size(), so fix them.

Change-Id: Ie628cd390d1c89d94b4687a6a56ebe7110f3a568
CRs-Fixed: 2140343
2017-11-08 19:42:32 -08:00
Jeff Johnson
81c00d057d qcacld-3.0: Fix whitespace in hdd_update_scan_config()
Change "qcacld-3.0: Add knobs to configure the scan paramters"
(Change-Id: I65a3734d8080d8adfe3e9ffa26905e6adc196197) introduced two
instances of "space prohibited before semicolon" flagged by
checkpatch, so fix these issues.

Change-Id: I5bce6d38d9ef0910f9dd6112971c90bbb3f2496f
CRs-Fixed: 2140342
2017-11-08 19:42:28 -08:00
Mukul Sharma
b10c8c7370 qcacld-3.0: Move to target_resource_config from wmi_resource_config
Currently, host is using the wmi_resource_config instead
target_resource_config. There are two INIT command
method is exposed by WMI, hence to converge on one
use target_resource_config and perform cleanup
for other.

Change-Id: Ic50b1c644ce1e61568c2079627727cad766e02c8
CRs-Fixed: 2138506
2017-11-08 19:42:25 -08:00
Dustin Brown
24d91177c2 qcacld-3.0: Use qdf_cpuhp APIs for CDS
Abstract CDS's use of CPU hotplug events by using the new QDF CPU
hotplug APIs.

Change-Id: Id37ef9028f710a55938539c8e00bb63ffeb86495
CRs-Fixed: 2139720
2017-11-08 19:42:21 -08:00
snandini
82671c41ae Release 5.2.0.53E
Release 5.2.0.53E

Change-Id: I9b64cae698af2fc634f667916c78101df4678bf8
CRs-Fixed: 774533
2017-11-08 13:49:24 -08:00
Naveen Rawat
95eb4063a3 qcacld-3.0: Fix peer_mac addr for NDI in hdd_roam_deregister_sta
In function NDI peer is not considered leading to peer_mac address being
NULL and API failing for NDI peer. Fix the condition to include NDI
device mode and add handling of NDI vdev in hdd_objmgr_add_peer_object.

Change-Id: I34b467fdab4a92696d6377306a775f06fadfc1a9
CRs-Fixed: 2137423
2017-11-08 13:49:24 -08:00
snandini
b7c701d27c Release 5.2.0.53D
Release 5.2.0.53D

Change-Id: Iea35624c6e630708a68634cae899d06c0eb2d794
CRs-Fixed: 774533
2017-11-08 07:41:19 -08:00
Will Huang
ac3fd9a04c qcacld-3.0: Fix sap_num_connected_sta leak
When SAP stop and ref-STA reconnect event hit together, the reconnect
IPA client connect event add sap_num_connected_sta but SAP stop process
clear client STA without send IPA client disconnect event.

Fix it by moving hdd_ipa_wlan_evt into hdd_softap_deregister_sta which
will also been called when sap stopped.

Change-Id: I7abe53e8e395c01df5471697f3370d8b5ae792fb
CRs-Fixed: 2136199
2017-11-08 07:41:18 -08:00
snandini
465b2d7543 Release 5.2.0.53C
Release 5.2.0.53C

Change-Id: Ife90479ac90fe60893946510d240761a34a4ec30
CRs-Fixed: 774533
2017-11-08 06:08:18 -08:00
lifeng
74c9a6d5ee qcacld-3.0: Get rx aggregation statistics in HL mode
qcacld-2.0 to qcacld-3.0 propagation

Get rx aggregation statistics in HL mode

Change-Id: Ic91bb7f10e46ab70046d7c687a64cd5b29b64d0a
CRs-fixed: 2140073
2017-11-08 06:08:17 -08:00
snandini
16012fc9e8 Release 5.2.0.53B
Release 5.2.0.53B

Change-Id: I2cd7c240f4f80e3b0f4a76b79f8d60a03823f5e5
CRs-Fixed: 774533
2017-11-08 04:08:15 -08:00
Sourav Mohapatra
9bc6711eab qcacld-3.0: Remove error logging issue during successful SAP creation
Successful starting of SAP interface has logging
issue and even in case SAP is restarted successfully
it logs error message. Return after mutex unload
during success path and do not log the error message.

Change-Id: Iaf888a2de2bfcc5d52ce8f57e888699eb66ab8ac
CRs-fixed: 2137675
2017-11-08 04:08:14 -08:00
snandini
99470b6cc8 Release 5.2.0.53A
Release 5.2.0.53A

Change-Id: I4c5b1803c21b09fd3fca4d6a9dd52ac755325168
CRs-Fixed: 774533
2017-11-08 03:01:20 -08:00
Mukul Sharma
0c1c379514 qcacld-3.0: Add wow user pattern support in PMO
Add wow user pattern support in PMO.

Change-Id: I186e650e3a165ea0aeaada4bba880005c5be8b5f
CRs-Fixed: 2135644
2017-11-08 03:01:19 -08:00
snandini
29b81c20aa Release 5.2.0.53
Release 5.2.0.53

Change-Id: Ib103ebbf27c5bb1615a38e52d22adbb6e2629ba3
CRs-Fixed: 774533
2017-11-07 22:56:30 -08:00
Krunal Soni
8afae9b62d qcacld-3.0: Fix to propagate key-receiver-sequence-counter to WMA
SME module propagates KeyRSC to MAC/PE module but MAC/PE doesn't
pass this counter to WMA and due to which WMA is not able pass to
next module.

Add a fix to propagate KeyRSC field from MAC to WMA module and further
down in stack.

CRs-Fixed: 2130761
Change-Id: I157a44610e184b5e10d838fbc5d6b810e3efd6db
2017-11-07 22:56:29 -08:00
snandini
4d28291685 Release 5.2.0.52Z
Release 5.2.0.52Z

Change-Id: I5dc877a92c581f53ea868eab3be3d7ebcc92972f
CRs-Fixed: 774533
2017-11-07 21:42:59 -08:00
Sandeep Puligilla
2e233c6a1e qcacld-3.0: Purge scan list in failure scenario
Scan list memory is leaked when get
scan results failed.

Purge the scan list in failure scenario
as part of diag scan complete processing.

Change-Id: I3705dc3f8ffeb586ba745c46a5215bd3578f75e1
CRs-Fixed: 2137957
2017-11-07 21:42:58 -08:00
snandini
04fdea2917 Release 5.2.0.52Y
Release 5.2.0.52Y

Change-Id: I34ce54859eb22128ed13dd9553b4c7fb3d0311b9
CRs-Fixed: 774533
2017-11-07 19:49:23 -08:00
Krunal Soni
7d78708d38 qcacld-3.0: Fix memory leaks while handling few error cases in PE
Memory leaks have been noted in protocol stack in few of the error
handling cases.

Fix following APIs through releasing the memory in error cases.
lim_process_mlm_auth_req()
lim_process_mlm_set_keys_req()

CRs-Fixed: 2139571
Change-Id: Ie28861dab49ab93d90fde5ebc5fd260d1c1c4eee
2017-11-07 19:49:22 -08:00
snandini
f28c82b314 Release 5.2.0.52X
Release 5.2.0.52X

Change-Id: I328b2cde985a564d0118fae393ad12d954d72643
CRs-Fixed: 774533
2017-11-07 17:43:25 -08:00
Dustin Brown
792513d865 qcacld-3.0: Release PDEV in wlan startup error path
In hdd_wlan_startup, an object manager pdev is created, but never
released when startup fails. Release the pdev object as appropriate
under error conditions to close the leak.

Change-Id: I9bfd927e5614d7d8b5c8a2238084c3387db60fd8
CRs-Fixed: 2139597
2017-11-07 17:43:25 -08:00
snandini
5c36e9d2d6 Release 5.2.0.52W
Release 5.2.0.52W

Change-Id: I2329d3ee9d945123221c3196ab241d22731520cd
CRs-Fixed: 774533
2017-11-07 13:42:37 -08:00
Dustin Brown
a2dcb5fb94 qcacld-3.0: Enable QDF cpu hotplug APIs
Enable the new QDF CPU hotplug APIs in Kbuild when CONFIG_SMP is
enabled.

Change-Id: Ib3e1e1fe840f0aae662cd6d32527b174a9c2895c
CRs-Fixed: 2133375
2017-11-07 13:42:37 -08:00
Krunal Soni
f7387bda9c qcacld-3.0: Fix memory leak while handling deauth req's error case
When caller calls lim_process_mlm_deauth_req() API, it checks for
session's validity before passing it forward. If session is found
to be invalid then it is returning immediately without releasing the
memory. Caller is expecting this API to release the memory in any
error cases.

Release the memory before returning to caller in error case.

CRs-Fixed: 2138983
Change-Id: I800d717cd22a6e2731ef211743e4844852a132a3
2017-11-07 13:42:35 -08:00
snandini
fe64b47ae8 Release 5.2.0.52V
Release 5.2.0.52V

Change-Id: I3fcd8f8757847fb8f728f8ee9d74e3948e8f1b16
CRs-Fixed: 774533
2017-11-07 07:58:27 -08:00