Commit Graph

24527 Commits

Author SHA1 Message Date
Rahul Gusain
b014e14517 qcacld-3.0: Logs optimization in intf del path
Modify the log level from error/info to debug, to reduce logging
time. henceforth, it reduces intf deletion time and enhance the overall
performance of device.

Change-Id: I3498438e07daa97dc5b4805271397205c7aa0cf2
CRs-Fixed: 3389896
2023-01-27 18:06:37 -08:00
Madan Koyyalamudi
8580ea72bc Release 5.2.1.53H
Release 5.2.1.53H

Change-Id: I7c9a3b46804585911bb1dcf2fc22cc1f0ac04fec
CRs-Fixed: 774533
2023-01-27 16:09:29 -08:00
Madan Koyyalamudi
2b8d8033ff Release 5.2.1.53G
Release 5.2.1.53G

Change-Id: I9e1286ed3fc56707000872567889d1a3c9efbf03
CRs-Fixed: 774533
2023-01-27 12:56:01 -08:00
Jeff Johnson
8f75b57260 qcacld-3.0: Rename sap_check_and_process_go_force_ssc()
The function sap_check_and_process_go_force_ssc() deals with single
channel concurrency (SCC), so rename the function to match the usage.

Change-Id: I21af5d1b245ab979e5d6888966b843c7830f3735
CRs-Fixed: 3388966
2023-01-27 12:56:01 -08:00
Jeff Johnson
9094a9d708 qcacld-3.0: Remove unused sap_ch_select.h macros
There are unused macros in sap_ch_select.h, so remove them.

Change-Id: I7f53a1d0966d1a7d260d8a63016d9a099ad21e8a
CRs-Fixed: 3388965
2023-01-27 12:55:55 -08:00
Madan Koyyalamudi
66674de130 Release 5.2.1.53F
Release 5.2.1.53F

Change-Id: Ib4458b065c9a1e78cab26d2d258f8a4e357d956c
CRs-Fixed: 774533
2023-01-27 10:39:04 -08:00
abhinav kumar
f9137050ed qcacld-3.0: Avoid using fw-api defined enum at the CM layer
Currently, the definition of WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID
is present at the fw-api level. The host should not be using fw-api
definitions outside the WMI TLV code. To make sure it,

1. Add host-defined enum vendor_control_roam_param which defines
the param IDs that the host supports.

2. Add logic to convert host-defined enum vendor_control_roam_param
to fw-api defined enum WMI_ROAM_GET_VENDOR_CONTROL_PARAM_ID and
vice versa.

Change-Id: I035ece1bc0af8e583782460868193affb76db0f3
CRs-Fixed: 3363916
2023-01-27 10:39:03 -08:00
Madan Koyyalamudi
88f0ab46e0 Release 5.2.1.53E
Release 5.2.1.53E

Change-Id: Ie997009e2812fc8528610fdc170dca21a1c7e711
CRs-Fixed: 774533
2023-01-27 05:09:24 -08:00
Aravind Kishore Sukla
3533a74627 qcacld-3.0: Initialize timer for SAP + SAP concurrency
In current scenario, hdd_medium_assess_init timer is initialized
only when there is single SAP. For SAP + SAP concurrency
hdd_medium_access_state() returns false as there is ongoing
timer running. So, assertion occurs as timer is
not initialized when AP stopped.

Remove hdd_medium_access_state() check as hdd_hostapd_sap_event_cb()
is called every time when SAP is started.

Change-Id: I12e8871fb606d180eabc63c8841017d7240ac829
CRs-Fixed: 3376337
2023-01-27 05:09:24 -08:00
Madan Koyyalamudi
75b885e453 Release 5.2.1.53D
Release 5.2.1.53D

Change-Id: I359831680809d98affc7235eccd7acac3e1efa37
CRs-Fixed: 774533
2023-01-26 04:09:42 -08:00
Madan Koyyalamudi
de27e1a574 Release 5.2.1.53C
Release 5.2.1.53C

Change-Id: I8abb19b9f874beda49386940a85407fa193309cc
CRs-Fixed: 774533
2023-01-26 01:24:46 -08:00
Paul Zhang
66fcbb5894 qcacld-3.0: add critical update feature
Add critical update feature code. If BSS parameters change
count (BPCC) is changed, the value of cu_flag returns from
function lim_check_cu_happens is true. It can try to update
the critical update IEs code logic per cu_flag.

Change-Id: I39445a75e747e6e00a29be726fd447b9fbc7fb17
CRs-Fixed: 3296181
2023-01-26 01:24:45 -08:00
Madan Koyyalamudi
acf7fd2858 Release 5.2.1.53B
Release 5.2.1.53B

Change-Id: Iedd44f9a0f774ffb78be2471a454cf36686b552d
CRs-Fixed: 774533
2023-01-25 19:35:12 -08:00
Mohammed Ahmed
e5a9e48766 qcacld-3.0: Adding peach device id
Adding peach device id.

Change-Id: I33cdacd7c18f461ebcc69abf2aa3c83f100eb4e9
CRs-Fixed: 3386937
2023-01-25 19:34:58 -08:00
Madan Koyyalamudi
d5df7985e5 Release 5.2.1.53A
Release 5.2.1.53A

Change-Id: I61c02d1d1d50f6f6715f7716fe59cb74fec8da9d
CRs-Fixed: 774533
2023-01-25 16:36:08 -08:00
Vinod Kumar Pirla
80f1799d9b qcacld-3.0: Allow add peer on same ML dev context
A 802.11be MLD device can have one of the links
address same as MLD address. On add peer for this
MLD peer the validation for existing peers with same
MAC address may fail as a match with existing peer
will be found.

If an existing peer with new peer's MLD address
is found, then allow new peer if both existing peer
and new peer are in same ML dev context, if both
are on different ML dev context, reject the peer
add request.

Change-Id: I30c53032f228f166a1011b330ca245581dfe468b
CRs-Fixed: 3381720
2023-01-25 16:36:08 -08:00
Madan Koyyalamudi
245cb7d35f Release 5.2.1.53
Release 5.2.1.53

Change-Id: Id7b1923190ddcd7bcc9e8d04c285fe167ed72445
CRs-Fixed: 774533
2023-01-24 19:12:41 -08:00
Jeff Johnson
d57d4bbb66 qcacld-3.0: Fix core/pld documentation
There are quite a few documentation issues in core/pld:
- Documentation of implementations instead of interfaces
- Duplicate documentation
- Syntatically incorrect kernel-doc

Fix all of these issues.

Change-Id: Ia6ef2fda239e9021c879bc4672c9e80ec5c93921
CRs-Fixed: 3386837
2023-01-24 19:12:41 -08:00
Surya Prakash Sivaraj
d6df82c2b6 qcacld-3.0: Add ini to disable beacon protection
Some legacy STA doesn't recognize the EXT CAP IE with
length greater than 8bytes. Therefore, these STA cannot
associate with hotspot broadcasting newer capabilities
in the extended IE.

To fix this, add an ini which would override the beacon
protection config in host driver.

Based on this ini, the beacon protection would be disabled
only for non-6 GHz and non-11be SAP profiles, as beacon
protection is mandatory in 6 GHz and 11be cases.

Change-Id: I672b707f6955fa31938aebba5e25461dd40cee4e
CRs-Fixed: 3378974
2023-01-24 19:12:33 -08:00
Madan Koyyalamudi
defc48ef3a Release 5.2.1.52Z
Release 5.2.1.52Z

Change-Id: Ia512d148e26560a57b93b2af0d3d30edf7483e67
CRs-Fixed: 774533
2023-01-24 11:38:52 -08:00
Jeff Johnson
e050889528 qcacld-3.0: Fix core/cds documentation
There are quite a few documentation issues in core/cds:
- Documentation using legacy Doxygen format instead of kernel-doc format
- Documentation of implementations instead of interfaces
- Duplicate documentation
- Syntactically incorrect kernel-doc

Fix all of these issues.

Change-Id: I7ffdea9027278c75975a826466da2d7204a25d0c
CRs-Fixed: 3386190
2023-01-24 11:38:52 -08:00
Madan Koyyalamudi
1b3fb02cbb Release 5.2.1.52Y
Release 5.2.1.52Y

Change-Id: I4cbb8d8f38aa91a96f17799274dd9224e25e389e
CRs-Fixed: 774533
2023-01-24 09:39:31 -08:00
Amruta Kulkarni
87f1a94226 qcacld-3.0: Handle 1x roaming case
In case of 1x MLO roaming, 4 way handshake is offloaded to supplicant
and link vdev is down in FW. Host has to bring up link vdev post
set key installation.

Add handling in host for following:
- During roam sync indication handle only assoc link.
- Save reassoc response and link information.
- After keys are installed bring up link vdev by
queueing connect req on link vdev.
- Enable roaming after all links are up.

Change-Id: I9c0722f88e950ba05ec3dd7f44883bedf568f97d
CRs-Fixed: 3287316
2023-01-24 09:39:31 -08:00
Rahul Gusain
6e78070bc6 qcacld-3.0: extract NAN vdev_id from mgmt BSSID
Currently, driver finds PASN peer from BSSID in mgmt auth frame
and with help of this peer, it extracts the vdev_id. It uses this
vdev_id to retrieve the adapter in hdd.
But for NAN iface, there is no PASN peer and driver drops the
auth mgmt frame as no valid vdev_id available.

The NAN Cluster ID is a MAC address that takes a value from
50-6F-9A-01-00-00 to 50-6F-9A-01-FF-FF and is carried in the A3
field of some of the NAN frames.
So, to fix this, compare the first four bytes BSSID with
"50-6F-9A-01" and extract the vdev from vdev_list for NAN opmode.

Change-Id: Ie4f15549e3bd8378e362538da4d7ec49e84ad138
CRs-Fixed: 3382962
2023-01-24 09:39:23 -08:00
Madan Koyyalamudi
79f9f18a65 Release 5.2.1.52X
Release 5.2.1.52X

Change-Id: I60cc07f00a070147b573d77321b9755d8b3598f0
CRs-Fixed: 774533
2023-01-24 06:54:36 -08:00
Jyoti Kumari
a2c2827bad qcacld-3.0: Remove passive/dfs acs channel for LL SAP
Remove passive/dfs acs channel which are configured through
userspace for LL SAP.

Change-Id: If5d3abe920b93af6cb9be02344618e484c3b0778
CRs-Fixed: 3370658
2023-01-24 06:54:35 -08:00
Madan Koyyalamudi
fba8294c83 Release 5.2.1.52W
Release 5.2.1.52W

Change-Id: Ie746a3a3917234f537b908e0eec9a22639177107
CRs-Fixed: 774533
2023-01-24 01:33:48 -08:00
Jeff Johnson
423944bb56 qcacld-3.0: Fix core/bmi documentation
The kernel-doc script identified some documentation errors in the
core/bmi folder, so fix them.

Change-Id: I1ec447b56eb38358c4d875d9e0f1ecbe935be57e
CRs-Fixed: 3385916
2023-01-24 01:33:48 -08:00
Madan Koyyalamudi
9a279313fa Release 5.2.1.52V
Release 5.2.1.52V

Change-Id: Ic97b2f49df666d30735b9a82941b73b00e1a2796
CRs-Fixed: 774533
2023-01-22 07:12:45 -08:00
Asutosh Mohapatra
7b08e108e0 qcacld-3.0: Allocate skb size according to destination attribute sizes
In hdd_get_station_info skb buffer gets allocated an
arbitrary large size.

To address this issue, allocate skb buffer size based
upon the destination attribute sizes.

Change-Id: Ie36b0bb67562e302a3abe6d60d0e323ce172236e
CRs-Fixed: 3363955
2023-01-22 07:12:44 -08:00
Madan Koyyalamudi
7460e2b439 Release 5.2.1.52U
Release 5.2.1.52U

Change-Id: I0b286943ee75523c55b49d87abc16c4a2d52ae1a
CRs-Fixed: 774533
2023-01-21 02:55:33 -08:00
Sheenam Monga
188ac8c5b7 qcacld-3.0: Don't reject SR command if threshold not provided
As per current implementation, SR(Spatial Reuse) commands are
rejected if STA is not connected or connected to AP that doesn't
support SR which causes issue because SR Enable/Disable command
shouldn't reject if STA is not connected instead of rejection
same configuration should be applied when SR AP connects to STA.

Fix is to not to reject SR command if PD threshold is not provided
along with enable command, so that enable command can be accepted and
applied when AP that supports SR connects to station.

Change-Id: Ie4a973053b79d0d5931bcc2520da42f9aab93089
CRs-Fixed: 3350451
2023-01-21 02:55:33 -08:00
Madan Koyyalamudi
f2532afb48 Release 5.2.1.52T
Release 5.2.1.52T

Change-Id: Ib29906e8c5785d3ba78250567c51023055dce982
CRs-Fixed: 774533
2023-01-20 22:11:19 -08:00
Bing Sun
da40c120fc qcacld-3.0: Update RRM capability for SAP
lim_update_rrm_capability is only called in lim_fill_pe_session,
which is for station mode.
If only SAP interface exists, mac_ctx->rrm.rrmPEContext.rrmEnable
will not be set.

Call lim_update_rrm_capability for SAP mode.

Change-Id: Icc5e3a960a372b26943987c377ec292c5cf2eb8c
CRs-Fixed: 3380748
2023-01-20 22:11:19 -08:00
Paul Zhang
6c0f977367 qcacld-3.0: Don't acquire wakelock for initial connection
In function hdd_cm_connect_success_pre_user_update, the
variable is_auth_required is true by default. During roaming,
it should acquire wakelock if key installation is pending.
But during initial connection, it does not need to acquire
wakelock for initial connection in this function.

Change-Id: I967e6d97dd9c7a40d111b0040ee53876b7be6192
CRs-Fixed: 3383907
2023-01-20 22:11:14 -08:00
Madan Koyyalamudi
d228acd392 Release 5.2.1.52S
Release 5.2.1.52S

Change-Id: Ie13e98af4477d618fb1f3f4f8ab60c9a53bb0d24
CRs-Fixed: 774533
2023-01-20 19:08:09 -08:00
Vijay Patil
155532b250 qcacld-3.0: Add a log to print the supported features bitmap
Driver sets the bit mask for supported feature to turn on or
set the feature flag for the requested feature. 

Add a log to print the supported features bitmap in the driver.

Change-Id: I1a47697f605a62807a9612b2c5bd04491a67cedc
CRs-Fixed: 3383080
2023-01-20 19:08:09 -08:00
Madan Koyyalamudi
49097abc79 Release 5.2.1.52R
Release 5.2.1.52R

Change-Id: Ib150ca52c59078a9a16da6746cf2c92c6c85396f
CRs-Fixed: 774533
2023-01-20 05:18:11 -08:00
Prakash Manjunathappa
a633ef49c1 qcacld-3.0: Querry HTT_DBG_EXT_STATS_PDEV_RX stats to get rxdma errors
Get sum of complete rxdma stats handled by host and FW.

Change-Id: I6e1af21c37fe2cd71b7c613bcdfc0a02136cf988
CRs-Fixed: 3382454
2023-01-20 05:18:11 -08:00
Madan Koyyalamudi
e41d20365b Release 5.2.1.52Q
Release 5.2.1.52Q

Change-Id: I1ad2353035f880643f665354ff2412dcafac598b
CRs-Fixed: 774533
2023-01-20 03:31:32 -08:00
Jianmin Zhu
9addca6e47 qcacld-3.0: Fix pe session id is used as vdev id issue
When handle deauth, if req peer mac isn't session bssid, pe session id is
used as vdev id wrongly, then deauth rsp is dropped in CSR, disconnect cmd
isn't removed from serialization queue, assert will happen.

Change-Id: I35c2805ae3ea904b2306b2a210c2284498330c04
CRs-Fixed: 3378250
2023-01-20 03:31:31 -08:00
Madan Koyyalamudi
826a967663 Release 5.2.1.52P
Release 5.2.1.52P

Change-Id: If808102fb5701d0ff87b9d7851b97be0b692875b
CRs-Fixed: 774533
2023-01-19 23:33:03 -08:00
Srinivas Dasari
45ebbef48c qcacld-3.0: Allow fixed channel CSA even if it's unsafe channel
Currently, CSA on an unsafe channel is not allowed.
Allow CSA even if it's unsafe channel when user tries to set
a fixed channel (i.e. reason = CSA_REASON_USER_INITIATED)
and firmware supports the capability
WMI_COEX_FIX_CHANNEL_CAPABILITIES.

Change-Id: I5ba26faabe05fbf1a79dc92360400ec2c6d71b2d
CRs-Fixed: 3381395
2023-01-19 23:33:03 -08:00
Srinivas Dasari
b8db5ef04a qcacld-3.0: Handle SAP restart case in fixed chan SAP
Currently, unsafe channels are avoided when SAP restart happens.
If WMI_COEX_FIX_CHANNEL_CAPABILITIES is advertised by firmware
and if the SAP is started in a fixed channel, don't restart even
if the current operating channel is unsafe.

Change-Id: I5f7d632bcc00a1b5351dad64aca0ce16f1057537
CRs-Fixed: 3381394
2023-01-19 23:32:58 -08:00
Madan Koyyalamudi
10d604294f Release 5.2.1.52O
Release 5.2.1.52O

Change-Id: Idfb7f58f9d91758969c41fa9c5c96e27fc1bac30
CRs-Fixed: 774533
2023-01-19 20:43:33 -08:00
Mohammed Ahmed
776c4cc10e qcacld-3.0: add SSR host log collection API usage
Current code does not use the SSR host log collection API.
Fix this by adding SSR host log collection API usage.

Change-Id: I364bd6281e886e8c50dfd6f45f78fb98e822f962
CRs-Fixed: 3339953
2023-01-19 20:43:32 -08:00
Madan Koyyalamudi
61e5d16a43 Release 5.2.1.52N
Release 5.2.1.52N

Change-Id: I93f290b58fa884161b3869106ac5272fe7ea014f
CRs-Fixed: 774533
2023-01-19 16:41:51 -08:00
Srinivas Dasari
cdf374387b qcacld-3.0: Don't check if a channel is safe if it's coex fixed chan SAP
Currently, SAP start is aborted if the channel is marked as unsafe
due to COEX, irrespective of it's an ACS/fixed channel SAP.
There is a requirement to allow the SAP in a fixed channel even
if the channel is marked as unsafe. Firmware advertises
WMI_COEX_FIX_CHANNEL_CAPABILITIES in such targets.
Check for this capability and allow the SAP in fixed channel even
it it's unsafe.

Change-Id: Ie3947058d8854823a718b833ec788c5c8a14b903
CRs-Fixed: 3375254
2023-01-19 16:41:45 -08:00
Madan Koyyalamudi
12c64abe46 Release 5.2.1.52M
Release 5.2.1.52M

Change-Id: I3339ea4d9beb1b616bfcfec156651c0197aae5cd
CRs-Fixed: 774533
2023-01-19 12:27:14 -08:00
Liangwei Dong
b9383fb56a qcacld-3.0: revert "qcacld-3.0: Cancel scan before set mac address"
This reverts commit I440bcfbc3b9699ab42d4304535cc2d86d702d21d.
The "Roc delay set mac issue" is fixed by change
If53d5ee446fc5f4df2fcf117a436133116270b9e

Change-Id: Ica97a9d829e74a8b43030086d478bbfb125a371e
CRs-Fixed: 3381663
2023-01-19 12:27:13 -08:00