Commit graph

21,879 commits

Author SHA1 Message Date
Srinivas Girigowda
ddbb999cf4 qcacld-3.0: TWT: Return proper error code
Return proper error code.

Change-Id: I6aab99d9954516306404f39b21c8382f04751f94
CRs-Fixed: 2910910
2021-04-02 14:35:05 -07:00
snandini
a65bedb2c6 Release 2.0.8.14J
Release 2.0.8.14J

Change-Id: I35598feae7615a323c1b118708384e167d573c94
CRs-Fixed: 774533
2021-04-02 10:21:30 -07:00
Rajeev Kumar
41d927b4ac qcacld-3.0: Replace request_firmware by firmware_request_nowarn
Replace request_firmware by firmware_request_nowarn to avoid warning
message when the file is not found and sysfs fallback mechanism is
enabled if direct filesystem lookup fails.

Change-Id: Ia182bcf990144ac12434253144e772f6a0780cfe
CRs-Fixed: 2912035
2021-04-02 10:21:30 -07:00
snandini
9cfa6d3fb3 Release 2.0.8.14I
Release 2.0.8.14I

Change-Id: If7765e22ce8e0d3aa97b889da168b643785a1b12
CRs-Fixed: 774533
2021-04-02 04:34:25 -07:00
Vevek Venkatesan
586dabfad9 qcacld-3.0: add checks for deinit in ipa_register_ready_cb
Since stop_modules can happen in parallel due to idle shutdown,
add additional checks whether the IPA deinit happened already
or in-progress, in ipa_register_ready_cb.

Change-Id: Icc1973be3e90d4231addcebab55e621d19c5789c
CRs-Fixed: 2903419
2021-04-02 04:34:24 -07:00
Vevek Venkatesan
d03b22c36f qcacld-3.0: add CDS API to check if driver state module stop
Add a CDS API to check if the driver state is module stop and
also register for QDF wrapper for the same.

Change-Id: I99fbdda593ca229ef8db956c609735ae6509d511
CRs-Fixed: 2912747
2021-04-02 04:34:20 -07:00
snandini
949a755a70 Release 2.0.8.14H
Release 2.0.8.14H

Change-Id: Iffccd51fec00590018c5ab3b0af19a6b1db72070
CRs-Fixed: 774533
2021-04-02 02:19:58 -07:00
Manikanta Pubbisetty
9f905c47a3 qcacld-3.0: add pld API for disable_irq()
When the SRNG IRQs are disabled during suspend, it is
required to disable the interrupts and wait for interrupts
that are pending to complete. Adding a pld/pfrm API to disable
irq synchronously.

CRs-Fixed: 2908685
Change-Id: Ia1f17d54cbe08e8dc101c0ecc2ddee9275712659
2021-04-02 02:19:58 -07:00
snandini
567bfa00bf Release 2.0.8.14G
Release 2.0.8.14G

Change-Id: Ia5bdba2ba4fe31822d087186465d71f82ddac7bb
CRs-Fixed: 774533
2021-04-02 00:00:33 -07:00
Jingxiang Ge
93871ddbaa qcacld-3.0: Keep adapter->dev for netdev ref check
adapter->dev is used for get ref, issue happens
1  adapter is used to dev hold in thread_1
2  adapter is removed in thread_2 for interface
   delete, and adapter->dev is set to NULL in
   hdd_uninit.
3  thread_1 use adapter->dev for dev_put, then
   adapter->dev is invalid here.

As adapter->dev will be invalid only after dev_put,
so not set null adapter->dev in hdd_uninit in case
dev_put need it.

Change-Id: Id764a6ef15ef8fc4eae24a3f2428d8cec55716aa
CRs-Fixed: 2912285
2021-04-02 00:00:33 -07:00
snandini
41f8302ca8 Release 2.0.8.14F
Release 2.0.8.14F

Change-Id: I96558023eb711eb165dcbccc4a92fff591bbf54d
CRs-Fixed: 774533
2021-04-01 21:31:52 -07:00
Lin Bai
e522321181 qcacld-3.0: Disable STA power save before initiating disconnection
Target side STA PS module will only stop when WMI_VDEV_STOP
received, and QoS-null frame is possible to be sent in
the window from DEAUTH TX to WMI_VDEV_STOP.

Disable STA power save before disconnecting process,
to avoid QoS-null in such window.

Change-Id: I3f33fc7ab81f70c22218cd3cc5a4ba934c6bccae
2021-04-01 21:31:51 -07:00
snandini
563cb15a58 Release 2.0.8.14E
Release 2.0.8.14E

Change-Id: Ibee47fbacaf3c311c0b1c483f84b6b2d05b53295
CRs-Fixed: 774533
2021-04-01 11:50:44 -07:00
Lincoln Tran
9c2715c7cc qcacld-3.0: Expand the regulatory update critical section
Currently, host exits the regulatory update critical section as soon
as hdd_regulatory_dyn_cbk finishes. However, there is some work that
is scheduled to send the updated scan channel list to FW, which needs
to go inside the critical section as well. Move the logic to exit the
critical section after host sends the channel list.

Change-Id: I01f82232bdd4d4b3403f46dee5278fc74d50b05a
CRs-fixed: 2905643
2021-04-01 11:50:44 -07:00
Deeksha Gupta
221b44606e qcacld-3.0: Iterate till nth adapter in hdd_adapter_iterate()
Currently,there is an issue in hdd_adapter_iterator(), as it
is iterate till (n-1)th adapter. Due to this, in STA+STA+P2P
scenario, driver allows wlan0 scan when P2P connection in
progress as hdd_is_connection_in_progress() only check for
STA mode and miss the P2P mode.

Iterate till nth adapter as a fix.

Change-Id: Ia6e49b3a8372634756e89032ee9d599583160479
CRs-Fixed: 2907307
2021-04-01 11:50:40 -07:00
snandini
ba007a53a3 Release 2.0.8.14D
Release 2.0.8.14D

Change-Id: Ic1e0bf6258a1d2a8415b068eec53a677241a7ab8
CRs-Fixed: 774533
2021-04-01 09:42:40 -07:00
Deeksha Gupta
b729f073fc qcacld-3.0: Allow only one twt statistics and clear statistics command
Don't allow twt statistics or clear statistics command
if twt statistics or clear statistics is in_progress.

As a Fix, reject the new twt statistic or clear statistic
command till existing twt statistic or clear statistic
command completion.

Change-Id: I710a81ae3409f181689b2e4c9e9d4e583d4aadab
CRs-Fixed: 2870592
2021-04-01 09:42:40 -07:00
Deeksha Gupta
f87d3036a7 qcacld-3.0: Block the TWT setup till notify event is received
Currently, TWT setup is allowed after roaming even if
TWT notify from firmware is not received.

Block the TWT setup till notify event is received
from firmware.

Change-Id: Ia6ff8fe9e05f32ddf6dbdd608d9090b612237f26
CRs-Fixed: 2870610
2021-04-01 09:42:35 -07:00
snandini
a7b932e110 Release 2.0.8.14C
Release 2.0.8.14C

Change-Id: I668488c89d18ce634fb28157d2d4c764c29767d3
CRs-Fixed: 774533
2021-04-01 07:27:52 -07:00
abhinav kumar
dc2960be8c qcacld-3.0: Configure proper default scan mode while roaming
Currently, host configures scan mode as ROAM_TRIGGER_SCAN_MODE_PARTIAL
instead of ROAM_TRIGGER_SCAN_MODE_NONE via
WMI_ROAM_ENABLE_DISABLE_TRIGGER_REASON_CMDID command for below roam
reasons:
WMI_ROAM_TRIGGER_REASON_BSS_LOAD
WMI_ROAM_TRIGGER_REASON_BTM
WMI_ROAM_TRIGGER_REASON_LOW_RSSI
WMI_ROAM_TRIGGER_REASON_BMISS
WMI_ROAM_TRIGGER_REASON_PER
WMI_ROAM_TRIGGER_REASON_PMK_TIMEOUT

Fix is to send proper by-default scan mode while roaming.

Change-Id: I60999c1c0f1068417aed54bcb49d16cfaed135d5
CRs-Fixed: 2907413
2021-04-01 07:27:52 -07:00
snandini
2992a0ab82 Release 2.0.8.14B
Release 2.0.8.14B

Change-Id: I15a66620fe34a36f4e7c3b24e3eb92562557e63b
CRs-Fixed: 774533
2021-04-01 03:45:30 -07:00
Yu Wang
c6d22684e7 qcacld-3.0: protect the reject ap list with mutex lock
Any operation on the reject ap list should be protected
by the mutex lock, otherwise, race condition may happen
and result in list corruption.

Change-Id: Iefe0594a62563d800e85f8f6ebd747ab46c19fcf
CRs-Fixed: 2901576
2021-04-01 03:45:30 -07:00
snandini
2bb9321aa9 Release 2.0.8.14A
Release 2.0.8.14A

Change-Id: I609990b8dd1d00aee5cdc7e8bd0f2eea38bdbdd5
CRs-Fixed: 774533
2021-03-31 13:16:22 -07:00
Yeshwanth Sriram Guntuka
7108fe3ca7 qcacld-3.0: Set system suspend/resume state in hif ctx
Set system state in hif ctx to suspend or resume on
system suspend and resume respectively.

Change-Id: If1904a4fe5c861deed1b35071be10cb8cc8d6407
CRs-Fixed: 2899520
2021-03-31 13:16:22 -07:00
snandini
10a966aa54 Release 2.0.8.14
Release 2.0.8.14

Change-Id: I3475fd6896ee4da3082fa6738ec393a5e12becfa
CRs-Fixed: 774533
2021-03-30 11:53:35 -07:00
Pragaspathi Thilagaraj
f5107588de qcacld-3.0: Populate the missing extended capabilities in SET IE
In Extended capabilities sent in assoc request, TWT capabilities
are included so 10 octets are present, but in set ie command,
only 9 octets are included.
Also the Beamformee STS <= 80Mhz capability is not populated
per band based on firmware advertised capability in the
set per band ie command, so there is mismatch in this field in
initial association and roaming.

Populate the missing bytes in IE sent via set ie command to
firmware, also update the beamformee sts capability per band.

Change-Id: I2d191cedface935970ed4f974c09c3b4c5acd477
CRs-Fixed: 2891017
2021-03-30 11:53:35 -07:00
Utkarsh Bhatnagar
3e70c71cb1 qcacld-3.0: Fix TDLS teardown issue
TDLS teardown happens in high throughput
scenario as rx pkt count increment API
"tdls_update_rx_pkt_cnt" is not called
if hdd_is_current_high_throughput API
returns TRUE. The reason for this is due
to high cpu cycles consumed by
tdls_update_rx_pkt_cnt API.
As part of fix optimize tdls_update_rx_pkt_cnt,
tdls_update_tx_pkt_cnt API's for high
throughput scenario. In high throughput
scenario mostly the use-case is to increment
the pkt counter so move that logic to
the top of the API's.

Change-Id: I4eb0da3571c45b5ee91e051e251158af15f73973
CRs-Fixed: 2888746
2021-03-30 11:53:31 -07:00
Deeksha Gupta
aa24ae5b1b qcacld-3.0: Support P2P in 6GHz mode
Currently, P2P mode is not supported in 6GHz mode

Add P2P mode in policy_mgr_is_6ghz_conc_mode_supported
API to support P2P mode in 6GHz mode as fix this.

Change-Id: I2e160641c1784dbbd592b237da6b38929f33abbe
CRs-Fixed: 2896291
2021-03-30 11:53:26 -07:00
snandini
cde4225641 Release 2.0.8.13Z
Release 2.0.8.13Z

Change-Id: I6c72a9f90c32c039c6298e78b4a883f6aaa1b3d9
CRs-Fixed: 774533
2021-03-30 04:28:07 -07:00
sheenam monga
28f9331433 qcacld-3.0: Print string format for reject ap type
Update reject ap type to string from int value while
dumping blacklisted bssid for debugging purpose.

Change-Id: I2a12949e9e46f6fad32cc54ac975dfbfbdba88ab
CRs-Fixed: 2857907
2021-03-30 04:28:07 -07:00
sheenam monga
622b4795a1 qcacld-3.0: Dump blacklist bssids
Add dump to print blacklisted bssids
with reason code and source.

Change-Id: I85734ad5aea0c8088e3f8ed2bdbb31971457942d
CRs-Fixed: 2849487
2021-03-30 04:28:02 -07:00
Pragaspathi Thilagaraj
218363cf69 qcacld-3.0: Add new ini to disable TWT in 2.4Ghz connection
Add new ini "enable_twt_24ghz" to enable/disable host triggered
TWT in 2.4Ghz connection. Check this ini value in TWT get
capability. The userspace will query the self capability before
triggering the host TWT.

Change-Id: I3544de89f438fc526f8a2554c6aeebcd25d6c415
CRs-Fixed: 2904775
2021-03-30 04:27:58 -07:00
snandini
5895af1c63 Release 2.0.8.13Y
Release 2.0.8.13Y

Change-Id: I1be6c9a764e6da8fb0d87fba18268fa3b507f3d5
CRs-Fixed: 774533
2021-03-30 02:13:48 -07:00
Utkarsh Bhatnagar
034978b624 qcacld-3.0: Fix TDLS ax throughput issue
When TDLS connection is made in 160 MHZ
for 11ax staions, the MCS rates for the
same aren't updated correctly.
Also, MCS rate can change in case the
connection between both stations is made
with AP operating in NSS 1x1, as there is
a check in lim_populate_he_mcs_set which
will disable MCS rates corresponding to
nss > 1x1.

To fix this, copy 160 MHZ mcs from the
staion parameters which gets updated in
change station. Also, use nss parameter
which is passed by lim_populate_he_mcs_set()
in the check which was used to disable mcs
rates corresponding to nss > 1x1. Thus,
peer station nss will be used to
determine whether to disable or not.

Change-Id: I23079aed3795202e6ae32583a220c1ed3227c1dd
CRs-Fixed: 2904540
2021-03-30 02:13:48 -07:00
Pragaspathi Thilagaraj
6a44405bb1 qcacld-3.0: Handle TWT teardown with new reason code
Firmware sends TWT teardown with status code
WMI_DEL_TWT_STATUS_CONCURRENT_SESSION when a concurrent connection
is established. Currently host driver drops this event as the
status code is not WMI_DEL_TWT_STATUS_ROAMING_INITIATED or
WMI_DEL_TWT_STATUS_PEER_INITIATED.

Add support to handle TWT teardown event with
WMI_DEL_TWT_STATUS_CONCURRENT_SESSION status code.

Change-Id: I408ba960924b4daa1ca4f8337d7e0d1ce52c5fd9
CRs-Fixed: 2899563
2021-03-30 02:13:43 -07:00
snandini
ed40b9000e Release 2.0.8.13X
Release 2.0.8.13X

Change-Id: I56e54fbfe02453f26e3f719197fc23ec7679cb9a
CRs-Fixed: 774533
2021-03-29 15:19:28 -07:00
Liangwei Dong
ba9abf85a5 qcacld-3.0: Fix invalid frequency in CSA
API sap_indicate_radar needs to return sap current
frequency instead of channel.

Change-Id: I62a4aae0604b11587a14d17d4c641262b8019ab3
CRs-Fixed: 2900489
2021-03-28 22:11:32 -07:00
snandini
2ceae1d5b4 Release 2.0.8.13W
Release 2.0.8.13W

Change-Id: I51bbb720ffd462c7b27fe909eb4ae498199faabc
CRs-Fixed: 774533
2021-03-28 22:01:37 -07:00
Liangwei Dong
acd5737e2d qcacld-3.0: set sap qdf_event event after channel switch
Some SAP channel switch requestor will wait for channel switch
completion. Set sap qdf_event after sap hdd callback recevies
eSAP_CHANNEL_CHANGE_RESP.

Change-Id: I15e0733ac2bef6af55e02ff18f94cc2c86eb9811
CRs-Fixed: 2905918
2021-03-28 18:46:30 -07:00
snandini
f403ef350d Release 2.0.8.13V
Release 2.0.8.13V

Change-Id: I8e9f0985c7c74a2ab36727a9677852b920fa28af
CRs-Fixed: 774533
2021-03-26 13:42:49 -07:00
Jianmin Zhu
faa9af44a3 qcacld-3.0: Remove btm cap in SAE assoc req if SAE roaming disabled
Some legacy Helium firmware doesn't support SAE roaming, but btm cap is set
in associate request of DUT, then connected SAE AP thinks DUT supports btm,
AP will send btm request to DUT, DUT triggers roaming, but fails and
disconnects from current AP, users will complain this unexpected
disconnect.

Change-Id: Ife9860addef6898a518618f555158e7888ac74db
CRs-Fixed: 2884694
2021-03-26 13:42:48 -07:00
snandini
24de7c4eb0 Release 2.0.8.13U
Release 2.0.8.13U

Change-Id: Ia0e5396c96699bc218a7d5d97bd9f8c1e0ca30fd
CRs-Fixed: 774533
2021-03-26 09:30:45 -07:00
Srinivas Dasari
4aa3294500 qcacld-3.0: Wait for RSO stop response only if roaming is enabled
When host driver receives RSO_STOP from userspace, HDD sends the
RSO_STOP down to lower layers and starts a wait for response upon
success status.
Below layers(connection mgr/CSR) ignore the RSO_STOP request and
return success if the current state is not RSO_ENABLED or
IN_PROGRESS. This keeps the HDD waiting for response and a timeout
happens after 2 seconds.
So, wait for RSO stop response only if roaming is in enabled state
to avoid this wait and timeout.

Change-Id: I3ed81c5da26ebe05d17fc37dc43665f1f7b7c8b2
CRs-Fixed: 2901494
2021-03-26 09:30:44 -07:00
snandini
aa555765cf Release 2.0.8.13T
Release 2.0.8.13T

Change-Id: I116f30a12646bf59d75a07951400f37e068402b6
CRs-Fixed: 774533
2021-03-26 03:42:59 -07:00
Jingxiang Ge
ed682c0d9d qcacld-3.0: Add detection for tasklet delay
This is to enable feature for detection CE tasklet
scheduling delay and credit response delay issue.

Change-Id: I659aa23eabaa28bfb11051bf15e0343c94061b86
CRs-Fixed: 2874867
2021-03-26 03:42:58 -07:00
snandini
c063b59799 Release 2.0.8.13S
Release 2.0.8.13S

Change-Id: Ic0219756fd77f4d4e29c055154de6845f9713f5f
CRs-Fixed: 774533
2021-03-25 23:29:07 -07:00
Deeksha Gupta
10b1959cc8 qcacld-3.0: Remove radar event if dfs_channel_switch is disable
Currently, DUT is able to detect the radar event
causing channel switch even if disable dfs channel
switch ini is set. Due to this, there is a chance
of unwanted CSA.

Adding check for disable dfs channel switch ini before
detecting the radar. If gDisableDFSChSwitch = 0 then
detect the radar event else ignore the radar event.

Change-Id: I977d93e47ee35026662d55a8e292c8790ddc7d31
CRs-Fixed: 2905871
2021-03-25 23:29:07 -07:00
Vevek Venkatesan
6d5575e828 qcacld-3.0: iface connection/disconnection mgmt in IPA
Debug change to crash if there is a mismatch in number of
connections and disconnections

Change-Id: I1bb9cac331c0cb491a0ba761a78969537185e414
CRs-Fixed: 2870628
2021-03-25 23:29:03 -07:00
snandini
e74c823e47 Release 2.0.8.13R
Release 2.0.8.13R

Change-Id: Ie4df42db5a712d7a76c00aba64471611507a46bc
CRs-Fixed: 774533
2021-03-24 19:24:27 -07:00
Lincoln Tran
3d1997b6e2 Revert "qcacld-3.0: Send TxBF in NAN case"
This function call is not needed because the capabilities
are being sent post vdev start correctly. The call here sends
the capabilities incorrectly at a later time so the good
values are overwritten.

This reverts change I32af660724cfaecfe59da153fea9f98d24b0d4cb.

Change-Id: Ie57a598f1055ee6a3d5a5f9cd353724dc620ab1d
CRs-fixed: 2905402
2021-03-24 19:24:27 -07:00