Commit Graph

16285 Commits

Author SHA1 Message Date
Rajeev Kumar
100b65bfb2 qcacld-3.0: Do not send DTIM related commands for runtime resume
Since system is awake when runtime PM suspend/resume happens, there is
no need to send DTIM related WMI commands with WOW sequence during runtime
PM resume as unlike system suspend, these commands are able to be sent from
other paths. It will just trigger runtime PM resume which is expected
behavior.

Change-Id: I51d0f45c0223a0c0e3c61bbcb7135a590359b08d
CRs-Fixed: 2475111
2019-06-20 20:15:10 -07:00
nshrivas
12c940a71d Release 5.2.0.137P
Release 5.2.0.137P

Change-Id: I5e8e39f5ee97f5817601efdada57966051f88570
CRs-Fixed: 774533
2019-06-20 18:36:15 -07:00
Rajeev Kumar
47b772928b qcacld-3.0: Add null check for hdd_ctx in mode change shutdown/restart
Add null check for hdd_ctx in mode change shutdown and restart callbacks.

Change-Id: I03be071f44b7315aab18d8d38250709553a20a9e
CRs-Fixed: 2475044
2019-06-20 18:36:14 -07:00
Bala Venkatesh
4e3f275a80 qcacld-3.0: Avoid OOB in function tdls_ct_idle_handler
In function tdls_ct_idle_handler, idx is assigned from
tdls_info->index which can be 0 254. But tdls_conn_info
is static array in tdls_soc_priv_obj of size
WLAN_TDLS_STA_MAX_NUM (8). So check idx is less than
WLAN_TDLS_STA_MAX_NUM or not to avoid OOB memory access.

Change-Id: I8387cb0a44a79f0f83b25c12de2aa9fbc39ab2f3
CRs-Fixed: 2474432
2019-06-20 18:36:10 -07:00
nshrivas
db24dda371 Release 5.2.0.137O
Release 5.2.0.137O

Change-Id: I98ead3b171da5bd3d96b44ddc5bee960a9ebcdb1
CRs-Fixed: 774533
2019-06-20 11:59:48 -07:00
Yeshwanth Sriram Guntuka
9d7b25a072 qcacld-3.0: Update default value of force max nss action OUI ini
Update default value of force max nss action OUI ini
to include AP that advertises rx nss as 1 before
connection and advertises rx nss as 4 in association
response and in beacons or probe responses immediately
after connection.

Change-Id: Ica6314547a2aa39d4887ac4231745d6a59cd6b0a
CRs-Fixed: 2466562
2019-06-20 11:59:48 -07:00
Srinivas Girigowda
a60b84c5fd qcacld-3.0: Remove obsolete/unused macros
Remove obsolete/unused macros.

Change-Id: I7a812c9b6ce4f2af151dd7262cb6d93dec6d0c2a
CRs-Fixed: 2475125
2019-06-20 11:59:45 -07:00
gaurank kathpalia
6ee1ab4a90 qcacld-3.0: Allow DBS scan if enabled in ini
Currently the driver checks that DBS for connection
is allowed or not, and on that basis rejects the scan,
but it may happen that FW supports DBS, and DBS for
scan is enabled in the ini, but the DBS for connection
is disabled.
In that case the diver opts for non-dbs scan.

Fix is to allow DBS scan in case of DBS scan enabled in ini.

Change-Id: I9feccdb434787f9ae1b87397b9c7a25cb2e40705
CRs-Fixed: 2473835
2019-06-20 11:59:41 -07:00
nshrivas
c125089162 Release 5.2.0.137N
Release 5.2.0.137N

Change-Id: I14bd08b44c74257fb58b26e35839fc163dc7d1e2
CRs-Fixed: 774533
2019-06-20 08:45:36 -07:00
Vevek Venkatesan
988a1395f2 qcacld-3.0: featurize PKTLOG send cmd under feature flag
Featurize PKTLOG send cmd under feature flag FEATURE_PKTLOG.

Change-Id: Ia7cc0ce3fb3ff2c3b28a0957353f7a3efa4fb6f0
CRs-Fixed: 2474100
2019-06-20 08:45:35 -07:00
Vevek Venkatesan
aa66a19a22 qcacld-3.0: enable QCA_WIFI_QCA6290_11AX_MU_UL feature flag
Enable QCA_WIFI_QCA6290_11AX_MU_UL feature flag for HAL layer.

Change-Id: Ia9cd4e0638fa4f340145f9523af14f720df198f8
2019-06-20 08:45:31 -07:00
nshrivas
200b28acf5 Release 5.2.0.137M
Release 5.2.0.137M

Change-Id: If4b8f69bfa0c7ac38c1fb2a2804d43bfa1426053
CRs-Fixed: 774533
2019-06-19 16:46:29 -07:00
Tushnim Bhattacharyya
72adeb5673 qcacld-3.0: Advertise twt capability correctly
Fix the logic to not to advertise twt requester for SAP &
twt responder for STA.

Change-Id: I153f7c52d0107c75f7c59b4c880bb4aa0757356b
CRs-Fixed: 2473541
2019-06-19 16:46:29 -07:00
Jinwei Chen
8cb25b3042 qcacld-3.0: Enable monitor mode based on VDEV SM
Enable monitor mode based on VDEV SM

Change-Id: I3ed95a7d741b802a67432bc8d8bcab05fe1b51d5
CRs-Fixed: 2457147
2019-06-19 16:46:25 -07:00
Ashish Kumar Dhanotiya
34507e052f qcacld-3.0: Update correct wiphy band capabilities
Driver is updating wiphy band capabilities incorrectly as
it is always updating 2G band as always supported, in case
if 2G band is disabled from ini "BandCapability", driver
should not update 2G band capabilities to wiphy.

To avoid above issue, add a api to check if 2G band is
supported and then only update 2G band capabilities to
wiphy.

Change-Id: Ib921fa106158d93bfdb7aa57cfd5aa4370fab7d8
CRs-Fixed: 2470067
2019-06-19 16:46:21 -07:00
nshrivas
df86b86ada Release 5.2.0.137L
Release 5.2.0.137L

Change-Id: Ida20182c19f78d5a29c604299dd5ea3f82e116e3
CRs-Fixed: 774533
2019-06-19 07:47:17 -07:00
Lihua Liu
e98a13599a qcacld-3.0: Disable QDF_LOCK_STATS_BUG_ON on SDXPRAIRIE platform
As single CPU and low frequency platform, the held time of spin lock
easily exceed the max time allowed when system taking heavy payload.
then crash occur. To address this, Disable QDF_LOCK_STATS_BUG_ON on
SDXPRAIRIE platform.

Change-Id: I156a003b361f3653591102de1cde9b131c467968
CRs-Fixed: 2456386
2019-06-19 07:47:16 -07:00
Rajeev Kumar Sirasanagandla
7172b499a6 qcacld-3.0: Fix out of bound access in sta_to_adapter
Array sta_to_adapter of hdd_ctx is accessed from several functions of
NAN and softap without bound check which can lead to out of bound read
or write access.

To fix this, add range check for sta_id.

Change-Id: I0b8c4e8bce26c6514df489c3305000691c7e1fe0
CRs-Fixed: 2456954
2019-06-19 07:47:12 -07:00
nshrivas
2c3e85f2ee Release 5.2.0.137K
Release 5.2.0.137K

Change-Id: I641190ede519458c214ce20920be056be31ee1f7
CRs-Fixed: 774533
2019-06-19 06:35:36 -07:00
Pragaspathi Thilagaraj
7fb14221a5 qcacld-3.0: Rename selfMacAddr
Linux coding guidelines don't allow use of camel case identifiers.
So rename selfMacAddr to self_mac_addr to be in compliance.

Change-Id: Id70e00744883f9fd797da8d4bb1cf4f65c8aa9ff
CRs-Fixed: 2463827
2019-06-19 06:35:35 -07:00
nshrivas
fb5213d36d Release 5.2.0.137J
Release 5.2.0.137J

Change-Id: Id8a889c9978477f5101876d5eb00978960e11766
CRs-Fixed: 774533
2019-06-19 00:42:36 -07:00
Rajasekaran Kalidoss
79947ffaa8 qcacld-3.0: prevent double free of iface staKeyParams
Memory pointed by stakeyparams is not made NULL after
freeing in wma_set_stakey. This results in double free
during wma_add_bss_sta.

Change-Id: Ifa24d536e116be60f572d9926a511f9f498e6696
CRs-Fixed: 2463399
2019-06-19 00:42:36 -07:00
hangtian
a6f91ce5ef qcacld-3.0: Move two fw-api host headers to driver
Move wlan_tgt_def_config.h wlan_tgt_def_config_hl.h to driver.

Change-Id: I5891d5ef557bb00b9a1632d79aa4c396074e0053
CRs-Fixed: 2474409
2019-06-19 13:36:55 +08:00
nshrivas
0ea20b09a3 Release 5.2.0.137I
Release 5.2.0.137I

Change-Id: I020e5a881e10899a8d355d6e5e7f1ab9cc4f725d
CRs-Fixed: 774533
2019-06-18 22:27:35 -07:00
Tiger Yu
e40e7836a5 qcacld-3.0: Add support for TCP delayed ack in driver
qcacld-2.0 to qcacld-3.0 propagation

This change adds support for driver supported TCP
delayed ack to increase TCP RX performance in
third-party platform which does't support kernel
TCP delayed ack feature.

TCP delayed ack is dependent on count and timer
values. Whatever is achieved first will trigger
sending TCP ack.

This feature can be controlled through ini values.
gDriverDelAckTimerValue - timer value in ms
gDriverDelAckPktCount - delayed ack count
gDriverDelAckEnable - enable/disable feature

Change-Id: I8105bbb90965295b5a4aefeb00d344a90155974d
CRs-fixed: 2414224
2019-06-18 22:27:35 -07:00
nshrivas
c3a3d5572c Release 5.2.0.137H
Release 5.2.0.137H

Change-Id: I74540d24fca47c012add758584fbd036107b5ce5
CRs-Fixed: 774533
2019-06-18 07:51:20 -07:00
Pragaspathi Thilagaraj
2071e3380e qcacld-3.0: Disable LFR2 for cld-3.2 mainline
Disable LFR2 in cld-3.2 mainline as roaming is offloaded
to firmware in LFR3. Also fix linker issues with lfr2 disabled.
Featurize LFR2 properly with adding correct header files
and bringing LFR2 only functions under WLAN_FEATURE_HOST_ROAM
compile time flag.

Change-Id: Iac81b693feaab503d371753a4d16cc3e70df2a87
CRs-Fixed: 2459786
2019-06-18 07:51:20 -07:00
Abhinav Kumar
e85ae55537 qcacld-3.0: Handle BEACON_REPORTING_DO_NOT_RESUME vendor attribute
Optionally set by userspace to request the driver not to resume
beacon reporting after a pause is completed, when the
QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to
QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START.

If this flag is set, the driver will not resume beacon reporting
after beacon reporting pause is completed. Userspace has to
send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order
to initiate beacon reporting again.

If this flag is set in the recent
QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the
subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any)
the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be
set by the driver.

Change-Id: I371a218cb513dcb077b7df675c549818c2b657b2
CRs-Fixed: 2466480
2019-06-18 07:51:15 -07:00
Abhinav Kumar
8475bc3f61 qcacld-3.0: Allow fw to send all beacons of connected AP
In order to process QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING
vendor command, driver sends remove beacon filter cmd to fw to
allow fw to send all beacons of connected AP to driver.
But in some cases fw may wakeup host in wow mode.
To avoid these cases, with this change beacon reporting feature
will use WMI_VDEV_PARAM_NTH_BEACON_TO_HOST
command to FW instead of WMI_RMV_BCN_FILTER_CMDID
With WMI_VDEV_PARAM_NTH_BEACON_TO_HOST, in case of active reporting,
fw should send all beacons of connected AP to HOST
and also no wakeup of driver should happen in wow mode.

Change-Id: I9d0e255a6d4accb523bf4613146574239e7e0d09
CRs-Fixed: 2471627
2019-06-18 07:51:10 -07:00
nshrivas
5e4f15ed44 Release 5.2.0.137G
Release 5.2.0.137G

Change-Id: Ib976b05f0a3ae134395225e3946301d1bdcddbf1
CRs-Fixed: 774533
2019-06-18 06:29:18 -07:00
Rajeev Kumar Sirasanagandla
00b95b1569 qcacld-3.0: Avoid info leak in spectral scan handler
In __spectral_scan_msg_handler(), payload section of input data is
type casted to driver internal structure spectral_scan_msg without
validating payload length which can lead to kernel info leak
if the payload length is less than size of spectral_scan_msg.

To fix this, avoid type-cast and return error if payload length is
less than size of spectral_scan_msg.

Change-Id: Ie7e74cc2cdcf8136582e81ffc3a088fd5a881dc9
CRs-Fixed: 2468493
2019-06-18 06:29:17 -07:00
nshrivas
f609871199 Release 5.2.0.137F
Release 5.2.0.137F

Change-Id: I4617e2d51fa72f8378fe0a6a741c49c8c7c954d3
CRs-Fixed: 774533
2019-06-18 00:29:03 -07:00
Jayachandran Sreekumaran
ecebb88664 qcacld-3.0: Fix for user triggered reassociation
Fix for user triggered reassoc broken due to vdev SM

Change-Id: I06e7392f6c27261e6b24496bceff6131eb72e67c
CRs-Fixed: 2460295
2019-06-18 00:29:02 -07:00
nshrivas
5054fe306e Release 5.2.0.137E
Release 5.2.0.137E

Change-Id: I808e4f7b15d3b7bef1baed8a011c19b8b23e75c0
CRs-Fixed: 774533
2019-06-17 22:25:15 -07:00
Jinwei Chen
bdd977f0c2 qcacld-3.0: delete pe_session for monitor mode when iface down
Delete pe_session for monitor mode when do interface down operation.

Change-Id: I18f58906a3cff3af68558a37c2f4b3f67a8cdd22
CRs-Fixed: 2471736
2019-06-17 22:25:14 -07:00
Vevek Venkatesan
f2956ad09a qcacld-3.0: add feature flags to featurize DP operations
Add feature flags DP_FLOW_CTL to featurize DP flowctl ops,
DP_PEER_MGMT to featurize peer handling in DP,
DP_POWER_SAVE to featurize power saving ops in DP.

Change-Id: I02f487fec846e9dd9ffcaf53a10e49e7a3365fff
2019-06-17 22:25:10 -07:00
nshrivas
122059188d Release 5.2.0.137D
Release 5.2.0.137D

Change-Id: I4ce106b7e176e109de9449ca075f7ba604b4d96b
CRs-Fixed: 774533
2019-06-17 18:24:27 -07:00
Abhishek Singh
fc0c4245a4 qcacld-3.0: Fix command timeouts for VDEV stop and PEER assoc/delete
Command timeouts for VDEV stop and PEER assoc/delete is 2 sec, which
doesn't consider delays in scheduling.

To consider scheduling delays set these values to 4 sec and change
the serialization and HDD timeouts accordingly.

Change-Id: Ifc8ca857727a7e73bbae586c0728816024f1c687
CRs-Fixed: 2472122
2019-06-17 18:24:26 -07:00
nshrivas
0dc4452904 Release 5.2.0.137C
Release 5.2.0.137C

Change-Id: Icbf2d3b112f58fe20aaa826f40007b6a24334d46
CRs-Fixed: 774533
2019-06-17 13:00:43 -07:00
Jeff Johnson
93cc00cb90 qcacld-3.0: Use renamed OSIF logging macros
Change Id3273498f623d04beec879aa9d77c1d33986357a ("qcacmn: Rename OSIF
logging macros") is renaming the OSIF logging macros, so update the
legacy OSIF to use the new names.

Change-Id: I73d4214c9fecc435f9ac8c9f79560aa36333d311
CRs-Fixed: 2469498
2019-06-17 13:00:42 -07:00
nshrivas
69b908b88d Release 5.2.0.137B
Release 5.2.0.137B

Change-Id: Ia90ee2b34c9f11014e647f82953f9b799e72afdf
CRs-Fixed: 774533
2019-06-17 11:44:54 -07:00
sandeep puligilla
4afcb11934 qcacld-3.0: Add target wakelock api in Kbuild
Add wakelock api in the Kbuild.

Change-Id: Ide44f57e2ce3f8f659656c3e8c578d9f7851e9be
CRs-Fixed: 2441316
2019-06-17 11:44:54 -07:00
nshrivas
1a6861b027 Release 5.2.0.137A
Release 5.2.0.137A

Change-Id: I1241c471cae0c9ca684c399e5a5b65b82e4aaf93
CRs-Fixed: 774533
2019-06-17 10:22:53 -07:00
Rakesh Pillai
f41fe0c28a qcacld-3.0: Add feature flag for event history logging
Add a feature flag enabling support in defconfig
for the datapath event history logging feature.

CRs-Fixed: 2466616
Change-Id: I8fc2c76a927aea3e2e723cde87c69e59e03a9848
2019-06-17 10:22:52 -07:00
Vevek Venkatesan
ed315cdbdd qcacld-3.0: Fix race condition in sending STA IPA offload enable
During resource unloading, if two next to next client connect
request comes, one is handled in pending event handler in
wlan_ipa_uc_op_cb callback after processing FW TX suspend response
and other one is handled in scheduler thread, this causes race
condition in sending IPA offload enable for STA iface. So send IPA
enable req to FW before queuing the client connect event to the
pending events.

Change-Id: Ifcabc2481e590e5e128434614c4b46fe53a34636
CRs-Fixed: 2460573
2019-06-16 23:14:24 -07:00
nshrivas
e5775805c7 Release 5.2.0.137
Release 5.2.0.137

Change-Id: Id9e63aa6c8ed44b6a493566540f06947bc12d647
CRs-Fixed: 774533
2019-06-16 08:26:36 -07:00
Jianmin Zhu
69ca6965db qcacld-3.0: Fix F/W dump on Rome when host F/W out of sync
When Rome host F/W out of sync, cds_trigger_recovery_handler is
called, but pld_collect_rddm is added in it by change
Id9f1dfefe1560affff6c4ecfca1b8fdba3eb0928,
Rome doesn't support RDDM, panic will always happen without F/W
dump.

With this change and ini gEnableSelfRecovery=1, when host F/W out
of sync happens, crash inject is sent to F/W to trigger F/W dump,
if subsystem restart level is "system", panic will happen,
If subsystem restart level is "related", SSR will happen.

Change-Id: I3c714e6b2750ef3305b0f4c64ea5fe8fdc74c1d8
CRs-Fixed: 2472484
2019-06-16 08:26:36 -07:00
nshrivas
8775befcf0 Release 5.2.0.136Z
Release 5.2.0.136Z

Change-Id: I50c40a396db2dd062864f55c3377e48d0a8a11b6
CRs-Fixed: 774533
2019-06-15 00:26:11 -07:00
Nirav Shah
8d6862c001 qcacld-3.0: Enable CONFIG_AR900B for Genoa
Enable CONFIG_AR900B feature to use FW stats
version 2.

Change-Id: Ia2d9ad34477ecc50858f8e2f65425b719339c916
CRs-Fixed: 2468812
2019-06-15 00:26:11 -07:00
gaurank kathpalia
a8376c9680 qcacld-3.0: Fix potential pointer dereference condition
In the API blm_update_ap_info, it may happen that the scan
entry is NULL, and the scan entry pointer maybe dereferenced
in the debug print where the rssi print is there.

Fix is to print the RSSI only when the scan entry is valid.

Change-Id: I3ad973d61a0c11b6a55c8b346d54eb41956882b6
CRs-Fixed: 2469815
2019-06-15 00:26:07 -07:00