Commit Graph

29303 Commits

Author SHA1 Message Date
Mohammed Ahmed
ecd6d40096 qcacld-3.0: Add GKI pineapple defconfig
Current code does not have a GKI variant of DDK pineapple
defconfig. Fix this by adding a GKI variant.

Change-Id: I91ae63ae2c1a1dd4ac30eb3da31c6394f523d750
CRs-Fixed: 3530783
2023-06-17 10:31:29 -07:00
Rahul Choudhary
a0e21676eb Release 5.2.1.70Y
Release 5.2.1.70Y

Change-Id: I0c65d34b64b50dc8eaeb4eafd99100e7dbf73178
CRs-Fixed: 774533
2023-06-17 03:58:34 -07:00
Jianmin Zhu
4b104f3350 qcacld-3.0: Fix STA at 20 MHz while AP in 320 MHz
Wrong chan width type is used for WLAN_MLME_PEER_BW_PUNCTURE.
Need convert wmi_host_channel_width to phy_ch_width type.

Change-Id: I9e5d4606715a99062229af36240d03580ad54891
CRs-Fixed: 3526099
2023-06-17 03:58:34 -07:00
Rahul Choudhary
5e664952a1 Release 5.2.1.70X
Release 5.2.1.70X

Change-Id: I69cfb26ac3907bb5697b02c6f6b5fe6df87de869
CRs-Fixed: 774533
2023-06-16 15:02:44 -07:00
Ashish Kumar Dhanotiya
e59e1f0884 qcacld-3.0: Add feature capability support for ll_lt_sap
Currently there is no feature capability support for ll_lt_sap
and host driver and user space assumes that support for ll_lt_sap
is always present which not always true.
This may result in unexpected behavior if firmware does not
support ll_lt_sap.
To address this issue, add a feature capability to indicate
to userspace if host driver and firmware supports ll_lt_sap.

Change-Id: I7fbdb1996cab473f7a89761a35b6859fd2729c0a
CRs-Fixed: 3521091
2023-06-16 15:02:44 -07:00
Rahul Choudhary
b9c1936672 Release 5.2.1.70W
Release 5.2.1.70W

Change-Id: I695e7da97ac16325c0cb75d87072ecb44a836e81
CRs-Fixed: 774533
2023-06-16 11:33:10 -07:00
Rahul Gusain
def3833179 qcacld-3.0: Add lock for multicast list update
Currently, kernel provides the multicast address list to the driver
and driver appends this list with new peer multicast address which
are not included in the list. This is done in irq thread.
But with recent changes, for NDI, driver will update this list on
the peer addition and deletion which is executed in scheduler thread.
This may lead to issue when request to update the multicast
list comes from scheduler thread while irq thread request is in
progress and vice-versa.
So, to handle such situation, add spin lock which will protect the
multicast address list.

Change-Id: I9093a92d3714abd875dcd02743f711a5bed26090
CRs-Fixed: 3518989
2023-06-16 11:33:10 -07:00
Rahul Gusain
ea6a35e9f6 qcacld-3.0: Update NDP peer MC list
Currently, driver gets peer multicast address list from kernel for
all interfaces and it send this list to firmware. For NDI, on NDP
confirmation indication, driver appends the multicast list with
new NDP peer added and then send it to firmware. But this is done
for first NDP peer only, kernel does not provide multicast list
again as kernel already configures the multicast addresses, unless
there is some reset happens in kernel.
This can cause issue as firmware is expecting the updated multicast
filter on each NDP confirmation (new peer is added) to enable the
NS frame exchange. As new peer is not added in the filter, firmware
will reject the NS frame.

So, to fix this, update the multicast list on NDP peer addition and
deletion.

Change-Id: I6371199ae5c3a8f4088987f1e6f10c39cbed1685
CRs-Fixed: 3518887
2023-06-16 11:33:04 -07:00
Rahul Choudhary
4d27a6c841 Release 5.2.1.70V
Release 5.2.1.70V

Change-Id: I92f879f5cdc20ce0450d9abe298beb1368126d35
CRs-Fixed: 774533
2023-06-15 21:23:51 -07:00
Aditya Kodukula
7028b37955 qcacld-3.0: Fix typographical errors
Fix typographical errors spanned over various files in cld.

Change-Id: I82a7eec4335d617a43c89589418a21885074fde0
CRs-Fixed: 3529627
2023-06-15 21:23:48 -07:00
Rahul Gusain
8b87cede00 qcacld-3.0: Exempt STA + STA + NAN concurrency in host
Currently, host driver does not allow NDP formation if two STA is
in connected state. But driver should not allow NAN enable in first
if two STA is in connected state as STA + STA + NAN concurrency is
not allowed.

So, to fix this issue, add check for STA + STA concurrency in NAN
pre-enable in which NAN will drop if two STA + STA is present.

Change-Id: I6e6baa386d50b2903118660f10cc98ffcba60705
CRs-Fixed: 3481148
2023-06-15 21:23:43 -07:00
Jyoti Kumari
8f4111a071 qcacld-3.0: Add api to check 6 GHz channels till UNII-5 band
Add api to check 6 GHz channels till UNII-5 band for LL_LT_SAP

Change-Id: I05aa6baef455238f3e95a572855f2e740073dcac
CRs-Fixed: 3523007
2023-06-15 21:23:38 -07:00
Jyoti Kumari
3eec9dc69b qcacld-3.0: Don't populate twt_res bit for non assoc link
In MLO STA case, even though twt_responder ini is disable but
still this bit is getting populated in he_cap for non assoc link.
Reason:
1. twt_res is getting set from populate_dot11f_twt_he_cap()
for assoc link. For non assoc link, it's getting set from
mac context.
2. populate_dot11f_twt_he_cap() api doesn't have the interseted
value of ini and firmware caps according to twt component api.

As part of fix,
1. twt_req and twt_res should have intersected value in
populate_dot11f_twt_he_cap()
2. Update twt_res from populate_dot11f_twt_he_cap() for non
assoc link also as it will update the intersection of ini and
fw caps

Change-Id: I6ef34723f879aead4517c28cf6cfad2fa11165fe
CRs-Fixed: 3524903
2023-06-15 21:23:32 -07:00
Gangadhar Kavalastramath
54dd5b71e7 qcacld-3.0: Spatial Reuse disable is failing for SCC case
SR update is failing due to missing vdev connection entry in
policy_mgr_conc_connection_info table.

Fixed issue by using wma_get_interface_by_vdev_id() WMA util API which
refers to WMA vdev connection table.

Change-Id: I73a6dccaa7a5aaa8becfdfb34250e6752f43d860
CRs-Fixed: 3528556
2023-06-15 21:23:27 -07:00
Rahul Choudhary
60d86e41b6 Release 5.2.1.70U
Release 5.2.1.70U

Change-Id: I5e006ed597a1b6faa0490b79177183212dc4c6c5
CRs-Fixed: 774533
2023-06-15 16:31:13 -07:00
Paul Zhang
aa2dd85155 qcacld-3.0: Add logic enable EPCS by uplayer
EPCS feature is controlled by uplayer to enable or disable.

Change-Id: I25c4a48db92cecccfe0b605dfc76ac1575efb464
CRs-Fixed: 3521121
2023-06-15 16:31:13 -07:00
Jingxiang Ge
cbf24df31e qcacld-3.0: Ignore beacon to announce join success for hidden ap
In enterprise network, multi aps with same SSID. some AP may
switch to hidden ap in working mode, but it didn't response
probereq, this is ap's issue, so not able to register this
bss to kernel. if continue connect it, it will hit key
install failure from userspace as wdev->connected wasn't enabled.

change is to wait for probersp to trigger join success announcement.
even if the ap didn't response, it will select another non-hidden AP.

Change-Id: I5596dcdf5978e3a832c87d52fc4d3db4f01904ab
CRs-Fixed: 3503410
2023-06-15 16:31:08 -07:00
Will Huang
34b589ce84 qcacld-3.0: Update fourth connection PCL table to avoid MCC
If MLO STA connect with one 5 GHz low link and another 6 GHz (non-PSC)
link, and start 2 SAP on 5 GHz band, one SAP will start on 5 GHz low
channel doing SCC, another SAP will not start on 6 GHz (non-PSC)
channel and start on 5 GHz high doing MCC.

Add one PCL type which add SCC on 5 GHz low channel to
PM_SCC_ON_5G_HIGH_5G_HIGH_PLUS_SHARED_2G for this case, so that last
SAP can start on 5 GHz low channel doing SCC.

Change-Id: I4312873c159ac14652990c7c1079c13476dcd383
CRs-Fixed: 3508539
2023-06-15 16:31:03 -07:00
Paul Zhang
69dc57263c qcacld-3.0: Tune TDLS code for discovery response
Currently, TDLS code sends setup request and then forwards
TDLS discovery response frame. For MLO case, since supplicant
gets the link id from the link identifier element of discovery
response frame, there is issue when supplicant tries to add
new station because link id has not been properly set.

To resolve this issue, tune the TDLS code to forward the TDLS
discovery response frame first and then send setup request event.

Change-Id: I89b501fc4da8615ddb8973e5edce73294793558f
CRs-Fixed: 3528071
2023-06-15 16:30:58 -07:00
Aravind Kishore Sukla
e03ae8a139 qcacld-3.0: Add logic for else case of wlan_hdd_send_t2lm_event
Add logic for else case of wlan_hdd_send_t2lm_event API.

Change-Id: I59497dc431651dfcab1f7140ebee4820649b608b
CRs-Fixed: 3528625
2023-06-15 16:30:54 -07:00
Gururaj Pandurangi
7bf4c646ce qcacld-3.0: Fix implicit declaration of MLO vdev pause API
Fix implicit declaration of MLO vdev pause API
when invoked from lim.

Change-Id: I1b3ec7b54cb87c895e52eea9391ac2ea4f701119
CRs-Fixed: 3529997
2023-06-15 16:30:49 -07:00
Rahul Choudhary
adb5378874 Release 5.2.1.70T
Release 5.2.1.70T

Change-Id: Ieeda58b386b525ab3c044902e4a56696b81b16f2
CRs-Fixed: 774533
2023-06-14 22:01:53 -07:00
Rachit Kankane
5e32b65f93 qcacld-3.0: Channel width from peer phymode
Add MLME API to get channel width for STA / P2P-CLI mode
from peer phymode

Change-Id: Iffef01b5fe0ad603ae3b75a659144c3fdcc23a02
CRs-Fixed: 3529931
2023-06-14 20:25:41 -07:00
Rahul Choudhary
cacceb7f35 Release 5.2.1.70S
Release 5.2.1.70S

Change-Id: Id7fe9c2d2042c4f0fef96b01d8562e90d4c5495f
CRs-Fixed: 774533
2023-06-14 03:12:18 -07:00
Ashish Kumar Dhanotiya
08ca873aa4 qcacld-3.0: Add helper APIs in policy mgr
With this change add two helper APIs to check if the input
concurrency mode is SAP mode and to check if the input mode
concurrency mode represents beaconing mode.

Change-Id: Iccc82fccf20e43f600efbb4a83c00d51f1d2cd14
CRs-Fixed: 3521665
2023-06-14 03:12:18 -07:00
Rahul Choudhary
1de49a421f Release 5.2.1.70R
Release 5.2.1.70R

Change-Id: If5516f9c5880e17a35312877d2453471ff0a1234
CRs-Fixed: 774533
2023-06-13 15:36:19 -07:00
David Oladunjoye
c6147ddde4 qcacld-3.0: Populate twt eht cap in mlo during assoc req
Currently, there is no logic to update restricted_twt cap in mlo
ie for assoc req. Fix is to add twt eht cap check in mlo assoc req.

Change-Id: Ia83d2076f4dc974e1de7f087dd89bc515f6c13cb
CRs-Fixed: 3516980
2023-06-13 15:36:18 -07:00
Rahul Choudhary
e0010f035e Release 5.2.1.70Q
Release 5.2.1.70Q

Change-Id: I33456361c649413ec4918f5ccfceea9b5cff36c2
CRs-Fixed: 774533
2023-06-13 09:42:14 -07:00
Arun Kumar Khandavalli
6cc83bab0a qcacld-3.0: Set max group key only when firmware supports multipass
In api wma_rx_service_ready_ext2_event(),Set max group key
to firmware only if supports multipass sap.

Change-Id: I58ba5c53e81209e9a95878dca9bc5a5668b0edb0
CRs-Fixed: 3521352
2023-06-13 09:42:13 -07:00
Rahul Choudhary
19b5df9c82 Release 5.2.1.70P
Release 5.2.1.70P

Change-Id: I294595e9c525aa98c4ffa835a27ea2da8bf147f1
CRs-Fixed: 774533
2023-06-12 23:35:48 -07:00
Will Huang
2150c9edd1 qcacld-3.0: Add AFC osif vendor command support
Add HDD osif AFC vendor command support and PLD send AFC response
data to target support. Call AFC common API to init/deinit AFC
component.

CRs-Fixed: 3375786
Change-Id: I84342b6ea3b2f14c75eba8745cb17070f404b8d1
2023-06-12 23:35:47 -07:00
Rahul Choudhary
4b055fd0bb Release 5.2.1.70O
Release 5.2.1.70O

Change-Id: I49d58edc6a05849490d04f17c4762d513b3e7802
CRs-Fixed: 774533
2023-06-12 20:35:15 -07:00
Aravind Kishore Sukla
3182d06137 qcacld-3.0: Pass net_device as arg for hdd_tid_to_link_map
Pass net_device as arg for hdd_tid_to_link_map API

Change-Id: I73964ef93b0e6c5ad7ae8305de9d81cfff0f730f
CRs-Fixed: 3526810
2023-06-12 20:35:14 -07:00
Rahul Choudhary
f1e03d2f3d Release 5.2.1.70N
Release 5.2.1.70N

Change-Id: Ibe7c763300d316d8ff6e196a1a2bf974ae0e1183
CRs-Fixed: 774533
2023-06-12 16:26:23 -07:00
Ashish Kumar Dhanotiya
ccb4fda527 qcacld-3.0: Update policy manager pcl tables for PM_LL_LT_SAP
Based on requirement a new concurrency mode PM_LL_LT_SAP is
added, add corresponding pcl table entries for LL_LT_SAP.

Change-Id: I12bf51547984c714499f7f0f35581251306e1a84
CRs-Fixed: 3514184
2023-06-12 16:26:22 -07:00
Arun Kumar Khandavalli
1ee580eabf qcacld-3.0: use the correct sta_ctx to retrieve the peer phy mode
Because of recent changes channel bandwidth and operating freq
are retrieved with two different sta_ctx.

update the sta_ctx for link properly to retrieve the proper information.

Change-Id: If7a045d4b9b41ccd50cb9200f38902847b014571
CRs-Fixed: 3524324
2023-06-12 16:26:15 -07:00
Gururaj Pandurangi
84eaa43844 qcacld-3.0: Add support to send 512 BA buffer size
Add support to send user-configured BA buffer size to FW.
Also, update the AMSDU support flag based on user
configuration.

Change-Id: Ie82285635f58753ae4b8a24015b81a18fdfd9db6
CRs-Fixed: 3524623
2023-06-12 16:26:08 -07:00
Gururaj Pandurangi
0a7681d655 qcacld-3.0: Add support to send Manual BA mode on each vdev
FW has BA Auto mode as default configuration and expects
Host to update if it is Manual trigger mode. Currently, Host
sends Manual mode trigger on assoc vdev as the partner vdev
is not yet created while setting this value. Modify the
logic to support to set Manual mode on each vdev post the
vdev start.

Change-Id: I3f1e806d2a1e9a28f3f380a0c087da494a7af27e
CRs-Fixed: 3401604
2023-06-12 16:26:01 -07:00
Vinod Kumar Pirla
6c4913dc46 qcacld-3.0: Use link info to get VDEV's roaming status
Modify hdd_cm_is_vdev_roaming() API to take link_info
as functional argument to retrieve whether the
corresponding VDEV is in roaming state or not.
Existing callers moved to deflink.

Change-Id: I0efee888a1d886e04817c9870db95be2a95d8e54
CRs-Fixed: 3464349
2023-06-12 16:25:54 -07:00
Vinod Kumar Pirla
a5c84cda1a qcacld-3.0: Use link info to get VDEV's disconnect status
Modify hdd_cm_is_disconnected() API to take link_info
as functional argument to retrieve whether the
corresponding VDEV is in disconnected state or not.
Existing callers moved to deflink.

Change-Id: I4520230b2a59cbac550f196acf9c48e6abe45d1b
CRs-Fixed: 3464327
2023-06-12 16:25:46 -07:00
Paul Zhang
3050ccd014 qcacld-3.0: Create API for TDLS configure link id
Create API to set link id and used in
wlan_hdd_cfg80211_tdls_mgmt function for MLO TDLS.

Change-Id: I39814db1646362585cb9c3258d7e71c3cabe4204
CRs-Fixed: 3491950
2023-06-12 16:25:39 -07:00
Vinod Kumar Pirla
581d7afc7c qcacld-3.0: Use link info to get if VDEV is connecting state
Modify hdd_cm_is_connecting() API to take link_info
as functional argument to retrieve whether the
corresponding VDEV is in connecting state or not.
Existing callers moved to deflink.

Change-Id: If24273873b2b20e9dc63ce4b912c95a873ec7675
CRs-Fixed: 3464297
2023-06-12 16:25:33 -07:00
Vinod Kumar Pirla
28ee4a6ed5 qcacld-3.0: Use link info to get VDEV connected status
Modify hdd_cm_is_vdev_connected() API to take link_info
as functional argument to retrieve the corresponding VDEV's
connected status.
Existing callers moved to deflink.

Change-Id: I438269e683c6931f8509c62a77939c0f1b15fadd
CRs-Fixed: 3464281
2023-06-12 16:25:25 -07:00
Vinod Kumar Pirla
071b080f83 qcacld-3.0: Get each link FCS and MPDU stats
To fill and send each link FCS and MPDU stats, change
the function argument of hdd_fill_fcs_and_mpdu_count()
to link info pointer instead of adapter.
Existing references are changed to deflink.

Change-Id: I208dd3a8fa5e6e9ddeb413d0bbc37341319b1582
CRs-Fixed: 3464269
2023-06-12 16:25:18 -07:00
Vinod Kumar Pirla
9057dd1ea8 qcacld-3.0: Use link info to get VDEV CCA stats
To get the congestion stats per each VDEV, change
the function argument of hdd_get_sta_congestion() API
to link info pointer from adapter.
Existing callers moved to deflink.

Change-Id: I199513ef23ea304ce682fddff5ce7d31a424dd22
CRs-Fixed: 3463952
2023-06-12 16:25:11 -07:00
Vinod Kumar Pirla
6558724b01 qcacld-3.0: Refactor NS/ARP/ICMP FW offload configure APIs
Optimize the recurrent VDEV reference hold in following
FW offload APIs as the VDEV reference is already taken
in the caller.
Existing callers moved to deflink.

1) hdd_enable_ns_offload()
2) hdd_disable_ns_offload()
3) hdd_enable_arp_offload()
4) hdd_disable_arp_offload()
5) hdd_enable_icmp_offload()

Change-Id: I27b5675c16749ee3b44b727170392f99d1a71f3b
CRs-Fixed: 3463936
2023-06-12 16:25:04 -07:00
Rahul Choudhary
05a2e19f53 Release 5.2.1.70M
Release 5.2.1.70M

Change-Id: I06f2b3433191ee9d28af0ee2b15b39ded94371ed
CRs-Fixed: 774533
2023-06-12 11:19:45 -07:00
Vinod Kumar Pirla
a902ef2601 qcacld-3.0: Refactor GKT/IGMP offload configure APIs
Optimize the recurrent VDEV reference hold in the
following APIs. The caller of these functions already
has the VDEV reference.

1) hdd_enable_gtk_offload()
2) hdd_disable_gtk_offload()
3) hdd_enable_igmp_offload()
4) hdd_disable_igmp_offload()
5) hdd_send_igmp_offload_params()

Change-Id: Id96533605fa033b2492b07d3dd0a38d239b4e1e3
CRs-Fixed: 3463904
2023-06-12 11:19:44 -07:00
Vinod Kumar Pirla
0b77b5352d qcacld-3.0: Refactor action frm and HW filter offload API
Optimize the recurrent VDEV reference accounting in following
APIs. The caller of these APIs already has VDEV reference.
1) hdd_enable_hw_filter()
2) hdd_disable_hw_filter()
3) hdd_enable_action_frame_patterns()
4) hdd_disable_action_frame_patterns()

Change-Id: I75b2dc3047458449712e897b08365ecc4ec45855
CRs-Fixed: 3463868
2023-06-12 11:19:39 -07:00
Liangwei Dong
5c49e57e75 qcacld-3.0: Fix AP AP start fail
2 SAP start ACS but different channel range at almost
same time. First SAP selected and started on DFS channel
5260, second SAP select and start on MCC channel of 5180,
policy_mgr_allow_concurrency in
__wlan_hdd_cfg80211_start_ap check fail and abort the second
SAP start because of MCC not allowed for DFS channel SAP.
Refine the logic in API policy_mgr_is_ap_ap_mcc_allow
to cover this case, try to override 2nd SAP channel
to avoid start failure.

Change-Id: Ie483e1fc68f73ce87d14f647ee6fe27b015b5a79
CRs-Fixed: 3512135
2023-06-12 11:19:33 -07:00