Commit graph

22,469 commits

Author SHA1 Message Date
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
Madan Koyyalamudi
2dec69384d Release 2.0.8.22S
Release 2.0.8.22S

Change-Id: I3900df7b832b5d97d8d90924b7f8a1f192bb8012
CRs-Fixed: 774533
2021-08-16 03:30:25 -07:00
Deeksha Gupta
e40d662a9b qcacld-3.0: Reset rand mac addr filter after tx frame cancel
Currently, If supplicant sends tx_mgmt request with random
mac_addr then driver adds the random mac_addr and sets this
random mac_addr to firmware via
WMI_VDEV_ADD_MAC_ADDR_TO_RX_FILTER_CMDID command. Driver waits
for tx_ack or tx cancel wait to complete and then remove the
cookies and start timer to delete the random mac_addr.
In case after receiving tx_ack, driver removes the cookie and
starts timer and before timeout supplicant sends the
tx_cancel_wait request. But driver can't update the timer
duration as the cookie was already deleted as part action frame
tx completion.

Fix is driver will remove the cookie with below condition:
1. If driver receives the tx_ack and the wait duration = 0 then
no need to start the timer, remove the cookie and also remove the
random mac_addr from firmware
2. If driver receives the tx_ack and the wait duration != 0 then
start the timer
3. If driver receives tx_cancel_wait then stop the timer and
remove the randon mac_addr from firmware
4. If timeout happens then remove all the cookies for the random
mac_addr and also remove the random mac_addr from firmware

Change-Id: I3e227213239e865582e5d8674260d049c437aa9b
CRs-Fixed: 3002851
2021-08-16 03:30:24 -07:00
Madan Koyyalamudi
6e93282918 Release 2.0.8.22R
Release 2.0.8.22R

Change-Id: I716cd9d1d6c691e66c7deac6d89dc732bccc945c
CRs-Fixed: 774533
2021-08-13 15:12:24 -07:00
Jianmin Zhu
00288620ea qcacld-3.0: Fix data stall when connect a special SAP
For SAP with special OUI, if DUT STA connect it with 11ax mode with ht
control enabled, SAP can't decode unicast pkt from DUT.

Fix it by clearing ht control bit in he cap when send peer assoc cmd
to firmware when connect such IOT AP with 11ax mode.

Change-Id: Icf9d6d7ddc370c79e615a713c76606e7fd195fd3
CRs-Fixed: 3004761
2021-08-13 15:12:24 -07:00
Madan Koyyalamudi
646a4de169 Release 2.0.8.22Q
Release 2.0.8.22Q

Change-Id: I642a6249e8794e89636754526bbcf36601e786bb
CRs-Fixed: 774533
2021-08-13 01:09:16 -07:00
Pragaspathi Thilagaraj
924a257d28 qcacld-3.0: Add additional debugs in PMKSA caching path
Add additional debugs in pmksa caching path.

Change-Id: I5e412c60c3455c1a40d6f742fb6536b9ac621748
CRs-Fixed: 2978751
2021-08-13 01:09:16 -07:00
Madan Koyyalamudi
ee9393e91a Release 2.0.8.22P
Release 2.0.8.22P

Change-Id: Ib4332dccdb783e013693d9e5e0a2c0bcc6b2fca0
CRs-Fixed: 774533
2021-08-11 00:15:51 -07:00
Utkarsh Bhatnagar
ba83af2b77 qcacld-3.0: Fill Chan width for 6Ghz
Incase of non-6ghz, the peer width is
updated while extracting HT and VHT
capability. For 6Ghz, the HT and VHT
capabilities may not be present and
because of which the peer channel width
gets updated as zero (20 Mhz).
To fix this, fill the channel width for
peer if session is 6ghz and peer supports
HE Capabilities.

Change-Id: Ie4d8f3a3a364af2c47e6b3d7309ee1287652ae06
CRs-Fixed: 3010063
2021-08-11 00:15:51 -07:00
Madan Koyyalamudi
cfa2a77b91 Release 2.0.8.22O
Release 2.0.8.22O

Change-Id: I6113d967352088ce256adbf9e9d5126989b36f5e
CRs-Fixed: 774533
2021-08-10 13:55:22 -07:00
Arun Kumar Khandavalli
ca2b90a35f qcacld-3.0: Reset the wiphy suspended flag at the end of SSR
During the wakeup sequence if there is any firmware recovery
the resume would be rejected and the flag "is_wiphy_suspended"
would not be reset in the system resume.

So, at the end of the SSR reset the flag since the system has
already resumed completely.

Change-Id: I86b0adade1dfb5710df2f86a3922320308407fe9
CRs-Fixed: 3005606
2021-08-10 13:55:21 -07:00
Madan Koyyalamudi
0efd33bb4c Release 2.0.8.22N
Release 2.0.8.22N

Change-Id: Id2255a12648f396e3350590f147ca24f91f1156f
CRs-Fixed: 774533
2021-08-09 12:50:12 -07:00
Srinivas Dasari
61e712f45b qcacld-3.0: Revert "Move cp stats to scheduler thread from kwork"
This reverts change Id8134003e6f7a3e0368b20c496f650e0b7025b9e

Moving cp stats to scheduler thread is breaking the
synchronization in stats collection. Currently, when a get stats
command is issued from framework, host driver sends the same to
firmware and wait for both llstats and get_station related stats.
The expectation is to receive get_stats first and then llstats.
Host driver has a wait for the last llstats event to return the
stats to userspace. As the cp stats(get_station stats) are moved
to scheduler thread, the order of these events can't be ensured
as llstats are still running in kworker thread. llstats event gets
processed before cp stats mostly and stats are returned
immediately to framework. Framework may issue the get stats
command again and the same is sent to firmware, which may result
in synchronization issue in firmware as well.
Moving llstats also to scheduler thread may not be optimal as these
are aggressive and can be queried by framework multiple times with
a milliseconds gap.
So, move back the cp stats to kworker thread to maintain
synchronization.

Change-Id: I8dc518f0de37e7cc203cb1f6e67045d74b304d93
CRs-Fixed: 3002534
2021-08-09 12:50:12 -07:00
Madan Koyyalamudi
ab8e1d43bf Release 2.0.8.22M
Release 2.0.8.22M

Change-Id: I16ed40b275ab47c529eebe18c9cd2d3516cf2ccd
CRs-Fixed: 774533
2021-08-09 10:52:33 -07:00
Utkarsh Bhatnagar
6ce2ad98c2 qcacld-3.0: Fill TDLS peer cap for add sta correctly
Fill TDLS 6Ghz peer capability correctly in Add STA
so that carrect Peer capability should be sent in
Peer Assoc.

Change-Id: I3eb6c387286b86e07c33be4751501b356b24ff68
CRs-Fixed: 3008407
2021-08-09 10:52:33 -07:00
Madan Koyyalamudi
71e9a4e0c9 Release 2.0.8.22L
Release 2.0.8.22L

Change-Id: Ifacb2af0071820c9739b66d8f21d901ae6220808
CRs-Fixed: 774533
2021-08-09 01:50:03 -07:00
Jyoti Kumari
2af6b3c1b2 qcacld-3.0: Reset twt active command if ack fail
Reset twt active command if ack fails due to firmware internal
error.

Change-Id: Ic980314261ab4f6deb437b36e525ea59c286eee2
CRs-Fixed: 2997509
2021-08-09 01:50:03 -07:00
Madan Koyyalamudi
249d163e43 Release 2.0.8.22K
Release 2.0.8.22K

Change-Id: I9854d76b25592ad6aa883224b13a6bc5508ad93a
CRs-Fixed: 774533
2021-08-08 06:40:46 -07:00