Commit Graph

13474 Commits

Author SHA1 Message Date
Dustin Brown
77a042b426 qcacld-3.0: Use talloc, instead of malloc, in DSC
The lifetimes of DSC contexts do not fit nicely into the current domain
based dynamic memory leak detection scheme. Instead, allocate psoc and
vdev DSC contexts using the new qdf_talloc() API.

Change-Id: Ib15bd26004c3383e25039f4d17026d3e73f52346
CRs-Fixed: 2360348
2018-12-13 16:45:43 -08:00
Dustin Brown
d315c4570c qcacld-3.0: Enable talloc feature
Enable the talloc feature, recently added in
I6308c96061e125b2e5a9c424ec2d2298c1c503ab.

Change-Id: I37c48d63dd1598710611d4c2ab5d26fec92c2250
CRs-Fixed: 2359468
2018-12-13 16:45:39 -08:00
Dustin Brown
6fb7a754ca qcacld-3.0: Enable qdf hashtable feature
Enable the QDF hashtable feature, recently added in
I07999e5fc8116e67b3850b866ced20af64342055.

Change-Id: I1dcdee7d960e87bda980e3d6e646e22149208dad
CRs-Fixed: 2359334
2018-12-13 16:45:34 -08:00
nshrivas
5eb57d96ae Release 5.2.0.111N
Release 5.2.0.111N

Change-Id: I2884d913485e87818bdd7bea999655dc1767fe35
CRs-Fixed: 774533
2018-12-13 14:57:17 -08:00
Yeshwanth Sriram Guntuka
ad31502195 qcacld-3.0: Skip IE which has length less than minimum valid IE length
QBSS IE uses min length of 4 bytes for version 1 and
min length of 5 bytes for version 2. Min length used
for IE is 5 bytes in driver which can cause WPA IE
parse failure if QBSS IE is 4 bytes resulting in failure
in fetching scan results due to security mismatch and
subsequently connection failure.

Fix is to skip the IE which has length less than the
minimum valid length.

Change-Id: I00fbffad221e2d9ecedcb87c9607ac8abd7c55b1
CRs-Fixed: 2364663
2018-12-13 14:57:16 -08:00
gaurank kathpalia
4ef9ba2cf8 qcacld-3.0: Modify the active dwell time in ACS scan
Currently the driver scans for the channels as part of ACS
algorithm, to select the best channel for SAP bringup.
But the active dwell time set in the scan request is Zero,
hence the active probe is not sent to the AP, and the DUT
(SAP in this case), just passively scans the channels for BSS,
which causes latency in SAP bringup.

Fix is to initialize the default active dwell time in case of
ACS scan, and set broadcast probe to true.

Change-Id: If4f001a9b272a7894125d81f2895cfa6f6ca2bc4
CRs-Fixed: 2363789
2018-12-13 14:57:12 -08:00
gaurank kathpalia
41361360f9 qcacld-3.0: Modify the active dwell time in scan for ssid
Currently the driver scans for the bssid if it is not present
in the scan cache, due to expire of scan results.
But the active dwell time set in the scan request is Zero,
hence the active probe is not sent to the AP, and the DUT
(STA in this case), just passively scans the channels for that
BSSID, which causes latency in connection.

Fix is to initialize the default active dwell time in case of
scan for ssid.

Change-Id: I38c8c0335e10544d165c510b59e013e9ee2a5031
CRs-Fixed: 2363980
2018-12-13 14:57:09 -08:00
nshrivas
a708f101af Release 5.2.0.111M
Release 5.2.0.111M

Change-Id: I577935227e86d2f8c652fb7af09bc8ebad6c63bb
CRs-Fixed: 774533
2018-12-13 02:37:53 -08:00
Wu Gao
5f79340ca9 qcacld-3.0: Enable TDLS component in CLD
TDLS component related files moved from hostcmn to CLD, this change
adds initial functions, enables TDLS in Kbuild.

Change-Id: Ie5b93f4785c4a973a139dff9e58460fd7ee35e35
CRs-Fixed: 2361589
2018-12-13 02:37:52 -08:00
nshrivas
003c5f6206 Release 5.2.0.111L
Release 5.2.0.111L

Change-Id: Idb3c5d97a9d1ed8096e071b296b11e33d7d642a7
CRs-Fixed: 774533
2018-12-12 12:29:15 -08:00
Harprit Chhabada
88c4e42509 qcacld-3.0: Cleanup scan concurrent active and passive min time
Cleanup Scan active and passive concurrent time CFG/INI
references from legacy code.

Concurrent active and passive min time component is never used,
so remove it.

Change-Id: Idca5285d58bea659a1a481c1f33827608377ab98
CRs-Fixed: 2363138
2018-12-12 12:29:14 -08:00
nshrivas
1ab2f927ac Release 5.2.0.111K
Release 5.2.0.111K

Change-Id: If6670695ea0feac89a9df125c3b80a01e2d66c98
CRs-Fixed: 774533
2018-12-12 01:45:35 -08:00
Arunk Khandavalli
521c005600 qcacld-3.0: Initial place holder for dsc stub functions
Initial change to hold the dsc stub functions

Change-Id: Id150755e7685c1a06a509b1cf2b10480c35a8bf4
CRs-Fixed: 2362316
2018-12-12 01:45:35 -08:00
Pragaspathi Thilagaraj
9f79074a67 qcacld-3.0: Remove error message after mlme_obj NULL check
The function mlme_get_psoc_obj() is used to get the mlme_obj and
error handling is taken care inside the function if mlme_obj is
null.
Remove the error message in callers of mlme_get_psoc_obj.

Change-Id: Ie7cda790758ad21b1a0275d313a97f322a2f6fd7
CRs-Fixed: 2365042
2018-12-12 01:45:30 -08:00
nshrivas
3ad23a4ea3 Release 5.2.0.111J
Release 5.2.0.111J

Change-Id: I8fdfb41b7c39ecdeb0b24448a6041e2ef94b1bff
CRs-Fixed: 774533
2018-12-11 17:26:00 -08:00
Wu Gao
d6b5e40780 qcacld-3.0: Enable policy mgr component in CLD
Policy mgr component related files moved from hostcmn to CLD, this
change add its initializion functions to CLD framework, change Kbuild
to enable it.

Change-Id: I0a87d93b9cf639aa66a10f9ae55ef8cb1dfbb80e
CRs-Fixed: 2361570
2018-12-11 17:25:59 -08:00
Dustin Brown
ebb16d1886 qcacld-3.0: Enable qdf types tests
Enable the unit test cases for qdf_types, recently added in
I7536a973141a6311662390e42da749f48239bef8.

Change-Id: I4264696d61443acf1bd0993f91de06119471b25f
CRs-Fixed: 2359296
2018-12-11 17:25:55 -08:00
Wu Gao
637d58a4c1 qcacld-3.0: Enable P2P component in CLD
P2P component related files moved from hostcmn to CLD, this change
adds initial functions, enables P2P in Kbuild.

Change-Id: I04102a5f3e59ded13ada15b1b417ae81c7a10e90
CRs-Fixed: 2361500
2018-12-11 17:25:51 -08:00
nshrivas
308cae5313 Release 5.2.0.111I
Release 5.2.0.111I

Change-Id: Ie39e470a3936d6c3f02e9d563da99accbaaf11d8
CRs-Fixed: 774533
2018-12-11 12:27:05 -08:00
Arunk Khandavalli
ca56d4b488 qcacld-3.0: Add Host Driver support for Beacon reception stats
Implementation of Host driver support to collect per Vdev Beacon
reception  Stats from firmware and display the stats in sysfs.

	"adb shell cat /sys/class/net/wlan0/beacon_stats"
vdev id: 0
Total Beacon Count: 255
Total Beacon Miss Count: 21
Beacon Miss Bit map [0x800] [0x10000000] [0x22000400] [0x100]
[0x84000000] [0x4030002] [0x5034000] [0x28084]

Change-Id: Iadd31042320f7815a6a6f4733f5393dba93b5b3e
CRs-Fixed: 2360913
2018-12-11 12:27:05 -08:00
nshrivas
4fb6fa0e45 Release 5.2.0.111H
Release 5.2.0.111H

Change-Id: I8301217e780739abf3b82be08c969e0daa2fe728
CRs-Fixed: 774533
2018-12-11 10:18:35 -08:00
Jeff Johnson
188173d940 qcacld-3.0: Remove unused typedef wma_txFailIndCallback
Previously change I7faaf646df363a74954defbef103afbb4b72af92
("qcacld-3.0: Add extended IBSS feature on qcacld-3.0") introduced two
different typedefs to serve the same purpose, txFailIndCallback which
is in use, and wma_txFailIndCallback which is unused, so remove the
unused one.

Change-Id: Icc3e016337500e4899d6bc2dc257a61d82f0ec65
CRs-Fixed: 2364267
2018-12-11 10:18:34 -08:00
Jeff Johnson
cf161a3986 qcacld-3.0: Remove wma_get_hotlist_entries_per_page()
Previously change I6786ce42d99d6a3f29561c24dea7e3018fb0f3e9
("qcacld-3.0: Refactor formation of wmi scan roaming commands")
removed all of the clients of wma_get_hotlist_entries_per_page(),
so now remove this unused function.

Change-Id: I2a8931a9152b84f589e0b41a7c5138112db22985
CRs-Fixed: 2364106
2018-12-11 10:18:30 -08:00
Jeff Johnson
e2e0e337eb qcacld-3.0: Remove ol_ctrl_addba_api.h
The definitions in file ol_ctrl_addba_api.h are unused, so remove the
file and remove the #include directive in the one place it appears.

Change-Id: I9056791b1a21dc8c8e113db2d49468e3abafab34
CRs-Fixed: 2364105
2018-12-11 10:18:26 -08:00
Jeff Johnson
f9f921c52a qcacld-3.0: Clean up tSap_StationAssocReassocCompleteEvent
The typedef tSap_StationAssocReassocCompleteEvent contains the
following fields that are not being used, so remove them:
- SapAuthType
- beaconLength
- beaconPtr
- assocReqLength
- assocReqPtr
- assocRespLength
- assocRespPtr

Change-Id: I1de03b76b0070ee0b19d3d4672ed75614c013ac7
CRs-Fixed: 2364104
2018-12-11 10:18:23 -08:00
Jeff Johnson
219b6a0aae qcacld-3.0: Remove gDisableDfsJapanW53 remnants
Previously change I7f39ed0680919c6a383d9b8bae5864f979b6948c
("qcacld-3.0: Refactor more dfs cfg items") removed support for
gDisableDfsJapanW53. However some remants of that support were left
behind, so remove them.

Change-Id: Ic0ec3411621c87a66a2d2055ceeebc2ed027aa39
CRs-Fixed: 2364103
2018-12-11 10:18:19 -08:00
Jeff Johnson
9f158923b9 qcacld-3.0: Remove typedef tSap_DfsNolInfo
The only use of typedef tSap_DfsNolInfo is to define the unused
sapDfsNolInfo field in typedef tSap_Event. Since they serve no purpose
remove both the sapDfsNolInfo field and the tSap_DfsNolInfo typedef.

Change-Id: Ic63288c0ea59b4f26a20d65a3e41503e49efedbd
CRs-Fixed: 2364102
2018-12-11 10:18:16 -08:00
nshrivas
ded4b13008 Release 5.2.0.111G
Release 5.2.0.111G

Change-Id: I21d9e1e49c49f70a84ec88eb96d547aa6301a806
CRs-Fixed: 774533
2018-12-11 08:17:26 -08:00
Jianmin Zhu
a9005b33bf qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside of functions in lim
Moves ifdef CONFIG_VDEV_SM outside of functions in lim.

Change-Id: I4ec40ce1dedccdc69e0e2dd68c1823ec4bb7549a
CRs-Fixed: 2362457
2018-12-11 08:17:25 -08:00
nshrivas
22e3aef29f Release 5.2.0.111F
Release 5.2.0.111F

Change-Id: I2b095d289b5a5d4d4c4f780e82d35ff7217fd5d6
CRs-Fixed: 774533
2018-12-11 06:11:05 -08:00
Abhishek Singh
f27d517553 qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside functions in sap
Moves ifdef CONFIG_VDEV_SM outside functions in sap module.

Change-Id: I141d86293ca61d29cc2e6d47a7b988eb6e127950
CRs-Fixed: 2363650
2018-12-11 06:11:05 -08:00
gaurank kathpalia
b3645e79ae qcacld-3.0: Fix memory allocation latency in beacon process
This is mirror change for 0f9f01950

Currently if the number of APs in the STA environment
are many, then the STA will receive many beacons, whose
beacon process path can take long time, in the kernel
work queue, hence the other processes have to wait
for them to complete, and may get timeout, if the
the time to process the beaocns is larger than their
process timeout.
Fix is to :-
1. Add rate limit to failure conditions of memory
not allocated
2. Make memory allocation in path of beacon process
atomic.

Change-Id: I488b446c23fd01c993f7dd9bd989867fda2331d8
CRs-Fixed: 2363307
2018-12-11 06:11:02 -08:00
nshrivas
4426f7852d Release 5.2.0.111E
Release 5.2.0.111E

Change-Id: I68b739b6dfa3fab1560cd3bb75eebe8657746d1c
CRs-Fixed: 774533
2018-12-11 01:43:03 -08:00
Abhishek Singh
fb5b4d32a3 qcacld-3.0: Move ifdef CONFIG_VDEV_SM outside functions in wma
Moves ifdef CONFIG_VDEV_SM outside functions in wma.

Change-Id: Idfd2e3f9f9984036bd7b74dfc1497287c7c53404
CRs-Fixed: 2362202
2018-12-11 01:43:03 -08:00
Harprit Chhabada
3cfca968de qcacld-3.0: Fix null pointer dereference for vdev_mac_entry
In wma_process_pdev_hw_mode_trans_ind() vdev_mac_entry is used  to copy the
pdev_id and vdev_id values from a for loop.

vdev_mac_entry is never checked before if it is allocated and can lead to
null pointer dereference.

Change-Id: I44ea6f5262bf39116af33a4d833a2c77d7963626
CRs-Fixed: 2359250
2018-12-11 01:43:00 -08:00
Alok Kumar
8df4c76c58 qcacld-3.0: Set self_peer to NULL in monitor mode if ref cnt is 0
In monitor mode, pdev->self_peer is not updated before deleting the
peer in ol_txrx_peer_release_ref when peer ref_cnt becomes 0. This
leads the stale peer stored in pdev->self_peer. The pdev->self_peer
is not updated during peer creation due to this stale peer.

Update the pdev->self_peer to NULL when peer ref cnt becomes 0

Change-Id: Id09771a1a7c5a363cf3251af829ac8ff50d38a5b
CRs-Fixed: 2356492
2018-12-11 01:42:56 -08:00
nshrivas
fa41505cdb Release 5.2.0.111D
Release 5.2.0.111D

Change-Id: Iaee57cbb641f5131253e90e18d46b5591983d24a
CRs-Fixed: 774533
2018-12-10 23:33:37 -08:00
Krunal Soni
1680e4192b qcacld-3.0: Move few INIs's ownership from HDD to Policy manager
This is mirror change for de218d60a

INIs
1) g_mark_sap_indoor_as_disable
2) g_sta_sap_scc_on_lte_coex_chan
3) gEnableSAPManadatoryChanList
4) gForce1x1Exception
4) g_sta_sap_scc_on_dfs_chan
5) gDualMacFeatureDisable
6) gEnableOverLapCh
7) gAllowMCCGODiffBI

Ownership of above INIs belong to policy manager, move them from
HDD to Policy manager.

Change-Id: I83a13b1fcc6ca4350071a71648c7072c2b2a5191
CRs-Fixed: 2363060
2018-12-10 23:33:37 -08:00
Wu Gao
e7687f4b71 qcacld-3.0: Parse INI configure with user setting
It use default value instead of user setting when parse INI
"gNeighborScanChanList".

Change-Id: I99ccede8b68eefbfef96718fa4432c1824cdcf7f
CRs-Fixed: 2363952
2018-12-10 23:33:33 -08:00
Abhishek Singh
935e4776f4 qcacld-3.0: Add support to enable/disable scan with reason code
Adds support to enable/disable scan for psoc/vdev with reason,
so that multiple clients can enable/disable the scan at same time.

Scan will remain disabled till all clients enable it back.

Change-Id: I693e223870142f831f8eefa59a9053960886bad6
CRs-Fixed: 2362098
2018-12-10 23:33:29 -08:00
nshrivas
d2131211db Release 5.2.0.111C
Release 5.2.0.111C

Change-Id: Id674f1cbecd9bf0f59a1a83657c04012098cfe98
CRs-Fixed: 774533
2018-12-10 20:21:43 -08:00
Jeff Johnson
4155a5ea6d qcacld-3.0: Remove assoId from tSap_StationAssocIndication
The typedef tSap_StationAssocIndication contains an assoId field that
isn't used, so remove it.

Change-Id: I2a4ba9bd7220cb0cebe891d7085d92e17361ed06
CRs-Fixed: 2364101
2018-12-10 20:21:43 -08:00
Jeff Johnson
6142985f4c qcacld-3.0: Remove unused csr_roam_profile fields
The following fields in struct csr_roam_profile are unused, so remove
them:
- nWSCReqIELength
- pWSCReqIE
- fils_connection

Change-Id: I8fcae065b10d5480f2adab77427ef3048448d9a1
CRs-Fixed: 2364100
2018-12-10 20:21:40 -08:00
Jeff Johnson
405c998276 qcacld-3.0: Remove sessionID field from tSapCtxList
The sessionID field in tSapCtxList is written but never read, hence it
serves no purpose, so remove it.

Change-Id: I0c7a134dba75be905f85016a3db026132bbfa348
CRs-Fixed: 2364099
2018-12-10 20:21:38 -08:00
Jeff Johnson
5c859a5110 qcacld-3.0: Remove obsolete typedef tSap_SoftapStats
The typedef tSap_SoftapStats is unused, so remove it.

Change-Id: I641c5528a6794aa3721529e0fc0015bbb71499fd
CRs-Fixed: 2364098
2018-12-10 20:21:36 -08:00
Jeff Johnson
17c631bf08 qcacld-3.0: Change tpAniSirGlobal definition
A recent set of changes replaced almost all occurrences of typedef
tpAniSirGlobal. The only ones left intact were the ones within the
auto-generated files dot11f.c and dot11f.h. Now to prevent new
instances from being introduced, change the definition.

Change-Id: I31924e45242320fee5d8432b624bb9ba00bf7531
CRs-Fixed: 2364097
2018-12-10 20:21:33 -08:00
Jeff Johnson
84b81380a1 qcacld-3.0: Remove obsolete sap_start_work
Previously Policy Manager refactoring moved the logic for handling
different concurrency scenarios to the qca-wifi-host-cmn project.
Subsequently change I6cb9fe12bee3702556c9b52e7ccb7c69c762d8de
("qcacld-3.0: Remove legacy code for policy manager restructuring")
attempted to remove all of the legacy support. However a few remnants
remain, so remove the remaining support for the following items:
- sap_start_work
- is_sap_restart_required
- is_sta_connection_pending
- sap_update_info_lock
- sta_update_info_lock

Change-Id: I261e69938efddb4389982c77102ec07ed7591d9e
CRs-Fixed: 2363233
2018-12-10 20:20:49 -08:00
Jeff Johnson
58894a1df3 qcacld-3.0: Remove PERE_IP_HDR_ALIGNMENT_WAR feature
The PERE_IP_HDR_ALIGNMENT_WAR feature does not apply to hardware
supported by this driver, and the code would not build correctly
if the feature was enabled, so completely remove the feature.

Change-Id: I4697e798dc57ab7e51c88d40e4d0f9a26a98de6d
CRs-Fixed: 2363232
2018-12-10 20:20:47 -08:00
Jeff Johnson
8feaa63728 qcacld-3.0: Remove obsolete txrx.h
Almost all of the definitions in txrx.h are obsolete. Rather than
remove the obsolete definitions and leave behind a file containing
only the two definitions that are used, move those useful definitions
to ol_txrx_types.h and completely remove txrx.h.

A side effect of this change is that a couple of unrelated files no
longer build because some of their dependencies were being met as a
side effect by txrx.h including other files. To solve the build issues
explicitly include the necessary header files where they are needed.

Change-Id: Ic3e3b36939e4ab04831d41a1e230bfab3da086a2
CRs-Fixed: 2363231
2018-12-10 20:20:45 -08:00
nshrivas
500bd72fc3 Release 5.2.0.111B
Release 5.2.0.111B

Change-Id: Ic02c48816edde4c5054ee0e665d13a9425085338
CRs-Fixed: 774533
2018-12-10 15:12:25 -08:00