Commit graph

21,025 commits

Author SHA1 Message Date
Yeshwanth Sriram Guntuka
09eebb82df qcacld-3.0: Enable packet drop on non-monitoring MAC
Enable the feature flag to drop packets on non
monitoring RXDMA2SW ring.

Change-Id: I49cb276827f4a06791183ee3fe8c88ba84df085d
CRs-Fixed: 2799988
2020-10-19 19:35:11 -07:00
snandini
1b6ce70bd9 Release 2.0.8.1S
Release 2.0.8.1S

Change-Id: Idbc4bb4873bbe92aa6bef1db3bd34b05ca032bf6
CRs-Fixed: 774533
2020-10-19 17:39:22 -07:00
Abhinav Kumar
9dde334572 qcacld-3.0: Resolve compilation error
Resolve compilation error by enabling
CONFIG_WLAN_TRACE_HIDE_MAC_ADDRESS := y

Change-Id: If1612a67088dfb18300cfee821a9394f941ac3fe
CRs-Fixed: 2797229
2020-10-19 09:52:43 -07:00
snandini
03c855c37f Release 2.0.8.1R
Release 2.0.8.1R

Change-Id: Ib98631ffead38192b1b18792e3d869be4209101f
CRs-Fixed: 774533
2020-10-19 05:27:02 -07:00
Pragaspathi Thilagaraj
1748fe9b20 qcacld-3.0: Update mobility domain in RSO command
The MDID is not updated in RSO command. So FT roaming
failure happens.

Update the MDID in RSO commands.

Change-Id: Ie68b379ab29c063c90d8461d0be34fd09a105e3f
CRs-Fixed: 2795319
2020-10-19 05:27:01 -07:00
snandini
b27c677ed3 Release 2.0.8.1Q
Release 2.0.8.1Q

Change-Id: I291b824cbe60e2ceaf71cd0073686925e9af7455
CRs-Fixed: 774533
2020-10-19 01:29:24 -07:00
Arun Kumar Khandavalli
88e1047591 qcacld-3.0: Free scan ie's as part of uninit cfg80211 ops
During SSR with the new changes the stop adapter would be invoked,
this would free the scan ie's and will not be able to configured
after the SSR.

Free the scan ie's as part of the uninit which would be called as
part of the netdev down.

Change-Id: I781eefbf0ae7a9e64bc6cb2ead98f45919587f64
CRs-Fixed: 2724670
2020-10-18 21:18:58 -07:00
snandini
e6a63e8a71 Release 2.0.8.1P
Release 2.0.8.1P

Change-Id: If9bb486c4bd67006e32ea09996ba5209e69dc31c
CRs-Fixed: 774533
2020-10-15 13:38:41 -07:00
sheenam monga
1b50738ba8 qcacld-3.0: Avoid excessive logging in sme/csr layer
Issue: log level for some frequent prints is set to info
those logs would be present in dmesg as well as driver logs
and System performance may get affected due to excessive
logging.

Fix: Avoid redundant logs which may affect system
performance and change default log level to debug.

Change-Id: I025f4cfdc0931a3e5d9c6a7eed96240dba738211
CRs-Fixed: 2794313
2020-10-15 00:49:21 -07:00
snandini
13e8dac24f Release 2.0.8.1O
Release 2.0.8.1O

Change-Id: I06da6424fe6468591624189e0bd9a970d2e21291
CRs-Fixed: 774533
2020-10-14 09:43:58 -07:00
Ananya Gupta
402ddb920e qcacld-3.0: Call cdp function to deregister IPA handler from pdev
A htt message arrived after ipa context is freed as part of
deinitialization which was dereferenced by event handler
assigned to pdev->ipa_uc_op_cb, resulting in crash.
To fix this, cdp function is called during deinit to
deregister pdev->ipa_uc_op_cb and assign it NULL. Also, adding
NULL check in wlan_ipa_uc_op_cb. Also, registering ipa_uc_op_cb
after work is created so as to not hit condition where work is
scheduled before creation.

Change-Id: Ib79136b1122625079d8173a401dba5516126c621
CRs-Fixed: 2794663
2020-10-14 09:43:58 -07:00
snandini
f17f6290a0 Release 2.0.8.1N
Release 2.0.8.1N

Change-Id: I2e90d67cf9f5608a992248416199daeec4094896
CRs-Fixed: 774533
2020-10-14 03:07:44 -07:00
Jyoti Kumari
d618192691 qcacld-3.0: Validate phymode before sending to firmware
Validate the phymode before sending to firmware in
lim_set_ch_phy_mode()

Change channel mode check from MODE_UNKNOWN to WLAN_PHYMODE_AUTO
or WLAN_PHYMODE_MAX

Change-Id: If7f869b750c74f9782b066f7e92b2c94c29bcbb7
CRs-Fixed: 2792691
2020-10-13 23:00:28 -07:00
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