Commit graph

22,486 commits

Author SHA1 Message Date
Madan Koyyalamudi
f4e2dd678c Release 2.0.8.23O
Release 2.0.8.23O

Change-Id: I7eaa99c88c25b877736359ed514b1de0a8294d01
CRs-Fixed: 774533
2021-08-30 14:57:03 -07:00
Deeksha Gupta
2bed4725ca qcacld-3.0: Reset the TID after disconnection and wifi_off
Add logic to reset the TID with below condition:
1. reset TID value when wifi off happens
2. reset TID value when disconnection happens if
 "wlm_latency_reset_on_disconnect" ini is set

Change-Id: Iaf73dfd7a6a9985f8c1af47f788e73ea4fa07882
CRs-Fixed: 3013137
2021-08-30 14:57:03 -07:00
Madan Koyyalamudi
8431cbb83b Release 2.0.8.23N
Release 2.0.8.23N

Change-Id: I85e269fe646fb62af89d27acff1769da6b2901b3
CRs-Fixed: 774533
2021-08-30 10:17:12 -07:00
Deeksha Gupta
f60cbe7956 qcacld-3.0: Check for valid vdev_id in wma_is_roam_in_progress
When kickout event is received from firmware, the function
wma_is_roam_in_progress is called to check the roaming in
progress using vdev_id.

Vdev_id needs to be checked for valid vdev_id prior to
derefencing it.

Change-Id: Ib56895ad73b5dcefe7a0b9f65089306bf42d78eb
CRs-Fixed: 3020665
2021-08-30 10:17:11 -07:00
Madan Koyyalamudi
61ef386fba Release 2.0.8.23M
Release 2.0.8.23M

Change-Id: I3615e800e1ae96f6515592e4401d4e65b4d5e77b
CRs-Fixed: 774533
2021-08-30 02:09:00 -07:00
Yeshwanth Sriram Guntuka
531af850d3 qcacld-3.0: Use ini values for datapath prealloc
The memory allocation for srngs and tx/rx descriptors
are done during prealloc using macros. This could
potentially result in OOB access if the srngs sizes
and tx/rx descriptor num of elements are increased
via ini config.

Fix is to use ini values to update the srng sizes or
num of tx/rx descriptors for appropriate memory alloc
during dp prealloc.

Change-Id: Iaeac3833fd8e13df6baa9452a7d7f194b86a8bd3
CRs-Fixed: 3012648
2021-08-30 02:09:00 -07:00
Madan Koyyalamudi
e407315d7c Release 2.0.8.23L
Release 2.0.8.23L

Change-Id: I8d2ad8054dd2f4044169510e527c57316df1fa53
CRs-Fixed: 774533
2021-08-27 19:52:08 -07:00
VIJAY RAJ
164aaa90de qcacld-3.0: Fix null pointer dereference in csr_update_pmk_cache_ft()
In csr_update_pmk_cache_ft(), the value of the argument
pmk_cache could be received as NULL. pmk_cache is deferenced
without validation.

Validate pmk_cache before dereferencing.

Change-Id: I255ce55d07a112c2aa742535c54b71fadea3e7e7
CRs-Fixed: 3023221
2021-08-27 19:52:07 -07:00
Madan Koyyalamudi
7c68e03779 Release 2.0.8.23K
Release 2.0.8.23K

Change-Id: I82e6cbe5c8936d128e6090203978ccddc8c78b2e
CRs-Fixed: 774533
2021-08-26 20:03:35 -07:00
Jianmin Zhu
36de1cca72 qcacld-3.0: Don't clear roam_invoke_in_progress when receive ROAM_ABORT
After supplicant disabled vdev roaming, only host can invoke roaming.
After host invoked roaming, if reassoc failed, F/W aborted roaming and
retried roaming, if succeeded, then sent ROAM SYNCH later, but host
rejected it since roam_invoke_in_progress is cleared when receive
ROAM_ABORT, didn’t send WMI_ROAM_SYNCH_COMPLETE to F/W,  F/W asserted
after timeout.

Fix it by not clearing roam_invoke_in_progress when receive ROAM_ABORT,
If host invoked roaming failed, F/W will send roam event
WMI_ROAM_REASON_INVOKE_ROAM_FAIL at last, roam_invoke_in_progress will be
cleared at that time.

Change-Id: Idbbae94f7ad77794f28f5d66dc68b33358d6f49e
CRs-Fixed: 3021513
2021-08-26 20:03:34 -07:00
Madan Koyyalamudi
d12d3b909d Release 2.0.8.23J
Release 2.0.8.23J

Change-Id: I3158c9a1b3be397d9cf6757a8cdd7f30b50b4c42
CRs-Fixed: 774533
2021-08-26 11:09:37 -07:00
Sachin Ahuja
56ec32230a qcacld-3.0: Return correct error code for big data stats
In SAP mode, the get sta info vendor command gets called for both
connected and disconnected state. If peer client is connected then
driver returns the SAP power save parameters to the userspace.
If peer client is disconnected then driver returns -EINVAL status.
Userspace cannot differentiate using this error code whether driver
is not able to handle the vendor command or peer client is
disconnected.

So, if peer client is disconnected then return -ENXIO error code
instead of -EINVAL.

CRs-Fixed: 3014906
Change-Id: I3ce5cd53e79c3bfaeed6571ea28b28ce2dfe26b3
2021-08-26 11:09:37 -07:00
Madan Koyyalamudi
e3624afeff Release 2.0.8.23I
Release 2.0.8.23I

Change-Id: I9845e82f4f7b6d38de53e59710a3d96b8e90d621
CRs-Fixed: 774533
2021-08-25 11:00:59 -07:00
Liangwei Dong
b2799e38c3 qcacld-3.0: Fix monitor mode set channel wrong for HT40-
At present, driver doesn't check the set mon channel parameters
for HT40-, driver always set HT40+ for 2G channel 5 at present
by command "iw dev wlan0 set 5 HT40-".
Fix by check secondary channel offset from set channel parameters.

Change-Id: Ia69f193c72e9e97a4d6988e86bcfd3727089452e
CRs-Fixed: 3019982
2021-08-25 11:00:58 -07:00
Madan Koyyalamudi
269824a41d Release 2.0.8.23H
Release 2.0.8.23H

Change-Id: I58d8e3d12c529be2b62d6867c8f3261ebb4811cb
CRs-Fixed: 774533
2021-08-25 09:20:35 -07:00
Surya Prakash Sivaraj
0080099b5d qcacld-3.0: Fallback to 80MHz capability if HE160 MCS is not valid
If the STA DUT is attempting to connect in 160MHz channel width,
and if the HE160 Rx/Tx MCS is not valid after intersection, the
STA DUT will fallback to 80MHZ channel width.

Change-Id: I11fe8830851fcbb3796703a605568f83c9ff9932
CRs-Fixed: 3011510
2021-08-25 09:20:35 -07:00
Madan Koyyalamudi
8f1ce6a34d Release 2.0.8.23G
Release 2.0.8.23G

Change-Id: Ia9bcfc363bcb4f9046e10d0b2628761c54c74b52
CRs-Fixed: 774533
2021-08-25 07:45:12 -07:00
Surabhi Vishnoi
fcb3efcf98 qcacld-3.0: Update the description of ini btm_config_offload
The bit 5, 4, 3 are used differently in case of solicited and
unsolicited btm request. Update the description of the ini
param to provide clarity on the usage of these bits.

Change-Id: Ic9a596710da6b4692d578206bbd783f784a230fb
CRs-Fixed: 2787597
2021-08-25 05:20:14 -07:00
Madan Koyyalamudi
5581add73c Release 2.0.8.23F
Release 2.0.8.23F

Change-Id: I4bbf406f69898e07fac2cfd1ef1a2166fbdb55d7
CRs-Fixed: 774533
2021-08-24 23:52:38 -07:00
Jyoti Kumari
6b38f02077 qcacld-3.0: Disable beamformer for single chain
If there is single chain support then driver should disable
beamformer instead of enable

As part of fix, check the number of chains by intersecting the
firmware capability and ini config. If it is 1 then set
su_bformer, mu_bformer and num_soundingdim as 0

Change-Id: I84434c741cbf774f368657b2c57668f6e7b99991
CRs-Fixed: 3003257
2021-08-24 23:52:38 -07:00
Madan Koyyalamudi
a3a301b1f7 Release 2.0.8.23E
Release 2.0.8.23E

Change-Id: I914b0f5c9d3ca0ce1138b9dfbd0d67e6c6a5548e
CRs-Fixed: 774533
2021-08-24 01:55:26 -07:00
Utkarsh Bhatnagar
ef982aae5e qcacld-3.0: Fix null ptr issue in send_conc_params_update()
Fix null ptr issue in lim_send_conc_params_update()

Change-Id: I032cf16a64bbc40f79add2268a75595b0e9eae3c
CRs-Fixed: 2996906
2021-08-24 01:55:26 -07:00
Jyoti Kumari
c121ccb460 qcacld-3.0: Mismatch of TWT responder bit in HE caps and EXT caps
In a beacon template, there is a mismatch of twt responder bit in
HE caps and extended caps.

During start BSS, there is a kernel flag related with twt
responder. Intersect this kernel flag and service bit capability
before calling twt enable/disable api in start BSS.

Change-Id: I0725fc560904c622cc47f43958bcd490daacfa2f
CRs-Fixed: 2995538
2021-08-24 01:55:21 -07:00
Madan Koyyalamudi
bd2dbcb5d1 Release 2.0.8.23D
Release 2.0.8.23D

Change-Id: I1bfaf7a458518927562f2b56cf679e59d09c0237
CRs-Fixed: 774533
2021-08-23 16:14:00 -07:00
Surabhi Vishnoi
19c21e897f qcacld-3.0: Override WLAN_PROFILE to default only if it is unset
Currently WLAN_PROFILE is overridden to default in all cases.
In many targets, defconfig other than default_defconfig needs
to be picked, so set WLAN_PROFILE to default only if it is not
set before.

Change-Id: Ia9a5ad7c9eedd56be59418371867107258e65ea0
CRs-Fixed: 2818090
2021-08-23 16:14:00 -07:00
Liangwei Dong
f9a66fabf2 qcacld-3.0: Validate total channel stats number from target
In certain case, the hdd_llstats_radio_fill_channels failed to
put more nl attribute for channel stats to upper layer.
Add validation of total channel stats number received from target
to avoid exceeding NUM_CHANNELS. And change error log to include
more debug information.

Change-Id: Ifaf3cf6cd643a3fe87bf7664727da19951f41e93
CRs-Fixed: 2865770
2021-08-23 16:13:55 -07:00
Madan Koyyalamudi
7addc33819 Release 2.0.8.23C
Release 2.0.8.23C

Change-Id: Iaaf907a0cab13f2b59029ad1f4f422c438e1b916
CRs-Fixed: 774533
2021-08-23 13:01:30 -07:00
Liangwei Dong
b656e027b3 qcacld-3.0: Validate mac context in CSA bw selection API
Add sanity check mac context before using it in API
wlansap_get_csa_chanwidth_from_phymode.

Change-Id: I8df501e850b606615c899321fc23636ad985ab23
CRs-Fixed: 2955278
2021-08-23 13:01:29 -07:00
Madan Koyyalamudi
7d04179c25 Release 2.0.8.23B
Release 2.0.8.23B

Change-Id: I900f059c47f6302fc5d2f6bee092d5a2731103a1
CRs-Fixed: 774533
2021-08-20 06:52:15 -07:00
Deeksha Gupta
20d205e85f qcacld-3.0: Handle TWT session if power save mode disable
In case if .set_power_mgmt command comes with ps disable,
then driver needs to teardown all existing twt sessions on
STA interface and if any TWT setup request command comes
after ps disable then also driver rejects the command.

Change-Id: Ib7c86fd257c52b9bac57124b744dc7a9e8405560
CRs-Fixed: 2997260
2021-08-20 06:52:15 -07:00
Madan Koyyalamudi
51e04c5ee2 Release 2.0.8.23A
Release 2.0.8.23A

Change-Id: Ife57f4f44784ac0867857fae46a0567ccb71b9ac
CRs-Fixed: 774533
2021-08-20 00:38:42 -07:00
Balaji Pothunoori
6406cceb1f qcacld-3.0: Add new defconfig for wearable targets
Add new defconfig file for wear targets

Change-Id: I52a3df959e75a28efe037d4951f12915556bc98b
CRs-Fixed: 2873236
2021-08-20 00:38:42 -07:00
Madan Koyyalamudi
665179df34 Release 2.0.8.23
Release 2.0.8.23

Change-Id: I7bee50bc46dbb42fc2e3196777521385d47cd60e
CRs-Fixed: 774533
2021-08-19 22:50:07 -07:00
Balaji Pothunoori
88989d85d9 qcacld-3.0: update ini configured rx aggregation size in addba response
Currently addba response is not updated with ini configured rx aggregation
size.
This change is to reject peer addba request if rx aggr size is 1 and
for other sizes select min value of peer and configured sizes.

Change-Id: Ia375b1e031dfecf948429e0baea19faa8fe42ffa
CRs-Fixed: 2962314
2021-08-19 22:50:06 -07:00
Balaji Pothunoori
a387f13983 Revert "qcacld-3.0: addba request reject for peer ap"
Peer addba request is rejected when reject_addba_req is set from
ini or vendor command.
Current reject_addba_req ini is replacing with gRxAggregationSize
when it is set 1 from ini.
Hence this reverts commit I80a4b78c1af77f5bfa68be3163f9e9a78cc64245.

Change-Id: I1cc57b88311da4dd8f26eade17072aaa1f0ebb59
CRs-Fixed: 3002204
2021-08-19 22:50:01 -07:00
Madan Koyyalamudi
cde61444a4 Release 2.0.8.22Z
Release 2.0.8.22Z

Change-Id: I0c943fc2f8345149084ca47ede4d943846764ab6
CRs-Fixed: 774533
2021-08-19 20:49:45 -07:00
Paul Zhang
db7b1841da qcacld-3.0: Add ini wlm_latency_reset_on_disconnect
Currently, the WLM mode could be recovered after disconnection
or interface down/up about random MAC feature. Since some OEMs
have different mechanisms to config WLM mode on their framework
implementation and don't expect recovering the WLM mode.

So add logic to set default WLM mode when disconnection happens.
And add ini wlm_latency_reset_on_disconnect to differentiate
the implementation in driver. By default
wlm_latency_reset_on_disconnect is false.

Change-Id: Idcb3baf6ab8f0533eb01c28ff1c12513f9995946
CRs-Fixed: 3006875
2021-08-19 20:49:45 -07:00
Madan Koyyalamudi
32f9221cdc Release 2.0.8.22Y
Release 2.0.8.22Y

Change-Id: I5b353082f5f7304d57b73f0cd0fb95b74ef4d780
CRs-Fixed: 774533
2021-08-19 11:48:36 -07:00
Jianmin Zhu
8c2706ef81 qcacld-3.0: Fix issue that rx_mpdu is 0 for 11a/g mcs 0
For 11a/g mcs 0, preamble:OFDM 0, nss 1x1:0, channel width:20M, 0,
mcs 0 rate:0.
so (((_pream)) | ((_nss) << 3) | ((_bw) << 5) | ((_rate) << 8))  is 0,
so wmi_rate_stats.rate is 0,  rx_mpdu is set to 0.

Fix it by not setting rx_mpdu to 0 when rate is 0.

Change-Id: Ie12660480af42e26c2ea957b6576dbd395730522
CRs-Fixed: 3008693
2021-08-18 10:21:00 -07:00
Madan Koyyalamudi
87c4989160 Release 2.0.8.22X
Release 2.0.8.22X

Change-Id: Ib94828bb952171d7ab98e17d0c26617242257592
CRs-Fixed: 774533
2021-08-18 01:16:15 -07:00
Karthik Kantamneni
8acefa714a qcacld-3.0: Don't start fisa fse flush timer in suspend state
Currently CMEM FISA FSE flush work timer can be triggered
in suspend sequence, this may lead to starting timer even
it is pending to executed.

To avoid this check if flush is allowed before starting the timer.

Change-Id: Ie4a8386a7a7c7ae8c2fba97cae65578ae56b0b4b
CRs-Fixed: 3015719
2021-08-18 01:16:15 -07:00
Jia Ding
3e20d8177d qcacld-3.0: Support LLSTATS set for P2P mode
ll_stats_set vendor cmd is now only supported for STA mode.
Add support for P2P_GO and P2P_CLI modes since FW supports
LL_STATS for P2P mode as well.

For P2P_GO mode, use WMI_REQUEST_LINK_STATS_CMDID instead
of the club cmd WMI_REQUEST_UNIFIED_LL_GET_STA_CMDID.

Change-Id: I675ff87593e6eb80e1e1fef85ae1f46d24701d63
CRs-Fixed: 3012389
2021-08-17 17:47:23 -07:00
Madan Koyyalamudi
c37d3e3435 Release 2.0.8.22W
Release 2.0.8.22W

Change-Id: I2f77cc5709110dbd665e3935b445ab5f7de69be2
CRs-Fixed: 774533
2021-08-17 11:29:41 -07:00
Jingxiang Ge
adb08a35c2 qcacld-3.0: continue connection even BSSType mismatch
This happens in roaming case, even bsstype is mismating
we allow it to continue, which is to avoid serialization
cmd without dequeue issue.

Change-Id: I17f4c8e71769c42f3e7747e6095645c9683753ad
CRs-Fixed: 3015332
2021-08-17 11:29:41 -07:00
Madan Koyyalamudi
0ca55c0262 Release 2.0.8.22V
Release 2.0.8.22V

Change-Id: I57bb0e9691d8e083c3f942f099eb61cfc9650b6b
CRs-Fixed: 774533
2021-08-17 09:55:39 -07:00
Utkarsh Bhatnagar
cc1c447165 qcacld-3.0: Fill He_Op correctly for non-6ghz TDLS link
For the TDLS link, not established in 6ghz band, some
elements in HE OP IE such as basic mcs, bss color are
not filled properly. This might cause some IOT issue.
To fix it fill the params correctly.

It should be noted that VHT operation info should not
be included in HE OP IE if the frame carries the VHT OP
IE or sent in 2.4GHz.
For TDLS link connected in 5Ghz band, VHT OP IE is sent
in the setup confirm frame so no need to include that.

Change-Id: I9426ff3ca16461628b8ebe9710048dc68866dbf4
CRs-Fixed: 3003984
2021-08-17 09:55:38 -07:00
Madan Koyyalamudi
0ef5a8ffd9 Release 2.0.8.22U
Release 2.0.8.22U

Change-Id: I333f57e9afd8b0d59a834e5e9fd12448f4fb9e71
CRs-Fixed: 774533
2021-08-16 23:19:24 -07:00
Liangwei Dong
ef4bac4c13 qcacld-3.0: Fix 2.4G assoc request bandwidth info wrong
With the commit I630423de03636e6c4ca07638dce6966c3ca381f9,
driver will enable HT40 capability field in assoc request
frame to 2.4G AP. In some countries, the 40Mhz is disallowed
in 2.4G.
Fix by disable HT40 if regulatory disallow

Change-Id: I8a1e6b2c59c486373c49cba0e3c635b34f443e1c
CRs-Fixed: 3012747
2021-08-16 19:08:52 -07:00
Madan Koyyalamudi
abfe455c6f Release 2.0.8.22T
Release 2.0.8.22T

Change-Id: I92c559ba7af02bc666c82cf40ed2e1eca1413722
CRs-Fixed: 774533
2021-08-16 07:53:02 -07:00
Vevek Venkatesan
94821eb41e qcacld-3.0: call CDP API for pkt_log_exit from CDS layer
Once pkt_log_con_service success in cds_pre_enable,
in case of any further failure, pkt_log_exit cleanup is
not done, so calling CDP interface API for pkt_log_exit.

Change-Id: Ibddc99fb47109a73de095f068694b2548849f14d
CRs-Fixed: 2978390
2021-08-16 07:53:02 -07:00