Commit gráf

18207 Commit-ok

Szerző SHA1 Üzenet Dátum
Sreeramya Soratkal
07b290e3a7 qcacmn: Update number of chips in MLO
To support MLO on 4 chips, update the maximum number of chips that
can participate in MLO to 4.

CRs-Fixed: 3314581
Change-Id: I93a253b4e54f7e4e19ea8407facfb69e6347d192
2022-11-25 18:35:55 -08:00
Jyoti Kumari
2758a289a9 qcacmn: Add edca_pifs_param attribute in QCN ie
Add edca_pifs_param attribute in QCN ie. This attribute will
be use to configure edca and pifs param for LL SAP.

Change-Id: Ic8f9969067f676010fdae8b5391fdec6f5207628
CRs-Fixed: 3334897
2022-11-25 18:35:47 -08:00
Jyoti Kumari
785d1a0417 qcacmn: Add ecsa support attribute in QCN ie
Add ecsa attribute in QCN ie. This attribute will be use to
configure extended channel switch announcement ie.

Change-Id: If47155cd6ea8b62cc99920148db71c90359fbcba
CRs-Fixed: 3337215
2022-11-25 18:35:40 -08:00
Roopavathi Lingampalli
edc0d60122 qcacmn: Add new QDF API's to handle napi requirements
Add new QDF API's to handle napi, softirq related handling
in rx thread and rx refill thread.

Change-Id: I0f371c89e65d8b20f059c56097bac07ec1e19cc9
CRs-Fixed: 3341804
2022-11-25 16:32:44 -08:00
Chaoli Zhou
b17c45a9d8 qcacmn: Logging bdf version status
Extract the bdf version status from ext2 service ready
event to indicate if bdf file match with wlan fw
well or not.

Change-Id: I7a81667a42fb825c02da1662afdace4d0cbe3cae
CRs-Fixed: 3334551
2022-11-25 14:33:26 -08:00
nobelj
88f6945a63 qcacmn: fix copyright comment
fix copyright comment

Change-Id: I3e823c0846a00f43471e902fd5d491adb592342e
CRs-Fixed: 3317602
2022-11-25 14:33:17 -08:00
Rakesh Pillai
95dad4fa46 qcacmn: Add support to drop monitor destination ring entries
Currently, in case of station+monitor mode on KIWI target,
we are not attempting to drop the entries received in the
monitor destination ring, when no channel has been
configured for the monitor interface. This leads to the
monitor destination ring full condition and an eventual
backpressure on the ring.

Fix this issue, by dropping the entries in the monitor
destination ring, which have been received before the
monitor channel has been configured.

Change-Id: Ic9c432b438d0a5dce2d2bb38053c31ce508c27f5
CRs-Fixed: 3332327
2022-11-25 14:33:09 -08:00
Yu Tian
5a6d2c2374 qcacmn: Optimize RX hw stats flow
Only 8 RX data TIDs are used, so HW stats query only needs to update
these TIDs info to save command executing time. Change is aimed to
reduce the TID number and use only one REO flush command for overall
REO cache flush.

Change-Id: Ib642451b9f07f62198126c45644742e1908280cd
CRs-Fixed: 3325964
2022-11-25 12:35:53 -08:00
Neha Bisht
5d0b7ea33f qcacmn: Create a list of skbs to be freed at once
Create a list of skbs to be freed at once in dp tx completion path

Change-Id: I42129b4306206f7224ceabc87d07e2a87b8fcab6
CRs-Fixed: 3274945
2022-11-25 12:35:45 -08:00
Harsh Kumar Bijlani
801226f363 qcacmn: Change module id for hexdump printing of hw vdev stats
Change module id to QDF_MODULE_ID_DP_HTT for hexdump printing
of hw vdev stats.

Change-Id: Ie9db76aa04241680236aa6b23a4ee65b5fd89d23
CRs-Fixed: 3343177
2022-11-25 10:25:42 -08:00
Sushant Butta
31eb482274 qcacmn: Fix for u8 overflow
When high throughput is running between AP and STA,
due to u8 variable overflow, host is not replenishing
required buffers.

More than 255 buffers can be requested for replenish,
so fixed size of the variable.

Change-Id: Ia810fed29058ec527cd8e6f77e6f9c333c5c6f88
CRs-Fixed: 3306616
2022-11-25 10:25:33 -08:00
Srinivas Dasari
8b311c3358 qcacmn: Fetch bcn/probe rsp with given mac addr from scan db
Fetch beacon/probe response with given mac address from scan db.
The frame can be used to fill bss descriptor in case of MLO
roaming where scan entry is derived from ML probe response of
assoc link.

Change-Id: Ie20b36c6619dd0e44d04d3bd8767c7dd09b053d5
CRs-Fixed: 3342439
2022-11-25 08:18:23 -08:00
Srinivas Dasari
75dd9dfa21 qcacmn: Add link beacon also to connect resp structure
When firmware attempts roaming to an MLO AP, it tries to find
the complete ML info(all links info) either through ML probe
response or beacons from all the links. It forwards all link
beacons(or ML probe response) to host as part of roam sync
indication through roam sync frame event. The link beacon frame
needs to be fetched from roam sync indication and cache it in
connect resp to use it while link connect in roaming cases.

Add a new param in connect response structure to facilitate this.

Change-Id: Ib015728c8ee880337c4d1fdadc373c9e52247b55
CRs-Fixed: 3342433
2022-11-25 08:18:14 -08:00
Devender Kumar
ef32f35aed qcacmn: Fix for Header File inclusion
Compilation is failing due to Missing definition
of KERNEL_VERSION as the Header file is added
before including <linux/version.h>.

Fix is to move the Header file at the end.

CRs-Fixed: 3338337
Change-Id: I83fc448becc4af81df9b4c7b3fe9193875c7f6f1
2022-11-25 00:08:34 -08:00
Pavankumar Nandeshwar
a2ddd8956b qcacmn: Retain ds ring indices across wifi restart
Retain ds ring indices across wifi restart to avoid
edma hang. Fetch the indices from ds module and set
the corresponding ds ring indices.

Change-Id: Ia299a7006166aef096c7d2c1f65f6bef65415a37
CRs-Fixed: 3332152
2022-11-25 00:08:26 -08:00
Asutosh Mohapatra
4f77d1f3c1 qcacmn: Optimize log prints
Optimize log prints in extract_reg_chan_list_ext_update_event_tlv.

Change-Id: I3a4242873486d914e15a9f3940e9e4fb59814cf8
CRs-Fixed: 3338254
2022-11-24 01:22:55 -08:00
Surya Prakash Raajen
572d9ff24e qcacmn: CFG section defines for 6 GHz low & high bands
CFG section definitions for 6 GHz low & high band for
ini configurations. These new definitions enables us to
configure the unique INI parameters for 6 GHz low and 
6 GHz high band, for new solution of Split-phy in 6 GHz.


Change-Id: I1417dee90f0aebe31f24a64017d9203b74dfc886
CRs-Fixed: 3332719
2022-11-24 01:22:46 -08:00
jinbaoliu
161650dffa qcacmn: Fix failing to distinguish between EAPOL M2 and M4
Currently we distinguish EAPOL frames by taking the secure bit in key
information field into account. This is sometimes error because for WPA
handshake M3/M4 secure bit is 0 (GTK is not included in M3) whereas for
WPA2 handshake M3/M4 secure bit is 1 for WPA2 handshake. This change uses
the ack bit in key information field to differentiate M1/M3 from M2/M4,
then uses the key data length as well as Key Mic and Encrypted Key Data
in key information field together to identify EAPOL M2 and M4 frames.

Change-Id: Iac88bc5b942415edee08dc4a98dbd4e811cb8604
CRs-Fixed: 3327876
2022-11-23 23:40:03 -08:00
Nidhi Jain
be0e54e189 qcacmn: Update T2LM negotiation values for wlan_t2lm_enable
This change updates the T2LM negotiation values for wlan_t2lm_enable.

Change-Id: I17e2d0e99eb383f072f5595c524156265274a194
CRs-Fixed: 3306992
2022-11-23 21:52:12 -08:00
Amir Patel
af0472aa08 qcacmn: Update PPDU drop counter
Update PPDU drop counter from monitor ring

CRs-Fixed: 3341905
Change-Id: I63f5b4d6a3e1e0155cf0558bea18704df073e2a9
2022-11-23 21:52:03 -08:00
Yeshwanth Sriram Guntuka
2a525d7545 qcacmn: Add id for QMI component
Add QMI component entry in object manager debug id
and umac component id.

Change-Id: Ib2531ee9cc91f721214f9e30b6b25cb7f3e89a42
CRs-Fixed: 3338296
2022-11-23 13:55:08 -08:00
Amit Mehta
46a5d43615 qcacmn: Vendor attribute to configure QoS/AC upgrade for UDP frames
Introduce a new attribute to configure access category
override for UDP frames of BE/BK category. Unlike, the
earlier attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE
which will override for all UDP frames, this attribute is
for overriding only for BE/BK based UDP frames.

CRs-Fixed: 3332609
Change-Id: Ife6104b97bca83653fdcac31f2c91007d1aa6f2a
2022-11-23 10:52:49 -08:00
Srikanth Marepalli
7c94f932be qcacmn: A vendor roam control configuration for delaying hand off for RX
Introduce a run time roam configuration for "hand off delay for RX".
This value, in milliseconds, will delay the hand off for the specified
time to receive pending RX frames from the current BSS.

Change-Id: I961109a2f9287a611ae8f4b38e2ea824ecf9c559
CRs-Fixed: 3329952
2022-11-23 04:42:57 -08:00
Adwait Nayak
8775c73843 qcacmn: Enable hybrid mode for QCN9224
Enable hybrid mode specific handlers

Change-Id: I764c56c217b951424d699d6861ef8771496dd592
CRs-Fixed: 3339154
2022-11-23 04:42:49 -08:00
Pavankumar Nandeshwar
ab2bd061c2 qcacmn: Enable wbm2sw_release ring for ppe2tcl ring
Enable wbm2sw_release ring for ppe2tcl ring to
handle tx completions

Change-Id: I38e81bb46e376e3f059f321454aa4d241e6aadb7
CRs-Fixed: 3309444
2022-11-23 02:15:55 -08:00
Abhishek Singh
84e3277bc8 qcacmn: Limit join timeout try to 1 for MCC concurrency
Currently join timeout is retried 2 extra time which can lead
to unsuccessful connect time of about 9+ sec, this lead to
beacon miss on the MCC concurrency.

So reduce it to 1 try to limit connect time to around 3+ sec in
case of candidate freq can lead to MCC concurrency.

Change-Id: I642a7acd1e2a49308836bd1bb6c77ab1aeb110e4
CRs-Fixed: 3328642
2022-11-22 20:34:40 -08:00
Amruta Kulkarni
b6ca1b3ff2 qcacmn: Add null check in osif roam api
Add null check in osif_roam_auth_mlo_links api.

Change-Id: Ia3290fe3b51d8913f212c732a6c53b0a159adfc3
CRs-Fixed: 3337588
2022-11-22 20:34:32 -08:00
Mohammed Ahmed
2f2d0e141c qcacmn: Add break in case statement
Case statement is missing a break between cases.

Change-Id: Iedba605d2fdd0f111730bc2f9f02bb89bdb6c834
CRs-Fixed: 3343781
2022-11-22 18:45:12 -08:00
Himanshu Batra
d729483efc qcacmn: Add fix to avoid deadlock in back to back connect
Add fix to avoid deadlock in back to back connect handling

Change-Id: I831a64f14270dceb9e7cfae2f9d4b05fec99d8d2
CRs-Fixed: 3342240
2022-11-22 15:51:02 -08:00
Deeksha Gupta
4ff65dc760 qcacmn: Parse 11be capable beacons if DUT is not 11be enabled
Currently, in driver, if DUT fw does not support 11be,
11be capable beacons will not be parsed in the scan result.
But driver can have 11be capable parsing even when target
is not capable of 11be. This may be helpful in understanding
OBSS and ACS kind of scenarios.

To fix, driver will parse 11be capable beacon in the scan result.

Change-Id: I1eb4d60c8a7513a01126575dd9c4fc4f1a4ee6e0
CRs-Fixed: 3296848
2022-11-22 15:50:55 -08:00
Jianmin Zhu
1aaeca79da qcacmn: Fix link peer is deleted before assoc peer
When vdev1 connected, if find vdev0 isn't connected, disconnect vdev1 in
async way by sending msg to scheduler thread, and disconnect vdev0 cmd is
enqueued to serialization before disconnect vdev1 cmd, so vdev0 assoc peer
delete happens before vdev1 link peer, F/W assert happens.

To fix it, when vdev1 connected, if find vdev0 isn't connected, disconnect
vdev1 in sync way, and let disconnect vdev1 cmd enqueue to serialization
queue header instead of tail, make sure it is activated befored disconnect
vdev0 cmd.

Change-Id: I80b1c8f6528bdd58e953851e164e5bfce2b3bd4a
CRs-Fixed: 3339030
2022-11-22 13:51:30 -08:00
Nanda Krishnan
dce586be60 qcacmn: Using pdev_wmi_handle instead of wmi_handl
Using pdev_wmi_handle instead of wmi_handle in
target_if_peer_set_ppe_default_routing

Change-Id: I7eb94d2b92078c55f2c03f4ccd57d124d3229053
CRs-Fixed: 3341573
2022-11-22 12:12:15 -08:00
Will Huang
ed050b6f1a qcacmn: Populate pdev secondary_cur_chan_list for mobile device SAP
secondary_cur_chan_list channel list is for mobile device SAP, which
by default cannot enable on LPI channels, and cannot enable on SP
channel until AFC server response received.

Populate 6 GHz channels to secondary_cur_chan_list based on 6 GHz
regulatory rules of current country, LPI channel will not be added
in because it is not allowed for mobile SAP. And update 6 GHz SP
channel attributions if received AFC response.

Also add APIs to populate power attributions of secondary_cur_chan_list
and decide proper 6 GHz power attributions if 6 GHz channel frequency
and bandwidth being selected.

Change-Id: I6aa0228f18f7e31fc3cdd63a98483d02afb0579a
CRs-Fixed: 3204156
2022-11-22 10:22:28 -08:00
Jia Ding
160d6306ea qcacmn: Correct rx_msdu_end_tlv and rx_mpdu_start_tlv len
With CONFIG_NO_TLV_TAGS=n, seeing below values showing in dump.
sizeof(struct rx_msdu_end_tlv) = 136
sizeof(struct rx_mpdu_start_tlv) = 128

Indeed these values match current comments for CONFIG_NO_TLV_TAGS=y.

Therefore correct the comments for rx_msdu_end_tlv and
rx_mpdu_start_tlv length for better readability.

Change-Id: I655f8fb9df09f5f7bb63f4bb2e3f297725354fbe
CRs-Fixed: 3340399
2022-11-22 10:22:20 -08:00
Santosh Anbu
53d2d231fc qcacmn: Add callback to notify if vdev is in mlo_sync_wait
Add vdev callback to notify once the vdev has entered into
MLO_SYNC_WAIT state.

Change-Id: I655bfa68d666807468cacf1a0a052ac6ddf0b8d6
CRs-Fixed: 3338519
2022-11-22 10:22:12 -08:00
Jingxiang Ge
7d007034fb qcacmn: Add debug timestamp for wlan_logging_thread
Add more log for wlan_logging_thread to monitor
thread start/exit.
and also add memory barrier wmb to make sure exit
flag/shutdown_comp have been set done.

Change-Id: I6549f344f50bdd9df3a29c4ab724ea67213670de
CRs-Fixed: 3320274
2022-11-22 07:49:45 -08:00
Divya R
4960c64911 qcacmn: Assign value for ADFS 320 MHz support capability bit
Assign value for ADFS 320 MHz support chain mask capability bit
extracted from WMI event.

Change-Id: I9d96fe9072a390da4d57585358bac516007f9620
CRs-Fixed: 3333937
2022-11-22 04:13:05 -08:00
Shashikala Prabhu
5c88babc02 qcacmn: Define structures for T2LM changes
Add IEEE802.11be specific T2LM structure definition

Change-Id: Ia29ff6dfed1edca60e294c8455c8acef09b3fada
CRs-Fixed: 3333876
2022-11-22 00:41:28 -08:00
Shashikala Prabhu
fc8fedf6df qcacmn: Fix T2LM compilation errors
- Renamed t2lm_provisioned_links as hw_link_map_tid in the T2LM
  data structures.
- Renamed wlan_t2lm_of_tids structure as wlan_t2lm_info.

Hence, added this change to fix the compilation errors.

Change-Id: I969202137adbd5bfb5e910d45514ea9074e9b1b1
CRs-Fixed: 3337530
2022-11-22 00:41:21 -08:00
Shashikala Prabhu
97295e0441 qcacmn: APIs to add and parse TID-to-link mapping action frame
Add APIs to add and parse TID-to-link mapping request, response and
teardown action frames.

Change-Id: Ia1d2c9d28f0dfa11441d5a77d023a8dde2d68db5
CRs-Fixed: 3332736
2022-11-22 00:41:12 -08:00
Shashikala Prabhu
da59d95884 qcacmn: APIs to add and parse TID-to-link mapping IEs
Create wlan_mlo_t2lm.h and wlan_mlo_t2lm.c files for T2LM.
Add APIs to add and parse TID-to-link mapping IEs.

Change-Id: I6ae23a35662185040ad9f5a4d983a16782e3fc35
CRs-Fixed: 3329887
2022-11-22 00:41:03 -08:00
Tiger Yu
8e2032cc6a qcacmn: Ensure the grp_id is not greater than MAX_TA_RA_ENTRIES
Ensure the grp_id is not greater than MAX_TA_RA_ENTRIES to avoid
potential out of array illegal memory access.

Change-Id: I343fffe6078b33d0ec618ea7b4abbfd17c4bb814
CRs-Fixed: 3340482
2022-11-21 02:59:31 -08:00
Ripan Deuri
85e7faff70 qcacmn: Add function to check WDS ext peer
Add function to check WDS ext peer.

Change-Id: Ic29cb04fc2830240854921fe3eeadd03e8171979
CRs-Fixed: 3340244
2022-11-21 00:03:45 -08:00
Tallapragada Kalyan
075b483358 qcacmn: wifi DP TX optimization for RMNET pkts
pkts from rmnet device are sent as SG, we see poor
throughput when transmitting these SG frames using
an MSDU extension descriptor. to resolve this issue
we identify if the frame is from RMNET device and if so
copy the headers from skb linear address to the frag
address and provide the frag address to HW for transmission

CRs-Fixed: 3337822
Change-Id: Ic1b7d9f861dcd4f838509772c45e47d3917fc59f
2022-11-21 00:03:36 -08:00
Nandha Kishore Easwaran
bb7ee725be qcacmn: Add txmon HP TP values in stats command
Add txmon buf and destination ring in HPTP dump command

Change-Id: Ic32d1b355d5fc309225dfc5649ee7f9568a8dca6
CRs-Fixed: 3331176
2022-11-21 00:03:26 -08:00
Karthik Kantamneni
6ef5d59bee qcacmn: Add Runtime PM last busy history support
Add support to record last busy events on RX CEs,
this helps to check how frequent CEs are marking busy.

Add support to display last busy history and runtimepm stats.

Change-Id: I856ce54a2f1c6b26722d27623343fc0a2c202c6f
CRs-Fixed: 3337902
2022-11-20 22:03:28 -08:00
Nidhi Jain
92cfe5ce89 qcacmn: Changes to enable CFR in monitor filter 2.0
This change enables CFR through dp_mon_filter_2_0 path.

Change-Id: Ic83d071dbc7c3dec28f025388753f07b7dba2fa5
CRs-Fixed: 3337540
2022-11-20 22:03:19 -08:00
Linux Build Service Account
aba8eb07d0 Merge "qcacmn: Avoid read access to IPA TX doorbell address" 2022-11-20 06:53:45 -08:00
Linux Build Service Account
b32b979e35 Merge "qcacmn: Add changes to support link_id param in cfg80211_disconnected" 2022-11-20 06:53:45 -08:00
Linux Build Service Account
9345e3e5b3 Merge "qcacmn: Array Indexing after validating 'ce_id'" 2022-11-20 06:53:44 -08:00