Commit Graph

19780 Commits

Author SHA1 Message Date
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
Bapiraju Alla
cd65464616 qcacld-3.0: Add validation for wmi handle
Validate wmi handle obtained in tgt_fwol_pdev_param_send

Change-Id: I99edbdf5be4c17af7fb31b7cbdaf418e5a1150af
CRs-Fixed: 2699765
2020-06-07 17:42:25 -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
Jianmin Zhu
fb397c30c4 qcacld-3.0: Enable flag to increase TX descs in AUTO QCA6390
Based on multi-clients test experiment, when AUTO SA8155+HST
works as SAP connected more than 8 Ref STA clients, it requires
increase in TX descriptors to burst traffic to each Rx device,
or flow control happens to stop host tx queue frequently for
missing TX descriptors, can't get high throughput.

Change-Id: Ie2adbdd3bfece323d51d5e96fef6001c4e39c3f4
CRs-Fixed: 2703765
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
hqu
d494c3b85a qcacld-3.0: Change default value for ini np_chan_weight
When config chanlist with DFS channel only, SAP can't be started
due to all DFS channel are all excluded and can't find available
channel in current chanlist. Issue is introduced by
'Change-Id: I53a22a0059d56aa8fca66215fed1ed0588db7db5'.

Fix is to set default ini np_chan_weight value to 1, then DFS channel
will be most likely put at last in available chanlist and DFS channel
will be the last choice when no other normal channel can be used.
If config chanlist with DFS channels only, SAP still can be started
on DFS channel successfully.

Change-Id: I04f70068069ff5c4f68b7d7fa56a2ede40035c6e
CRs-Fixed: 2694415
2020-06-07 08:07:40 -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