Gráfico de commits

18840 Commits

Autor SHA1 Mensagem Data
Ruben Columbus
23fbd0d174 qcacmn: remove hal 9224v1
remove 9224v1 hal support and add 9224v1 crash if used

Change-Id: Icf22fa7b65d3d5b8eac44fd876316a4d35829756
CRs-Fixed: 3428599
2023-03-23 13:22:19 -07:00
Kenvish Butani
3b0a344b0c qcacmn: Remove DP_MLO_LINK_STATS_SUPPORT from RX path
Remove DP_MLO_LINK_STATS_SUPPORT macro from per
packet RX Path to enable Link Peer Stats support

Change-Id: Ie4b7ac70db3ba3a8cc20a53de320c0eb1720d08b
CRs-Fixed: 3443161
2023-03-23 11:47:02 -07:00
Asutosh Mohapatra
0d779068fe qcacmn: Add two definitions for allowed SP mode
Currently for client SP, super channel list is disabled
even if the corresponding reg rules are sent by the target.

To address this issue, add two definitions for
reg_is_sp_pwr_mode_allowed_in_supchan, to check
if the given mode is SP mode in the super channel list.

Change-Id: Idb1fc22e3ba4a61a07e03302f92fd8e2a6a9bc85
CRs-Fixed: 3426498
2023-03-23 09:08:27 -07:00
Sushant Butta
b0fc42c8f8 qcacmn: Fix incorrect datarate in radiotap header
The datarate for Data packets and QOS NULL packets,
shown in the Radiotap header was wrong for QCN9224.

In Lithium based devices, for data packets datarate
is not included in the radiotap header.
So for WKK also changes are done to not to include
data rate.

Change-Id: I3fa8a65973e3e0b01ef589551c6621d35b34b984
CRs-Fixed: 3408916
2023-03-23 09:08:13 -07:00
Jhalak Naik
0e4acb24f3 qcacmn: Mark blanking support as false for AR9887
Mark the blanking support as not supported and
return success status for AR9887
in target_is_scan_blanking_enabled().

Change-Id: I055f4d3b30781189744b0d96db4a93b61c0cf1f4
CRs-Fixed: 3430100
2023-03-23 04:47:46 -07:00
aloksing
47c7b5dfc8 qcacmn: Reduce mimo users to 8
Reduce array size to 8 for ul/dl mimo users
for deterministic stats

CRs-Fixed: 3408802
Change-Id: I055aa195e514eb1fe74161ef61119f7c8ddad478
2023-03-23 04:47:34 -07:00
Srinivas Dasari
5ec7c5416d qcacmn: Don't unlink the bss in disconnect/connect failure handler
Currently, bss is unlinked from kernel scan db in below cases,
1. Disconnect
2. Connect failure
3. AP moves to hidden SSID mode from normal mode

bss is unlinked in above 1 and 2 cases (i.e. disconnect and
connect failure) to avoid continuous connect failures when
userspace attempts connect to the same AP without issuing a
fresh scan, which may result in blacklisting the AP. But
framework/wpa_supplicant can take care of this now by making
sure that connect is attempted only if scan result is from
a fresh scan.
Unlinking the bss may lead to inconsistency in some scenarios
and found that disconnect is most common scenario. So, don't
call __wlan_cfg80211_unlink_bss_list() in case 1 and 2 to
avoid unlinking.

Change-Id: I2d3af5fcc22360a5ead0e148d623194cb815f882
CRs-Fixed: 3433127
2023-03-23 04:47:19 -07:00
Priyadarshnee Srinivasan
70a7674b32 qcacmn: Retrieve DFS channel parameters such as CAC, NOL, state
Add APIs to fetch the DFS channel parameters such as CAC, NOL and the
channel state to the user application.
struct dfs_cacelem is defined to store all the CAC related information
such as cac start time, cac completed time and the cac timeout.
dfs_cacelems is stored for NUM_5GHZ_CHANS in the dfs pdev object.
dfs_handle_cac_events() API is used to handle CAC related events such
as WLAN_EV_CAC_COMPLETED, WLAN_EV_CAC_RESET and radar during CAC.

CRs-Fixed: 3428828
Change-Id: I82f7aafeb20222d9722bed5a1a8c10b5703ac975
2023-03-23 00:14:50 -07:00
Surya Prakash Raajen
3b2a716195 qcacmn: Detach dp soc and mlo ctx in soc down sequence
Detach dp soc and mlo ctx in mlo soc down sequence,
to remove the dependency with link teardown event

Change-Id: I2dc2f64398904a7c57f579029297d11d887979c4
CRs-Fixed: 3390199
2023-03-23 00:14:40 -07:00
Surya Prakash Raajen
aad2e9bdb9 qcacmn: Re-init mlo global shmem in case of recovery
Re-init mlo global shmem region whenever in case of expected
target recovery mode. In case of mode1 recovery assert, need
complete teardown of mlo and clearing out global mlo shared
memory, when asserted SoC is recovered, re-init global shared
memory region again.

Change-Id: I475b08934bdceb78b87d115b79abf45e76633795
CRs-Fixed: 3390199
2023-03-23 00:14:31 -07:00
Tallapragada Kalyan
ee4fb4380c qcacmn: replenish used nbuf for DS flows
in case of DS pkts the same pkt which is received
in RX path (REO2PPE) can be refilled back to wifi
rxdma

CRs-Fixed: 3381462
Change-Id: I3762c91110ffcc95162bf068b7a1ed3e41904824
2023-03-23 00:14:20 -07:00
sandhu
55435d303a qcacmn: Add WMI_SERVICE_11BE_TDLS_SUPPORT
1\ Add BE tdls fw support bit.
2\ Add link force reason per wmi changes

Change-Id: I0c297b0ea337d4060ac339c89679ec6059afc89f
CRs-Fixed: 3435979
2023-03-22 12:14:32 -07:00
Hariharan Ramanathan
7a22157418 qcacmn: Changes to make correct buffer allocation for monitor
Changes to allocate correct number of buffers for monitor during boot
time and allocate remaining buffers only when monitor vap is created.

Change-Id: I8a2cd7b6a20a281934c47ca0418904b426d17a4d
CRs-Fixed: 3432525
2023-03-22 10:30:05 -07:00
Jeevan Kukkalli
5b2792536c qcacmn: Move smart monitor cdp func ptrs to mon ops structure
Move smart monitor cdp func ptrs to cdp mon ops structure.
Smart monitor cdp functions are different for 1.0 and 2.0
hence moving the func ptrs to mon ops structure ensures that
func ptrs are initialized appropriately.

Change-Id: Ic827b44f36d76349f397e5b72dec0a127f90aa7a
CRs-Fixed: 3428778
2023-03-22 10:29:56 -07:00
Shwetha G K
e10810a5a5 qcacmn: Add link_mapping_size in t2lm ctrl param
Add link mapping size per draft 3.0 in t2lm control field

CRs-Fixed: 3432041
Change-Id: Id4365d81dc5c1fb76ae67f8ecfb5193f806d7716
2023-03-22 07:33:30 -07:00
Shwetha G K
40931af2b3 qcacmn: t2lm draft 3.0 changes
Changes to incorporate link mapping size in t2lm control
field of t2lm ie per draft 3.0

CRs-Fixed: 3431897
Change-Id: I61834258e6348b6483a86eb9e9217e3d5997c2c9
2023-03-22 07:33:20 -07:00
Kenvish Butani
1e6fe4c3a2 qcacmn: Enable MLO Link Stats Support
1) Enable MLO Link Stats Support
2) Add Stats counter to capture Invalid Link ID
3) Fix the FW Recovery crash while ol_stats
   disable.

Change-Id: I1b5263ae024579c5ec2018f8082f0d03ffdf0030
CRs-Fixed: 3431319
2023-03-22 05:58:57 -07:00
nobelj
d1ddb7d4fe qcacmn: Add fix to receive response window ppdu
Received window ppdu are dropped in work queue context as it doesn't
have ppdu timestamp. Added fix to populate ppdu timestamp.

Change-Id: I3276284351f27ae2e8bfb787aa96fb031e4025ac
CRs-Fixed: 3439473
2023-03-22 05:58:47 -07:00
Jeevan Kukkalli
96b25fe6e0 qcacmn: Fix compilation issue when rx tag stats macro is disabled
Fix compilation issue when WLAN_SUPPORT_RX_TAG_STATISTICS is
disabled.

Change-Id: I955af07214bcf7b9b2bba17c0f12eb18076c2a48
CRs-Fixed: 3436740
2023-03-22 05:58:37 -07:00
Namita Nair
cd406423c7 qcacmn: Disable cookie conversion for IPA WBM ring
Currently, HW cookie conversion is enabled
for the WBM ring dedicated to IPA during
optional wifi datapath feature. IPA does
not need HW cookie conversion hence disable
it for this ring when the feature is enabled.

Change-Id: I84ecfa54c87f41f1be5202280c450bdfaeebd4ac
CRs-Fixed: 3437556
2023-03-22 05:58:28 -07:00
Jyoti Kumari
48ed0b7680 qcacmn: Pass vdev_id as an argument in policy_mgr_get_pcl()
Pass vdev_id as an argument in policy_mgr_get_pcl()

Change-Id: I047ec205632798a3e4e0da5ada6677764ae4f203
CRs-Fixed: 3412907
2023-03-22 00:40:43 -07:00
Sreeramya Soratkal
12b1dc3a21 qcacmn: Update the debug level of pilot evm count
With the current implementation of tlv parsing for rx_evm and
rx_antenna, there is a flood in printing the higher pilot
evm count error. Update the debug level of the print to
prevent the RCU stall due to excessive printing.

CRs-Fixed: 3435849
Change-Id: I8f1eb0c133a4d8b70494639d90b04de23b276fc2
2023-03-21 23:01:48 -07:00
Sreeramya Soratkal
55cbe940ac qcacmn: Update number of chips supported for MLO
To support MLO on 4 chips, update the maximum number of chips that
can participate in MLO to 4

CRs-Fixed: 3426681
Change-Id: I1281eed9720d5a5f17bbb6a5e3c7f9e56842a33f
2023-03-21 23:01:37 -07:00
Namita Nair
4883e7fba6 qcacmn: Change IP version type from uint8 to uint16
As IPV6 version number 0xdd86 is 16 bit integer
change the type from uint8_t to uint16_t.

Change-Id: I82c2c0c5bac0632351ee41873b4dd83b2eeae8be
CRs-Fixed: 3429726
2023-03-21 20:03:19 -07:00
Nandha Kishore Easwaran
9032211008 qcacmn: Hal changes for Big endian platform
Hal layer changes to support big endian platform.

Change-Id: I3fa6015ee1915b59c69e593ced57225edcca1c38
CRs-Fixed: 3427031
2023-03-21 17:33:15 -07:00
Uraj Sasan
975f28b2fc qcacmn: Limit Max number of assoc links for AP-MLD
Limit the AP-MLD association links to 3 currently.
More than 3 links will not be supported currently
for association.

Change-Id: I3cd6acda27d2f538172673a8d573367d77ee00b5
CRs-Fixed: 3435787
2023-03-21 17:33:05 -07:00
Namita Nair
c016d7b5d9 qcacmn: Fix pipes_down flag in IPA offload
Currently pipes_down flag is not set to false
during wlan_ipa_uc_enable_pipes() because
autonomy is disabled for optional wifi dp
feature. This causes a crash while trying
to disable pipes during teardown.
This change will update the check and
set pipes_down flag to false during pipe enable.

Change-Id: I41f7e6fc942764c5ab5d3437185af9f90fb39280
CRs-Fixed: 3436012
2023-03-21 17:32:55 -07:00
Gururaj Pandurangi
ed7ed761f3 qcacmn: Add missing dot at the end of copyright header
Add the missing period at the end of the copyright header.

Change-Id: I5ad8df1d3e0ac0670f953ad91d0d9a902463db14
CRs-Fixed: 3439218
2023-03-21 13:52:24 -07:00
Pragaspathi Thilagaraj
381a41f67d qcacmn: Read service capability for TDLS concurrencies
Read the new service capability:
WMI_SERVICE_TDLS_CONCURRENCY_SUPPORT for TDLS concurrencies
support. With this service capability below concurrencies are
supported:
STA+TDLS+P2P
STA+TDLS+P2P+P2P
STA+TDLS+P2P+SAP

Host driver will check this capability to disable TDLS
off channel when concurrent interface comes up. If this
service cap is not advertised by the firmware then
existing TDLS connection will be teared down when concurrent
interface is started.

Change-Id: I744775080a22ca8f3bc88894c349916eea27fd3a
CRs-Fixed: 3414266
2023-03-21 11:51:23 -07:00
Karthik Kantamneni
38f98d473f qcacmn: Refactor DP rings related code to different files
Refactor DP rings related code to different files, such that
both hardware UMAC based and Software UMAC based platforms
can use required code effectively.

Change-Id: Ie58eae34a2da77c2d63870fab74b9d2d9d49c14a
CRs-Fixed: 3382905
2023-03-21 10:14:08 -07:00
Balaganapathy Palanisamy
ca53ea9c0c qcacmn: Export MLO peer APIs
Export MLO peer APIs
wlan_mlo_peer_get_assoc_peer
wlan_mlo_get_mlpeer_by_mld_mac

Change-Id: I4d71cf0ad2214f63f0b4c2be6a63f33fd407d1bf
CRs-Fixed: 3437752
2023-03-21 07:51:02 -07:00
nobelj
ebe0de10c5 qcacmn: Tx monitor word mask support for QCA5332
Add tx monitor word mask support for QCA5332

Change-Id: I9b891cb80cb6cbff049f5f4b66876b67a4c3c918
CRs-Fixed: 3437772
2023-03-21 07:50:52 -07:00
nobelj
0afe701ed5 qcacmn: Add fix to configure word mask
Add fix to configure tx monitor word mask.

Change-Id: Ica66f42de768398b1189dce3d5593c6fb884b35f
CRs-Fixed: 3437660
2023-03-20 23:22:35 -07:00
Vishal Miskin
6c54bc52ed qcacmn: Add atomic ref counter for hif_wake_request
Reference count logic to handle concurrent request of hif wake and hif
release operation by multiple contexts

Change-Id: I4626dec9186cd959192582f8903700080534d227
CRs-Fixed: 3391343
2023-03-20 23:22:25 -07:00
Amith A
b978f0bda3 qcacmn: Fix documentation error in unregister API of rate2power handler
Correct the documentation of the function
tgt_if_regulatory_unregister_rate2power_table_update_handler().

Change-Id: I04da3b3bd66f0665023a387d06cbe8c8242b152a
CRs-Fixed: 3430546
2023-03-20 20:32:32 -07:00
Devender Kumar
4d6c9d0ddf qcacmn: Fix iommu domain attributes compilation issue with IPA enable
When CONFIG_QCOM_IOMMU_UTIL is enable in vendor config, we have to
use new set of API's to get iommu domain attributes, and while using
__qdf_iommu_attr_to_os seeing compilation issue as some identifiers
like, QCOM_IOMMU_MAPPING_CONF_S1_BYPASS are not declare.

even when CONFIG_QCOM_IOMMU_UTIL is not enable we have dependency
on qcom-iommu-util.h file as it has some identfiers which are in use,
with or without CONFIG_QOM_IOMMU_UTIL.

Fix is to include the header file qcom-iommu-util.h which contains
the declaration of all the identifiers used in __qdf_iommu_attr_to_os
and this file is included if CONFIG_ARCH_QCOM or CONFIG_ARCH_MSM
is enable.

Change-Id: I881622c0c447331c53576ce2263c587e1f074a22
CRs-Fixed: 3419264
2023-03-20 19:02:28 -07:00
Shashikala Prabhu
f77ba421ee qcacmn: Add API to clear SOC from partner_map
Clear the target assert seen SOC from partner_map to disengage it from
umac reset process.

Change-Id: I588ae15977b1fd989b6dccb16c5fa3a5269f5f6c
CRs-Fixed: 3433794
2023-03-20 11:43:11 -07:00
Surya Prakash Raajen
7265d860b2 qcacmn: Add CDP api support to notify asserted soc info
Add CDP api support to notify asserted soc info to DP
umac reset module, to disengage a asserted soc from
umac reset process.

Change-Id: I92ee07ed90243567dab83d0686022c8327efe1b6
CRs-Fixed: 3428265
2023-03-20 11:43:02 -07:00
Jianmin Zhu
3e280f1e48 qcacmn: Update puncture bitmap to upper layer
Update puncture bitmap along with channel to upper layer when channel
or puncture bitmap changed.

Change-Id: I68ff46fdf0143919a64a523d79f34d5454bb465b
CRs-Fixed: 3436333
2023-03-20 09:58:16 -07:00
syed touqeer pasha
c928ef0e59 qcacmn: Add support for extended statistics with DS
Add support to handle the extended Tx completion
statistics during direct switch mode.

Change-Id: If1b6906d5d2b3156ead8ef039524f47e763cb543
CRs-Fixed: 3431840
2023-03-20 04:49:25 -07:00
Srinivas Pitla
68a9eec276 qcacmn: Prevent ML peer creation with duplicate MLD address
This change searches for ML Peer across all MLDs, if ML peer
is found in other MLDs, it will reject MLO peer creation
and rejects association

Change-Id: Ifcb150615d840f536d92734e2ef4f86080f5bb6b
CRs-Fixed: 3425900
2023-03-20 00:23:46 -07:00
Himanshu Batra
391bbecfcc qcacmn: Fix compilation error in dp_umac_reset_handle_action_cb
Fix compilation error in dp_umac_reset_handle_action_cb

Change-Id: I0a0506d9fb04ee3513617964f1f4f36cd755959f
CRs-Fixed: 3436442
2023-03-20 00:23:37 -07:00
Vaishnavi Chekuru
cee464b40d qcacmn: Enable undecoded metadata capture for york radio
1.Enable undecoded metadata capture feature for york radio.
2.Added support to extract and handle Phyrx abort request and reason
  for york target.

Change-Id: Iae42c9f1bbce63d28983f87b3282264c6a4230cc
CRs-Fixed: 3432389
2023-03-20 00:23:28 -07:00
Vinay Adella
c847ddd958 qcacmn: Clear partner link state before starting to connect
This is needed in case the STA is configured with more MLO links
than the AP. It will make sure only links that the AP allows
are in use in the STA MLO as well.
Also check for mlo flag on vdev before sending link connect and
updating partner bitmap.

CRs-Fixed: 3423668
Change-Id: Iceec3cf7e8dc7e5bc0a29c56b990faef4f741158
2023-03-19 22:53:08 -07:00
Harsh Kumar Bijlani
2d75a88f1e qcacmn: Fix MLO link stats issues
Add link_id check while aggregatin stats into vdev at 
time of peer unmap, otherwise vdev stats are aggregated 
twice and hence give incorrect output.

Also comment out link_id fetch in BE Rx path as it is 
currently not enabled.

Change-Id: I91ceab4c6380bbd6e0cb2717adb2413e9e8e4221
CRs-Fixed: 3435688
2023-03-17 12:42:38 -07:00
Jinwei Chen
95dcc45ec2 qcacmn: Add srng pointer register writing history support
Add srng pointer register writing history, it is helpful
for debugging srng HP/TP update issue from host side.
(1) if host faced UMAC source ring, record the HP value and timestamp
when host write the register.
(2) if host faced UMAC destination ring, record the TP value and
timestamp when host write the register.

Change-Id: Ib98e48e1d32defb0d8b30b854b5b0c23691cca59
CRs-Fixed: 3427908
2023-03-17 12:42:28 -07:00
Kiran Venkatappa
a9dbdc28df qcacmn: Add rTWT params in btwt remove sta cmd
Add new params(ul_tid_bitmap & dl_tid_bitmap) for rTWT remove sta cmd.
This will be sent from test command to trigger remove sta.

Change-Id: Id68c020a18e3e418ad6605f27827ab755f8eea53
CRs-Fixed: 3431178
2023-03-17 09:13:31 -07:00
Nandha Kishore Easwaran
ba9a08a6fc qcacmn: Delete peers when tx monitor is disabled
Delete the litemon peers added when tx monitor is disabled.

Change-Id: If604e0c121690919ac8364f70e2a471df1b7f794
CRs-Fixed: 3412125
2023-03-17 09:13:20 -07:00
Chaoli Zhou
6f3a375902 qcacmn: Replace kzalloc/kfree with vmalloc/vfree for cfg value store
At continuous physical address limited telematics platform,
in order to avoid occasional memory alloc failure with big
kzalloc size, it's better to use virtual memory allocation
API instead. And below one will be refined to replace malloc
with valloc when CONFIG_ENABLE_VALLOC_REPLACE_MALLOC=y.

1 x 21552 = 21552B@cfg_store_alloc:448

Change-Id: Ic43901453e8194d4f7fc0f8af2e2459bea5495a6
CRs-Fixed: 3426968
2023-03-17 07:20:29 -07:00
Vinod Kumar Myadam
b7987d7b29 qcacmn: Fix OOB in util_gen_new_ie
For example, If tmp_new[1] = 3, subie_len=160,
tmp_new + tmp_new[1] + MIN_IE_LEN) - sub_copy will be 159.
In this scenario, while condition gets true (159 <= 160)
In if condition (159 >= 160), we are not breaking the loop in if.
tmp_new will get incremented, tmp_new will point at 159,
tmp_new[1] will point at 160, tmp_new[2] point at 161.
So, we are accessing one byte out-of-bound value.

To fix accessing out-of-bound value subtract one from the subie_len
in while and if condition to avoid this scenario.

Change-Id: I624585323963b6d79acf9ff0f96ec17e0b415c2d
CRs-Fixed: 3358833
2023-03-17 07:20:18 -07:00