Commit Graph

16221 Commits

Author SHA1 Message Date
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
Nirav Shah
9b25064c31 qcacld-3.0: Use correct variable for excess retry count
Use correct variable to display excess retry count in
pdev tx fw stats.

Change-Id: I93fa3a064cf26e423fb9d5aead9e1deed341ff7a
CRs-Fixed: 2468832
2019-06-15 00:26:03 -07:00
nshrivas
3c83725520 Release 5.2.0.136Y
Release 5.2.0.136Y

Change-Id: I3c9e3bd8b6bd0e15ea44c2b283949f99d518f1a0
CRs-Fixed: 774533
2019-06-14 20:35:53 -07:00
Kiran Kumar Lokere
9cd688df06 qcacld-3.0: Fix dot11mode setting in roaming session
The roaming FT session dot11mode value is set with self
configuration, peer capability from beacon is not checked to
set the value.
Check peer AP beacon capabilities along with self configuration
to set the dot11mode setting in FT session.

Change-Id: Idd0edafccc6664b3b0f41ba7ca3dd8d59094ff3e
CRs-Fixed: 2467600
2019-06-14 20:35:52 -07:00
Srinivas Girigowda
eb22a66111 qcacld-3.0: Replace SIR_MAC_WNM_* with converged macros WNM_BSS_*
Replace SIR_MAC_WNM_* with converged macros WNM_BSS_*.

Change-Id: I7866d87eac2da52df5fd537bacd5830c1af1784f
CRs-Fixed: 2472212
2019-06-14 20:35:48 -07:00
nshrivas
425ec0ebae Release 5.2.0.136X
Release 5.2.0.136X

Change-Id: I569c72791b926575bac9ff6ea842fc5822cb15d4
CRs-Fixed: 774533
2019-06-14 16:23:29 -07:00
gaurank kathpalia
4ad087ece6 qcacld-3.0: Fix P2P-GO restart fail issue in unsafe channel event
Currently the driver checks MCC/SCC with the present connections,
and band interference in restart case of both SAP, and P2P-GO,
which can lead to p2p-go fail, as supplicant which is the
initiator of the switch channel does not care about MCC, and wants
the driver to restart the p2p-go in the channel given.

Fix is to overide the checks for P2P-GO only, and restart the
vdev in the given channel by supplicant.

Change-Id: I5db1da5452272696d80128e16b9e0ee50aa0de28
CRs-Fixed: 2466292
2019-06-14 16:23:28 -07:00
nshrivas
3514caeb5f Release 5.2.0.136W
Release 5.2.0.136W

Change-Id: I04372a82b25a010510916ccdfc6e3e0b3d850aa4
CRs-Fixed: 774533
2019-06-14 12:58:13 -07:00
gaurank kathpalia
dabdd7cc28 qcacld-3.0: Filter the channel list according to acs cfg
Currently the driver checks whether the DFS channel is
in the range of acs channel list given, i.e the start
and end channel, which is not always correct as the channel
range does not imply that all channels in that range are present.

Fix is to explicitley check for the number of channels, and
compare each channel in the acs channel list with the DFS
channel.

Change-Id: Ib0b2d66dc325c340ab5cc837109a4f63e48ef4df
CRs-Fixed: 2466223
2019-06-14 12:58:12 -07:00
nshrivas
b18860d731 Release 5.2.0.136V
Release 5.2.0.136V

Change-Id: I3d9176c2068eccb677b806cd20d1c07ee5ee159b
CRs-Fixed: 774533
2019-06-14 07:40:54 -07:00
Rajeev Kumar Sirasanagandla
fa4e43888b qcacld-3.0: Add NULL check for nan private objects
In ndi_remove_and_update_primary_connection() of NAN component,
add missing NULL checks for psoc and vdev NAN private objects
to avoid possible NULL dereference.

Change-Id: Iff3e248259ab67628d081d30f16d1822a0ea6dcb
CRs-Fixed: 2423991
2019-06-14 07:40:54 -07:00
nshrivas
b678174a10 Release 5.2.0.136U
Release 5.2.0.136U

Change-Id: Ia54cdd3bfd7ad0f9ba43ecc974436bb828f2939e
CRs-Fixed: 774533
2019-06-14 03:16:58 -07:00
Rajeev Kumar
0e5dec0b9c qcacld-3.0: Add string for page fault wake up reason
Add string for page fault wake up reason such that wake up
reason is logged properly.

Change-Id: I0f7138f730f5b9ca66f1d524d5d1868a99ccd88f
CRs-Fixed: 2471522
2019-06-14 03:16:57 -07:00
nshrivas
30a829be6f Release 5.2.0.136T
Release 5.2.0.136T

Change-Id: I29a60ccce3c4b8464c2259a30481dfaaeac105c1
CRs-Fixed: 774533
2019-06-14 01:49:46 -07:00
Abhishek Ambure
f8ee02b3b2 qcacld-3.0: Remove legacy mlme_nofl logs
Remove legacy mlme_nofl log macros. For mlme_nofl logging,
use common code mlme_nofl log macros.

Change-Id: Ie27fe9adcfdc087487071fe511500b1e8cb7435b
CRs-Fixed: 2471126
2019-06-14 01:49:45 -07:00