Commit graph

22,868 commits

Author SHA1 Message Date
abhinav kumar
4c0464d9ea qcacld-3.0: Do not set the BSS color disabled in HE op IE
If the BSS color is not set in userspace config then BSS
color disabled is set in userspace HE OP IE data. Driver
fills the random BSS color value if the BSS color is not
set in userspace HE OP IE data hence the BSS color disabled
bit should be set to 0. So do not set the BSS color disabled
bit from user space HE OP IE data.

Change-Id: I781206c67671752275b810e34a63fb76fe6c4f73
CRs-Fixed: 3068944
2022-05-17 21:38:27 +05:30
Madan Koyyalamudi
6935590e20 Release 2.0.8.29T
Release 2.0.8.29T

Change-Id: I0de7d0ae801e217c3fc43d274fef7e841e7f966a
CRs-Fixed: 774533
2022-05-17 05:45:02 -07:00
Amit Mehta
94962f3d04 qcacld-3.0: Add NULL check for tx_rx_hist
Currently, we are updating tx_rx_hist without performing a NULL check.
There can be the case where the tx_rx_hist is freed and we are trying to
de-reference the tx_rx_hist, which will cause the NULL pointer dereference
issue.

Fix is to add NULL check for tx_rx_hist before dereferencing it.

Change-Id: I0c298f1c86dd86b6ac987c005ed19b20933ffba8
CRs-Fixed: 3196312
2022-05-16 14:19:55 +05:30
Madan Koyyalamudi
110644cec7 Release 2.0.8.29S
Release 2.0.8.29S

Change-Id: I93b14abcd2a2b8bce3e754cc7bf082da82b142d2
CRs-Fixed: 774533
2022-05-13 17:01:03 -07:00
Aravind Kishore Sukla
557d1042fa qcacld-3.0: Replace kmsg logs to debug logs
Change kernel log level to debug level

Change-Id: I1efa9a0498acd81f2a9a12d5712299609eb5bd06
CRs-Fixed: 3182121
2022-05-13 17:01:02 -07:00
Madan Koyyalamudi
75a616e429 Release 2.0.8.29R
Release 2.0.8.29R

Change-Id: I4a4fa50412adb73e8d0a0b68672b1c99242ad66d
CRs-Fixed: 774533
2022-05-13 12:04:45 -07:00
Gururaj Pandurangi
8574cbad00 qcacld-3.0: Reduce logging level in pmf cap API
Reduce logging level to debug in get peer pmf
capability API to avoid excessive logging.

Change-Id: Ia8f339f880429d478f68300eb6ace3b1a8c87ea2
CRs-Fixed: 3073012
2022-05-13 12:04:44 -07:00
Gururaj Pandurangi
90fe84b4f9 qcacld-3.0: Update caller APIs of get power type for 6G API
Update the caller functions of wlan_reg_get_6g_power_type_for_ctry
to include AP's power type as a factor along with existing ctry
codes to determine STA's power type for 6G.

Change-Id: I8e1c54a5e760b173532fc001790fb76c70120c54
CRs-Fixed: 3087093
2022-05-13 12:04:39 -07:00
Gururaj Pandurangi
cf85121cc9 qcacld-3.0: Add psoc ptr arg in get 6G power type for ctry API
Pass psoc ptr as argument in addition to existing args in
wlan_reg_get_6g_power_type_for_ctry API to support new APIs
like wlan_cm_get_check_6ghz_security that are invoked within.

Change-Id: I9615c5d2cb509a0c9f8e10073c0928ab38f179f8
CRs-Fixed: 3080203
2022-05-13 12:04:34 -07:00
Vinod Kumar Pirla
5f5fb691fa qcacld-3.0: Reduce log level of certain error logs
Reduce log level of a few error logs to reduce
excessive logging.

Change-Id: I3e93d033bc29a7dfee5c5ef18d52cded54fc1cbb
CRs-Fixed: 3035970
2022-05-13 16:03:55 +05:30
Madan Koyyalamudi
c240bb046b Release 2.0.8.29Q
Release 2.0.8.29Q

Change-Id: I98f71a720017a8cb593c23ea250539fba25cf4fe
CRs-Fixed: 774533
2022-05-10 17:42:00 -07:00
Srinivas Dasari
d8a5c68039 qcacld-3.0: Fix ref leak for temp sta info node
hdd_is_connection_in_progress_iterator loops through all adapters
and the sta_info present in each adapter to find out
if any connection is in progress. In SAP case, there could be
multiple sta_info present and need to traverse through them by
avoiding running into loop on the same sta_info/released
sta_info. The hdd_for_each_sta_ref_safe helps for the same but
takes two references, one for sta_info and one for a
temporary entry. Release both after checking the
connection status.

Change-Id: I58a49e12b6d581dbaf1c129ce5a5196b31fb432f
CRs-Fixed: 3188412
2022-05-10 09:12:36 -07:00
Madan Koyyalamudi
c1a09ef66e Release 2.0.8.29P
Release 2.0.8.29P

Change-Id: I5e9f0525790b10ac9544ce1e1aa202047dcb7afd
CRs-Fixed: 774533
2022-05-06 05:28:30 -07:00
Rahul Gusain
29f0d9734d qcacld-3.0: Check for NAN state only if NAN SM is in host
A check is added recently to avoid creating NDI if NAN is not in
enabled state. This is to avoid wastage of resources(vdev, peers,..)
in firmware.But this check is valid only for the platforms where NAN
statemachine is in host driver. This check is not valid for legacy
platforms where NAN state machine is in firmware. Bypass the same
for legacy targets.

CRs-Fixed: 3178939
Change-Id: I1475b4313d1e7ac2c05d5edd215e929f3eb6335e
2022-05-06 14:04:54 +05:30
Madan Koyyalamudi
922ce620ae Release 2.0.8.29O
Release 2.0.8.29O

Change-Id: I8dc25bd2d15d504e01d2530cea965ad046e6c930
CRs-Fixed: 774533
2022-05-05 12:12:30 -07:00
Srinivas Dasari
6d7810c7a9 qcacld-3.0: Pick a valid channel for NDI start
Currently, NAN 5GHz social channel 44(5220) is picked to start
the BSS for NDI if 5GHz band is supported. But the channel
might get disabled due to regulatory constraints or
user/applications might also disable based on the usecase.
NDI fails to start in such cases.
Pick a valid channel to start the BSS and give preference to
NAN social channels.
Also, don't allow NDI start when NAN discovery is not enabled
to avoid issues due to DBS incase if NDI to be started in
a 2.4GHz channel.

Change-Id: I562d0f4f6a425ad7fb4cd043e696d3d573854b3b
CRs-Fixed: 3068545
2022-05-05 12:12:29 -07:00
Madan Koyyalamudi
2a7ce249b1 Release 2.0.8.29N
Release 2.0.8.29N

Change-Id: Iff2528b0301592abe15e009b2c76b0085dc50e3c
CRs-Fixed: 774533
2022-05-05 03:04:28 -07:00
Srikanth Marepalli
12fcde6918 qcacld-3.0: Use WLAN_WEAR_CHIPSET to modify INI path
On Wear HL based target with keystone kernel, it generates
WLAN driver with name "qca_cld3_wlan.ko" based on macro
definition WLAN_WEAR_CHIPSET. But the driver was not loading
because of the old INI path and /dev path.
This commit modifies the INI path and /dev path based on
macro defined i.e. WLAN_WEAR_CHIPSET.

Change-Id: I6d457a3bb708de3175c40b0f2b3ba0ebde915838
CRs-Fixed: 3168115
2022-05-05 03:04:28 -07:00
Madan Koyyalamudi
86ea5202e2 Release 2.0.8.29M
Release 2.0.8.29M

Change-Id: I40733b9d3fbf40a9c15f08f3eda9779dda8a9d70
CRs-Fixed: 774533
2022-05-04 15:25:22 -07:00
Ashish
4d3c4bced3 qcacld-3.0: Update ccfs2 in ht operation
Currently driver does not update ccfs2 correctly in ht operation
when it caches the connetion info, because of this userspace
is not able to get correct bw info for sta big data.

To address above issue, update ccfs2 corrrectly in ht operation.

Change-Id: I13dc8b674d24be7435a85b91a1ecc43e0c37900b
CRs-Fixed: 3183162
2022-05-04 15:25:21 -07:00
Mohit Khanna
40f3168fd1 qcacld-3.0: Force "IDLE" level on BW timer stop
Bus bandwidth timer tweaks certain aspects of the system during
throughput transitions. For example, when throughput goes high, system
parameters are tweaked in favor of system performance. Hence, when high
performance is not needed, the timer relies on throughput transitioning
to low to reset the parameters in favor of power.

During a corner case, its possible that while througput is high, wlan
adapter is immediately brought down. This stops the bus bandwidth timer
abruptly without letting the the timer detect a throughput transition to
low. This may result in higher power consumption even when there is no
data activity or throughput is low.

Explicilty force a transition to "IDLE" state when bus bandwidth timer
is stopped.

Change-Id: I0a0a64a855714b1a8b5a52a048604fef54a0ee41
CRs-Fixed: 3087118
2022-05-04 15:25:15 -07:00
Madan Koyyalamudi
77d79982be Release 2.0.8.29L
Release 2.0.8.29L

Change-Id: Ia4fd31810624d5e411abf59b71f0941803c0da2e
CRs-Fixed: 774533
2022-05-04 00:48:16 -07:00
Prakash Manjunathappa
dd8fef0fb1 qcacld-3.0: init/deinit tx_rx_histogram along with hdd_bus_bandwidth
hdd_txrx_hist histogram is accessed in hdd_pld_request_bus_bandwidth.
init/deinit tx_rx_histogram along with init/deinit of hdd_bus_bandwidth
Without this in FTM mode where hdd_txrx_hist memeber is accessed without
allocating memory for it. This results in uninitialized NULL dereference
assert

Change-Id: I3b8d80b71f4c37da4a0dafc4a7b91f8ca16bbab3
CRs-Fixed: 3110416
2022-05-04 00:48:14 -07:00
Madan Koyyalamudi
cc6aa888fb Release 2.0.8.29K
Release 2.0.8.29K

Change-Id: Iacc1d181bf74554fc27e907f76e8a1a8b3255d12
CRs-Fixed: 774533
2022-05-02 15:03:40 -07:00
Vulupala Shashank Reddy
fa214c471c qcacld-3.0: Send correct Nth beacon config to FW in pkt capture
Currently, when user sets pkt capture beacon capture config
using vendor command, both nth beacon interval and connect
beacon config is sent to firmware. This leads to reception
of all beacons even if nth beacon interval is configured.

Whenever nth beacon interval and connect beacon is configured
from user, firmware expects host to not send connect beacon
config to FW. This change also adds Nth beacon filter check
for beacons in packet capture management rx path.

Change-Id: I046a282c5f79598b686c4fd95554e2330c6bfb39
CRs-Fixed: 3150806
2022-05-02 15:03:39 -07:00
Madan Koyyalamudi
734ad7f108 Release 2.0.8.29J
Release 2.0.8.29J

Change-Id: I6e231211b0784856f6ee76278aaa05fec0eb4c2b
CRs-Fixed: 774533
2022-05-02 12:39:16 -07:00
Srikanth Marepalli
f80f0ae2e9 qcacld-3.0: Makefile change to generate driver name as qca_cld3_wlan
Currently, on Wear HL based target with keystone kernel, it
generates WLAN driver with name "wlan.ko". And to enable WIFI
every time it has to rename wlan.ko with qca_cld3_wlan.ko.
This commits generates the WLAN driver (WLAN_CHIPSET_wlan.ko)
based on Macro defined i.e. WLAN_CHIPSET else generate wlan.ko.

Change-Id: I9b278ba74052f1a333ed59d0b048d5a0611db076
CRs-Fixed: 3125247
2022-05-02 12:39:15 -07:00
Madan Koyyalamudi
d6109f2e0f Release 2.0.8.29I
Release 2.0.8.29I

Change-Id: Idde04865f4abbf155e49640ae74e12ac93d061e8
CRs-Fixed: 774533
2022-05-02 05:14:10 -07:00
Aravind Kishore Sukla
86066439ad qcacld-3.0: Send the correct SAE authentication failure reason code
Currently driver fills the reason code as
STATUS_UNSPECIFIED_FAILURE when sae authentication frame is
received or sent with failure status code.
So while processing SAE auth frame sent by AP, the DUT STA reports as
“Wrong password” instead of “Auth error” in the user interface.

Parse the status field for SAE Auth frames received from the
external authentication status command. This should be passed to the
userspace as part of connect failure indication

Change-Id: I9061cef6ac73a74021901dfa056551f51033de0c
CRs-Fixed: 3182981
2022-05-02 05:14:09 -07:00
Madan Koyyalamudi
461aac9d56 Release 2.0.8.29H
Release 2.0.8.29H

Change-Id: Ie6f993c752476760d7bfb71c19af7891dcbb9e1d
CRs-Fixed: 774533
2022-05-02 02:02:47 -07:00
Vulupala Shashank Reddy
8c180170ab qcacld-3.0: Check if wma pointer is NULL
In wma_is_roam_in_progress function, return false if wma pointer
returned from cds_get_context is NULL.

Change-Id: I0a3447f038a45ea93e769142cb5883a3f39c0991
CRs-Fixed: 2475071
2022-05-02 02:02:47 -07:00
Madan Koyyalamudi
673801d2ea Release 2.0.8.29G
Release 2.0.8.29G

Change-Id: Iad1a721d86a6a85bdd15e69fa46513775cdf2502
CRs-Fixed: 774533
2022-05-01 23:42:50 -07:00
Mohit Khanna
96489af9ec qcacld-3.0: Account for sched delay in TX/RX BW tuning
Currently sched-delay is not taken into account while calculating TX/RX
offload packets in bus bandwidth work handler. This may result in an
incorrect calculation and determination of TX/RX bandwidth levels and
other params which are derived from it.

Add support to consider actual scheduling delay between two bandwidth
intervals to detemine TX/RX offloaded/not-offloaded packets.

Change-Id: Icfb961cbbc1a049df0133394883755418b631056
CRs-Fixed: 3079953
2022-05-01 23:42:49 -07:00
Madan Koyyalamudi
33ef2bfafb Release 2.0.8.29F
Release 2.0.8.29F

Change-Id: Ib6e67ae2d32139fbb74f307c631584b9ecb2dbbc
CRs-Fixed: 774533
2022-05-01 11:15:44 -07:00
Srinivas Dasari
27cb515795 qcacld-3.0: Use hdd_for_each_sta_ref_safe API for connection status
When a NAN request(NAN enable/disable/any generic) is received
from userspace, host driver checks if any connection(STA/SAP/P2P)
is in progress by iterating through adapters. The request would be
rejected if any adapter has connection_in_progress status.

But if the adapter is getting cleaned up in parallel while
iterating through the list for connection status, the iterator
callback may stuck in loop. So, use hdd_for_each_sta_ref_safe()
API to avoid stuck in loop.

Change-Id: Ic7833dcb17154003565ccbece31a490ee9f43beb
CRs-Fixed: 3183232
2022-05-01 07:27:20 -07:00
Madan Koyyalamudi
1cad4bb5ae Release 2.0.8.29E
Release 2.0.8.29E

Change-Id: Ic4d47b58cafa202367a6c0fdc896655420556485
CRs-Fixed: 774533
2022-04-29 10:26:04 -07:00
Jianmin Zhu
1881bb989e qcacld-3.0: Fix roam failed for SAP CSA concurrency
When vdev0 STA roamed to another channel, vdev1 SAP CSA for SCC
when ROAM_SYNCH_IN_PROG, will disable roam, but no RSO stop to F/W,
F/W RSO isn't disabled, but host vdev0 will enter RSO_STOPPED, host
F/W RSO state out of sync.
If vdev0 STA next roam sync come soon,  it won't be handled for host
RSO_STOPPED, neither roam sync complete nor disconnect will happen,
F/W will asert after wait roam sync complete timeout.
To fix it, Only do SAP CSA check after roam complete and RSO
reenabled, can avoid host F/W RSO state out of sync issue.

Change-Id: I77ccf30cac38f62c6ef8330c6da00364249b242e
CRs-Fixed: 3076935
2022-04-29 10:26:04 -07:00
Jianmin Zhu
dc721ec357 qcacld-3.0: Send broadcast probe rsp for 6G AP
Certificate 4.70.1_6G need verify that the following conditions are true:
a. APUT responds with a Probe Response frame with the Address 1 field
set to the broadcast address when test bed STA to send Probe Request with
SSID = as per Table 168, Address 1 = wildcard (broadcast).

Change-Id: I44581eaf251b79f47e374d8294616c554a9acf10
CRs-Fixed: 3104288
2022-04-29 10:25:58 -07:00
Madan Koyyalamudi
63c6a9744e Release 2.0.8.29D
Release 2.0.8.29D

Change-Id: I75e902811b871ff665995a4509c15eb3e1ed62d1
CRs-Fixed: 774533
2022-04-28 19:30:23 -07:00
Alan Chen
055ce2afc6 qcacld-3.0: Change PAGE_FAULT log string to PF
As requested by OEM, change PAGE_FAULT log string to PF to
not confuse it for a critical problem for OEM.

Change-Id: I4057513670b348dd772b42777b5623722eeafc45
CRs-Fixed: 3064527
2022-04-28 19:30:23 -07:00
Alan Chen
19f6ecf1c8 qcacld-3.0: Change log level of ns offload print
Change the failure to cache ns request log level from error to debug.

Change-Id: Idc5799f41d831c238efd6061e1363a9fd58b63c5
CRs-Fixed: 3037768
2022-04-28 19:30:14 -07:00
Madan Koyyalamudi
45217a6234 Release 2.0.8.29C
Release 2.0.8.29C

Change-Id: I161266e2c849bd3be8dda8c1e219f08c258ff84b
CRs-Fixed: 774533
2022-04-28 13:16:35 -07:00
Lin Bai
c42c2e7a32 qcacld-3.0: Enable RX FCS reporting
fcs_err_count member of structure station_info
introduced from kernel 4.20.
Enable it accordingly from 4.20.

Change-Id: Ic373cb4f95a9698c8ef25c829f39bd21cd8f4a26
CRs-Fixed: 3183697
2022-04-27 05:16:26 -07:00
Madan Koyyalamudi
d4ed34e13b Release 2.0.8.29B
Release 2.0.8.29B

Change-Id: I52d7413660026c50dc7a0c657e3c500b62cbebda
CRs-Fixed: 774533
2022-04-26 16:15:25 -07:00
Jia Ding
c155eb2449 qcacld-3.0: Save mac_id and mac_id_valid in TSF report
To support uplink delay calculation, FW will report mac_id and
mac_id_valid in TSF report so as to differentiate from legacy
TSF report. Thus save mac_id and mac_id_valid fields in TSF
report so that host can differentiate the TSF report purposes.

Change-Id: If76fd49ff9693a7733389d184a84360c0564216e
CRs-Fixed: 2991959
2022-04-26 16:15:24 -07:00
Jia Ding
4357b0a1c6 qcacld-3.0: Add uplink delay in get_sta_info response
Add uplink delay value into get_sta_info vendor command response.

Change-Id: I7298fa259e0f997b28c8a114e7fd963f311596d6
CRs-Fixed: 2991981
2022-04-26 16:15:19 -07:00
Madan Koyyalamudi
eeafb2e01d Release 2.0.8.29A
Release 2.0.8.29A

Change-Id: I3ccb953524bd743e6a9b82f18b2768c364c1fb9b
CRs-Fixed: 774533
2022-04-26 13:05:16 -07:00
Jia Ding
faeabf9b03 qcacld-3.0: Enable uplink delay feature for WCN6750
Enable uplink delay feature for WCN6750 chipset.

Change-Id: Ie37172a0b845529fc4b82c9812a84077d6d4a282
CRs-Fixed: 3180279
2022-04-26 13:05:15 -07:00
Jia Ding
801b2e559c qcacld-3.0: Handle uplink delay TSF commands
Uplink delay TSF commands include TSF auto report enable, disable and
TSF uplink delay get. Auto report enable, disable commands controls
if targets will report clock delta to host. Uplink delay get command
will return the calculated uplink delay value to user space.

Change-Id: Ib01379074ab5565a9480348dc84531024e766b5a
CRs-Fixed: 2958814
2022-04-26 13:05:07 -07:00
Jia Ding
2131be6380 qcacld-3.0: Configure TSF auto report to target
As part of uplink delay report feature, send WMI cmd to
enable and disable target automatically sending TSF report
to HOST on a per vdev basis.

Change-Id: I79ef5bff5b91aca311ef16d7207e9dd2fb7ae0f2
CRs-Fixed: 2991975
2022-04-26 13:05:02 -07:00