Commit graph

22,459 commits

Author SHA1 Message Date
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
Pragaspathi Thilagaraj
ee2255dcd2 qcacld-3.0: Update pmk cache only for connected BSSID
In OKC enabled cases, when multiple pmk entries exist, the user
space sends set_pmksa command for BSSID other than the connected
bssid. In that case driver updates the global pmksa cache with
the new PMK received for the non-connected BSSID. This results
in invalid pmk sent to firmware.

To avoid this, update the pmk cache only for connected BSSID.

Change-Id: I006595ea5b913d439007a8fb9d767454a71eeac1
CRs-Fixed: 2937182
2021-08-08 06:40:46 -07:00
Madan Koyyalamudi
8518397c6c Release 2.0.8.22J
Release 2.0.8.22J

Change-Id: Iccc1bf646c4f5a2e51507b2d02ad0f591a53e1e2
CRs-Fixed: 774533
2021-08-05 08:10:02 -07:00
Yeshwanth Sriram Guntuka
af916d99da qcacld-3.0: Disable FISA history for debug builds
Memory allocation for FISA history could possibly
happen from the cnss prealloc pool.

Fix is to disable FISA history until the allocation
is moved to DP prealloc.

Change-Id: I6c2e42d129d6642601ae59e08294c214907f5faf
CRs-Fixed: 3006138
2021-08-05 05:17:46 -07:00
Madan Koyyalamudi
2762365929 Release 2.0.8.22I
Release 2.0.8.22I

Change-Id: I8749b7087faf05eec4adc693893bcdaae15746ca
CRs-Fixed: 774533
2021-08-04 18:19:38 -07:00
Kiran Kumar Lokere
922096016b qcacld-3.0: Support for broadcast TWT configuration
Add configuration support for broadcast TWT parameters.

Change-Id: I066f4509e094c81f51eda4cc08a432beab4e0e57
CRs-Fixed: 2924717
2021-08-04 18:19:38 -07:00
Madan Koyyalamudi
a0a414ea00 Release 2.0.8.22H
Release 2.0.8.22H

Change-Id: I86930b6c6909566874e6171dcb46fde17477de5b
CRs-Fixed: 774533
2021-08-04 08:43:38 -07:00
sheenam monga
969f23e230 qcacld-3.0: Don't process csa request immediately for P2P GO
If STA is connected to one channel and p2p is up on same channel,
and sta moves to another channel then p2p go also tries to switch
to sta channel immediately in case g_enable_go_force_scc is enabled.
But Go can't send channel switch announcement as go sends 1.5 sec
of NOA during sta connection with new channel due to which p2p may
get disconnect.

Fix is to not try to move to sta channel immediately. P2P Go will
try to switch channel only after NOA completion which is 1.5 seconds.
Add delay work queue of 3 seconds to handle worst case scenario when
BT is on and P2P tries to switch channel.

Change-Id: I557940dfc79da4922694ed24a573e41aae75c09a
CRs-Fixed: 2989207
2021-08-04 08:43:38 -07:00
Madan Koyyalamudi
5a32224a78 Release 2.0.8.22G
Release 2.0.8.22G

Change-Id: Ib302b65e4316c0cd6936758dd490c302d2590d17
CRs-Fixed: 774533
2021-08-04 06:00:40 -07:00
Yeshwanth Sriram Guntuka
9e965087b1 qcacld-3.0: Handle error cases in ipa_uc_loaded_handler
In the scenario where ipa connect pipes fails in the
wlan_ipa_uc_loaded_handler API, uc_loaded flag is not
reset. As a result of this, in wlan_ipa_uc_ol_deinit,
ipa_tx_buf_smmu_unmap and ipa_wdi_disconn_pipes APIs are
invoked incorrectly.

Fix is to set the uc_loaded flag to true only if connect
pipes and tx_smmu mappings are successful in
wlan_ipa_uc_loaded_handler. Also, initialize the uc_op_work
in wlan_ipa_uc_ol_init prior to the uc_loaded check to
avoid a possible race condition which could also result
in the similar issue as above.

Change-Id: I119170413cb9b5e03ec476c9a69d9effaa460c01
CRs-Fixed: 2940833
2021-08-04 00:44:38 -07:00
Madan Koyyalamudi
4469ebfb19 Release 2.0.8.22F
Release 2.0.8.22F

Change-Id: Ie95ecfeecfd5e59982ab4c0893cdb4df927b295e
CRs-Fixed: 774533
2021-08-03 15:11:49 -07:00