Commit Graph

19838 Commits

Author SHA1 Message Date
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
Lincoln Tran
96e8d8ddf1 qcacld-3.0: Update target_if_nan_event_flush_cb
Update return type of target_if_nan_event_flush_cb to return
QDF_STATUS to match scheduler_msg_process_fn_t.

Change-Id: I2f0380edeb21a1c6016358725abab39fdc741466
CRs-fixed: 2698302
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
Jia Ding
51a9fa1c4a qcacld-3.0: Properly set WLAN_IPA_MAX_STA_COUNT
Set WLAN_IPA_MAX_STA_COUNT to WLAN_MAX_CLIENTS_ALLOWED
if WLAN_MAX_CLIENTS_ALLOWED is defined.

Change-Id: Ic7b3706897cec8ee149bab12cd91c94ae04f75ef
CRs-Fixed: 2658585
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
gaurank kathpalia
9064ce5cb3 qcacld-3.0: Enable band preference for 6ghz
Enable band preference for 6ghz and give default
max weightage to 6ghz to push it for STA operation.

Change-Id: I2fb1d68bb0d8535b4e9813fdd1551723a1fe4f56
CRs-Fixed: 2688585
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
Mahesh Kumar Kalikot Veetil
0d007bf428 qcacld-3.0: remove realpath dependency
Android build system is using toybox “realpath” which doesn’t have
“—relative-to” option as in GNU tools. Use more generic python API.

Change-Id: Ib129bd721056e2fcb563817ac61cc6811568f68d
CRs-Fixed: 2676451
2020-05-27 00:57:42 -07:00
Mahesh Kumar Kalikot Veetil
efd0269fde qcacld-3.0: Make absolute path to relative
Make include paths relative to kernel build directory. This will fix
the following error due to long absolute path in include directories,

	make[2]: execvp: /bin/sh: Argument list too long
	make[2]: *** [path/to/object/file] Error 127

Change-Id: Ic930384f38f2166e6bede8d16ac37b359dd48a0d
CRs-Fixed: 2661829
2020-05-27 00:57:38 -07:00
Mahesh Kumar Kalikot Veetil
4b136b1ca9 qcacld-3.0: Add an option to use default profile
Check WLAN_CFG_USE_DEFAULT to use default profile in case
TARGET_MULTI_WLAN is defined. Default configuration will be used
to build WLAN driver for multiple chipsets.

Change-Id: Ib5b64fd8213f401b043aa7792cc8ac734cd722b8
CRs-Fixed: 2661827
2020-05-27 00:57:35 -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