Commit graph

21,112 commits

Author SHA1 Message Date
snandini
5e98fc6932 Release 2.0.8.1M
Release 2.0.8.1M

Change-Id: I3c110689c0454d9ccbf87a24bd464a9820d58bd6
CRs-Fixed: 774533
2020-10-13 17:14:25 -07:00
Alan Chen
223fa9ed83 qcacld-3.0: Remove gOclCfg ini
gOclCfg is no longer supported and is being overwritten by
FW init config. Thus, remove gOclCfg ini from code.

Change-Id: Idf4d5280043a47650a68dc2159c386d94b0be5e9
CRs-Fixed: 2791392
2020-10-13 17:14:25 -07:00
snandini
1e40bc0d43 Release 2.0.8.1L
Release 2.0.8.1L

Change-Id: I0b9fc62cd59d72092113cad3ae2fa4cfca623a36
CRs-Fixed: 774533
2020-10-13 15:11:56 -07:00
Srinivas Dasari
5c045f4e3c qcacld-3.0: Don't delete hw_filter for NDI mode
Hardware filters are supported for STA and P2P client modes only.
It's not supported/configured for NDI mode but the
WMI_HW_DATA_FILTER_CMDID is sent to firmware with disable flag
to flush the filter. Avoid sending it for NDI vdev.

Change-Id: I34d87a4d00138386affcedecd20b7ccc90fbd05e
CRs-Fixed: 2795980
2020-10-13 10:29:26 -07:00
snandini
0e77401054 Release 2.0.8.1K
Release 2.0.8.1K

Change-Id: Ic6a08e5ba646f34759934a476b046674422fe3ec
CRs-Fixed: 774533
2020-10-13 05:17:01 -07:00
Srinivas Dasari
3b51b87b4e qcacld-3.0: Fetch vdev from psoc in TDLS handlers
Currently, if the TDLS timer expires while the scheduler thread
is processing something(e.g., station vdev destroy), the handler
would be in wait queue and it gets called once the scheduler
thread is done with its current task(i.e., vdev deletion).
TDLS handler tries to use the vdev even it has just got freed,
which leads to use-after-free.
This happens because of the below,
1. vdev destroy notification has no knowledge of the TDLS timer
   expiry as timer_stop is used to stop the timer.
2. vdev is passed to TDLS handler as part of registration.

Fix:
1. Use timer_stop_sync in vdev_destroy_notification to make
   sure the handler is posted to scheduler thread if the timer
   had expired.
2. Get the vdev in handler from psoc instead of passing it to
   the timer handler. This can make sure the vdev is referred
   only if it exists.

Change-Id: I186fd0d44b2364ebb375a8445dd1239368543e7b
CRs-Fixed: 2792020
2020-10-13 05:17:01 -07:00
snandini
bf8ed946dd Release 2.0.8.1J
Release 2.0.8.1J

Change-Id: Ie63730965dbbd076a6ae9d5cfdcbf5205baea86c
CRs-Fixed: 774533
2020-10-12 18:12:51 -07:00
Abhishek Ambure
53b29b0718 qcacld-3.0: Add OCI IE in SA query response
In SAP mode host checks OCV capability in self rsn capability and
peers rsn capability. If both self and peer are OCV enabled, then
host adds OCI IE in SA Query response.
Thus OCV enabled STA successfully connects to host(SAP) if OCV is
enabled.

Change-Id: Id9973f0b915c9aa7c4214165deafc081f5a7cb20
CRs-Fixed: 2789921
2020-10-12 18:12:50 -07:00
snandini
11c140f757 Release 2.0.8.1I
Release 2.0.8.1I

Change-Id: I49cd2b76a68fdd4191ffe8d6b7e7f368939078ca
CRs-Fixed: 774533
2020-10-12 13:32:00 -07:00
Alan Chen
d2bcfc241e qcacld-3.0: Use sync API for target assert and dump collection
In internal builds, to catch all fw timeout issues, host-initiated
self-recovery is not enabled. To avoid a race between cld driver
triggering assert and RDDM dump collection, use the CNSS-provided
sync API, which guarantees target assert and dump collection before
returning.

Change-Id: Ib702bfa17616a100913f501f850d5c0b74ad39bb
CRs-Fixed: 2790271
2020-10-12 13:32:00 -07:00
snandini
b5fdad2678 Release 2.0.8.1H
Release 2.0.8.1H

Change-Id: I66f0adc2b096c0eed40fd383d37f7c6a1bfceb61
CRs-Fixed: 774533
2020-10-12 11:20:25 -07:00
Abdul Muqtadeer Ahmed
34d35e9e2c qcacld-3.0: Change the default value of ini param nan_feature_config
Set nan_feature_config default as 0 from 1 in INI to have DW interval for
NMNS mode when device goes to suspend mode.

Change-Id: Ib0044ca36cba570f51edcc0006f8e54c55d673d3
CRs-Fixed: 2776238
2020-10-12 11:20:25 -07:00
snandini
56fd773015 Release 2.0.8.1G
Release 2.0.8.1G

Change-Id: I52da523a39ffa8527ee9243456513c5132128d8e
CRs-Fixed: 774533
2020-10-12 03:33:58 -07:00
Bapiraju Alla
ae8744b105 qcacld-3.0: Send unified ll_stats and get_station request over qmi
Send unified ll_stats and get_stats request over qmi based on INI
configuration.

Change-Id: I0c8f9e6ccb7a4a1588a8086c610ab29f58dfdcd7
CRs-Fixed: 2791039
2020-10-12 03:33:57 -07:00
snandini
36ffdabaf5 Release 2.0.8.1F
Release 2.0.8.1F

Change-Id: I0e8a9dc9294f6af14830ee07acf45400776e43f1
CRs-Fixed: 774533
2020-10-12 01:29:38 -07:00
Yeshwanth Sriram Guntuka
c7b522a93f qcacld-3.0: Skip fisa for multicast or broadcast pkts
MC/BC packets are received with lro_eligible set to 1
in rx_pkt_rlvs. MC/BC packets are routed to firmware
and then re-injected back to REO. FW might modify
the reo_destination_indication in the descriptor which
can cause same flow packets to be received on different
REO2SW rings.

Fix is to skip fisa for multicast or broadcast packets.

Change-Id: If2ab7e3cbdf7839cfd0a4f1e5bf9da4712debc9b
CRs-Fixed: 2793877
2020-10-12 01:29:38 -07:00
Vevek Venkatesan
a53a423957 qcacld-3.0: fix the error in smmu_enable conditional check
Fix the error in smmu_enable condition check for IPA Tx buffer
and also add the flag to mark smmu map/unmap.

Change-Id: I1a9b768c6f17a76b7a857367f342ffbe82e48379
CRs-Fixed: 2793156
2020-10-11 21:30:42 -07:00
snandini
ae757c4e3b Release 2.0.8.1E
Release 2.0.8.1E

Change-Id: I20db448d1298e0095a417d877add29290632a230
CRs-Fixed: 774533
2020-10-10 17:18:12 -07:00
Bapiraju Alla
7d21e81aae qcacld-3.0: Add support for dynamic dwell time in 6G
Currently, there is no provision for dynamic dwell time control in 6G.

Update existing driver commands SETDWELLTIME and GETDWELLTIME to
support 6G.

Change-Id: Ib9503d568ecefe993c37f28eb9de7024ffdc3e43
CRs-Fixed: 2789714
2020-10-10 12:44:58 -07:00
snandini
4d58823d92 Release 2.0.8.1D
Release 2.0.8.1D

Change-Id: I922899fc596c55ab09190eb013f5951bd8e7be7e
CRs-Fixed: 774533
2020-10-10 02:02:11 -07:00
Alan Chen
cf9f033d8f qcacld-3.0: Add a mod DTIM on system suspend flag
If the INI item enable_mod_dtim_on_system_suspend is set, then
set the bit WMI_WOW_FLAG_MOD_DTIM_ON_SYS_SUSPEND in wow flag
parameter.

Change-Id: I15a717bd5f5532dd2c8a6e27e5df8c28965da062
CRs-Fixed: 2789161
2020-10-10 02:02:11 -07:00
snandini
ca5ce8b6f6 Release 2.0.8.1C
Release 2.0.8.1C

Change-Id: I7dd920149a1590716afc0673a723ac3b2f1060dd
CRs-Fixed: 774533
2020-10-09 23:57:32 -07:00
Abhinav Kumar
93b889498a qcacld-3.0: Trigger MSCS action frame
Add logic to send MSCS action frame to AP based on
voice tx packet.

Change-Id: I272addfcb60e459043426950d00ba5957b594505
CRs-Fixed: 2791796
2020-10-09 23:57:31 -07:00
Abhinav Kumar
f191257b44 qcacld-3.0: Add support to send MSCS Request frames
Add support to send MSCS add/change/remove types of Action frames
to the connected AP.

Change-Id: I12c28700007302fd1b1ff22edd23edb98c3bc144
CRs-Fixed: 2791794
2020-10-09 23:57:27 -07:00
Sachin Ahuja
19cae30b59 qcacld-3.0: Don't set adapter dev to NULL in hostapd unint
With the existing design the panic is seen with the below
scenario.
1) As a part of country change, driver takes the dev_hold and proceed
   with the adapter access.
2) In another thread, del virtual iface is called which calls the
   unregister netdev. This kernel API(unregister netdev) calls the
   hdd_hostapd_unint where the adapter->dev is set to NULL. After
   this  unregister_netdev waits for the dev_put as driver has
   taken the dev_hold in 1). Till this dev_put happens
   unregister_netdev will wait.
3) Once the adapter access is completed as a part of 1), driver
   does the dev_put with the pointer dev which is made as NULL in 2).

To avoid this crash, don't set the adapter->dev to NULL in
hostapd unint.

CRs-Fixed: 2791420
Change-Id: I1f6252a44c061b697c8d640c5558350e91a47442
2020-10-09 23:57:24 -07:00
Ananya Gupta
b7b7ae7dd5 qcacld-3.0: Enabling RPS for STA in STA+SAP mode
In STA+SAP mode, RPS is enabled only for SAP interface and
not for STA interface resulting in low throughput as STA RX
will also take the IPA path.
To fix this, enable/disable RPS when SAP is turned on/off
when IPA is enabled

Change-Id: I67c0da2fbbb43bd7b34969bbb05c1127e60d5673
CRs-Fixed: 2783136
2020-10-09 23:57:20 -07:00
Deeksha Gupta
1ce226ddc2 qcacld-3.0: Enable the Partial scan for roam triggers
Currently the roam scan scheme for each trigger is hardcoded to
either full scan or partial scan followed by full scan. Based on
the new requirement for home scenario,the user space configures
roam scan scheme for various triggers. Add support to send scan
scheme type for indvidual roam triggers enabled from userspace.
The default value of roam scan scheme can be modifed for
below roam triggers:
WMI_ROAM_TRIGGER_REASON_PER,WMI_ROAM_TRIGGER_REASON_BMISS,
WMI_ROAM_TRIGGER_REASON_LOW_RSSI,WMI_ROAM_TRIGGER_REASON_BSS_LOAD,
WMI_ROAM_TRIGGER_REASON_BTM

Change-Id: If8b185897b813afc44af362d31172705ea4d7b5c
CRs-Fixed: 2785233
2020-10-09 20:43:03 -07:00
Pragaspathi Thilagaraj
ad6d98c863 qcacld-3.0: Add support to send roam scan scheme for the triggers
Add support to handle the nl80211 attribute -
QCA_ATTR_ROAM_CONTROL_TRIGGERS_SCAN_SCHEME. Send RSO update to
firmware if roam scan scheme value is received via the nl80211
attribute QCA_ATTR_ROAM_CONTROL_TRIGGERS_SCAN_SCHEME over the
QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD subcommand.

Change-Id: If21281245097648380990b9218a722691279f598
CRs-Fixed: 2785256
2020-10-09 20:40:54 -07:00
snandini
c67368f0c4 Release 2.0.8.1B
Release 2.0.8.1B

Change-Id: Ic202b0eb1707cdaa12f7a561f7d561aaf0ab1a85
CRs-Fixed: 774533
2020-10-09 17:38:17 -07:00
Abhishek Ambure
1d44c2f944 qcacld-3.0: Add support to send wfa test config to FW
User sends wfa test configs to host using vendor command
QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Host parses the
vendor command and sends wfa test configs to FW using WMI command
i.e. WMI_WFA_CONFIG_CMDID

Change-Id: I5aa0bc8b0a0064828b48368e47d53a5ad5e7ff2f
CRs-Fixed: 2772013
2020-10-08 22:58:43 -07:00
snandini
4bbf4970bf Release 2.0.8.1A
Release 2.0.8.1A

Change-Id: I357e7ebbba5912837e75eb25439a6774f1746e9a
CRs-Fixed: 774533
2020-10-08 17:41:56 -07:00
Jinwei Chen
636d71a5fa qcacld-3.0: Debug same FISA flow frames ring mismatch issue
If same FISA flow frames goes into different REO2SW rings, this will
introduce unexpected FISA behavior result in different issue.
Add assert for DEF build to catch this issue early then easy to
debug further, for PERF build, stop FISA aggregation if REO2SW ring
mismatch happened.

Change-Id: I5320133a9b289fe63a727ac2a5cf4c7c19c19224
CRs-Fixed: 2785871
2020-10-08 17:41:55 -07:00
Pragaspathi Thilagaraj
2f2b74ef06 qcacld-3.0: Fix RSN not included in FILS connection
When the FILS erp keys are available, the RSN IE is
not included in the assoc request as the function
lim_update_fils_config() returns always if rrk_length is
non zero. Fix this to return only if malloc fails.

Also add additional debugs for RSN IE not included in FILS
authentication frame and remove call to
wlan_cm_update_mlme_fils_connection_info() from
update_profile_fils_info().

Change-Id: I75cc1b04c2fdcbf3e7c55dfac41254a2378233bb
CRs-Fixed: 2789793
2020-10-08 17:41:52 -07:00
Rajasekaran Kalidoss
e1a9cf1652 qcacld-3.0: Handle new status code for already suspended TWT session
Firmware sends a new status code to indicate an already suspended
TWT session. Handle this error code and return
QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED to userspace.

CRs-Fixed: 2786986
Change-Id: I7111128c908c14058e5ed0ef94c2eabc778d38bb
2020-10-08 17:41:48 -07:00
Pragaspathi Thilagaraj
effdeb767a qcacld-3.0: Fix lim deferred messages not getting processed
When channel Switch is happening and north bound disconnect is
also initiated at same time before vdev restart response is
received, the disconnect command will be activated by serialization
module but the eWNI_SME_DEAUTH_REQ message to lim was deferred.
The deferred message queue at lim was not processed as there was
no wmi command response received.

So process the deferred messages after the gLimProcessDefdMsgs
is set to 1.

Change-Id: I8200407663857349ea2eef0924fe1c345fab8028
CRs-Fixed: 2789632
2020-10-08 17:41:44 -07:00
Utkarsh Bhatnagar
d37b85db74 qcacld-3.0: Remove HIDDEN_SSID_RESTART_RSP msg type
Remove SIR_HAL_HIDDEN_SSID_RESTART_RSP and
WMA_HIDDEN_SSID_RESTART_RSP as they aren't used
anywhere.

Change-Id: I89b70786cfc40ad7c781d3ad7e058edcaadfa127
CRs-Fixed: 2791880
2020-10-08 17:41:40 -07:00
Utkarsh Bhatnagar
88ddf92b88 qcacld-3.0: change HAL msg type macros to enum
The HAL msg type that were defined as macros are converted
to enum halmsgtype. This is done as it is difficult to parse
macros directly in any post processing script.
Since, driver maintains a global list of messages (qdf trace)
which different modules posts to each other. For processing
these list of messages in a common post processing script,
it is required to convert the macros to enum as enum are
easy to process in the script.

Change-Id: I3938ff02a54a2fca9e831ea1f8d9389e8b54df01
CRs-Fixed: 2719659
2020-10-08 17:41:36 -07:00
gaurank kathpalia
433251a0df qcacld-3.0: Update BW in case of 2.4ghz ACS
The ini gChannelBondingMode24GHz specifies
that should the driver go for 40Mhz BW
in case of 2.4ghz or not by doing channel
bonding. If disabled (value 0) then driver
is supposed not to pick up 40Mhz for 2.4ghz
channels.
Currently in ACS request if there are 2.4ghz
channels only or in other sceanrios such as
concurrency where other channels are stripped
out, there may become a case where only 2.4ghz
are left out in the freq list which comes from
hostapd, the BW is not updated accordingly and
the results for ACS may still give the BW as 40
in case of 2.4ghz channel selection.

Fix is to modify the BW according to the ini
if there are only 2.4ghz frequencies present
so that driver limits the same while informing
the best channel to the hostapd.

Change-Id: Ib49726bf5e4245a63a696e41fee1d12d9a7a7909
CRs-Fixed: 2789358
2020-10-08 17:41:32 -07:00
Bapiraju Alla
f4de13c27c qcacld-3.0: Update default value for gFwDebugModuleLoglevel INI param
Enable firmware debug logs for module ids 1 and 8 by default.

Change-Id: Ib4825d7d341614b6a1c761ed9819d0489d7e1cf7
CRs-Fixed: 2786748
2020-10-08 17:41:28 -07:00
Visweswara Tanuku
0833f12ad0 qcacld-3.0: Defines to set twt ap pdev count
Provide defines in Kbuild to set twt_ap_pdev_count in target

Change-Id: Ife77feaf3fe9c39b19ee55ddbfff5c99509726df
CRs-Fixed: 2788374
2020-10-08 17:41:25 -07:00
Amruta Kulkarni
bb03a5ef54 qcacld-3.0: Enable interface manager
- Enable interface manager config flag.

Change-Id: I7e460cd98de20f335f558cf1dcb33c3a2a93360d
CRs-Fixed: 2791468
2020-10-08 17:41:21 -07:00
Ashish Kumar Dhanotiya
5c04495600 qcacld-3.0: Add support to handle multiple radio stats event
Currently driver can handle only one radio stats event,
if the size of radio event exceeds more than the size which
can be accommodated in single WMI event in that case FW needs
to send multiple radio stats events.

Add support in host to process multiple radio stats events.

Change-Id: Id2c86f83458d92478fe8d48e1159e2d17c129f58
CRs-Fixed: 2771109
2020-10-08 17:41:17 -07:00
Yu Tian
5f03cb5ebf qcacld-3.0: Flush only GRO when bus change to idle
GRO queue more pkts is enabled in bus vote low, when
bus vote back to idle, these frames may not flushed to
stack, use force flush to reduce latency.

This change I22b5cf994fe02b7e3156a845ee13a5acbf791b22
added FISA flush too, however FISA currently is not handled
in concurrent context, which leads to access violations.

Change-Id: Ia682ec80a196fb913455c63bd165b0a5184b94b7
CRs-Fixed: 2786842
2020-10-08 17:41:13 -07:00
Abhishek Singh
f81e755db2 qcacld-3.0: Enable ROAM_OFFLOAD_V1 path for RSO
Enable ROAM_OFFLOAD_V1 path for roam scan offload.

Change-Id: Ib3182be1b389d8d7ad59f64955da070c4caa96e9
CRs-Fixed: 2788881
2020-10-08 17:41:09 -07:00
Nandini Suresh
617f9c2d7d Release 2.0.8.1
Release 2.0.8.1

Change-Id: I31fffa458c01a1137c85c7fb05f63cab556eb4a5
2020-10-08 16:37:28 -07:00
gaurank kathpalia
e402f757d4 qcacld-3.0: Add public API to get the adaptive 11r capability
Adds public API to get the adaptive 11r capability.

Change-Id: Idaa06d76b68cbce00c63d893dd2c99c8712afc48
CRs-Fixed: 2791138
2020-10-08 02:29:05 -07:00
Abdul Muqtadeer Ahmed
0253ba9bc2 qcacld-3.0: Avoid use after free for SAP dev
There is a race between regulatory callback from restart SAP and
user space deleting the SAP dev, which can result into access of a
free adapter.

To avoid the above issue the SAP dev should be held before it gets
delete and release after the operation on SAP dev gets complete.

Change-Id: Idf7fc2adeb74ac62d2a63d8bc3ae0b1a0568693c
CRs-Fixed: 2789448
2020-10-08 02:28:47 -07:00
Vevek Venkatesan
c815711905 qcacld-3.0: add cdp ops for IPA Tx buf smmu_unmapping
Add  cdp ops for IPA Tx buf SMMU-S1 unmapping and
call unmap from ipa_uc_ol_deinit if IPA uc_loaded,
also assert if mapping/unmapping failed.

Change-Id: I79f293fcf5d6f02e3a01d6c8ff829f4ca87e76e8
CRs-Fixed: 2788811
2020-10-08 02:28:15 -07:00
Veerendranath Jakkam
1a5c9ec6ef qcacld-3.0: Resolve compilation error with 5.7 kernel
With kernel commit "2552d35 - PM: QoS: Rename things related to
the CPU latency QoS", the PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE is
renamed to PM_QOS_CPU_LATENCY_DEFAULT_VALUE.

Update the same in the driver to resolve compilition issues due
to above kernel commit.

Change-Id: I522ebd2802397f6644fecb064971a6480dd9733b
CRs-Fixed: 2788971
2020-10-04 23:42:26 -07:00
snandini
bf675b651a Release 5.2.0.204Y
Release 5.2.0.204Y

Change-Id: I49aa7e49753021a6e4fe9e443b78bbd54fb316d0
CRs-Fixed: 774533
2020-10-02 06:47:18 -07:00