Commit Graph

19986 Commits

Author SHA1 Message Date
Sheenam Monga
cdcfc4efcc qcacmn: Add support to send CP stats req
Add support to send CP stats request for
type TYPE_REQ_CTRL_PATH_RRM_STA_STAT.

Change-Id: Ibf83c71e9a81cfb127ddc187e6f8960f6d04fddb
CRs-Fixed: 3583928
2023-08-13 23:58:27 -07:00
Sheenam Monga
2ba3bfc4f7 qcacmn: Add support to extract RRM sta stats
Add support to extarct sta stats from WMI_CTRL_PATH_STATS_EVENTID
by extracting wmi_ctrl_path_sta_rrm_stats_struct data

Change-Id: I7235b8cb0237d828b0fe5e5eab0feadc016d9269
CRs-Fixed: 3583920
2023-08-13 23:58:15 -07:00
Shwetha G K
03f89b0b85 qcacmn: Return error when aoa_caps tlv is NULL
Return error status when FW does not share aoa_caps

CRs-Fixed: 3586316
Change-Id: Iea7c49e9332a969286ff612ed8c2b527b9a29c85
2023-08-11 14:59:56 -07:00
Priyadarshnee Srinivasan
bdf7db0a32 qcacmn: Modify wmi_nofl_info_high definition
Modify wmi_nofl_info_high definition to print only if
QDF_TRACE_INFO_HIGH_NO_FL debug level is set.

CRs-Fixed: 3570322
Change-Id: I879a9d917ff698aeb6b3e53a85c765a74a902b36
2023-08-11 14:59:45 -07:00
Guru Pratap Sharma
84562049b6 qcacmn: Adding lock in epcs info structure
Adding lock in epcs info structure to achieve synchronization
in epcs state etc

Change-Id: I76b35075f2ecdfba64d4df5ea06c898f5be059e8
CRs-Fixed: 3583860
2023-08-11 14:59:35 -07:00
Amruta Kulkarni
712aff4786 qcacmn: Add check for frame boundary check in t2lm api
While parsing t2lm ie pass the frame length and add
check for frame boundary.

Change-Id: Iebb2cb5f0756785e4698613b80bfb31d60a2ed80
CRs-Fixed: 3577156
2023-08-11 04:36:05 -07:00
Manikanta Pubbisetty
bb3b798604 qcacmn: Fix compilation issues with NAPI stats on WCN6450
Fix compilation issues with NAPI stats on WCN6450

Change-Id: I0339a510c715009255bc00841d44bd06357b252b
CRs-Fixed: 3583455
2023-08-11 04:35:54 -07:00
Manikanta Pubbisetty
3ed7d8972c qcacmn: Update TX completion status parsing for WCN6450
Update TX completion status parsing for WCN6450 based on the latest
firmware interface.

Change-Id: I008631ee23990c7209af075b618bea6c1d602eb8
CRs-Fixed: 3583696
2023-08-11 04:35:44 -07:00
Manoj Ekbote
b9322f12bd qcacmn: Support for RF path selection
Includes changes:
1. Save frequency values from EXT and EXT2 events to psoc object
- wireless_modes, low/high 2 GHz chan and low/high 5 GHz chan from EXT event
- wireless_modes_ext, similar frequency range fields with _ext from EXT2
event. Frequency range fields with _ext are non-zero when a radio supports
overlapping frequency. Eg.Radio that supports 5 GHz full and 5 GHz high band will
have low/high 5 GHz fields populated with primary band values in EXT event and
low/high 5 GHz fields are populated in EXT2 event with secondary band
values. These values are stored in tgt info for later use.
2. Modify regulatory APIs to get and set the wireless modes in reg
component
3. Retrieve frequency fields from EXT2 event

Change-Id: I49ebcc7ee7b26bd115f37abc8cb5b6fa5a415eda
CRs-Fixed: 3576551
2023-08-11 01:24:54 -07:00
Chaithanya Garrepalli
d1d1770bd9 qcacmn: Add API to get phy_ppdu_id in RX pkt tlv enabled
In case of WORD MASK subscribtion enabled, get phy_ppdu_id
from RX pkt hdr tlv in case PKT_TLV_HDR is subscribed.

Change-Id: I40e1b01c2f52404872c39df6d9faa57a95dad5c2
CRs-Fixed: 3582126
2023-08-11 01:24:43 -07:00
Pragaspathi Thilagaraj
5a0e761ce4 qcacmn: Reset Roam state for link vdev after link switch
After link switch, the assoc vdev and link vdev could change.
So once the link switch is complete, change the roam state to
DEINIT for the link vdevs

Change-Id: I3e583fc1cb5be8d17d8680dab96461b058740c0a
CRs-Fixed: 3581730
2023-08-11 01:24:31 -07:00
Himanshu Batra
f86703892d qcacmn: Add qdf API for dev_hold
Add qdf API for dev_hold

Change-Id: I585e6781718fd55e8359906e5355f068376406c2
CRs-Fixed: 3579431
2023-08-11 01:24:21 -07:00
Rakesh Pillai
d97cfce6b4 qcacmn: Move REO_CMD desc field set to structure dereference
Currently for beryllium targets, 64-bit field shift/mask
is used to set REO_CMD entry values.

For peach target, the HW header files provide only 32-bit
shift/mask macros, which does not work with the existing code.

Move the REO_CMD descriptor field set to structure field
dereference instead of bit field shift/mask.

Change-Id: Iec9a1618fc6c995aa0939badb4368a4c389fcbca
CRs-Fixed: 3584239
2023-08-10 18:23:01 -07:00
Uraj Sasan
082bbef13c qcacmn: WDS STATION send bridge partner details
Send bridge partner details during peer create and peer
assoc. The partner of bridge peer are saved which are used later
during bridge peer create and assoc. Also add bridge peer partner
details while sending peer create and assoc on actual links.

CRs-Fixed: 3574656
Change-Id: I755614a131f6552ac28377d2c7648db4fd87b8df
2023-08-10 18:22:50 -07:00
Ruben Columbus
ea44c5ab75 qcacmn: assign dump functions to per chip specific
1. add more function pointers for the remainder functions which are
generic
2. assign functions to per chip level
3. prevent using generic rx_pkt_tlv struct and using at a per soc
specific instead

Change-Id: I1cefb10c7a70f04dbf8b110fcfee6f1c9f4ab1a0
CRs-Fixed: 3533521
2023-08-10 18:22:40 -07:00
Manikanta Pubbisetty
7dab708812 qcacmn: Misc fixes in WBUFF module
Miscellaneous fixes in the WBUFF module.

1. Currently in wbuff_buff_put(), if the pool_id/module_id is out of
   bound, NULL is being returned which is wrong. In this case, buffer
   has to be freed by the caller function, therefore return SKB address.

2. Optimizations to wbuff_buff_put()/wbuff_buff_put() if the WBUFF pool
   is uninitialized.

Change-Id: I53264e45a23ac5d51b4b9830d95ef24ceb222072
CRs-Fixed: 3581659
2023-08-10 14:44:00 -07:00
Sai Rupesh Chevuru
98eff70aff qcacmn: skip WDI peer creation and deletion events in STA mode
In the case of STA mode, will be marking bss peer as part of
peer map events during the creation.
Due to this create event will be triggered during the peer creation
as bss flag is not set and there won't be any peer delete event
to bss peer resulting stale entries in mld hash.
Hence will be avoiding creation and deletion events.

Change-Id: I15a78ad0b8a90b34505880af94522abbe1de8fb5
CRs-Fixed: 3581548
2023-08-10 14:43:49 -07:00
Amit Mehta
63979604dd qcacmn: Add memory barrier to avoid inconsistent read for valid flag
Currently there is no memory barrier after valid flag read,
which can result in reading q_elem values in random order,
due to which host can read stale entried from the q_elem.

To fix the issue add memory barrier to avoid inconsistent
read for valid flag.

Change-Id: I9431d4f62188def37c2515e376a28f3985733f85
CRs-Fixed: 3577746
2023-08-10 14:43:39 -07:00
Manikanta Pubbisetty
882184c8f1 qcacmn: Increment TX enqueue stats on Rhine targets
Increment TX enqueue stats on Rhine targets.

Change-Id: I526ee8e1e1b2e8aa10e5c7a1c7dad2c45d236ba2
CRs-Fixed: 3574412
2023-08-10 14:43:28 -07:00
Deeksha Gupta
a2ccbeff4e qcacmn: Select best ML partner link info based on DBS or SBS mode
Select the best ML partner link based on DBS or SBS mode.

Change-Id: I5d7d9242b32fa4143e7bec5b9692689ac257ca4d
CRs-Fixed: 3530717
2023-08-10 14:43:18 -07:00
Thirusenthil Kumaran J
433eb772d1 qcacmn: Limit AFC maximum bandwidth in AFC list
Currently, maximum bandwidth in AFC channel list is set to 320 MHz.
Since 320 BW is supported only in 11BE mode, setting the maximum
bandwidth to 320 for devices that does not support 320 BW is not
correct.

Hence, to fix this issue, limit the Maximum AFC BW based on whether
the radio supports 11BE or not.

Move the puncture bitmap validation for 320 MHz BW in the API
'reg_get_320_bonded_channel_state_for_pwrmode' to within the
CONFIG_REG_CLIENT compilation flag. This validation of puncture
bitmap is currently done only for 320 MHz BW. The API used for lower
BW does not consider puncturing. This causes inconsistency in the
behaviour between 320 MHz BW and lower BWs.

Since the validation of puncture pattern is done separately for WIN,
add a WIN specific empty stub function.

Change-Id: Icbbbcae3fef2336df02291c5218d89942f3f1b68
CRs-Fixed: 3560313
2023-08-10 14:43:07 -07:00
Pragaspathi Thilagaraj
cbefdcb9f0 qcacmn: Add support for WMI_ROAM_SYNCH_KEY_EVENTID
Add support to handle WMI_ROAM_SYNCH_KEY_EVENTID.
WMI_ROAM_SYNCH_KEY_EVENTID is received after roaming to 3 Link
MLO AP when standby link is supported.

Add changes to register handler function pointers and parse
the event.

Change-Id: Iee17560f9f1f3242ef512a550764a9c64319b67f
CRs-Fixed: 3571673
2023-08-10 14:42:56 -07:00
Karthik Kantamneni
6e1fe7f344 qcacmn: Reset nbuf data pointer properly in RX fast path handling
Currently RX nbuf data pointer is reset considering
headroom reserve size of NET_SKB_PAD. So while reattaching
buffer back to H.W always data pointer is reset back to head plus
NET_SKB_PAD offset. But if skb is not allocated with head room
reserve then we should not reset data pointer taking NET_SKB_PAD
as consideration.

Fix this by pushing nbuf data pointer back to the state when
nbuf entered the host.

Change-Id: Ie96f99fdd92deaa921619a45cd5993a42f7b8f6e
CRs-Fixed: 3582873
2023-08-10 14:42:45 -07:00
Paul Zhang
6ca876877a qcacmn: Ignore QDF_STATUS_E_ALREADY when vdev creating
Per PDT testing, when vdev creating, the variable rsp_timer_inuse
is set, it is abnormal and causes fw crash. Since the variable
rsp_timer_inuse will be initialized later in function
target_if_psoc_vdev_rsp_timer_init. So ignore status
QDF_STATUS_E_ALREADY in function mlme_vdev_obj_create_handler.

Change-Id: I48c622d99f1a0686dfa7725fb69116a5ab8a1e58
CRs-Fixed: 3574858
2023-08-10 05:13:55 -07:00
Nandha Kishore Easwaran
1f24545139 qcacmn: Suppress MLD print
Suppress MLD print since this print is unrelated for
non-mld platform.

Change-Id: I4cf04001d3f0e3c1c63b27adc5a71cc627a382fd
CRs-Fixed: 3582264
2023-08-10 05:13:44 -07:00
Vishal Miskin
9c509a66de qcacmn: Add QCA vendor attributes for user defined power save params
Extend QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT
attribute to support enum qca_wlan_vendor_opm_mode.

Add QCA vendor attribute QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and
QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE to configure inactivity
timeout and speculative wake interval in User defined optimized
power save mode.

Change-Id: I726ca91638e07fd1efae4921519bb6affc8b9c21
CRs-Fixed: 3567041
2023-08-10 05:13:32 -07:00
Manikanta Pubbisetty
3ac14805dd qcacmn: Fix issue with IRQ re-enablement for CE IRQs
Currently on WCN6450 which is based on IPCI, there is a problem
in re-enabling the IRQs while firmware recovery is in progress.

While processing the CE IRQs, if there’s an active recovery
happening in the host (due to FW assert), we are leaving the IRQs
disabled in the kernel.

Fix this by refactoring the code such that hif_irq_disable() is
called only when there is no active recovery.

Change-Id: I4e3ccbb5f820645597feb724ddfe321e7d7d1a5f
CRs-Fixed: 3579429
2023-08-10 05:13:21 -07:00
Aasir Rasheed
33f9c6eb46 qcacmn: Fix typographical errors
Currently, the host driver interprets an active link
status as 0 and an inactive link status as 1.
To comply with updated requirements, the change will
switch active links to be represented as 1 and inactive
links as 0, aligning with the correct status interpretation.

Change-Id: I5342e85106b4623ed4c79a4841884bfa8cd9d638
CRs-Fixed: 3581454
2023-08-09 17:26:11 -07:00
Harsh Kumar Bijlani
9cbb3b7b3e qcacmn: Change macro DP_MAX_STRING_LEN value to 1000
Change macro DP_MAX_STRING_LEN value to 1000.

Change-Id: I4220c6288a55700f2f3ed89db30ec01ae2d77771
CRs-Fixed: 3579776
2023-08-09 07:26:16 -07:00
Shwetha G K
923e2c3f6d qcacmn: Add enhanced AoA support
WMI changes to support enhanced AoA for CFR

CRs-Fixed: 3553719
Change-Id: Ic09940d3ce7d4eaed81e666b0c891294a82bc4bb
2023-08-09 07:26:06 -07:00
Shwetha G K
0536af115e qcacmn: Extract enhanced aoa data
Changes to extract enhanced aoa data from WMI event

CRs-Fixed: 3553725
Change-Id: I4a37fdb889cd5d461ee6ef92966a042aeed91fc8
2023-08-09 07:25:55 -07:00
Shwetha G K
2a073ca079 qcacmn: Add enhanced AoA support for 11be targets
Changes to support the enhanced AoA (multi gain table).

CRs-Fixed: 3553705
Change-Id: I75babad28aab53074e68266e8d98ad40a119fc69
2023-08-09 07:25:44 -07:00
Himanshu Batra
d0b09316c5 qcacmn: Add wait logic for sync mld disconnection
Add wait logic for sync mld disconnection

Change-Id: Ie0931cf77205dd4f88eb903e7b43a3735786c859
CRs-Fixed: 3570519
2023-08-09 04:01:55 -07:00
Santosh Anbu
535c58f795 qcacmn: Update start response reason as per FW event
A new start response reason was added by FW to indicate invalid config
of TX VAP. Update the corresponding enum on host to support this reason.

Change-Id: I924776a83176d495ac9e8b656a78b131bd0b0cc5
CRs-Fixed: 3582194
2023-08-09 04:01:44 -07:00
Vaishnavi Chekuru
e2b1461482 qcacmn: Using HAL_RX_GET_64 to read cfr elements
RCC mode of CFR capturing was not working on miami as
	bb_captured_channel field which is being accessed from
	RXPCU_PPDU_END_INFO tlv is not being set in host.
	These fields of cfr are fetched from HAL_RX_GET()
	which is being failed to read by host as it
	follows 32 bit approach and miami uses 64 bit format.
	Reading 4 bytes is not enough ,So changing HAL_RX_GET()
	to HAL_RX_GET_64() and this will read 8 bytes with
	which we get elements properly.

Change-Id: I8c669e5cc78ce856c1bc4b0449125aac45461a9b
CRs-Fixed: 3572563
2023-08-09 04:01:34 -07:00
Vaishnavi Chekuru
142ccb390a qcacmn: Use HAL_RX_GET_64 to read cfr elements
Host is failing to read few cfr elements by HAL_RX_GET for
pebble as HAL_RX_GET follows 32 bit approach and pebble uses 
64-bit format and so reading 4 bytes is not enough.
Used HAL_RX_GET_64 to read those cfr elements and this change 
reads 8 bytes and then the elements are properly read.

Change-Id: If6f0b8e2a215719a1e42828764db01fe99a7e48d
CRs-Fixed: 3575631
2023-08-08 18:39:09 -07:00
Amit Mehta
5748e165de qcacmn: Change log level for hal_info and hif_info
Currently hal_info and hif_info logs levels are set to
QDF_TRACE_LEVEL_INFO, which results in prints being logged
to dmesg buffer.

To prevent prints logging into dmesg buffer, changes logging
level to QDF_TRACE_LEVEL_INFO_HIGH.

Change-Id: I039c5e7b6b47f1ffda8e32ff44322d1963648c41
CRs-Fixed: 3577831
2023-08-08 15:27:30 -07:00
Shwetha G K
7d60fb8543 qcacmn: WMI changes to extract AoA capabilities
Add changes to extract AoA capabilities from EXT2
SERVICE READY EVENT

CRs-Fixed: 3553405
Change-Id: I240d8420a75419f3dde0abd03ef1d6b61abbc3e9
2023-08-08 15:27:19 -07:00
Shwetha G K
6828824ccd qcacmn: Extract enhanced AoA caps to tgt_info
Changes to extract enhanced AoA (multi gain table support)
capabilities from SERVICE_READY_EXT2 event

CRs-Fixed: 3553378
Change-Id: I8db093cfce7b8c8cacedef39f97911eabe062c19
2023-08-08 15:27:09 -07:00
Himanshu Batra
dd3ebd6336 qcacmn: Move HE downgrade logic under MLO_ADV_FEATURE macro
Move HE downgrade logic under MLO_ADV_FEATURE macro

Change-Id: Ib89a974f21332368f7deddf58a180f8d9f1bf118
CRs-Fixed: 3581460
2023-08-08 09:16:42 -07:00
nobelj
d26a05fafd qcacmn: Add fix to free buffer properly on error case
In rx monitor deliver, Buffer need to be free properly for any
failure after MPDU restitch.

Change-Id: I7d2f649e8266d91d50a429a92c07bc42d1d730eb
CRs-Fixed: 3580509
2023-08-08 06:11:04 -07:00
Srinivas Pitla
4251e4ac67 qcacmn: Add/Remove VDEV from MLD
This change adds APIs
1) remove VDEV from MLD
2) add VDEV to MLD

CRs-Fixed: 3579048
Change-Id: I5a81d7a50b0c3865c3ab914a3e10906e3010cb91
2023-08-08 06:10:53 -07:00
Jeevan Kukkalli
c92389fe5f qcacmn: Improve readability of monitor error messages
Improve readability of monitor filter update error messages.
This will help to avoid redundant error message printing from
caller.

Change-Id: I63dbc52be7a2f9537bf226fe0008c4efb51fe582
CRs-Fixed: 3576860
2023-08-08 00:01:41 -07:00
Rahul Gusain
ba9a0f4a3d qcacmn: Add EMLSR caps in ML STA context
Currently, driver extracts EMLSR caps info from association response
for assoc vdev but this info is not present in link vdev.
Thus, driver should cache this EMLSR caps info in ML STA context while
extracting for assoc vdev and use these values for link vdev.

So, for this, add EMLSR caps struct in ML STA context.

Change-Id: I0ecf32ed4af9fb07624498f2753c12c5420edec1
CRs-Fixed: 3578371
2023-08-07 16:29:14 -07:00
nobelj
641a8433ff qcacmn: Add support to enable monitor peer for all peer
monitor peer is not allocated for MLO MLD peer this lead to drop in
broadcast and multicast frame in legacy tx monitor path. Added support
to enable monitor peer for all peer.

Change-Id: I786554a918bae966a929e4c9188c1b0f324b5846
CRs-Fixed: 3544695
2023-08-07 16:29:04 -07:00
Sai Pratyusha Magam
ffa5a06030 qcacmn: Populate 11AZ SECURITY CONFIG in vdev_param_tlv
Populate 11AZ SECURITY CONFIG in vdev_param_tlv

Change-Id: Ifde9fea68534c00a74230bd886c694e7eb90988c
CRs-Fixed: 3575149
2023-08-07 08:09:41 -07:00
Prakash Manjunathappa
19c0d5f5e8 qcacmn: hal_rx_dump_msdu_end_tlv_kiwi skip logging reserved field
__reserved_g_0003 is not present for peach platform, remove logging of
it as it is not useful anyway to log reserved field.

Change-Id: I8a7c4df5d6b769387010304d0234932925c1a866
CRs-Fixed: 3580279
2023-08-07 05:07:17 -07:00
Shwetha G K
871160dafe qcacmn: Multi gain table support in waikiki AoA
Add multigain table support on Waikiki AoA feature

CRs-Fixed: 3560018
Change-Id: Ibd397bdaa603b49d3743f9f3fdd1329369b2eb09
2023-08-07 01:57:53 -07:00
Himanshu Batra
8bb0552080 qcacmn: Add qal API for of_get_named_gpio_flags
Add qal API for of_get_named_gpio_flags

Change-Id: I21eb27c72baa2057028a8565fc68754818fc641c
CRs-Fixed: 3579431
2023-08-07 01:57:40 -07:00
Himanshu Batra
1f2743f8d4 qcacmn: Add qal API for br_fdb_add_or_refresh_by_netdev
Add qal API for br_fdb_add_or_refresh_by_netdev

Change-Id: I17acacab27782a531fa278f1535b9424e34637f1
CRs-Fixed: 3579431
2023-08-07 01:57:26 -07:00