Commit Graph

17855 Commits

Author SHA1 Message Date
Bapiraju Alla
d97145c971 qcacld-3.0: Add support for cfg80211 op get_channel
Add support for get_channel callback in cfg80211_ops

Change-Id: I4d7f91bb1f6edf4a9f6d42e4efa470a012231186
CRs-Fixed: 2702329
2020-06-18 11:54:48 -07:00
Nirav Shah
10c77d2379 qcacld-3.0: Check for max allowed STA vdevs in change interface API
In FW CFG_TGT_DEFAULT_MAX_STA_VDEVS considers total no of
STA and P2P-CLI vdevs. Check CFG_TGT_DEFAULT_MAX_STA_VDEVS
in change interface APIs for P2P CLI case.

Change-Id: I195d1cdda2d66f3187698254accf4bc3646d78c2
CRs-Fixed: 2701798
2020-06-18 11:54:44 -07:00
Zhaoyang Liu
7d713f4ae4 qcacld-3.0: Fix CSA process WBW IE bandwidth issue
During channel switch, firmware reports CSA offload event,
driver will process wbw IE and set phy mode into firmware.
Now driver only processes case that frequency segment0 above
current primary channel. So device will use bandwidth which
is mismatched with AP after channel switch. It will cause data
transaction failure. Change to support frequency segment0 below
primary channel.

Change-Id: Ie879ceb8eadbe92f6519886dc30fb2c065ddbc40
CRs-Fixed: 2684883
2020-06-18 11:54:40 -07:00
nshrivas
48ed8adac5 Release 5.2.0.190Q
Release 5.2.0.190Q

Change-Id: Ib359b257a71b9be3ca6624c56a86d6fe1591c4cc
CRs-Fixed: 774533
2020-06-18 03:43:53 -07:00
nshrivas
6562ea587c Release 5.2.0.190P
Release 5.2.0.190P

Change-Id: I35e563cca6d3804c3005857bceb1e9246b50ee5a
CRs-Fixed: 774533
2020-06-17 19:37:59 -07:00
Utkarsh Bhatnagar
3402879c05 qcacld-3.0: Correct condition to skip DFS channels
Currently the driver skips the DFS channels if
g_sta_sap_scc_on_dfs_chan = 2 which should not
happen as master mode is supported if this ini
is 2. Driver should only skip the DFS channels
if the ini value is 1.
Fix is to correct the condition for the same.

Change-Id: I9d6c2f2c42f9d9f4f1b5bd080b9cdc5c13e031f2
CRs-Fixed: 2700201
2020-06-17 19:37:59 -07:00
Bapiraju Alla
746366c3ee qcacld-3.0: Validate APF memory offset in APF offload vendor command
Currently, APF memory offset is sent to the firmware without validation.
This may cause out of bound memory access in the firmware.

To avoid this, validate apf memory offset with MAX_APF_MEMORY_LEN in
the driver.

Change-Id: I5657f570a820b73b9e07a6fb1ce54807156def24
CRs-Fixed: 2711515
2020-06-17 19:37:56 -07:00
nshrivas
7570e758de Release 5.2.0.190O
Release 5.2.0.190O

Change-Id: I6a1d9cf30986475c69468f5e8d1222ac4bb66a12
CRs-Fixed: 774533
2020-06-17 16:20:05 -07:00
Yu Ouyang
fe30ea50e7 qcacld-3.0: Fix error handling of the vdev destroy timeout
When vdev destroy event timeout, function wait_for_completion_timeout()
will return zero. Zero means completion event timeout. But our code uses
last status to check timeout or not timeout. SME will not be clean at
this case.

So, correct code to ensure sme can be clean.

Change-Id: I4c0366a9d0f89d374f0e6aa50e0aa32f67fac03e
CRs-Fixed: 2705855
2020-06-17 16:20:05 -07:00
Utkarsh Bhatnagar
1d5015befb qcacld-3.0: Initialize roam result and status
Initialize roam result and status in
csr_roam_process_results and
csr_roam_process_start_bss_success to
prevent use of uninitiazed variables.

Change-Id: I06b3026db4bc70b3631c9348101cc8ca691a8b26
CRs-Fixed: 2702076
2020-06-17 16:20:02 -07:00
nshrivas
713edccefb Release 5.2.0.190N
Release 5.2.0.190N

Change-Id: Ia12f78a1deeba1d4eda73d6193b8b9131598ed3e
CRs-Fixed: 774533
2020-06-17 12:14:51 -07:00
Mohit Khanna
8c40bf010d qcacld-3.0: Null-check context in hdd_set_netdev_flags
Add null check for 'hdd_ctx' and 'soc' before accessing them in
hdd_set_netdev_flags function.

Change-Id: I0fc115170943c402b522989d76b278ea1fbd4862
CRs-Fixed: 2706429
2020-06-17 12:14:51 -07:00
Ben Wang
55bcf005c8 qcacld-3.0: Validate adapter before using it
Validate adapter before using it.

Change-Id: I424c87813b26749748ded1e06176950a954ed935
CRs-Fixed: 2708885
2020-06-17 12:14:47 -07:00
nshrivas
b0ee46f93c Release 5.2.0.190M
Release 5.2.0.190M

Change-Id: I765aa5b6e19019b34060926ffb32069c5305d635
CRs-Fixed: 774533
2020-06-17 06:15:02 -07:00
Jinwei Chen
5b86a68395 qcacld-3.0: Do not skip GRO flush when T-put is low
For kernel 5.4, skip GRO flush when T-put is low  will cause
11g TCP RX not stable.

Do not skip GRO flush if T-put is low for kernel >= 5.4.

Change-Id: I89c29b64b9801d2a3c917d88cc31cb18296fd4d7
CRs-Fixed: 2697893
2020-06-17 06:14:57 -07:00
nshrivas
dad15b90e3 Release 5.2.0.190L
Release 5.2.0.190L

Change-Id: I84f2f4764946140cde584ca92eadf9184b40c7c7
CRs-Fixed: 774533
2020-06-16 12:20:10 -07:00
Mohit Khanna
0bb3f018bf qcacld-3.0: Add NAN TX checksum offload INI entry
Currently there is a single INI item tcp_udp_checksumoffload to enable
or disable this feature for all the adapters. In some cases, we want to
be able to enable this feature selectively for NAN mode.

Add nan_tcp_udp_checksumoffload ini item to enable or disable checksum
offload feature specifically for NAN mode. If
nan_tcp_udp_checksumoffload is 'true' and tcp_udp_checksumoffload is
false, hardware checksum offload will be enabled only for the NAN
adapter and not for other adapters.

CRs-Fixed: 2698342
Change-Id: I56319095e6229d77ddb5c790d0af9c6ba0267611
2020-06-16 12:20:10 -07:00
nshrivas
cdd88ebae9 Release 5.2.0.190K
Release 5.2.0.190K

Change-Id: Ieb1c73d29968cc480635f95351cb980c1154e514
CRs-Fixed: 774533
2020-06-16 10:23:42 -07:00
Min Liu
0bf96737c8 qcacld-3.0: Set Wi-Fi configurations - NSS
Add attributes in SET_WIFI_CONFIGURATION to dynamically
configure capabilities - NSS.

Change-Id: Ib8174443d6737bc1f6c2737397bd915064715461
CRs-Fixed: 2709121
2020-06-16 10:23:42 -07:00
nshrivas
f710f5ef89 Release 5.2.0.190J
Release 5.2.0.190J

Change-Id: Iaf925d24d3b161d9edba51f950563453b5c3b339
CRs-Fixed: 774533
2020-06-16 06:15:45 -07:00
Subrat Dash
706377360e qcacld-3.0: Parse device info nl attribute in the oem vendor cmd
Userspace uses enum qca_vendor_oem_device_type to indicate
device type as vdev or pdev in the oem data vendor nl command.

This attribute is set to 1 to indicate that the oem data command
is meant for pdev and it is 0 for vdev. The default is vdev when
this nl attribute is not present.

The host driver should update the pdev_id of the vdev and fill
the pdev_vdev_flag to 1 for pdev commands.

Change-Id: I8bdf436759e0935c52bb09c2865fcb4a7a5ee4fc
CRs-Fixed: 2693892
2020-06-16 06:15:45 -07:00
nshrivas
caa2bd2e72 Release 5.2.0.190I
Release 5.2.0.190I

Change-Id: If300a5c4b5c80f64b4fb82f1fae1c5ac029c898d
CRs-Fixed: 774533
2020-06-16 01:52:52 -07:00
Srinivas Dasari
dc72fffd2b qcacld-3.0: Deprecate command support for QCA_NL80211_VENDOR_SUBCMD_NAN
QCA_NL80211_VENDOR_SUBCMD_NAN_EXT is introduced to carry NAN
command data along with channel info. This channel info is needed
to enable DBS on DBS supported platforms. The command data is sent
to firmware as it on non-DBS platforms.
Userspace is expected to send NAN commands through
QCA_NL80211_VENDOR_SUBCMD_NAN_EXT if it's supported. It can send
QCA_NL80211_VENDOR_SUBCMD_NAN if QCA_NL80211_VENDOR_SUBCMD_NAN_EXT
is not supported, which is expected to happen on older
platforms(non-DBS).
So legacy NAN command QCA_NL80211_VENDOR_SUBCMD_NAN is not allowed
on DBS platforms, as the command is sent to firmware without
enabling DBS.
Event part of QCA_NL80211_VENDOR_SUBCMD_NAN is still intact as it
carries NAN events from firmware to userspace.

Change-Id: Ie1aaf9f7ea051009125c972de4f0de13942448fb
CRs-Fixed: 2699605
2020-06-16 01:52:52 -07:00
nshrivas
515ea41025 Release 5.2.0.190H
Release 5.2.0.190H

Change-Id: Ic8103a08963900c99982422f58bef2e5aef44808
CRs-Fixed: 774533
2020-06-15 21:52:20 -07:00
hqu
e2e9ea6d37 qcacld-3.0: Add support for 64-clients
Add support for 64-clients.

Change-Id: Ic97ebb83190b5061734832f6dc6dcdb6d0bdac2b
CRs-Fixed: 2625495
2020-06-15 21:52:20 -07:00
hqu
03c1b12671 qcacld-3.0: Add maximum sta number limitation for each pe_session
Currently use maxStation to create dph_hash_table for each
pe_session, actually maxStation is total allowed maximum
sta for all pe_session that gets from ini gSoftApMaxPeers
and firmware capability.

SIR_SAP_MAX_NUM_PEERS is maximum sta number for each pe_session
and can be configured from config file, add max_sta_of_pe_session
to limit maximum sta number for each pe_session, set
max_sta_of_pe_session as minimum value between maxStation and
SIR_SAP_MAX_NUM_PEERS.

Change-Id: Iaa01c91cd164c470b3f76bffc826ca5abdd4d0d3
CRs-Fixed: 2676484
2020-06-15 21:52:12 -07:00
nshrivas
653f2d1dbb Release 5.2.0.190G
Release 5.2.0.190G

Change-Id: I2849fc97819d06de8e9a4516674f312cf816657c
CRs-Fixed: 774533
2020-06-14 22:14:05 -07:00
Jinwei Chen
3f4590be9a qcacld-3.0: flush batched GRO_NORMAL packets
Kernel 5.4 has applied batched GRO_NORMAL packets processing
for all napi_gro_receive() users. this requires NAPI users to
call napi_complete_done() or napi_complete() at the end of every
polling to flush batched GRO_NORMAL packets.
However, by current wlan driver design, napi_gro_recevie()
is not happened in same NAPI polling context and done in another
thread context, it likely packets which have not been flushed from
napi->rx_list will get stall until next RX cycle.

Fix this by adding a manual flushing of the list right after
napi_gro_flush() call to mimic napi_complete() logics.

Change-Id: Id8c1b9360c380c9631c85f5e048ae2cd2798f65b
CRs-Fixed: 2673959
2020-06-14 22:14:05 -07:00
nshrivas
fb6b07815b Release 5.2.0.190F
Release 5.2.0.190F

Change-Id: If4fa8ac1af4c5269aa91e19cd11f9173b1830f46
CRs-Fixed: 774533
2020-06-13 03:23:38 -07:00
Rakesh Pillai
f316ead4db qcacld-3.0: Vote for high DDR bandwidth in FTM mode
In FTM mode, we are not voting for any DDR frequency,
which leads to uneven TX/RX duty cycle, since the DDR
frequency will entirely depends on any other subsytem's
vote.

Vote for VERY HIGH BW in FTM mode.

Change-Id: I7f85fb9889d9119c7224c9bcd9688327e78f15ff
CRs-Fixed: 2706143
2020-06-13 03:23:38 -07:00
nshrivas
6fe1bde368 Release 5.2.0.190E
Release 5.2.0.190E

Change-Id: I9795b1dd4ce1543e903c2ab43ab21294b2c729f6
CRs-Fixed: 774533
2020-06-12 23:33:21 -07:00
nshrivas
1c029227d1 Release 5.2.0.190D
Release 5.2.0.190D

Change-Id: I458db3c7bc57dcdf2005d07a6d25f8665b95c94d
CRs-Fixed: 774533
2020-06-12 21:28:16 -07:00
Jianmin Zhu
d8097322f0 qcacld-3.0: Add reference when access vdev
adapter->vdev should never be referenced directly, and instead
must be accessed only via hdd_objmgr_get_vdev() and
hdd_objmgr_put_vdev() so that proper reference counting is
enforced.

Change-Id: Ib3efc05426105494f13ada7efed6175f88c5d141
CRs-Fixed: 2708758
2020-06-12 21:28:15 -07:00
nshrivas
dfad1b6031 Release 5.2.0.190C
Release 5.2.0.190C

Change-Id: Ie5bb0272bb698391fa46e413378b251d5b0e5a8c
CRs-Fixed: 774533
2020-06-12 09:04:13 -07:00
Surabhi Vishnoi
040f58df32 qcacld-3.0: Compilation fixes when CONFIG_WLAN_CFR_ENABLE is set
For adrastea targets, enhanced CFR is not supported. When only
CONFIG_WLAN_CFR_ENABLE is set, some compilation errors are
observed as CONFIG_WLAN_ENH_CFR_ENABLE is not set true.

Fix these compilation errors when only CONFIG_WLAN_CFR_ENABLE
is set for targets which do not support enhanced CFR.

Change-Id: Ifafa3880757c5595e1cb2da45aae1c87d50a7aae
CRs-Fixed: 2706901
2020-06-12 09:04:11 -07:00
nshrivas
fd1cc0302e Release 5.2.0.190B
Release 5.2.0.190B

Change-Id: I9aaefb61ffdebe1ae1183385573ea18d67813932
CRs-Fixed: 774533
2020-06-12 01:04:08 -07:00
Sourav Mohapatra
8f28b9e42b qcacld-3.0: Check for invalid put_ref scenario for sta_info
Currently in the ref_count mechanism used for sta_info, the driver has
no checks to determine if there are any faulty ref counting instances.
In case multiple ref_put are done for a single take_ref, it can lead to
a memory corruption.

Add a sanity check in hdd_sta_info_put_ref that causes a device assert
in case the put_ref is called on a sta_info with already zero ref_count.

Change-Id: I0b502e1df4c37601b46cc727acc94a72a401e051
CRs-Fixed: 2707614
2020-06-12 01:04:08 -07:00
nshrivas
7066cf0560 Release 5.2.0.190A
Release 5.2.0.190A

Change-Id: I7903414ba20b1000f96c1455e2907efdc4eb85aa
CRs-Fixed: 774533
2020-06-11 05:30:53 -07:00
Min Liu
fde76d4e9c qcacld-3.0: Set Wi-Fi configurations - bandwidth configurations
Add attributes in SET(GET)_WIFI_CONFIGURATION to dynamically
configure capabilities - CHANNEL_WIDTH and DYNAMIC_BW.

Change-Id: I4d577f057e5d1b385ab7a6fadcb344dc30b85c4c
CRs-Fixed: 2694656
2020-06-11 05:30:53 -07:00
nshrivas
58347393f4 Release 5.2.0.190
Release 5.2.0.190

Change-Id: Ifa245908f2eee044dcea98323dac62d672a1c141
CRs-Fixed: 774533
2020-06-11 02:04:35 -07:00
Nisha Menon
46b0fb5f0c qcacld-3.0: Add node to sysfs to print wlan mem usage
The wlan_mem_stats node will print the DMA, SKB and heap
memory allocated in the wlan host driver. This is applicable
to perf and defconfig builds.
File path to new node is:
/sys/kernel/wifi/wlan/wlan_mem_stats

Change-Id: Ic05423d362de1ef07a3ecbdd6408a7226e2a3c2f
CRs-Fixed: 2680360
2020-06-11 02:04:35 -07:00
nshrivas
6d3dbec5df Release 5.2.0.189Z
Release 5.2.0.189Z

Change-Id: Ib875cdde7cdd1677d9d09900342a231d6ab5fa93
CRs-Fixed: 774533
2020-06-10 20:23:08 -07:00
Alan Chen
6ead5beaab qcacld-3.0: Add a wakelock and prevent suspend during idle shutdown
System suspend is occurring a few seconds before idle shutdown while
it was set to deinit state. Add a wakelock and prevent suspend during
idle shutdown.

Change-Id: I976bdece04857045e272c5c3e26db51fb63c51cf
CRs-Fixed: 2706275
2020-06-10 20:23:07 -07:00
Wu Gao
5e262a7c8b qcacld-3.0: Use min/max macro to update start/end range of 6ghz
Use MIN_6GHZ_CHANNEL to replace CHAN_ENUM_5945, MAX_6GHZ_CHANNEL to
replace CHAN_ENUM_7105, since min/max channel of 6ghz may be changed.

Change-Id: Ibb0aa4182162d956d632b271cbbfef5af07f918c
CRs-Fixed: 2706639
2020-06-10 20:23:04 -07:00
nshrivas
5d55b3cb4c Release 5.2.0.189Y
Release 5.2.0.189Y

Change-Id: I2e777b8ed05b708254285807b145408eb278089f
CRs-Fixed: 774533
2020-06-10 18:13:36 -07:00
Srinivas Dasari
662a62841c qcacld-3.0: Don't create wifi-aware0 interface if NAN is not supported
Currently, NAN discovery interface(wifi-aware0) is created if both
host and firmware support NAN separate vdev feature. But NAN
feature capability(gEnableNanSupport) is the master of these
capabilities. Don't create wifi-aware0 if gEnableNanSupport is
disabled.
Also, don't allow NAN iface creation for the kernels less
than 4.14 as NAN interface is allowed by kernel only from 4.14.

Change-Id: Iaf10974c373b2a77d2c24a78540910f78a3dc768
CRs-Fixed: 2706997
2020-06-10 18:13:36 -07:00
Saket Jha
160fab39e1 qcacld-3.0: Correct arguments for fisa rx flow setup
Due to recent changes, hal_rx_flow_setup_fse() should receive hal_soc as
argument during rx_flow setup.

Change-Id: Ic39f476b211417469e004d85cd03c6b868d97405
CRs-Fixed: 2706239
2020-06-10 18:13:33 -07:00
nshrivas
9f20215b52 Release 5.2.0.189X
Release 5.2.0.189X

Change-Id: I9a74974d324e17c1587eccdbaba9134fd3c842f5
CRs-Fixed: 774533
2020-06-10 11:53:25 -07:00
Abhinav Kumar
555d20fd3d qcacld-3.0: Fix invalid opclass error while processing BCN RPT
In case if AP's country code present as "US 0x4" in beacon report
request, it means AP wants us to use global opclass.

Fix is to allow driver to use global opclass AP's country code
present as "US 0x4" in beacon report.

Change-Id: I3f6c132803dc4c5a85aea95c5fc39ac7be670aee
CRs-fixed: 2706733
2020-06-10 11:53:25 -07:00
nshrivas
610272d619 Release 5.2.0.189W
Release 5.2.0.189W

Change-Id: I9d29b5a5a454b3d8c782ec51acfa858f505cce4b
CRs-Fixed: 774533
2020-06-10 07:26:02 -07:00
Mohammed Siddiq
c09b4e4631 qcacld-3.0: Add ipci apis for SOC wake and athdiag
Add PLD layer ipci bus apis for soc wake request,
wake release, athdiag read and athdiag write.

Change-Id: I966b4d47b6967615c11420d0b991ac175bf7c276
CRs-fixed: 2702459
2020-06-10 07:26:02 -07:00
Abhishek Ambure
9e3400ac77 qcacld-3.0: Add support to configure max ndi host supports
Introduce INI "ndi_max_support" to configure max number of ndi
interfaces host supports. Host configures max number of ndi
interfaces support in firmware using WMI_INIT_CMD.

Change-Id: I287b9f96b98103e67cf35d0c02488a28af731044
CRs-Fixed: 2701557
2020-06-10 07:25:54 -07:00
nshrivas
9b85558666 Release 5.2.0.189V
Release 5.2.0.189V

Change-Id: I1f5c8c21e4ea993f41bc77b56a4986974ad8f881
CRs-Fixed: 774533
2020-06-10 01:56:06 -07:00
Utkarsh Bhatnagar
3b117bb647 qcacld-3.0: Add pointer sanity check for mac context
Add pointer sanity check for mac context in wma_send_peer_assoc_req
as cds_get_context may return Null for mac context

Change-Id: I75a54d728f2c276a9aeeb1ee7d8ea46180540ac8
CRs-Fixed: 2706149
2020-06-10 01:56:06 -07:00
nshrivas
bce7da8dfa Release 5.2.0.189U
Release 5.2.0.189U

Change-Id: I49aaac7b1119fc2c1951c37cadb54a01ab5f3537
CRs-Fixed: 774533
2020-06-09 23:59:29 -07:00
Kiran Kumar Lokere
2c3a4ea4e9 qcacld-3.0: Fix the 6G band capability config to FW
Convert the 6GHz capability local struct value to raw 32-bit
value to before configure it to FW.

Change-Id: Ia9f7d7d35b0f481ad9ae7d15eec5ee198158da88
CRs-Fixed: 2696392
2020-06-09 23:59:29 -07:00
nshrivas
01762e9be8 Release 5.2.0.189T
Release 5.2.0.189T

Change-Id: Ieb730ee9fd17892c9fa163737351203f85dcf500
CRs-Fixed: 774533
2020-06-09 21:53:26 -07:00
Ashish Kumar Dhanotiya
0e86934fd2 qcacld-3.0: Add driver command to dump function call mapping
Add driver command support to dump all the function call
mapping which is cached in global buffer.

Change-Id: I03b2162ccda171005e6fa8a7bb09cbf9c4819421
CRs-Fixed: 2677976
2020-06-09 21:53:25 -07:00
nshrivas
3c8f4c40b5 Release 5.2.0.189S
Release 5.2.0.189S

Change-Id: If589975cade227843bec0cab53130c592ca53851
CRs-Fixed: 774533
2020-06-09 19:16:01 -07:00
Utkarsh Bhatnagar
4d345a3488 qcacld-3.0: Add pointer sanity check in wma_post_chan_switch_setup
Add pointer sanity check in wma_post_chan_switch_setup

Change-Id: I2972d033605895b0fe626593854798b112621eab
CRs-Fixed: 2706172
2020-06-09 19:16:01 -07:00
nshrivas
ca6015c303 Release 5.2.0.189R
Release 5.2.0.189R

Change-Id: I1b452943179b57f3430a93530213e99b5ae11b86
CRs-Fixed: 774533
2020-06-09 16:29:48 -07:00
Utkarsh Bhatnagar
e78f2a6224 qcacld-3.0: Add pointer sanity check in wma_pre_chan_switch_setup
Add pointer sanity check in wma_pre_chan_switch_setup

Change-Id: If7753f0e99993c3744b5c0d801284b4648a0fde8
CRs-Fixed: 2705037
2020-06-09 16:29:48 -07:00
Utkarsh Bhatnagar
7306d6ec05 qcacld-3.0: Add pointer sanity check for mac_phy_cap
Add pointer sanity check for mac_phy_cap in wma_update_hw_mode_list
as target_psoc_get_mac_phy_cap may return Null for mac_phy_cap

Change-Id: Id45b77fa4daf3df0680ee247355dbc87e0402dd9
CRs-Fixed: 2706156
2020-06-09 16:29:45 -07:00
nshrivas
7cd1daa826 Release 5.2.0.189Q
Release 5.2.0.189Q

Change-Id: I0e49dfacca301be0b21cc63683e4cec1f15bd1e2
CRs-Fixed: 774533
2020-06-09 14:30:39 -07:00
Ashish Kumar Dhanotiya
9f588185d9 qcacld-3.0: Add connect id for the connection manager
Add connect id in the policy manager for the newly designed
connection manager infrastructure.

Change-Id: Ib7bd08e5326ead04da88175636777bf5dd4e255b
CRs-FIxed: 2705700
2020-06-09 14:30:38 -07:00
Vulupala Shashank Reddy
0570165f4e qcacld-3.0: Update pktcapture support
Update pktcapture support for packet capture mode.

Change-Id: Id7281d57b7eb547027a999e9662e6ca3c612673d
CRs-Fixed: 2700679
2020-06-09 14:30:33 -07:00
nshrivas
940be6b36c Release 5.2.0.189P
Release 5.2.0.189P

Change-Id: I9275f25dbfb942a2b8500ef7973ac072967db229
CRs-Fixed: 774533
2020-06-09 06:28:56 -07:00
Rakesh Pillai
efb077864e qcacld-3.0: Add Null check for soc before accessing
Check if the soc pointer is not NULL, before we
try to derefernce this pointer.

Change-Id: Ife499e7617365278c4ac8fd41e2ce32d4e19fae9
CRs-Fixed: 2702127
2020-06-09 06:28:56 -07:00
nshrivas
fb96116daa Release 5.2.0.189O
Release 5.2.0.189O

Change-Id: Ia6cd58a1d816e41f8a323877dd45957188dfac3e
CRs-Fixed: 774533
2020-06-09 04:22:51 -07:00
Ashish Kumar Dhanotiya
2291ae2e2c qcacld-3.0: Add dealloc api to free memory allocated for ll_stats
Currently there is no dealloc api for ll_stats request to free
the memory allocated for the ll_stats request's priv structure
because of which memory is not freed from the request manager
infrastructure, instead host frees the memory in request api. with
this mechanism there is a race condition where if timeout occurs then
in the caller api memory is freed for the response list and after
processing the response list if the response callback comes then
memory is allocated and inserted in the response list which will
never be freed as the response list is already processed in the
caller api after the timeout.

Add a dealloc function for ll_stats request to free the memory with
The help of request manager infrastructure.

Change-Id: If91d777901d0c4c598a138b1439de7de024249a4
CRs-Fixed: 2703825
2020-06-09 04:22:50 -07:00
nshrivas
9710663965 Release 5.2.0.189N
Release 5.2.0.189N

Change-Id: I3a91e81605f828f24a6e4671fb28d47d67acb4f9
CRs-Fixed: 774533
2020-06-08 21:09:34 -07:00
Jinwei Chen
d6165e65cb qcacld-3.0: update FISA entry vdev if flow search failed
If FISA flow search is failing by HW, but same FISA flow is
already present in host FISA SW table, vdev will not be updated
accordingly, so RX frame might be dropped due to vdev mismatch
when do FISA flush.

update vdev in FISA SW entry correctly.

Change-Id: I0907c6d2d1e25424fbebd6277f326346deba6569
CRs-Fixed: 2704610
2020-06-08 21:09:34 -07:00
nshrivas
ae529e4bbd Release 5.2.0.189M
Release 5.2.0.189M

Change-Id: Ifb926b1fd92a3f928cd5644ff35d56f8c9f45196
CRs-Fixed: 774533
2020-06-08 18:36:45 -07:00
Yeshwanth Sriram Guntuka
db69ffd8ce qcacld-3.0: Ignore tx timeout on SAP when wlan is suspended
SAP tx timeout indication is received when wlan is suspended
causing excessive logging to console and eventually WD
timeout.

Ignore SAP tx timeout indication when wlan is suspended.

Change-Id: Ie09ac187e6d38c12c6c33a8b4ada19c9aabc45f9
CRs-Fixed: 2705201
2020-06-08 18:36:44 -07:00
Pragaspathi Thilagaraj
7f725e3312 qcacld-3.0: Print next RSSI threshold for periodic scan roam trigger
The driver prints the current RSSI threshold and next RSSI
threshold for LOW RSSI roam trigger. Print these info for
Periodic scan roam trigger also.

Change-Id: I4140cae3631356949c925b8d21c032e6c02d4539
CRs-Fixed: 2694906
2020-06-08 18:36:40 -07:00
nshrivas
5e587a7cd6 Release 5.2.0.189L
Release 5.2.0.189L

Change-Id: I0ce8206d8c4091ff06d7d9dfc4d08dc85c19bf08
CRs-Fixed: 774533
2020-06-08 16:00:55 -07:00
Utkarsh Bhatnagar
0f2b6666fe qcacld-3.0: Remove check for IBSS in lim_process_assoc_rsp_frame
IBSS capability information bit is valid only for beacon
and probe response. So, ignore it in association response.

Change-Id: I3495d697ac726f494234900178abb1531e1912cb
CRs-Fixed: 2703576
2020-06-08 16:00:55 -07:00
Abhishek Ambure
a6afc073d0 qcacld-3.0: Add ini support to configure max ndp sessions in fw
Introduce INI "ndp_max_sessions" to configure max number of ndp
sessions host supports. Firmware advertises max number of ndp
sessions supported in wmi_service_ready_ext2 event. If the firmware
advertises non-zero value of max ndp sessions then host configures
max ndp sessions support in firmware using WMI_INIT_CMD.

Host uses a minimum of "ndp_max_sessions" value and firmware
advertised max ndp session value to configure max number of ndp
sessions in firmware.

Change-Id: I613815f384f9b0a61711324c85ecfa095d133360
CRs-Fixed: 2673120
2020-06-08 16:00:50 -07:00
nshrivas
17f0046990 Release 5.2.0.189K
Release 5.2.0.189K

Change-Id: I3546a1b7ff1d444f57d65c60133e33d79cf48207
CRs-Fixed: 774533
2020-06-08 13:50:10 -07:00
Min Liu
22bc5b94d3 qcacld-3.0: Set Wi-Fi configurations - PHY_MODE
Add attributes in SET_WIFI_CONFIGURATION to dynamically
configure capabilities - PHY_MODE.

Change-Id: I3085cfed5b188d2ccba87a4b47ac597ebbbec76e
CRs-Fixed: 2694250
2020-06-08 13:50:10 -07:00
nshrivas
aed685234b Release 5.2.0.189J
Release 5.2.0.189J

Change-Id: I780feed7735f9503c326c93b11a20c525435c694
CRs-Fixed: 774533
2020-06-08 10:30:23 -07:00
Jinwei Chen
a6758b25d2 qcacld-3.0: Bypass FISA for RX DHCP frame
DHCP frame usually can not be aggregated, but if they go to FISA
path which will require FISA resource support for them, this looks
is not necessary.

Bypass FISA path for RX DHCP frame.

Change-Id: Ic1eac06abb5790813ee4d17ec1df6b215a1bcdb5
CRs-Fixed: 2691447
2020-06-08 10:30:23 -07:00
bings
22cb0a7581 qcacld-3.0: fix hdd_convert_timeout_reason build error
hdd_convert_timeout_reason is also used in hdd_connect_done.
Define hdd_convert_timeout_reason when it is used.

Change-Id: Ifa03959969474d9cafb1315d53b83cae21745280
CRs-Fixed: 2703672
2020-06-08 10:30:17 -07:00
nshrivas
c4162a3ac0 Release 5.2.0.189I
Release 5.2.0.189I

Change-Id: I271f45c6846cbf63bf0521b90c6838cbee76512e
CRs-Fixed: 774533
2020-06-07 17:42:29 -07:00
Bapiraju Alla
2f20b939d1 qcacld-3.0: Specify exact size of the version string while coping
While coping version strings in cds_hang_event_notifier_call, specify
exact size of QWLAN_VERSIONSTR/QDF_HANG_EVENT_VERSION to avoid buffer
overflow.

Change-Id: Ie2203600a2c92bb78ba076b609375ca219773b19
CRs-Fixed: 2702069
2020-06-07 17:42:29 -07:00
nshrivas
7d47f4b9c9 Release 5.2.0.189H
Release 5.2.0.189H

Change-Id: I37f33c7c705f260d6989da442e4409691822968d
CRs-Fixed: 774533
2020-06-07 12:29:09 -07:00
Alok Kumar
6a42b53a9d qcacld-3.0: Reset tcp adv window scale value to default
When gTcpAdvWinScaleEnable is enabled, tcp_adv_win_scale value
changes according to tput threshold. When wifi is disconnected,
tcp_adv_win_scale value is not reset to default value.

Reset the TCP advance window scale value to default when
bus bw timer stops.

Change-Id: I9b0ae2e8db11a626b3bdc4afc6e051af8943baab
CRs-Fixed: 2696481
2020-06-07 12:29:05 -07:00
Lincoln Tran
e4f18a9065 qcacld-3.0: Add logic to handle country code change
Update the HDD callback to check for phymode change or
channel change when country code updates and stop/restart
the adapter accordingly. Include cases for STA mode,
SAP mode, P2P-CLI mode, and P2P-GO mode.

Add conditional compilation flag for MCC specific API in
qcacmn.

Change-Id: I88edb401146e3cef48d757393f89fa48cb6ac895
CRs-fixed: 2658294
2020-06-07 12:29:02 -07:00
Lincoln Tran
745f9e7d1f qcacld-3.0: Update phymode before starting SAP and STA
Check phymode to verify it is allowed for the current country
before starting SAP or connecting STA.

Change-Id: Ica5e70bbd421c4dc18a34545f63e436bc482fc46
CRs-fixed: 2658294
2020-06-07 12:28:57 -07:00
Lincoln Tran
ffd5db1bb9 qcacld-3.0: Add API to convert phymode types
Convert CSR phymode to regulatory phymode and back. Regulatory
phymode enum contains fewer fields than eCsrPhyMode enum so a
conversion API is needed.

Change-Id: I4b962c07a917d19fa4ae51c78befae507dabf80f
CRs-fixed: 2658294
2020-06-07 12:28:54 -07:00
nshrivas
b669e9b7ea Release 5.2.0.189G
Release 5.2.0.189G

Change-Id: I621d0673211a2587c58916affe1b464b0eadef0a
CRs-Fixed: 774533
2020-06-07 10:13:22 -07:00
Manikanta Pubbisetty
e70a618e3f qcacld-3.0: unregister peer hang notifier
Currently, we register the peer hang notifier when the peer unmap
timer elapses, but do not unregister it. We also pass the peer reference
for which the unmap timeout happened as part of the notifier registry.

Since we do not unregister the notfier, there are chances that we
call the notifier with a stale peer reference during the subsequent
hang event which results in a crash; avoid this by unregistering the
peer hang notifier as part of device recovery.

Change-Id: I36bd8d9c1b4e38e1ba9d8c16b79df7f0cd1c9f82
CRs-Fixed: 2688676
2020-06-07 10:13:22 -07:00
Jingxiang Ge
3c19aa6dbb qcacld-3.0: Add vendor cmd for ldpc/tx_stbc/rx_stbc
Add vendor cmd for ldpc/tx_stbc/rx_stbc.

Change-Id: Id932bc68f9282adc1f542ecc6212288b4ae59d38
CRs-Fixed: 2689414
2020-06-07 10:13:18 -07:00
Sourav Mohapatra
f1e669fdc6 qcacld-3.0: Wait for driver recovery while WiFi ON/OFF
Currently the driver is not synchronized properly between SSR and wifi
ON/OFF. This causes a potential deadlock resulting in a DSC timeout.

To synchronize, add a wait in wlan_hdd_state_ctrl_param_write
which is called during WiFi ON/OFF. This wait will ensure that the
driver recovery is complete before proceeding with ON/OFF.

Change-Id: Ia1c4f8d7076d77c591276ee380b55a747cf606bd
CRs-Fixed: 2701513
2020-06-07 10:13:14 -07:00
nshrivas
95c7b813db Release 5.2.0.189F
Release 5.2.0.189F

Change-Id: Id2475f4d55796f844b3e5729e9efcdc5ec72c5df
CRs-Fixed: 774533
2020-06-07 08:07:44 -07:00
Chaoli Zhou
1178ae7db8 qcacld-3.0: Fix htt_status & A_STATUS map dp status wrong issue
Convert the tx complete status or A_STATUS to the correct dp status
before pass to qdf_dp_trace_ptr

Change-Id: I1ad94c8c293c29c9789e6dc761244911a7520707
2020-06-07 08:07:44 -07:00
Yu Wang
41d24a7273 qcacld-3.0: modify BTC mode according to BTC chain mode
BTC mode should be set according to BTC chain mode, which can be
updated dynamically during runtime.

Change-Id: Ifc95d3340ab19e217bd55a0ca5ce69988650f9e0
CRs-Fixed: 2666550
2020-06-07 08:07:35 -07:00
nshrivas
6bbfbb7bd2 Release 5.2.0.189E
Release 5.2.0.189E

Change-Id: If38cb8f1d41f84442aaa9db65a1c512313e4a597
CRs-Fixed: 774533
2020-06-07 03:13:48 -07:00
Srinivas Dasari
cefd07f8e1 qcacld-3.0: Don't set hw_filter for NDI mode
Hardware filters are supported for STA and P2P client modes.
But it's configured for NDI mode also currently. Don't configure
hw filters for NDI mode as it's not supported.

Change-Id: Ifc8f213a6279c8eb0ddde60c4f9b3538bc841ffc
CRs-Fixed: 2688396
2020-06-07 03:13:47 -07:00
Alan Chen
184c8ab3b6 qcacld-3.0: Change NLA policy table for policy OFFLOADED_PACKETS
The current policy table for OFFLOADED_PACKETS is incorrect and does
not match the uptream versions. Hence, rearrange the table contents
with the proper parameters to fix this.

Change-Id: I1e6b0ebc3ef4f622833778e0545d50783d524551
CRs-Fixed: 2701205
2020-06-07 03:13:44 -07:00
nshrivas
b7f224cfec Release 5.2.0.189D
Release 5.2.0.189D

Change-Id: I2ec4ef75ac51ef5cf7c423c6d085a2f7129f99a8
CRs-Fixed: 774533
2020-06-07 00:17:54 -07:00
Rajesh Chauhan
bc611919e0 Revert "qcacld-3.0: Use IS_ENABLED for the definition of kernel module"
This reverts Change-Id: Iaf86c9da2a9946aac09867b5c46dcc79f1b5c37e.
That change fails build for GKI variant.

Change-Id: I6cd7322870023d245fe9d20250ceb0b5d738d214
CRs-Fixed: 2701642
2020-06-06 19:06:09 -07:00
nshrivas
91daf1a6ab Release 5.2.0.189C
Release 5.2.0.189C

Change-Id: I7d0dc0f4a8856023ac328a8edcdaadd66a4838c5
CRs-Fixed: 774533
2020-06-05 06:25:38 -07:00
Vevek Venkatesan
dd91edd508 qcacld-3.0: Use IS_ENABLED for the definition of kernel module
Add support and use IS_ENABLED in code, if CONFIG_IPA3 config as
loadable kernel module.

Change-Id: Iaf86c9da2a9946aac09867b5c46dcc79f1b5c37e
CRs-Fixed: 2701642
2020-06-05 06:25:38 -07:00
nshrivas
928bce4387 Release 5.2.0.189B
Release 5.2.0.189B

Change-Id: I6e59c8746bb6f9a6438a4ddd6bf168755666ec02
CRs-Fixed: 774533
2020-06-05 00:48:29 -07:00
Rakesh Pillai
7da05db9f2 qcacld-3.0: Add different PLD vote for latency sensitive case
Any connection in 11g/a is very latency sensitive and
we need to vote for a higher DDR frequency than in
the other phy modes.

Identify the number of latency sensitive connections
in STA mode and vote for higher DDR frequency for the
latency sensitive cases.

Change-Id: I2ce20b2b40213bde52211eae659c9673c6e0d305
CRs-fixed: 2695045
2020-06-05 00:48:28 -07:00
Subrat Dash
f9d6d9d65e qcacld-3.0: Handle EDCA tx queue confguration from hostapd
The hostapd sends the EDCA configuration for tx queue set in the
hostapd.conf config file using nl80211 interface.

Add support to extract the configuratin in the cfg80211 callback
function wlan_hdd_set_txq_params and invoke SME api to send the
parameters to MAC layer.

CRs-Fixed: 2693865
Change-Id: I8acfc03d9a6ad17a1df0c03955cf3b4150a4fbef
2020-06-05 00:48:24 -07:00
nshrivas
5e0867d027 Release 5.2.0.189A
Release 5.2.0.189A

Change-Id: I4be946b012e54173a8608f1e6bb3bdeeb6ca4ce7
CRs-Fixed: 774533
2020-06-04 23:22:48 -07:00
Srinivas Dasari
6f6a3e666d qcacld-3.0: Use NLA_EXACT_LEN instead of NLA_UNSPEC in new kernels
The change If6d559a3aa7b8719a515e00e271e313c02f8135f has modified
few attribute types from NLA_UNSPEC to NLA_BINARY. But NLA_BINARY
validates only for max length and doesn't validate min length.
This could cause buffer overread if userspace sends less data as
the driver reads fixed length(e.g. 6 bytes for mac_addr) always.
Use VENDOR_NLA_POLICY_MAC_ADDR(NLA_POLICY_ETH_ADDR) or
NLA_EXACT_LEN instead of NLA_UNSPEC which validates for
exact length.

Change-Id: I92cc29716dff29037d14ffd2e269761149c7f74b
CRs-Fixed: 2700695
2020-06-04 23:22:48 -07:00
nshrivas
61547b7304 Release 5.2.0.189
Release 5.2.0.189

Change-Id: I13f367eca0587fdc5f5c8b3a34dd7ebb60f853d7
CRs-Fixed: 774533
2020-06-04 21:56:56 -07:00
Sourav Mohapatra
6c984e5800 qcacld-3.0: Flush psoc idle work during WIFI on/off
Currently in the driver there is a possible race condition between
hdd_open and idle_psoc_timeout wherein stop modules is being done. Both
these operations can potentially occur in parallel.

To synchronize, flush the idle_psoc_work in wlan_hdd_state_ctrl_param_write
which is called during WiFi ON/OFF.

Change-Id: I1d53fa9d53ca31c2c1466f0ee809a07a86a06ee0
CRs-Fixed: 2701512
2020-06-04 21:56:55 -07:00
nshrivas
6451b2dc39 Release 5.2.0.188Z
Release 5.2.0.188Z

Change-Id: I26a3f51cea3a8acfbacafc173fa7cc3ce3836e8b
CRs-Fixed: 774533
2020-06-04 05:30:58 -07:00
sheenam monga
0ec49a71f7 qcacld-3.0: Handle attribute OEM_DATA_RESPONSE_EXPECTED
Add support for OEM_DATA_RESPONSE_EXPECTED. Driver waits for the
response from FW when this attribute is set and forward the blob of
data to supplicant.

Change-Id: I3e51809e4f5736b521c26e37afb02396f9c5ed23
CRs-Fixed: 2694556
2020-06-04 05:30:58 -07:00
nshrivas
7f4a948144 Release 5.2.0.188Y
Release 5.2.0.188Y

Change-Id: I0bdbbcc3814e682b736bfb509f81b6c854022b19
CRs-Fixed: 774533
2020-06-04 02:46:34 -07:00
Bapiraju Alla
bfacaa2d0d qcacld-3.0: Update regulatory band capability with FW capability
Update band capability of regulatory component with firmware band
capability

Change-Id: I9916b17dfa279ebecc0f459d4c0b13580578b4b6
CRs-Fixed: 2689885
2020-06-04 02:46:34 -07:00
nshrivas
e77a0364f7 Release 5.2.0.188X
Release 5.2.0.188X

Change-Id: I97cc0ebf92c4c54891e826dd00df11fc07bfd9f4
CRs-Fixed: 774533
2020-06-03 13:33:25 -07:00
Rakesh Pillai
79098d2cc9 qcacld-3.0: Add INI support to handle latency critical clients
Add a new ini to enable/disable the handling of the
latency critical clients (eg: 11g/a) in the bus
bandwidth timer.

Change-Id: I4b8966aa29ffc2ca236098cb83b8db0e160b776b
CRs-Fixed: 2695042
2020-06-03 13:33:25 -07:00
nshrivas
2a48eadd2d Release 5.2.0.188W
Release 5.2.0.188W

Change-Id: I7272c9ed00e833964558190aad9b75ab0f3a9801
CRs-Fixed: 774533
2020-06-03 09:27:40 -07:00
Min Liu
50ac9a47d4 qcacld-3.0: QCA vendor command for add / delete TSPEC
Add QCA vendor subcommands QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC
to add / delete TSPEC in STA mode.
The attributes defined in enum qca_wlan_vendor_attr_config_tspec
are used to encapsulate required information.

Change-Id: I9553fba1189d562f6f0205e86b281172213344ba
CRs-Fixed: 2686250
2020-06-03 09:27:39 -07:00
Min Liu
faed961a98 qcacld-3.0: Set Wi-Fi configurations - TX AMSDU, RX AMSDU
Add attributes in SET(GET)_WIFI_CONFIGURATION to dynamically
configure capabilities - TX AMSDU, RX AMSDU.

Change-Id: I17d3c5d32987e638805cdaf5fe48ba3036b3ff22
CRs-Fixed: 2687303
2020-06-03 09:27:36 -07:00
nshrivas
3fa762de92 Release 5.2.0.188V
Release 5.2.0.188V

Change-Id: I0a09bac7a064e12a796e73e407d5b51f15c239bb
CRs-Fixed: 774533
2020-06-03 08:08:03 -07:00
Gururaj Pandurangi
7fe6ad582f qcacld-3.0: Validate mac_ctx before using it
Validate mac_ctx before dereferencing it.

Change-Id: Iba786647c5a54e0a67ff7b9cbb0dbaea3bd52d76
CRs-Fixed: 2699734
2020-06-03 08:08:03 -07:00
nshrivas
f63fa412aa Release 5.2.0.188U
Release 5.2.0.188U

Change-Id: Ifff9fa4c2f699bab1f98093eabefe4e2a4ea8738
CRs-Fixed: 774533
2020-06-03 00:45:36 -07:00
Rajesh Chauhan
b4a3dddcc6 Revert "qcacld-3.0: flush batched GRO_NORMAL packets"
This reverts Change-Id: Ib3e851c0822a85c4712a1b817cc19dfecf6d0e7a.
First we need to get ABI snapshot/Whitelist updated for the new
kernel API being used in this change and then only we can promote
this change. To unblock promotion, revert this change for now.

Change-Id: I8aae0fe64623034486c9db6275a16654119c06bd
CRs-Fixed: 2673959
2020-06-03 00:45:36 -07:00
Lincoln Tran
e8fee5584c Revert "qcacld-3.0: Update hdd_data_stall_process_event"
This reverts Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805.

This change is incorrect because the caller passes in the
bodyptr directly to parameter. The change incorrectly dereferences
the parameter.

Change-Id: Iaaedae1a3498fc1c10024083ee98ce97c3401f82
CRs-fixed: 2701124
2020-06-03 00:45:32 -07:00
nshrivas
265fe56111 Release 5.2.0.188T
Release 5.2.0.188T

Change-Id: I17e49cff361a42cd32b6db83fd18a39ffd243f92
CRs-Fixed: 774533
2020-06-02 15:19:13 -07:00
ngong
9d23242e68 qcacld-3.0: Check gIPAConfig before setting ipa flag to fw
Currently if kernel enable CONFIG_IPA3, wlan driver will directly
send IPA enabling flag to firmware, not checking gIPAConfig.
It lead to IPA disabled in driver but enabled in fw, causing fw crash
for some target like Genoa. 

Correct logic is to check gIPAConfig before configure firmware.

Change-Id: I6e85c6bf3831029826bf279237eac2cc3a1ff07f
CRs-Fixed: 2698953
2020-06-02 15:19:13 -07:00
nshrivas
e9d4b3c893 Release 5.2.0.188S
Release 5.2.0.188S

Change-Id: Ib87aa2b4bb32a182bd8381c23222c11713c173de
CRs-Fixed: 774533
2020-06-02 13:33:01 -07:00
Jinwei Chen
d3f4ccf4d6 qcacld-3.0: add vdev->osif_rx failure handling for fisa path
Currently there is no vdev->osif_rx result check in fisa path,
so if vdev->osif_rx returns failure, the RX skb may not have been
handled and it may be leaked.

Add vdev->osif_rx failure handling to avoid skb leak.

Change-Id: I6c194c31bbe71cba5c56c2b93f505225de439b72
CRs-Fixed: 2695084
2020-06-02 13:33:01 -07:00
Dundi Raviteja
8cd3c79d59 qcacld-3.0: Add calls to disable pkt capture events
Add calls to disable packet capture events and
delete monitor interface while sta interface is
going down if packet capture mode is enabled.

Change-Id: I4094e072ac723348d4d0d8a4ccefb5bf2b77e6d5
CRs-Fixed: 2647503
2020-06-02 13:32:56 -07:00
nshrivas
9b1c3c0ea9 Release 5.2.0.188R
Release 5.2.0.188R

Change-Id: I06b7e17a863e06e75ed7a51db4d854bce75ffdba
CRs-Fixed: 774533
2020-06-02 08:37:36 -07:00
nshrivas
9458987fb8 Release 5.2.0.188Q
Release 5.2.0.188Q

Change-Id: Iccbc6cd16057203f3b3034102f8d00aae141fc2f
CRs-Fixed: 774533
2020-06-02 07:01:45 -07:00
Nirav Shah
f8dec49049 qcacld-3.0: Check CFG_TGT_DEFAULT_MAX_STA_VDEVS for P2P-CLI mode
In FW CFG_TGT_DEFAULT_MAX_STA_VDEVS considers total no of
STA and P2P-CLI vdevs. Enable CFG_TGT_DEFAULT_MAX_STA_VDEVS
check for P2P-CLI mode.

Change-Id: Ic21cf39628e7ad19102b040ffdf493a14205043a
CRs-Fixed: 2680645
2020-06-02 07:01:45 -07:00
nshrivas
44fa70c1a8 Release 5.2.0.188P
Release 5.2.0.188P

Change-Id: I2f84b8adc4ee5e75d2d44ca08c4e7d576894e2ee
CRs-Fixed: 774533
2020-06-01 23:13:28 -07:00
Bapiraju Alla
7740bf96b9 qcacld-3.0: Log Tx power setting in the driver
Log tx power value in the driver before sending to firmware

Change-Id: I602612433407e89bfa5288fa89a181a0db329f71
CRs-Fixed: 2699480
2020-06-01 23:13:27 -07:00
Bapiraju Alla
498953e600 qcacld-3.0: Update rx retry count in peer stats
Currently, Rx retry count statistic is not supported by firmware.
So host driver also not updating the corresponding statistic in
peer stats. Datapth is updating this counter using retry bit in the
rx MPDU. Update peer Rx retry count value from data path.

Change-Id: I4fd422faa7a766090991c461cd6fd2cc70d2fcc3
CRs-Fixed: 2691704
2020-06-01 23:13:20 -07:00
nshrivas
7229b508f4 Release 5.2.0.188O
Release 5.2.0.188O

Change-Id: Ie8f3bed03886137ff2b9fa82bd2343d446fc1f71
CRs-Fixed: 774533
2020-06-01 21:47:46 -07:00
Srinivas Dasari
698272c0b7 qcacld-3.0: Replace NLA_UNSPEC with NLA_BINARY
NLA_UNSPEC usage is restricted from kernel version 5.4 by adding
a strict check while validating the nla_policy. The advantage
of this is that types not specified in the policy will be
rejected.
Driver can give exception to NLA_UNSPEC by setting
strict_start_type in the policy of a vendor command to NLA_U8
or some greater value. But it's better to set the type to a
valid type so that kernel can validate.
So, use NLA_BINARY with valid length instead of NLA_UNSPEC.

Change-Id: If6d559a3aa7b8719a515e00e271e313c02f8135f
CRs-Fixed: 2692293
2020-06-01 21:47:46 -07:00
nshrivas
30a9a85c61 Release 5.2.0.188N
Release 5.2.0.188N

Change-Id: Ia52189c4f800801164bf53f6f82b612eadcda9c2
CRs-Fixed: 774533
2020-06-01 20:30:00 -07:00
Abhinav Kumar
7f67effb98 qcacld-3.0: Fix connection failure with SAP in WPA3 mode
In case if the EXTERNAL_AUTH_SUPPORT is present natively
in kernel, then the backport flag CFG80211_EXTERNAL_AUTH_SUPPORT
will not be present.

Currently host checks for defined(CFG80211_EXTERNAL_AUTH_SUPPORT)
flag to register ops for external_auth. This results in external
auth fail in the above case.

In the driver all instances of
“defined(CFG80211_EXTERNAL_AUTH_SUPPORT)” should be paired with
|| (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 17, 0))

where 4.17.0 is the kernel version where the external auth support
gets added to the upstream kernel.

Change-Id: I67b687b37ab60b581e97ea81243c0d30bbb17acd
CRs-Fixed: 2692697
2020-06-01 20:30:00 -07:00
nshrivas
2841cd9e2c Release 5.2.0.188M
Release 5.2.0.188M

Change-Id: I7472acbb35cd5f77b8aedc07c886fec98f71a536
CRs-Fixed: 774533
2020-06-01 16:28:02 -07:00
Min Liu
bc1a807ec5 qcacld-3.0: Add a sysfs replacement for set_he_bss_clr
Add the sysfs entry for set_he_bss_clr.
Previously these commands would be queried via iwpriv
--> iwpriv wlan0 set_he_bss_clr [value]
it is now changed to support via sysfs:
--> echo [value] > /sys/class/net/wlanxx/he_bss_color

Change-Id: I4700414469be018de9758277c4e095e64cabb376
CRs-Fixed: 2692916
2020-06-01 16:28:02 -07:00
nshrivas
7b3c654516 Release 5.2.0.188L
Release 5.2.0.188L

Change-Id: I9a3f8b9010a7778ed15140b9c9a9d8cb1e758874
CRs-Fixed: 774533
2020-06-01 13:26:54 -07:00
Pragaspathi Thilagaraj
c7a796fd53 qcacld-3.0: Cleanup rrm measurement data based on the index
Currently when rrm measurement is completed for a particular
index, the rrm_cleanup() is called which clears the measurement
data for all the index. This can cause failure with multiple
measurement request where on completion of the first request,
second request data structure will also be made null.

Pass the measurement index to rrm_cleanup() and clear only
that index data.

Change-Id: Ib712c2da3ddfea374d60b250dd474b08093b24c7
CRs-Fixed: 2695836
2020-06-01 13:26:54 -07:00
nshrivas
17c8e52eff Release 5.2.0.188K
Release 5.2.0.188K

Change-Id: I083e7aa73365fef3ae6b7a5eb3d78d89b8f73d64
CRs-Fixed: 774533
2020-06-01 03:01:50 -07:00
nshrivas
118aaaca1a Release 5.2.0.188J
Release 5.2.0.188J

Change-Id: Ib663db7e23f4fe2f97ee87509249d86fc4f48ea3
CRs-Fixed: 774533
2020-06-01 01:37:25 -07:00
Abhishek Ambure
94d53d68a7 qcacld-3.0: Add ini support to send oce subnet id scoring
Introduce an INI "oce_subnet_id_weightage" to indicate firmware
about oce subnet id weightage so that firmware can use subnet id
weightage to calculate candidate AP's score.

Change-Id: Iaf3be1947f8966a2e2c34162d251a31950058231
CRs-Fixed: 2674596
2020-06-01 01:37:25 -07:00
Arun Kumar Khandavalli
7f6b2addb3 qcacld-3.0: Reject interface up when the recovery is inprogress
During the interface UP the driver will take rtnl lock and if the
recovery is going on at the same time it will wait for the recovery
to complete.

If its a modem ssr, the IPA related module would register all the
netdevices which need the rtnl_lock held by the driver.

Reject the interface up when the SSR is inprogress.

Change-Id: I7b2451f16c86cbe86a7c377d112bec12f7eb0252
CRs-Fixed: 2693540
2020-06-01 01:37:20 -07:00
nshrivas
cc268ff2df Release 5.2.0.188I
Release 5.2.0.188I

Change-Id: I7bf214d06f0a0b77706c107df2841d85de9a0467
CRs-Fixed: 774533
2020-05-31 20:57:52 -07:00
Paul Zhang
3f43118702 qcacld-3.0: fix use-after-free in hdd_put_sta_info_ref
sta_info ref is wrongly put in function
hdd_get_cached_station_remote. Modify the typo code
to correct the issue.

Change-Id: Ia0de774603c1570598848f7d699a128a5da6d8f0
CRs-Fixed: 2692694
2020-05-31 20:57:52 -07:00
nshrivas
a1edb0ebc4 Release 5.2.0.188H
Release 5.2.0.188H

Change-Id: I0aa5a877b696c354012478ce07ff71dd07e87ade
CRs-Fixed: 774533
2020-05-31 04:04:18 -07:00
Lincoln Tran
cf98b324aa qcacld-3.0: Update wma_discard_fw_event
Update return type of wma_discard_fw_event to return QDF_STATUS
to match scheduler_msg_process_fn_t.

Change-Id: I1746b170318be30810ddf7cc6be8156a3940b595
CRs-fixed: 2698308
2020-05-31 04:04:18 -07:00
nshrivas
749eebbc06 Release 5.2.0.188G
Release 5.2.0.188G

Change-Id: Iad49a43e86481653366c1dc3da44a028b8d57ad0
CRs-Fixed: 774533
2020-05-31 02:45:14 -07:00
Rajeev Kumar
5ccdee7ce2 qcacld-3.0: Change copy right year of wlan_hdd_sysfs_set_fw_mode_cfg.c
wlan_hdd_sysfs_set_fw_mode_cfg.c is derived from wlan_hdd_wext.c and hence
maintain original copyright year in wlan_hdd_sysfs_set_fw_mode_cfg.c.

Change-Id: I034fbb2bc9ea205ca92ee017c3e9111405306bd7
CRs-fixed: 2698256
2020-05-31 02:45:13 -07:00
nshrivas
b2bfc02e2e Release 5.2.0.188F
Release 5.2.0.188F

Change-Id: Idbcdc07b4161ae596a1eafb7ac958f3525646cdf
CRs-Fixed: 774533
2020-05-29 21:05:43 -07:00
Abhinav Kumar
8c45456a60 qcacld-3.0: Send proper Link Rates to user space
Currently, host consider self NSS capability while sending
link rates statistics to userspace for "iw wlan0/1 link" command.
This results host sends incorrect link rates in case of STA and
AP has different NSS capabilities.

Fix is to send intersection of Self and AP's NSS capability
to userspace.

Change-Id: I7a31998ccb6988aa95de9fa25f49dda20f9f8b96
CRs-Fixed: 2686251
2020-05-29 21:05:42 -07:00
nshrivas
de6f87ce5c Release 5.2.0.188E
Release 5.2.0.188E

Change-Id: I9cd6d6fcfee7d08f4a6493193ffade51f3d2d422
CRs-Fixed: 774533
2020-05-29 18:36:53 -07:00
Lincoln Tran
d2c51be72a qcacld-3.0: Update lim_send_action_frm_tb_ppdu_cfg_flush_cb
Update the return type of
lim_send_action_frm_tb_ppdu_cfg_flush_cb to return QDF_STATUS
to match with scheduler_msg_process_fn_t.

Change-Id: I48e382422f2c970f2f347f1fe716ca974efdd5fb
CRs-fixed: 2698312
2020-05-29 18:36:53 -07:00
nshrivas
1d0a41cb7b Release 5.2.0.188D
Release 5.2.0.188D

Change-Id: I0bcf9f33dd64d35baeb7f175500317aaf21e1dd9
CRs-Fixed: 774533
2020-05-29 17:18:52 -07:00
Ashish Kumar Dhanotiya
1fbe964622 qcacld-3.0: Update freq attributes of ch_params in start ap
Currently frequency attributes mhz_freq_seg1 and mhz_freq_seg0
are not getting updated in start ap before calling set channel
params api of regulatory component from start bss,
regulatory component uses these attributes to set the correct
channel params.
Since these frequencies params are not correct, regulatory
component is returning invalid ch_params for 80+80Mhz operation
which is resulting in failure of start bss for 80+80Mhz.

To address above issue, update the frequency attributes correctly
in start ap.

Change-Id: If0a8e0ed121b2167ff0226d2bd0048a1fa120f31
CRs-Fixed: 2697754
2020-05-29 17:18:49 -07:00
nshrivas
9e36e0b408 Release 5.2.0.188C
Release 5.2.0.188C

Change-Id: I8f23206eb8015c89ebe90ee129ca89cf22eb97f6
CRs-Fixed: 774533
2020-05-29 14:50:46 -07:00
Surabhi Vishnoi
ff7585ee9d qcacld-3.0: Add support to optimize latency using pm_qos
For Voice and Music (V&M) products, extreme latency optimization is
needed while playing music and discovery, higher power consumption
in this mode could be accepted. With CONFIG_WLAN_LL_MODE enabled,
when latency_level is set to ultra low via cfg80211 vendor command,
update request pm qos type PM_QOS_CPU_DMA_LATENCY to level
DISABLE_KRAIT_IDLE_PS_VAL to speed up CPU efficiency and irq response.

Change-Id: Ifb5bc8169f1cd08500c4b4bc0dd65dd0b3667ab6
CRs-Fixed: 2685074
2020-05-29 14:50:46 -07:00
nshrivas
40518c382c Release 5.2.0.188B
Release 5.2.0.188B

Change-Id: Id3d21c123b553dae9c5ecf06c72e4c0706183fe3
CRs-Fixed: 774533
2020-05-29 13:13:31 -07:00
Lincoln Tran
c88a47f84a qcacld-3.0: Update hdd_data_stall_process_event
Update hdd_data_stall_process_event to match scheduler_msg_process_fn_t.
Change the argument to scheduler_msg struct and add return status
to match function type.

Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805
CRs-fixed: 2697445
2020-05-29 13:13:31 -07:00
bings
ed94c9349b qcacld-3.0: Fix WLAN_AKM_SUITE_* redefinition build error
Do not define WLAN_AKM_SUITE_OWE if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA256 if it is defined.
Do not define WLAN_AKM_SUITE_EAP_SHA384 if it is defined.

Change-Id: Id06961a4c0d03f97279e2b45f9bfc5befb943e66
CRs-Fixed: 2666448
2020-05-29 13:13:27 -07:00
nshrivas
a174527a2c Release 5.2.0.188A
Release 5.2.0.188A

Change-Id: I2729103f3a1580dfdf85eb88a969d0b0627c4c6d
CRs-Fixed: 774533
2020-05-29 03:13:43 -07:00
bings
d1aef8217c qcacld-3.0: proc_create_data support for 5.6+ kernel
One parameter of proc_create_data is changed from struct
file_operations to struct proc_ops.
Add support for it under the kernel version compilation flag.

Change-Id: Ic87222f9c267debef56dcc66fc629854058ffabd
CRs-Fixed: 2666490
2020-05-29 03:13:38 -07:00
bings
9341e24bb2 qcacld-3.0: ndo_tx_timeout support for 5.6+ kernel
New parameter txqueue is added for callback ndo_tx_timeout.
Add support for it under the kernel version compilation flag.

Change-Id: I0234dade56f65d15a4370404e17ff51a8a73ee4e
CRs-Fixed: 2666436
2020-05-29 03:13:28 -07:00
nshrivas
e50e7c0ea2 Release 5.2.0.188
Release 5.2.0.188

Change-Id: I027d3acbd3bc1afd7fb75a641de623ea2d3f0632
CRs-Fixed: 774533
2020-05-28 21:07:36 -07:00
Min Liu
6bceefd884 qcacld-3.0: Fix compilation issue in perf build
Fix insmod failure in perf build which is caused by undefined
symbol when MPC_UT_FRAMEWORK is not defined.

Change-Id: I1a1ae76af596a3d219a7367d45a2fb38a08107a4
CRs-Fixed: 2696540
2020-05-28 21:07:35 -07:00
Baowei Liu
78aa7bdfc1 qcacld-3.0: Skip recovering check if host assert target
In cds_trigger_recovery_handler, Host driver first set flag recovering
before cds_force_assert_target. For Rome, ol_target_failure run when
FW crash, Self-Recovery stop when detect flag recoverying be set

Add CDS_DRIVER_STATE_ASSERTING_TARGET to record Host asserting in
cds_force_assert_target. Skip recovering check in ol_target_failure
if detect this flag.

Change-Id: I290e2f21bd0bca6dc6d76de43de4f8dd801d7ff5
2020-05-28 21:07:32 -07:00
Utkarsh Bhatnagar
09431aa329 qcacld-3.0: Fix usage of wlan_reg_legacy_chan_to_freq
In wma_vdev_pre_start() freq is already available with des_chan->ch_freq
so no need to get the freq again from using wlan_reg_legacy_chan_to_freq.
In hdd_cfg80211_update_channel_info() use wlan_reg_chan_band_to_freq
to get the freq from channel.

Change-Id: I179907c9f5a80f355b44aa9c9509d8d12d8825f8
CRs-Fixed: 2696687
2020-05-28 21:07:28 -07:00
Abhinav Kumar
9bb8c487cc qcacld-3.0: Allow driver to process roam sync ind in RSO STOPPED state
Supplicant disables fast roaming (by making isFastRoamEnabled = 0)
before sending ROAM_INVOKE_CMD to host. This results roaming state
of host changes to  ROAM_RSO_STOPPED before start processing
ROAM_INVOKE_CMD command.

Due to commit : Id0ea18a33dfef3d4e9a4003da33fc7172cf58e85, Host
unable to process roam sync indication event if supplicant disable
fast roaming before sending ROAM INVOKE command. This leads to
roaming failure.

Fix is to allow driver to process roam sync indication even in
RSO stopped state, if roaming triggered by userspace.

Change-Id: Ia5f5c7b078d457280bce8c24110f01a3be26c3d6
CRs-Fixed: 2670060
2020-05-28 21:07:25 -07:00
nshrivas
fd7d53a4fc Release 5.2.0.187Z
Release 5.2.0.187Z

Change-Id: I33a0b20f85a3262d3d991472c87296866dfe617f
CRs-Fixed: 774533
2020-05-28 17:28:44 -07:00
Utkarsh Bhatnagar
0deba7575b qcacld-3.0: Clean up wlan_sap_set_vht_ch_width
Remove wlan_sap_set_vht_ch_width as it wasn't
used anywhere.

Change-Id: I556269bfeb4df243720397a6ad2500b90bc8835d
CRs-Fixed: 2695940
2020-05-28 17:28:44 -07:00
Utkarsh Bhatnagar
0a61d6462b qcacld-3.0: Implemented Chainmask NL command
Implemented driver interface for NL command for setting
and getting TX and RX chains. The chains can be set to
either chain 0(1) or chain 1(2) or both(3). This is only valid if
antenna mode is set to 2X2.

Below command can be used to set the chainmask:
iw phy <phyname> set antenna <bitmap> | all | <tx bitmap> <rx bitmap>
Example:
iw phy0 set antenna 1   -- to set both Tx and Rx chain 0.
iw phy0 set antenna all -- to set all/both chains for rx/tx
iw phy0 set antenna 1 2 -- to set chain 0 for tx and chain 1 for rx

Below command can be used to get the chainmask after set:
iw phy <phyname> info

check for "Configured Antennas: TX 0x1 RX 0x1"

Below conditions should be met for setting chainmask:
1. Antenna sharing should be disabled.
2. gEnable2x2 in ini file should be 0
3. enableBTChainSeparation in ini file should be 1
4. DBS should be disabled (gDualMacFeatureDisable = 1)
   or HW should be DBS 2x2 capable
5. set TX/RX chainmask 3 in ini (gSetTxChainmask1x1/gSetRxChainmask1x1)
6. HW should support TX/RX chainmask as 3

Change-Id: I04f6667398eac405a6be61bc039e048090578abf
CRs-Fixed: 2693370
2020-05-28 17:28:40 -07:00
Utkarsh Bhatnagar
f31d749e83 qcacld-3.0: replace mhz of struct wma_txrx_node with chan_freq
chan_freq and mhz variable represent the same thing so use chan_freq
instead of mhz.

Change-Id: I4162504562c30ece71f5ebc465b1af3a048b01b2
CRs-Fixed: 2696795
2020-05-28 17:28:37 -07:00
nshrivas
aba4cdf298 Release 5.2.0.187Y
Release 5.2.0.187Y

Change-Id: Id3cf3295dc061c4f9921ab35446a0800155ef636
CRs-Fixed: 774533
2020-05-28 12:07:55 -07:00
Alan Chen
36a60df68b qcacld-3.0: Fix dp_trace related compilation issues
As part of this change I2e7caec268776a79d7166020c64af93fee2f8aec,
the feature flag was not properly defined and there were some compilation
issues. Hence, this change is fixing these issues. Also, add unit test
ini check in fw unit test command.

Change-Id: Ia8dfedec19d4d97c8c100321a0a012ee1a1b6a00
CRs-Fixed: 2695208
2020-05-28 12:07:55 -07:00
nshrivas
6f9314eebe Release 5.2.0.187X
Release 5.2.0.187X

Change-Id: Ib59e51a7191f2e7f3947a94e0e3dafb93f49fe88
CRs-Fixed: 774533
2020-05-28 10:42:58 -07:00
Nisha Menon
761251b822 qcacld-3.0: Fix bandwidth vote level for device in monitor mode
Bandwidth level was set correctly to PLD_BUS_WIDTH_VERY_HIGH
but current vote level was not updated for monitor mode.
Due to this during PCI link down the reg writes for SW2WBM
release ring were enqueued in delayed register write work
queue instead of being written directly.

Delay in scheduling the workqueue results in SW2WBM release
ring getting full which results in invoking panic.
Hence update the current vote level along with the bus
bandwidth in HDD open function for monitor mode.

Change-Id: Ib9861a038afa6ca7758ea35afcae2bcfe9e69b60
CRs-Fixed: 2690247
2020-05-28 10:42:58 -07:00
Balaji Pothunoori
42326695a7 qcacld-3.0: set fixed txpower using nl80211 interface
This change is to set txpower to specific interface
from iw.

Ex:
"iw dev <interface name> set txpower fixed <value>"

Change-Id: I5a3195a36cd2d7252eb3ef0312545d338b4000ec
CRs-Fixed: 2677223
2020-05-28 10:42:54 -07:00
nshrivas
0a952989cd Release 5.2.0.187W
Release 5.2.0.187W

Change-Id: Id6b9088d25f5a3962a302a03dac5180f36ed33d0
CRs-Fixed: 774533
2020-05-28 07:57:03 -07:00
Yeshwanth Sriram Guntuka
265174a512 qcacld-3.0: Update rx mpdu count in link layer stats rsp
Rx mpdu count received as part of peer link stats
event from firmware does not have the proper values.

Fix is to fetch the rx mpdu count from dp layer and
update the rx mpdu count before sending the stats to
HDD.

Change-Id: I945d32c7701f5f5c9bfbbaa6ab4576b94389c84c
CRs-Fixed: 2691648
2020-05-28 07:57:02 -07:00
nshrivas
74900c8aaa Release 5.2.0.187V
Release 5.2.0.187V

Change-Id: I0cd5f77f8d4ded536ef03db55186bc6c861fa5e5
CRs-Fixed: 774533
2020-05-27 02:15:04 -07:00
nshrivas
406050efd0 Release 5.2.0.187U
Release 5.2.0.187U

Change-Id: I8a2f985f8b36763b391e9e0aeff9136686aea693
CRs-Fixed: 774533
2020-05-27 00:57:42 -07:00
Ashish Kumar Dhanotiya
2779e62274 qcacld-3.0: Send the data rate in mbps for SAP big data
Currently host driver sends the data rate of connected
peer in the units of kbps whereas user space expects the
data rate to be in the units of mbps.

To address above issue, add a change in the host driver
to send the data rate in the units of mbps.

Change-Id: I022659f1cd16ff62dc5b9379405c35c651381e4f
CRs-Fixed: 2688150
2020-05-27 00:57:32 -07:00
nshrivas
fb41acb372 Release 5.2.0.187T
Release 5.2.0.187T

Change-Id: I514383ec8a7afa0f51470e1e92904b96c735fb29
CRs-Fixed: 774533
2020-05-26 23:34:23 -07:00
Gururaj Pandurangi
7f2e4159da qcacld-3.0: Set current bss color in lim
The current bss color value is 0 in color
detection config which is not valid. Set
it accordingly in lim to share the correct
bss color config to FW.

Change-Id: I4387c7eb661846d70b62cde41b64b9c174e2f48c
CRs-Fixed: 2689632
2020-05-26 23:34:23 -07:00
nshrivas
c82b2c0c6a Release 5.2.0.187S
Release 5.2.0.187S

Change-Id: Ic5befacff0ae06145086335124c32f2e727a4c1b
CRs-Fixed: 774533
2020-05-26 19:35:23 -07:00
Jianmin Zhu
da8f2bf948 qcacld-3.0: Fix watchdog when dump Roame FW after panic
When kernel panic, irq will be disabled, when dump Rome
firmware, dma buffer is malloced and freed every time
hif_diag_read_mem is called to dump 20K mem, dma_free_attrs is
called 100 times for 2M mem dump, WARN_ON(irqs_disabled())
will printk stack about 100 times in short time, watchdog bite.

Fix: Change dma mem malloc size from 20KB to 256KB, then only
malloc/free less than 10 times totally when dump Rome firmware.

Change-Id: I803b2cd30a1c6cdc1ce8f8f1073cdb6c17b650af
CRs-Fixed: 2693690
2020-05-26 19:35:22 -07:00
nshrivas
30b9e2409e Release 5.2.0.187R
Release 5.2.0.187R

Change-Id: I0a59b51b67e0929521d481171b3438cae944e552
CRs-Fixed: 774533
2020-05-26 01:40:38 -07:00
Jinwei Chen
92f508a5eb qcacld-3.0: flush batched GRO_NORMAL packets
Kernel 5.4 has applied batched GRO_NORMAL packets processing
for all napi_gro_receive() users. this requires NAPI users to
call napi_complete_done() or napi_complete() at the end of every
polling to flush batched GRO_NORMAL packets.
However, by current wlan driver design, napi_gro_recevie()
is not happened in same NAPI polling context and done in another
thread context, it likely packets which have not been flushed from
napi->rx_list will get stall until next RX cycle.

Fix this by adding a manual flushing of the list right after
napi_gro_flush() call to mimic napi_complete() logics.

Change-Id: Ib3e851c0822a85c4712a1b817cc19dfecf6d0e7a
CRs-Fixed: 2673959
2020-05-26 01:40:38 -07:00
nshrivas
019cc02a92 Release 5.2.0.187Q
Release 5.2.0.187Q

Change-Id: Ic4dd8a99145b07eca5903d8ef252fa89a8374d9a
CRs-Fixed: 774533
2020-05-25 02:27:10 -07:00
Min Liu
98fe0cf0b2 qcacld-3.0: Add the sysfs entry for pm_dbs
Previously pm_dbs would be queried via iwpriv
    --> iwpriv wlan0 pm_dbs [dbs] [system_pref]
it is now changed to support via sysfs:
    --> echo [dbs] [system_pref] > /sys/kernel/wifi/pm_dbs

Change-Id: I3f6b153a58be6932cafbc1df15ef4a62971ba954
CRs-Fixed: 2692150
2020-05-25 10:58:36 +08:00
nshrivas
3fa1687f2c Release 5.2.0.187P
Release 5.2.0.187P

Change-Id: Id82377cfd843099603f0cd0b44828fe80ecfff4f
CRs-Fixed: 774533
2020-05-24 06:39:54 -07:00
Arun Kumar Khandavalli
08df65447c qcacld-3.0: Add the sysfs entry for policy manager commands
Previously pm_cinfo,pm_pcl  would be queried via iwpriv
      --> iwpriv wlan0 pm_cinfo
 it is now changed to support via sysfs:
    --> cat /sys/class/net/wifi/pm_cinfo
    --> echo 1 > /sys/kernel/wifi/pm_pcl

Change-Id: I437eb6d4e9424f3aed9d1cf218333371c9a9f93b
CRs-Fixed: 2684258
2020-05-24 06:39:54 -07:00
Arun Kumar Khandavalli
7f3ce11381 qcacld-3.0: Add sysfs entry for the pktlog
Add the sysfs entry for the pktlog.
Previously get_ampdu,get_amsdu would be queried via iwpriv
    --> iwpriv wlan0 1 1 pktlog
it is now changed to support via sysfs:
    --> echo 1 1 > /sys/class/net/wifi/pktlog

Change-Id: Id5461c86bb1369a04bc68514e874df6df1230b85
CRs-Fixed: 2684106
2020-05-24 06:39:50 -07:00
Arun Kumar Khandavalli
40c74bf143 qcacld-3.0: Add sysfs entry for the ipaucstat
Add the sysfs entry for the ipaucstat.

Previously ipaucstat would be queried via iwpriv
--> iwpriv wlan0 ipaucstat 1

it is now changed to support via sysfs:
--> echo "1" > /sys/class/net/wlanxx/ipaucstat

Change-Id: I5a3195a36cd2d7252eb3ef0312545d338b40d3ec
CRs-Fixed: 2676440
2020-05-24 06:39:46 -07:00
nshrivas
5a1000a798 Release 5.2.0.187O
Release 5.2.0.187O

Change-Id: Ib9ef5d7484cb30b4024112d04ccc052f34eadc91
CRs-Fixed: 774533
2020-05-23 21:09:18 -07:00