提交图

26322 次代码提交

作者 SHA1 备注 提交日期
Srinivas Dasari
7fcf50b5c1 qcacld-3.0: Consider AUTO phy_mode in legacy platforms as well
Currently, phy_mode AUTO is not considered for candidate scoring
config if the platform doesn't support 11BE currently. This is
added as part of 11BE changes and the mode is considered fine
before the change I7f35379b94dcb64dec0da463b95967125dc7fd14.
This doesn't seem to be intentional.
So, consider phy_mode AUTO also for legacy platforms.

Change-Id: Id2eaa8208f5bf5a875e1e72a2117a24b070e6e6b
CRs-Fixed: 3242455
2022-07-19 13:49:34 -07:00
Jinwei Chen
d7e0ec3e67 qcacld-3.0: check memory size in dp_prealloc_get_context_memory
check memory size in dp_prealloc_get_context_memory, if memory size
needed > pre-allocated, then fall back to dynamic memory allocation.

Change-Id: I2727feef066046b54dff9206a1f6699ef4455fe8
CRs-Fixed: 3222594
2022-07-19 13:49:29 -07:00
Rahul Gusain
e0c46cf74e qcacld-3.0: Add support for NDI del virtual intf
Currently host driver deletes NDI interfaces using
vendor command. With the kernel 5.12 version onwards,
interface deletion is not allowed using vendor commands
as it leads to deadlock when driver tries to acquire
the RTNL_LOCK at the time of netdev register/unregister.

With this change, support both del_virtual intf and ndi
delete vendor cmd to stop and deinit adapter.
Now, with NDI delete vendor subcmd, NDI is down as stop adapter
and deinit adapter is executed and del virtual intf will clean
up(stop, deint and close) the adapter.
Since ndi delete vendor cmd already comes with the rtnl lock
and driver does not need to take the rtnl lock again
which will help to avoid the above issue.

Change-Id: I0fe69b1648dc76b902b8eea1fc4aef695d1bd152
CRs-Fixed: 3170293
2022-07-19 13:49:24 -07:00
Madan Koyyalamudi
9059d14776 Release 5.2.1.29P
Release 5.2.1.29P

Change-Id: I11ed84eb30a167742721ea034f21f45ee83b1236
CRs-Fixed: 774533
2022-07-19 07:06:31 -07:00
Rahul Gusain
6dc9fa750c qcacld-3.0: Send deauth frame to STA if OCI is invalid
After channel switches to new channel, STA sends sa query request to
AP/SAP device. SAP process sa query request and if OCI is invalid in
that sa query, then it sends deauth to STA on new channel.

Change-Id: I52a5dcaf2e0826d3bd899d7f52f02400927c4ae6
CRs-Fixed: 3227530
2022-07-19 07:06:31 -07:00
Madan Koyyalamudi
47d9394625 Release 5.2.1.29O
Release 5.2.1.29O

Change-Id: If1b397272e23c3a7110c66f9566207c437fed6ee
CRs-Fixed: 774533
2022-07-19 03:33:42 -07:00
VIJAY RAJ
702557e085 qcacld-3.0: Roam reason and sub-reason code conversion during diag logging
Wrong value of Roam reason and sub-reason code is sent to
userspace via diag logging.

Convert the value of reason and sub-reason code to qca
specific code before sending it to userspace

Change-Id: Iebdc5f8673e2da6a208a89caca9a742202256bcc
CRs-Fixed: 3236178
2022-07-19 03:33:41 -07:00
Ananya Gupta
33d6134296 qcacld-3.0: Disable feature to deliver all OOR frames to stack
Disable DP_RX_DELIVER_ALL_OOR_FRAMES feature
This reverts commit I3ad59fc3b3fc8e70b2f05a7cfa23e2646c1e03a4.

Change-Id: I786b03daebbf412e75015b5eabe561dfa36614c8
CRs-Fixed: 3235707
2022-07-19 03:33:35 -07:00
Madan Koyyalamudi
ae1f0044a0 Release 5.2.1.29N
Release 5.2.1.29N

Change-Id: Idf32a161678c4ea4b7783751277efcf95821a53d
CRs-Fixed: 774533
2022-07-19 01:35:44 -07:00
Vinod Kumar Pirla
6fad793761 qcacld-3.0: Check dynamic NS offload based on trigger
Currently a userspace request to enable NS offload dynamically
gets rejected if the offloads are in disabled state.

After this change, when a request to enable or disable of NS offloads
is received in the host and if the trigger type is to dynamically update
the NS offloads, then update the dynamic offload configuations and inform
the FW.

Change-Id: Ifb4a1d37b5f2e6c89d043b00f9cc0aaf426d870e
CRs-Fixed: 3237980
2022-07-19 01:35:44 -07:00
Madan Koyyalamudi
bcf4fe9a55 Release 5.2.1.29M
Release 5.2.1.29M

Change-Id: I9e40a598b3ced3749a7b93ac9d09f79d7e7f8ebc
CRs-Fixed: 774533
2022-07-18 23:36:10 -07:00
Gururaj Pandurangi
9605f2337c qcacld-3.0: Add host fixes related to EMLSR association
Add following host fixes related to EMLSR association.
1) Use phy cap get macro to extract EMLSR hw mode id.
2) Add logic to send EMLSR cap flag during vdev start.
3) Add logic to copy EML caps from assoc link common
info subfield to MLO peer assoc struct in order to
share EML caps to FW on both links via peer assoc.
4) Add checks to update EMLSR cap flag only if both
STA and AP support and advertise EMLSR mode.
5) Send EMLMR support flag along with EMLSR support
flag to FW as part of vdev set IE cmd for roaming
scenarios. Also, update common info length when EML
caps are present.

Change-Id: Ied2570d498a43adadd93899d4fdbe023d320676b
CRs-Fixed: 3235059
2022-07-18 23:36:09 -07:00
Jyoti Kumari
10414f0f46 qcacld-3.0: Update cbmode during start bss
When intolerant STA connects to SAP, the forty MHz intolerant bit
will be set to 1 in assoc request frame.
So when supplicant triggers to change the channel width, the
secondary channel offset or supported channel width ie in HT info
field of beacon should be 0 instead of 1.

As part of fix, copy sec_ch_offset from start_bss_config
structure and store it to cbmode of csr session during bss
start. So whenever channel width change request comes, this
cbmode will have non zero value and it will set the secondary
channel offset as 0 internally.

Change-Id: Iaa5461ef7d72e9bdf942dd0faab7c0409611ca7e
CRs-Fixed: 3245288
2022-07-18 23:36:04 -07:00
Madan Koyyalamudi
a2cb479c3e Release 5.2.1.29L
Release 5.2.1.29L

Change-Id: Ia33638eaad28975f2bbabf27e2cf362d794d0521
CRs-Fixed: 774533
2022-07-18 21:18:58 -07:00
Liangwei Dong
f31505e491 qcacld-3.0: Fix 2.4 GHz SAP can't be started on 40 MHz
If SAP is initially started on 40 MHz bandwidth, keep using it.
But still keep the old logic 20 MHz for internal CSA for SAP.
This is to fix the SAP can't bring up on 2.4 GHz 40 MHz bw if SAP
OBSS scan disabled and configured as HT40 in hostapd conf.

Change-Id: Ib01be7fe594130f1eee35e3bfb773b1e913ec9c1
CRs-Fixed: 3234564
2022-07-18 21:18:58 -07:00
Madan Koyyalamudi
03f2ad7fe5 Release 5.2.1.29K
Release 5.2.1.29K

Change-Id: I9877525cfea5039cc56e3a807014ef430133fc74
CRs-Fixed: 774533
2022-07-18 17:44:25 -07:00
Arun Kumar Khandavalli
e4e44c1200 qcacld-3.0: update the link addr for sae frame
Update the link address on which association has
happened for SAE authentication.

Change-Id: I0e3e386a8ec028ace04f0f81bc48a65be52ba1a2
CRs-Fixed: 3225835
2022-07-18 17:44:24 -07:00
VIJAY RAJ
bcf0e588e7 qcacld-3.0: Incorrect bssid value during Roam Result logging
In the cm_roam_result_info_event() api, for roam result the
current AP bssid is sent instead of candidate AP.

Correct this to send candidate AP bssid during roam result
logging.

Change-Id: I4b1d4634faa3fbf3e7b32af8c13d4b444d26c505
CRs-Fixed: 3237021
2022-07-18 17:44:18 -07:00
Jyoti Kumari
893081ff9e qcacld-3.0: Start SAP on valid BW when no other interface is up
When SAP tries to come on 2.4 GHz channel with 40 MHz bandwidth
then it should start on same bandwidth if no other interface is
up. But currently SAP is getting switch from 40 MHz to 20 MHz
even in standalone case.

As a part of fix, check any other vdev is present on same mac or
not. If it's not present then start SAP on given bandwidth

Change-Id: Id9625a3dfaec34480f86b7ca1459ea33c32299fe
CRs-Fixed: 3226558
2022-07-18 17:44:12 -07:00
Madan Koyyalamudi
695c56452b Release 5.2.1.29J
Release 5.2.1.29J

Change-Id: I30a266a3eab6c80bbeb5b89d0f8063a352e01c91
CRs-Fixed: 774533
2022-07-18 14:20:07 -07:00
Amit Mehta
8c142b3f4d qcacld-3.0: Add change to set high vote level
Add change in bus bandwidth to set set high bus vote
level into DP component introduced by change to
skip special frame rate info update.
Change: Ie8989dde506c654525099f9d154abe93162a0bac

Change-Id: Ib0a2241ac63536fe885c89715d70c778af444f2d
CRs-Fixed: 3245764
2022-07-18 14:20:07 -07:00
Amit Mehta
08f5a4c814 qcacld-3.0: Move Enable detection of data stall events to DP component
Move change: Id4fd7f10f0806a39c5bdb7b8c097c26894dc5340
Enable detection of data stall events to DP component

Change-Id: I9eab2f29739cd0159f202a3a95f4a4baa70cb47d
CRs-Fixed: 3230891
2022-07-18 14:20:01 -07:00
Karthik Kantamneni
7d1e47bb27 qcacld-3.0: Fix MLO adapter to DP interface mapping
In MLO case two link adapters will be present, only one link adapter
shares vdev with MLD adapter other link adapter has its own vdev.
But currently for both link adapters vdevs same MLD adapter mac is
provided fix this by checking shared vdev link adapter.

Change-Id: I54c9c270052bfa1b6884d742a20e01a08a4df39c
CRs-Fixed: 3200644
2022-07-18 03:22:07 -07:00
Amit Mehta
aed549d3a9 qcacld-3.0: build script changes for DP component
build script changes to include DP component files

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: I8c185e7496a8c7315b7bdd2c0bd98bb60a047f86
CRs-Fixed: 3198619
2022-07-18 03:21:56 -07:00
Amit Mehta
08d727ece3 qcacld-3.0: Code cleanup from HDD module
Cleanup HDD code which is refactored to
DP component.

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: If5f1cf432b5c02848202debee7de696b2f20be9a
CRs-Fixed: 3198619
2022-07-18 03:21:19 -07:00
Amit Mehta
e5e83b4185 qcacld-3.0: Update HDD to use DP component APIs
All the DP specific code logic is moved out of HDD to
new DP component. So update HDD module to use newly
introduced DP component APIs for DP specific operations.

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: I377aecc4343e75dd17d279a2eb84fc49e737e784
CRs-Fixed: 3198619
2022-07-18 03:21:04 -07:00
Amit Mehta
8d29b98384 qcacld-3.0: Add HDD callback API for DP component
Add and register HDD callback APIs with DP component.
With this changes DP component will be able to call
HDD APIs which cannot be moved to DP component,
and to get information from HDD.

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: Ie55ab16cb25a93061d09684a9eda5738f4e151a8
CRs-Fixed: 3198619
2022-07-18 03:20:50 -07:00
Amit Mehta
95806ea1ee qcacld-3.0: HDD changes to incorporate new DP component
HDD changes to incorporate new DP component

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after performing complete sanity to
vet out any regression which might be introduced by these changes.

Change-Id: I058b9121c8490e9b0906421a35e01c55a1a7c25a
CRs-Fixed: 3198619
2022-07-18 03:17:02 -07:00
Madan Koyyalamudi
2b4926c710 Release 5.2.1.29I
Release 5.2.1.29I

Change-Id: I6afcc0a08dddb25ace80e8eb1328ac79279e397c
CRs-Fixed: 774533
2022-07-18 02:50:55 -07:00
Rahul Gusain
5b5098762d qcacld-3.0: Fix the ndi set failure in case of non-random mac
Currently in host driver, for non-random mac addr, ndi mac addr
pointer is null, so, hdd_ndi_set_mode function returns error.

To fix this, dynamic mac address is updated for only randomized mac
in hdd_ndi_set_mode function. Thus, null pointer check is removed
and function does not return the error.

CRs-Fixed: 3243783
Change-Id: I27fff615ec66acfd86bd13449b79b0d36469803f
2022-07-18 02:50:54 -07:00
Madan Koyyalamudi
e991a299ce Release 5.2.1.29H
Release 5.2.1.29H

Change-Id: Ief4ad661cbd2479f583e09a550abf48e00861be9
CRs-Fixed: 774533
2022-07-18 01:03:57 -07:00
Wu Gao
71b3a1294c qcacld-3.0: Check length of ciphered text and avoid to OOB read
Potential OOB access ciphered text since no length check before reading.

Change-Id: I2332e14e0b28286018bcf5bcfe25a1925f46cf0f
CRs-Fixed: 3241763
2022-07-18 01:03:56 -07:00
Yu Wang
85e898d01a qcacld-3.0: add ini to extend ITO value under WoWLAN mode
Some APs sometimes don't honor Qos null frames under WoWLAN
mode if station's ITO is too small. Introduce a new ini
gActionOUIExtendWowITO to specify AP OUIs which exhibit
this behavior. When connected to such an AP, the station's
ITO value will be extended when in WoWLAN mode.

Change-Id: I41ade7e6a6f5ca8d9b2aac2ae25427ca7fa8fe6b
CRs-Fixed: 3238200
2022-07-18 01:03:51 -07:00
Madan Koyyalamudi
d22eed8e27 Release 5.2.1.29G
Release 5.2.1.29G

Change-Id: I4130ad09b2783e3f8899e545ab39ff919bd1fb90
CRs-Fixed: 774533
2022-07-17 23:12:17 -07:00
Aditya Kodukula
2d9a20e46f qcacld-3.0: Add infra to support DBAM feature
Add infra to support Dedicated Bluetooth Antenna Mode (DBAM)
feature. It is used to switch between dedicated antenna for
BT and shared antenna for WLAN and BT.

Change-Id: I20b08a2fd446da4e3c17813aa64e368750286114
CRs-Fixed: 3239896
2022-07-17 23:12:16 -07:00
Madan Koyyalamudi
49308343ab Release 5.2.1.29F
Release 5.2.1.29F

Change-Id: I11bb1aa91eaa9fe00af5802d8ee74c15a506624d
CRs-Fixed: 774533
2022-07-16 07:35:01 -07:00
Bing Sun
8d43935c04 qcacld-3.0: Fix channel width issue for EHT
If EHT operation information field is present, it means EHT connection
has different channel bandwidth with legacy mode. We should update
pAddBssParams->ch_width with pe_session->ch_width which considers
channel width in EHT operation IE.

Otherwise, channel width is not set correctly for EHT connection.

Change-Id: Idcac0382fb45df389b99711abcf0140caa80728f
CRs-Fixed: 3239711
2022-07-16 07:35:01 -07:00
Madan Koyyalamudi
701b724d67 Release 5.2.1.29E
Release 5.2.1.29E

Change-Id: Ifc0576ae0f19ec958fcfe45976e5ad99c661c651
CRs-Fixed: 774533
2022-07-15 20:49:08 -07:00
Liangwei Dong
42b30770a5 qcacld-3.0: Fix SBS list freq list missing in PCL
sbs_num contains the sbs_freqs array size. Do not clear it
to 0 before call get_sbs_chlist API. Otherwise the size_of_sbs
will be 0 and can't add sbs freq to list.

Change-Id: I318edd12978f73e9f75ab5298c36ceec57c5df6d
CRs-Fixed: 3243780
2022-07-15 20:49:08 -07:00
Madan Koyyalamudi
517c5d9ae8 Release 5.2.1.29D
Release 5.2.1.29D

Change-Id: Iba9f7f9ee91af7f6bac31de61d39abd4317a811d
CRs-Fixed: 774533
2022-07-15 13:34:53 -07:00
jinbliu
95d8c151df qcacld-3.0: Skip special frame rate info update
To avoid unmeaningful rate fluctuation, when report
rx linkspeed to upper layer, exclude special frames:
arp/ssdp/dhcp/eapol/ipv6 NA/NS/DHCPV6 in low rate.

Change-Id: Ie8989dde506c654525099f9d154abe93162a0bac
CRs-Fixed: 3199636
2022-07-15 13:34:52 -07:00
Madan Koyyalamudi
37c0c80f0f Release 5.2.1.29C
Release 5.2.1.29C

Change-Id: If17e0f6e7543b6896136aa1ff1f0df9da1c756a5
CRs-Fixed: 774533
2022-07-15 11:51:24 -07:00
Vulupala Shashank Reddy
487a76179b qcacld-3.0: Fix vdev reference count in packet capture
In pkt_capture_datapkt_process and pkt_capture_mgmt_rx_data_cb
pkt_capture_vdev_put_ref is missing in error case, because of
which vdev ref count is not becoming zero when vdev is down.

Add pkt_capture_vdev_put_ref in all the error cases.

Change-Id: I55353356f059a367d57c64625f404e3940235be1
CRs-Fixed: 3228599
2022-07-15 11:51:24 -07:00
Madan Koyyalamudi
fbb109fc82 Release 5.2.1.29B
Release 5.2.1.29B

Change-Id: I3edb2e43cc8e918eed2e55ccb70bf2db494f6d41
CRs-Fixed: 774533
2022-07-15 07:15:30 -07:00
Liangwei Dong
809b5ce8dc qcacld-3.0: Validate nla_nest_start return value
The return value of nla_nest_start can be NULL. Add validation
to "radio" to fix potential invalid memory access.

Change-Id: Iea6b0008e72548e8e4e26cd5eb87a9c5c2dad2c6
CRs-Fixed: 3242444
2022-07-15 07:15:30 -07:00
Madan Koyyalamudi
9a4639468d Release 5.2.1.29A
Release 5.2.1.29A

Change-Id: I93c911420fc76bc47552405df50cc14e5fcdaf91
CRs-Fixed: 774533
2022-07-15 05:01:17 -07:00
Tiger Yu
3c7cbe4fd7 qcacld-3.0: Add VCPU_TIMESTOLEN for Hypervisor system
Per feedback from some hypervisor system vendor, a virtual CPU can
have some stolen time imposed by the physical CPU scheduling, this
can result in some tasks' handling taking longer time than expected,
even when spin lock is held by code running on the vCPU.

With the stolen time existing, wlan driver's timeout for spinlock
holding must be different on hypervisor systems as compared to metal
platforms.

Change-Id: I607895f8afc9ad745a7a68939202a66560f31637
CRs-Fixed: 3242535
2022-07-15 05:01:16 -07:00
Madan Koyyalamudi
fe5ea968e0 Release 5.2.1.29
Release 5.2.1.29

Change-Id: I601484b011001324dc3321bf23479efe2c7c2236
CRs-Fixed: 774533
2022-07-15 02:55:51 -07:00
Jingxiang Ge
8a365296f2 qcacld-3.0: Report tim bcn/tim err bcn to userapce
Such statistics are used for power saving feature.
Report to userspace by
QCA_WLAN_VENDOR_ATTR_LL_STATS_TOT_TIM_BCN
QCA_WLAN_VENDOR_ATTR_LL_STATS_TOT_ERR_TIM_BCN

Change-Id: Idc447a53a74429336f5e2d25971a5ac9390fb9f7
CRs-Fixed: 3221119
2022-07-15 02:55:51 -07:00
Jia Ding
01698ae469 qcacld-3.0: Support EAPOL over NL on IPA RX path
For latest chipsets netlink interface has been used for EAPOL handshake
for all device modes. Hence support the same on the IPA RX exception
path for SAP and STA modes.

Change-Id: I85fabf8d3da54fb4b204458c0a62e8dde8d1d17e
CRs-Fixed: 3241236
2022-07-15 02:55:44 -07:00