Commit graph

22,380 commits

Author SHA1 Message Date
abhinav kumar
bd1641c16f qcacld-3.0: SAP not following STA channel
With below INI configuration, SAP is not following the STA
channel. It's forming STA + SAP MCC instead of Forced SCC.
1. gWlanMccToSccSwitchMode = 4
   (QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE)
2. gEnableSAPManadatoryChanList=1

When channel switch mode is
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE and if STA
is on 5ghz and SAP also comes on 5ghz then driver considers
the HW mode as DBS capable and it allows SAP to form
MCC which is not favorable.

For non_DBS target, the fix is to allow SAP to
do force SCC if the channel switch mode is
MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNE.

Change-Id: I4b945dc1831909caff72f8398c959f4450765f2b
CRs-Fixed: 2972273
2021-07-26 05:12:10 -07:00
Madan Koyyalamudi
4218c7e968 Release 2.0.8.21T
Release 2.0.8.21T

Change-Id: I8bb016f4a2427101fa393cac29504ee254312db1
CRs-Fixed: 774533
2021-07-25 23:02:04 -07:00
Yeshwanth Sriram Guntuka
86cdedd5e0 qcacld-3.0: Enable flag to skip MSI cfg for mon rings
Enable config flag to skip MSI configuration for
monitor status and destination rings in MISSION
mode.

Change-Id: If295a5afc6731bbec1ad7182590e0015f3a911ba
CRs-Fixed: 2992169
2021-07-25 23:02:03 -07:00
Madan Koyyalamudi
4de6d51250 Release 2.0.8.21S
Release 2.0.8.21S

Change-Id: I43ef126aeae8b5a5a1163e102c4ce4b3dcbc0706
CRs-Fixed: 774533
2021-07-24 12:57:52 -07:00
Jia Ding
2e58b983dc qcacld-3.0: Enable to parse user configured edca params
Currently only default values of local edca params are used for
WME and ETSI profiles. Therefore expose them as INI config options
so that driver is able to parse user configured edca params used
locally by SAP.

Change-Id: I81759570160a67e26f68501576d71a5fd3568cd7
CRs-Fixed: 2976143
2021-07-24 12:57:52 -07:00
Madan Koyyalamudi
10b319d465 Release 2.0.8.21R
Release 2.0.8.21R

Change-Id: Ib9781fafd1486b5b3438c4363c44e25585df8691
CRs-Fixed: 774533
2021-07-24 02:10:36 -07:00
Jianmin Zhu
d6ce9875c0 qcacld-3.0: Don't compare original value when set tx max power
For STA+P2P concurrency case, once p2p disconnect, STA max tx power is
updated in F/W too per SAR by design,  app can't correct it since reconfig
same max tx power as original is refused by driver.

Fix by not comparing cached max tx power for each vdev in driver when set
max tx power, can set same value as original again to F/W directly.

Change-Id: Ic417946006f07be40aa34f1dc022d7fb5c4aa213
CRs-Fixed: 2996316
2021-07-24 02:10:36 -07:00
Madan Koyyalamudi
62e8a64831 Release 2.0.8.21Q
Release 2.0.8.21Q

Change-Id: Ib65169a9af683a88d319471b933bc2f1751f4b0a
CRs-Fixed: 774533
2021-07-23 20:21:15 -07:00
Ashish Kumar Dhanotiya
07a4b80777 qcacld-3.0: Add synchronizatoin for flush log completion
Currently there is no synchronization for flush log completion
between fw and userspace. When host driver receives command to
flush logs, it sends the command to fw and releases the control
of the userspace thread, it does not wait for the flush log
completion event from the fw and because of which user space
does not know when the host and fw completes the log flush.

To address above issue add a logic to wait for fw event of
flush log completion before host returns control to userspace.

Change-Id: I04fa0aead146d2b7b8627e4101c6dcd99d3947e9
CRs-Fixed: 2983375
2021-07-23 20:21:14 -07:00
Madan Koyyalamudi
2b679e3ec7 Release 2.0.8.21P
Release 2.0.8.21P

Change-Id: I6e3c03b0760204c4df16d471bc71c5c766e821a8
CRs-Fixed: 774533
2021-07-23 14:38:28 -07:00
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