Commit graph

22,370 commits

Author SHA1 Message Date
Bapiraju Alla
51fabd458a qcacld-3.0: Assert when failed to parse at least one INI param
INI parameters are configured based on requirement. It is expected
that atleast one parameter should be configured through INI file.

To mandate this, trigger assert when failed to parse atleast one INI
parameter from INI file.

Change-Id: Ia94f9ae9ce91d7e57f7a6be6c6f955de5ba860a4
CRs-Fixed: 2881695
2021-07-23 14:38:28 -07:00
Madan Koyyalamudi
249826d04e Release 2.0.8.21O
Release 2.0.8.21O

Change-Id: I9b1833c3afb7222a2f4da8279316a834a60a2269
CRs-Fixed: 774533
2021-07-23 01:55:38 -07:00
Srikanth Marepalli
721bdf6a27 qcacld-3.0: Invalid pmkid in the FT-EAP disconnection case
During FT-EAP roaming after session timeout if the FTIE received
in the EAPOL of full EAP is improper, the supplicant would
disconnect the AP with the reason FTIE mismatch.
During this disconnection supplicant flushes all the existing PMK
cache entries and eventually the framework would add these cache
entries again (apparently, the current entry would be with the
older PMK). On this addition to the driver, there is no connected
profile and thus no MDID is associated to this PMKSA entry(AP1-PMK1).
Further, on the fresh (Full EAP) connection to the AP2 with the
same MDID, a new cache entry gets added and thus MDID from the
connected profile gets associated with the PMKSA cache entry. At
this point of time, there are two PMKSA cache entries (AP1-PMK1
without MDID and AP2-PMK2 with MDID).
Adding further, if the incorrect PMK (without MDID / stale entry)
i.e. PMK1 is given to the firmware on the RSO command for the
specific BSSID (here AP1) during roam, further roams shall be
calculated with this PMK1 and result in to the invalid pmkid
issue.
Thus, avoid this situation by removing that stale PMKSA entry in
the driver and this entry can be deleted only when it is associated
with the MDID. Driver on the new pmksa addition shall check for the
matching pmksa cache entry with the MDID and delete the earlier ones.
To associate the MDID, this commit checks for the same from the scan
entry of the BSSID, if there is no connected profile for the same
(this happened when the framework has added the cache entry when in
the disconnected state).

Change-Id: If81d66059173dda8d7a2940ca10dc96ef16e125c
CRs-Fixed: 2972115
2021-07-23 01:55:37 -07:00
Madan Koyyalamudi
e0d55a659a Release 2.0.8.21N
Release 2.0.8.21N

Change-Id: I1e31b1384f9a3787ceb1614c052dd3a621cf35e9
CRs-Fixed: 774533
2021-07-22 11:20:59 -07:00
Utkarsh Bhatnagar
432c544f43 qcacld-3.0: Donot access invalid wiphy band
In wlan_hdd_get_wiphy_channel(), Donot access
60 Ghz which are not part of wiphy.

Change-Id: Ie8249bdcc7c4fb66744a9b16f2c194e9ab60dd1b
CRs-Fixed: 2984046
2021-07-22 11:20:58 -07:00
Madan Koyyalamudi
2d64189997 Release 2.0.8.21M
Release 2.0.8.21M

Change-Id: Ife2ec0e354c72a290b44a1ab3062b550afa5c068
CRs-Fixed: 774533
2021-07-22 02:34:48 -07:00
abhinav kumar
6ad08b955a qcacld-3.0: Enable SAE roaming with same PMK INI by default
Enable SAE Roaming with same PMK feature INI
sae_single_pmk_feature_enabled by default.

Change-Id: I5be1b24fd77f5296574276af02b0098ac86d9730
CRs-Fixed: 2985116
2021-07-22 02:34:48 -07:00
Jyoti Kumari
aa81137989 qcacld-3.0: Send firmware internal error to userspace
Send error to userspace if ack status is not successful due to
firmware internal error

Change-Id: Id3fbbc2099fbdf597e4aebf6b532086c47a07943
CRs-Fixed: 2991060
2021-07-20 11:13:19 -07:00
Jyoti Kumari
797927d86a qcacld-3.0: Add support for TWT ack event
In case if TWT command (i.e setup, terminate, pause, resume,
nudge) comes from userspace and if the firmware is in below mode
1. scan in progress
2. roam in progress
3. CSA is in progress
4. any other error
then the command needs to be rejected in userspace context

Synchronize the TWT commands so that whenever command goes from
driver to firmware, then driver will receive ack event first
followed by respective event (i.e add dialog, delete dialog,
pause, resume, nudge) with below condition
1. If driver receives the ack event as successful then driver
   waits for this ack event, respective event with status of the
   TWT action frame over the air is expected.
2. If driver receives the ack event as failure then it will
   reject the TWT command request in userspace context.

Change-Id: Ib68b89b74b5e44f28106884efd7412cee49f5bd8
CRs-Fixed: 2987978
2021-07-20 23:41:17 +05:30
Madan Koyyalamudi
238f7a9e7b Release 2.0.8.21L
Release 2.0.8.21L

Change-Id: Id7b991bced0bd76e3212cf40f8d08d949e0028ed
CRs-Fixed: 774533
2021-07-20 08:17:58 -07:00
Utkarsh Bhatnagar
7d5d5cbcb7 qcacld-3.0: Add support for TDLS 11AX for 6Ghz band
Add support for TDLS 11AX for operations on 6Ghz
band.

Change-Id: I56e27f1e3560cd4374ba186f161bbc2ad945fe1d
CRs-Fixed: 2990682
2021-07-20 08:17:58 -07:00
Utkarsh Bhatnagar
c152bc38e4 qcacld-3.0: Add 6Ghz band HE capabilities for TDLS frames
Add 6Ghz band HE capabilities for TDLS setup request and
setup response frames.

Change-Id: I02e8da12acc6832ad39d7166961c1c6546c8ad49
CRs-Fixed: 2994066
2021-07-20 08:17:53 -07:00
Madan Koyyalamudi
10e018f628 Release 2.0.8.21K
Release 2.0.8.21K

Change-Id: Ia55388688c17cc8260d57b279d8df978ef6a1361
CRs-Fixed: 774533
2021-07-20 05:16:32 -07:00
Jyoti Kumari
dc1ddf5e3b qcacld-3.0: Add TWT service bit capability support for ack event
Add TWT service bit capability support to check whether firmware
supports ack event or not. If firmware doesn't support ack event
then service bit capability will become 0 and  whenever the TWT
command comes, host will not wait for ack event and sends command
in a legacy way

This support is mainly added to handle new host and old firmware
combination.

Change-Id: I556d8edf0b505b774d756d6d904dd445418837bf
CRs-Fixed: 2987966
2021-07-20 05:16:31 -07:00
Madan Koyyalamudi
f2be8b8bf6 Release 2.0.8.21J
Release 2.0.8.21J

Change-Id: Ie2289dbbd2c9e169e1adb70ccb2bc9a337711a82
CRs-Fixed: 774533
2021-07-20 02:32:11 -07:00
Liangwei Dong
190e2d9118 qcacld-3.0: Add policy mgr conn list validation
Add policy mgr connection list validation such as duplication
entry error. Flush the drv log and pause the logging
if error happens so that the issue log can't be overwritten
in stress test.

Change-Id: I037863de0bc5ecb8118c5792b6d73c3e200dd5c6
CRs-Fixed: 2991983
2021-07-20 11:58:55 +08:00
Madan Koyyalamudi
4dda0be0ff Release 2.0.8.21I
Release 2.0.8.21I

Change-Id: I93a1699f5b179fab4d36ca39dc6f50cdca8a6801
CRs-Fixed: 774533
2021-07-19 14:06:06 -07:00
Utkarsh Bhatnagar
d56e5f350b qcacld-3.0: Add ini to configure BLE scan policy
Add gConfigBleScanCoexPolicy which can be used to
control performance of ble scan case.
’0’ to place more emphasis on BLE Scan results
‘1’ to place more emphasis on WLAN performance

Change-Id: I46c735d8695523d14f6372bc5e47d1d1f51589ae
CRs-Fixed: 2935051
2021-07-19 14:06:06 -07:00
Madan Koyyalamudi
5cc22e8314 Release 2.0.8.21H
Release 2.0.8.21H

Change-Id: I93b67e02c02a8343b422e4e7d4e61b78bce7f2ea
CRs-Fixed: 774533
2021-07-19 08:34:10 -07:00
Deeksha Gupta
5c19f06a88 qcacld-3.0: Check NULL value of params
In hdd_sap_twt_get_session_params(), check NULL value of
params variable before it's used.

Change-Id: I47e57cbe98d7a0ee7015ab628d665037bf0b9853
CRs-Fixed: 2989510
2021-07-19 08:34:10 -07:00
Madan Koyyalamudi
49e0ae2c7d Release 2.0.8.21G
Release 2.0.8.21G

Change-Id: I0d972a60a8c40f359ce4d7e143924cc97622bba9
CRs-Fixed: 774533
2021-07-18 08:12:08 -07:00
sheenam monga
3a3d32c5e2 qcacld-3.0: Check valid freq for non-beaconing entities
Currently, In Reassoc and fast reassoc command host
validates freq from secondary channel list that may
cause issue for some frequencies which may be valid
for sta but invalid for sap.

Fix is to validate freq from valid channel list

Change-Id: I1ee81212425f7b4f997568b4fd92153231e349e8
CRs-Fixed: 2991541
2021-07-16 05:11:39 -07:00
Madan Koyyalamudi
c8089feb68 Release 2.0.8.21F
Release 2.0.8.21F

Change-Id: I01ea1fa4601ee832551815b0935fbcf04e12806c
CRs-Fixed: 774533
2021-07-16 04:19:10 -07:00
Surabhi Vishnoi
d7214b64de qcacld-3.0: Fill correct 802.11hdr in rx data pkts in pkt capture mode
All msdu's which are received in single mpdu will have same 802.11
header. Hardware fills header of only first msdu. So copy the
first msdu's header to all msdu's which are received in single
msdu in packet capture mode.

Change-Id: I1c9fd55e571eda77be0ab0863e03cd61b848b842
CRs-Fixed: 2968770
2021-07-16 04:19:10 -07:00
Surabhi Vishnoi
c640964afd qcacld-3.0: Fill Coding and STBC in HE data of radiotap header
Fill the Coding info and STBC in HE data field of radiotap
header for TX data packets in packet capture mode.

Change-Id: I173ce1846259ee9e94587e360256161f8147df08
CRs-Fixed: 2984436
2021-07-16 04:19:05 -07:00
Madan Koyyalamudi
9ad04409ce Release 2.0.8.21E
Release 2.0.8.21E

Change-Id: I8d621494cd0675c22bf8a125033996cd3a61318a
CRs-Fixed: 774533
2021-07-16 00:29:24 -07:00
Deeksha Gupta
08c4d36014 qcacld-3.0: Add support for twt get_status with dialog_id 0
Currently, if there is no twt session present as part
of the twt get_status query with dialog_id = 0, host
returns failure.

Add support to include the session state, wake_duartion
and wake_interval for TWT get_status command with dialog_id = 0.

Change-Id: Ie59310dc07c9954da96cee6568de856be8f67652
CRs-Fixed: 2989788
2021-07-14 21:46:10 -07:00
Madan Koyyalamudi
1a9144f381 Release 2.0.8.21D
Release 2.0.8.21D

Change-Id: I424cb71ddee8a0643219cc49bc59ab82d577627f
CRs-Fixed: 774533
2021-07-13 16:40:17 -07:00
Utkarsh Bhatnagar
2471a4f076 qcacld-3.0: Handle A-EDCA based on STA-SAP concurrency
Handle A-EDCA based on STA-SAP concurrency. Also, update
RTS profile based on the concurrency such that:
1) For STA and SAP concurrency, send STA's AP EDCA
   params to fw. Also, for SAP or P2P Go, update the
   value in Broadcast EDCA params as well so that it
   should be broadcasted to other stations connected
   to that BSS. Also, update the RTS profile value to
   0x11. It will let FW disable SIFS bursting and send
   RTS for every frame.
2) For standalone STA (can even happen after SAP/P2P Go
   disconnects), if the parameters are updated, reset
   them to original parameters and send them to FW.
   Also, update the RTS profile value to the value
   it was set before.
3) For standalone SAP (can even happen after STA
   disconnects), if the parameters are updated, reset
   them to original parameters and send them to FW and
   reset the  Broadcast EDCA params as well so that it
   should be broadcasted to other stations connected
   to that BSS Also, update the RTS profile value to
   which it was set before.

Change-Id: Idb2b04b1b0bddb51cea9c5665847d04817a90aca
CRs-Fixed: 2949484
2021-07-13 16:40:16 -07:00
Madan Koyyalamudi
515a16d504 Release 2.0.8.21C
Release 2.0.8.21C

Change-Id: I0a25bce079ec4524a37a1cc96f76e646d46b464a
CRs-Fixed: 774533
2021-07-13 10:54:25 -07:00
Pragaspathi Thilagaraj
f82dd790ee qcacld-3.0: Update fils erp sequence number after roaming
Fils info is stored per vdev. In RSO scan mode command, in FILS
TLV, the next ERP sequence number to be used in the next FILS
connection is sent to firmware and is filled from the vdev fils
info. But after roam sych event is received, the erp sequence
number is not updated in the vdev fils info, causing FILS roaming
failure.

Update the fils erp sequence number to vdev fils info after
roaming.

Change-Id: Ibc624d9c4b0fc535c430881d3033169b002c8419
CRs-Fixed: 2988113
2021-07-13 17:48:21 +05:30
Madan Koyyalamudi
11947bae70 Release 2.0.8.21B
Release 2.0.8.21B

Change-Id: Ibe900c8d66011075271ffcdb538bdfcf7be91582
CRs-Fixed: 774533
2021-07-12 12:55:04 -07:00
Liangwei Dong
25e6803810 qcacld-3.0: Add more SAP mandatory channel frequency
According to new user request, add channel frequency 5745,
5765, 5785, 5805 to SAP mandatory channel list.

Change-Id: Icf1c96c07514f65a229e00d4330eaf0af5daa4ab
CRs-Fixed: 2987664
2021-07-11 16:07:03 -07:00
Madan Koyyalamudi
dc02215a2e Release 2.0.8.21A
Release 2.0.8.21A

Change-Id: I762fbfe21f5d2045b5328a7bc8eb0b93bd8035b7
CRs-Fixed: 774533
2021-07-09 14:00:12 -07:00
Vulupala Shashank Reddy
e86a3e3bf4 qcacld-3.0: Fix channel freq for EAPOL M1 in packet capture
Some times there is delay in update of channel freq in vdev
because of which M1 channel freq is zero during initial
connection.

Fill freq from msdu start from rx_pkt_tlv.

Change-Id: Ia0a8f61c9113fbe5bc3ad932dcb67111b86629af
CRs-Fixed: 2964512
2021-07-09 14:00:12 -07:00
Yu Wang
7ac6a3088b qcacld-3.0: remove delay_before_vdev_stop from wma_txrx_node
The delay before vdev stop is a global config,
no need to set for each interface separately.

Change-Id: I5760cf083a6749bb82cc88635a947f1d18308dfe
CRs-Fixed: 2904748
2021-07-09 14:00:06 -07:00
Madan Koyyalamudi
8428c92ff5 Release 2.0.8.21
Release 2.0.8.21

Change-Id: I0fbdab79c81584057c3cb134dc9216ba63677f6f
CRs-Fixed: 774533
2021-07-09 05:10:22 -07:00
sheenam monga
b530df3b54 qcacld-3.0: Don't send DS param IE for 6G band
Currently, host sends DS param to fw based on
channel number but channel number may be same
in case of 6G and 2G due to which IEs can be
included in case of 6G which is not required.

Fix is to send DS param based on freq to
avoid addition of IEs in case of 6G band.

Change-Id: Ib711731fda3cfb0117478e6b1e026f40639a7fbb
CRs-Fixed: 2942323
2021-07-08 22:04:16 -07:00
Madan Koyyalamudi
5169d6ca6c Release 2.0.8.20Z
Release 2.0.8.20Z

Change-Id: I9cb29a1a678ccff788fdb53f1b0a77b963bc57b8
CRs-Fixed: 774533
2021-07-08 11:10:04 -07:00
Vulupala Shashank Reddy
1bac876eff qcacld-3.0: Fix 6GHz channel freq for rx mgmt in packet capture
Fill freq received from FW directly.

Change-Id: I8a0470e6b22f8c9176586825691af160c6540348
CRs-Fixed: 2966863
2021-07-08 06:06:13 -07:00
Madan Koyyalamudi
0ae87ec883 Release 2.0.8.20Y
Release 2.0.8.20Y

Change-Id: Id2ee0504bb7cd58653e96372edc2adfde09fc788
CRs-Fixed: 774533
2021-07-07 23:08:48 -07:00
Liangwei Dong
006fa3ea70 qcacld-3.0: Use target BW 80Mhz for Pre CAC on 5G
At present the pre CAC is done based on original SAP's BW,
but usually the original SAP is on 2G and BW <= 40Mhz. The
requirement from user is to have higher BW on 5G. Hence, select
higher BW supported by SAP phymode to do pre CAC and move 2G
SAP to 5G pre CAC channel when pre CAC done successfully.
Also set the default MAX bw pre CAC to 80Mhz based on current user
request.

Change-Id: I3115da8eb649238da50b223c2587db96125ec813
CRs-Fixed: 2984084
2021-07-08 10:43:57 +08:00
Madan Koyyalamudi
177ca8e1a7 Release 2.0.8.20X
Release 2.0.8.20X

Change-Id: Ib5346c0da887b4673fae03b8d6f7c65ca6fd15d3
CRs-Fixed: 774533
2021-07-07 00:28:26 -07:00
Vevek Venkatesan
19e26bf064 Revert "qcacld-3.0: enable CONFIG_CLEAR_SW2TCL_CONSUMED_DESC support"
This reverts the change to do the memset of SW2TCL desc consumed by
HW to zero.

Change-Id: Ie56207cf483643f6e294df23f5445ca853a75d51
CRs-Fixed: 2984818
2021-07-07 00:28:25 -07:00
Madan Koyyalamudi
0d453a86dd Release 2.0.8.20W
Release 2.0.8.20W

Change-Id: I20dafc0e5b86d1724144d053dcc3e1fc22dc13ca
CRs-Fixed: 774533
2021-07-06 22:39:26 -07:00
Deeksha Gupta
082661a585 qcacld-3.0: update the BW correctly for SAP channel_switch
In wlansap_get_csa_chanwidth_from_phymode(), update the
channel width correctly incase when SAP starts on 2.4GHz
and channel switch happens on 5GHz channel with BW 80 MHz.
Currently host modify the BW according to the original BW
20MHz is incorrect, it should be changed to 80MHz.

Update the BW correctly, it should not be limited to orig BW.

Change-Id: I9baf89d89eeb6407c7cda931b332bced38cc2154
CRs-Fixed: 2974565
2021-07-06 22:39:26 -07:00
Madan Koyyalamudi
c4eccc928c Release 2.0.8.20V
Release 2.0.8.20V

Change-Id: I89ae116b3d417b401483b8284ca1ff210f1e138f
CRs-Fixed: 774533
2021-07-06 15:02:36 -07:00
Srinivas Dasari
728f758def qcacld-3.0: Let IOT APs recover by avoiding back to back DELBA
Station sends the BA and upgrades to the next possible BA window
size upon receiving all frames successfully from the current
window. Some IOT APs go out of sync from BA window size of the
station when AP fails to receive the BA sent from station. AP
transmits the frames again with previous window sequence number
and won't be ack'ed by station hardware as BA window has already
moved ahead. So, station deletes the upgraded BA and tries
to fallback.

Ideally, AP is supposed to consider the fact that "the previous
window transmission was successful when station upgrades to next
window size". But some APs take little longer time to
recover/upgrade to next window size. Don't delete the BA
immediately and have some tolerance(3 seconds) as the previous
negotiated BA just got deleted.

Change-Id: I6b277223f02dac521316cec20bd5d958785cc2e9
CRs-Fixed: 2970714
2021-07-06 15:02:36 -07:00
Vevek Venkatesan
e0d4866db6 qcacld-3.0: add DP reason code support for send_delba
Add DP reason code support for sending DELBA request,
so protocol layer can make decisions for special cases.

Change-Id: I4eeba3513820a98a15682190e40a06ce178d9441
CRs-Fixed: 2983544
2021-07-06 15:02:31 -07:00
Madan Koyyalamudi
3c9d2e49c3 Release 2.0.8.20U
Release 2.0.8.20U

Change-Id: I39aa7d40abdffa57eacb697adf2acb2141f0f7b5
CRs-Fixed: 774533
2021-07-06 09:40:04 -07:00