نمودار کامیت

16044 کامیت‌ها

مولف SHA1 پیام تاریخ
Vignesh U
b7b42cc588 qcacmn: Expand sub-channel array storage for 11be chipsets
The sub-channel array size was maximum of 8 sub-channels corresponding
to a maximum channel width of 160MHz. But with the introduction of 11be
higher channel width of 320MHz is possible.

Expand the size of sub-channel array to 16 to accommodate the sub-channels
of 320MHz in case of 11be chipsets.

Change-Id: I7ffd1a7c0f05085edff74b92e47ab5a0dab42ef0
CRs-Fixed: 3068405
2021-12-13 23:25:00 -08:00
Abhishek Singh
a83c541117 qcacmn: Remove Union in mlo_link_set_active_param
Remove Union between link_num and vdev_bitmap as
it is possible send vdev_bitmap along with link_num
for forcemode MLO_LINK_FORCE_MODE_ACTIVE_NUM and
MLO_LINK_FORCE_MODE_INACTIVE_NUM.

Change-Id: Ie15c5f20d7990baebee50bdc7a37734331eb891c
CRs-Fixed: 3090334
2021-12-13 19:13:31 -08:00
Lincoln Tran
b9c91b6554 qcacmn: Add synchronization to copied conn req
When accessing the copied connect request, concurrent accesses may
arise. This could cause a double free in certain scenarios. Add locks to
any write access so there is no unexpected behavior.

Change-Id: I011b8980d5756d7105704449af2dba6df1f23a8d
CRs-fixed: 3070966
2021-12-13 16:43:37 -08:00
Yeshwanth Sriram Guntuka
c399429018 qcacmn: Define few tx, rx and misc tracepoints
Define tracepoints for TCP, UDP, and other packets in
tx and rx. Also, define some miscellaneous to capture
delayed reg write and CE scheduling latency.

Change-Id: I1eafad7e367073060d742d7bf4ca3245d75cc25d
CRs-Fixed: 3080977
2021-12-13 08:04:58 -08:00
Yeshwanth Sriram Guntuka
d197c575bc qcacmn: Add support for wlan specific tracepoints
Add support for wlan specific tracepoints using
the existing tracepoint infrastructure exposed
by kernel.

Change-Id: I9e4d09443b97124252240cb6b9ee305acb1bf677
CRs-Fixed: 3077074
2021-12-13 08:04:53 -08:00
Chaithanya Garrepalli
f1e8e24f1a qcacmn: Change vdev aggregate stats for MLO
In Vdev aggregate stats get peer stats from MLO peer
if peer is primary link peer

Change-Id: I8c9e2406199cee05c5d81764d0187670c611402c
2021-12-13 04:55:10 -08:00
Santosh Anbu
9fc10c90b6 qcacmn: Add support to send partner link info in start cmd
Add change to send the mlo partner link info to FW as partof start
cmd.

Change-Id: I6f33e6ce5992a1e21d971667f9cc4de5b12c6b2c
CRs-Fixed: 3088902
2021-12-13 03:26:01 -08:00
Karthik Kantamneni
e79b8799c1 qcacmn: Fix compilation error in flow control switch case logic
In flow control code switch logic break statements are not used
intentionally, but compiler is treating this as error.
So to avoid compilation error add fall through comment.

Change-Id: Ic79b75c48554182fba7c4c0f3885e3a44347e2e7
CRs-Fixed: 3090182
2021-12-13 00:45:17 -08:00
Vikram Kandukuri
599a7dca32 qcacmn: Add WiFi Radar core utils
Add WiFi Radar core functions utils.

Change-Id: I74fd9e5f76d2a454a6de2f21a2080c17230f25ad
2021-12-10 07:35:18 -08:00
Vikram Kandukuri
8e863f6169 qcacmn: add wifi radar utils
Add wifi radar utils function for psoc,
pdev, vdev object creation handlers.

Change-Id: Ib7fc83238c90c045a9d91c756039a9c7ecfe21e1
2021-12-10 07:34:46 -08:00
Vikram Kandukuri
ccf6794c7e qcacmn: Add wifi radar dispatcher
Add wifi radar dispatcher APIs.

Change-Id: Ib3120604dcb5b2faa12420893fd0714dc5b2246e
2021-12-10 00:13:24 -08:00
Venkateswara Swamy Bandaru
73ffddd02d qcacmn: Update EHT capability IE as per D1.2 spec
Update EHT capability IE as per D1.2 11be spec

Change-Id: Idc27d9434e6c8134fee5b62cf28061c0a87bdb1c
CRs-Fixed: 3081129
2021-12-09 14:57:11 -08:00
Venkateswara Swamy Bandaru
73cdfcc102 qcacmn: Add EHT vdev multi user configuration defines
Add EHT vdev param multi user configuration defines for each
bit field of the param.

Change-Id: I5f064cff01d30a86086bec0a65561c10e72c613d
CRs-Fixed: 3052451
2021-12-09 14:57:06 -08:00
Bapiraju Alla
ca4b3fabf6 qcacmn: Add support to dynamic MAC address update
Currently, MAC address update is supported only when interface is down.
Because of this framework needs to issue interface down and interface
up to update the MAC address.

This is resulting in connection time increase when MAC address
randomization is enabled for every new connection.

To optimize the connection time, add support to update the MAC address
without bringing the interface to down state.

Change-Id: Ic3eff6a9571f885292021b2c178d26b0eace5042
CRs-Fixed: 3063475
2021-12-09 13:42:05 -08:00
Krishna Rao
a50a68c40d qcacmn: Generate Link Specific Assoc Request for MLO
Generalize the existing link specific assoc response generation
functionality to make it common between link specific assoc request and
assoc response generation, and expose modified APIs for both. Add
handling of Non-Inheritance IEs as well as fixed field parsing to both.
Add guard checks and other fixes.

CRs-Fixed: 3083541
Change-Id: Ibf642ddc6b40ce258d50f3eeb4f820648222a758
2021-12-09 13:42:00 -08:00
Shashikala Prabhu
190dfc287e qcacmn: Correct the ext element ID of Max Channel Switch Time IE
Use the correct ext element ID for Max Channel Switch Time IE.
As per the spec, the correct value is 52.

Change-Id: Ia2106a6c4e6d63167e112dfb6c85f84f50e028b5
CRs-Fixed: 3089809
2021-12-09 13:41:54 -08:00
Surya Prakash Sivaraj
9f020ef915 qcacmn: Fix MBSSID parsing for OUIs without subtype
Host splits MBSSID into individual scan entries. The IEs
added into the new scan entries should neither be in the
non-inheritance list nor a duplicate IE. Host checks duplicity
of Vendor specific IEs by comparing the OUI, type subtype of
the non-tx and tx BSSID IEs.

Adaptive 11r VS IEs doesn't have subtype, and host uses
IE data as subtype. In this case, even if both the IEs are
same, still both are added into the new scan entry. The
supplicant uses the capability from the first IE belonging
to the tx profile leading to connection failure.

In MBSSID parsing logic, add exception for OUI from this
specific vendor in the Vendor IE comparison logic.

Change-Id: I7bb6cc7ebe34a5f007b9b84c91d6db6c7fcf997b
CRs-Fixed: 3084721
2021-12-09 13:41:48 -08:00
Jianmin Zhu
e6821fc5fb qcacmn: Fix 11ac no rate info in monitor mode
PPDU nss is set as 0 illegally for qca6490, can't calculate rate.

Change-Id: I6d06d4cb220300e202f7b4f93e4e0eb1299cc8e6
CRs-Fixed: 3085590
2021-12-09 12:25:56 -08:00
Rakesh Pillai
773c505cde qcacmn: Fix monitor status tlv parsing for WCN7850
Fix the macros used for parsing the status TLVs
for WCN7850.

Change-Id: I8e22e5950b03e7a887afbea9d05cdddfdef83cbe
CRs-Fixed: 3084621
2021-12-09 12:25:51 -08:00
Santosh Anbu
1c97f0226b qcacmn: Rename peer create check to be MLD specific
Add change to rename peer create in MLO scenario to include MLO prefix
to void interpretation with generic peer create

Change-Id: I0ebf15964390275270e8b02d1e87df8532c63a0b
CRs-Fixed: 3075987
2021-12-09 12:25:46 -08:00
Santosh Anbu
cd43975f65 qcacmn: Allow peer create only when VDEV is in UP state
Replace the state check logic with the existing implementation
that is used to check if VDEV can allow peer create.

Change-Id: I7141ef4ace73e3aacee27e423b42c6c59c509b13
CRs-Fixed: 3075987
2021-12-09 12:25:41 -08:00
Shwetha G K
3c5ce319c3 qcacmn: Add MLO NAWDS support
Changes to support NAWDS (Non Association based
WDS) when MLO is enabled.
Since NAWDS repeater works without association, user
inputs capabilities and puncture_bitmap associated with
each link. The same information is to be passed to
mlme peer create API to configure the STA nodes per
capability & puncture bitmap provided by user.

Change-Id: Ia0722a454321bf9d408860276f852dd10712c12c
CRs-Fixed: 3077880
2021-12-09 12:25:36 -08:00
aloksing
9a4ae1a05a qcacmn: print tx/rx stats for 11BE
Add and initialize function pointer to print BE/LI stats

CRs-Fixed: 3071271
Change-Id: Ib9748d475ac583b7404fcc5f1207b8019c7671a6
2021-12-09 11:17:34 -08:00
aloksing
b726e009e7 qcacmn: rx stats update for WKK
Add function pointer to update stats for LI and WKK
Add new fields in structure cdp rx stats

CRs-Fixed: 3071271
Change-Id: I6a1d7afbdfe47d171335d55bf66d210d785f5a03
2021-12-09 11:17:28 -08:00
aloksing
b093d034a4 qcacmn: tx stats update for WKK
Add function pointer and initialize with function
to update stats for WKK
Add new fields in structure cdp tx stats

CRs-Fixed: 3071271
Change-Id: Ib1fd867e414b8a61cff4f462434c51541f925f62
2021-12-09 11:17:23 -08:00
aloksing
3637ac16b0 qcacmn: Move monitor mode HTT parsing from mon_1_0 to common
Moving HTT parsing to common file dp_mon.c
Initialize function pointer to stats ind handler for BE

CRs-Fixed: 3071271
Change-Id: I08fb98f8dbed075c3b49baebca399771bfb5077c
2021-12-09 11:17:17 -08:00
Yu Wang
66181cbbbb qcacmn: set valid MAC address for non-ML connection
Update MAC address for non-ML connection only when
MLD address is valid.

Change-Id: I8ff46acdc972bfed01cd1ec97d5dd960baf24a38
CRs-Fixed: 3084793
2021-12-08 22:03:26 -08:00
Dundi Raviteja
7be08f1577 qcacmn: Avoid possible out of array access
In function wbuff_buff_put(), there is a possibility to
access array out of boundaries for module slot and pool slot.

Add condition to check for array boundaries.

Change-Id: Iaf5a0ef6b2e712804717abf27d0c0d06862a04f5
CRs-Fixed: 3086342
2021-12-08 13:50:27 -08:00
Harsh Kumar Bijlani
974b9bee85 qcacmn: Correct the computation of pdev stats for ifconfig output
Memset Rx ingress stats of pdev to 0 when user makes a request
for ifconfig output for radio.
Also correct the computation of rx_errors stat for ifconfig radio
output.

Change-Id: I78110602b939db0117cf26ca0f8f70cd1ef7b1e8
CRs-Fixed: 3088982
2021-12-08 13:50:22 -08:00
Sai Rupesh Chevuru
deb7bbf8de qcacmn: Fix for HMT SOD insmod crash
In the case of MCC due to low power mode atomic operation in
accessing the bank is resulting the crash.
Fix crash by using spinlock for WIN and mutex for MCC.

Change-Id: I5bb49cbed32e41ad88bfaeb24496adb180e37551
2021-12-08 13:50:16 -08:00
Liangwei Dong
b6e8d7a2ce qcacmn: Set retry_limit_ext for MGMT frame send WMI command
Some p2p action frame needs big retry count than the default
max 15 retry count to get high tx successful ratio.
FW allocates 3 extra bits for retry count setup.
To use this field needs FW change in CR 3082533.
Set the extra 3 bits "retry_limit_ext" to "tx_param_dword0"
field for WMI MGMT send command. Existing 4 bits
"retry_limit" combines with this new 3 bits
"retry_limit_ext" to create a 7 bits retry count:
bit 0 - 3: retry_limit
bit 4 - 6: retry_limit_ext.
So Maximum 127 retries can be specified to a certain mgmt
frame.
To use this field needs FW change in CR 3082533.

Change-Id: I889933ea1750c03701ba8a60340f27e6c2594c1b
CRs-Fixed: 3082534
2021-12-08 12:41:42 -08:00
Sai Rupesh Chevuru
f204c33ff4 qcacmn: removal of PEER_DMS_CAPABLE
As the fw interface are changes are merged for ME6,
Enabling ME6 feature by removing PEER_DMS_CAPABLE flag.

Change-Id: I0535abadd8dd270f124ba620fe7faed05eb77a26
2021-12-08 12:41:36 -08:00
Lincoln Tran
3bb859e795 qcacmn: Retain link disconnect source if northbound
If the MLO module is sending link disconnect from the north, retain its
disconnect source. If it is a southbound disconnect, update the source
to be from MLO manager. This is needed so some legacy modules handle the
disconnect properly and send vdev stop when appropriate. Also make sure
that the SB disconnect will be processed if the link is in connecting
state.

Change-Id: I6644751934697496147b9177ee7beab4d7355e10
CRs-fixed: 3086012
2021-12-07 22:39:25 -08:00
sheenam monga
04fad862b8 qcacmn: conditionally compile dp_mon_register_intr_ops
Currently dp_mon_register_intr_ops is defined conditionally
using DISABLE_MON_CONFIG macro but function call is independent of
DISABLE_MON_CONFIG which may cause compilation issue when
DISABLE_MON_CONFIG is disabled.

Fix is to add void function definition when DISABLE_MON_CONFIG
is disabled.

Change-Id: I5f0bafa1aa3560a5828500a687b8b11178ab945b
CRs-Fixed: 3084193
2021-12-07 22:39:20 -08:00
Rohan Dutta
a6be671ddf qcacmn: Clone security params for MLO STA
Clone security params in MLO STA over the partner links.

Change-Id: I06ba32e384244fe983ecf56d7743c89b33524d6f
2021-12-07 11:15:42 -08:00
Vignesh U
0e0728fe13 qcacmn: Deliver CAC Events on curchan and prev chan
Use DFS curchan and prevchan to deliver DFS CAC Events.

When CAC is started, deliver WLAN_EV_CAC_STARTED on all the sub-channels
of the current channel. In order to reset the CAC_DONE state of the
previous channel, deliver the WLAN_EV_CAC_RESET event on all the
sub-channels of previous dfs channel. If the previous channel was non-dfs
channel the CAC_RESET event need not be delivered. Since in the case of
ETSI domains retain the CAC_DONE state CAC_RESET event need not be
delivered for this case too.

Change-Id: Ia1083828f9e2e269fd17969bc4f8d642e938990d
2021-12-06 23:55:34 -08:00
Harsh Kumar Bijlani
21fb667866 qcacmn: Correct the offsets & byte cnt computation in HTT stats
Offsets used by host for HTT stats are not aligned as per the
structure declaration given in file htt.h .
Make change to use the correct offsets to get the correct stats.

Also make change for byte count computation.

Also make cleanup changes for FR65817.

Change-Id: I8bc6164cc4994c49536d7277779f25b258be1592
CRs-Fixed: 3082742
2021-12-06 21:13:41 -08:00
Tiger Yu
95cb0e103f qcacmn: Refine dp pdev vdev stats updating function to non-inline
Refine dp pdev vdev stats updating function to non-inline to avoid kasan
building failure.

Change-Id: I896f28831198632c61735ccc10ed4aedb30a8232
CRs-Fixed: 3085365
2021-12-06 10:08:39 -08:00
Shiva Sankar Gajula
c2d0e0aca1 qcacmn: update the vdev crypto params form the connect req during roam
With existing STA code changes, The vdev crypto params are filled
in cm_connect_active() but when STA tries to roam from WPA2 AP to
WPA3 AP or vice versa, the new keymgmt of AP2(AP2 keymgmt is FT-SAE
if STA roams from WPA2 to WPA3 and AP2 keymgmt is FT-PSK if STA
roams from WPA3 to WPA2 AP's) is not updating in the vdev crypto
params instead it holds the AP1 keymgmt.

So, Adding changes to update the vdev crypto params from the connect
request structure during roam.

Change-Id: Ia0ddd6192a45f5d9e37b44665aded5a1fc573243
2021-12-06 06:26:48 -08:00
Bapiraju Alla
707fb8a2f8 qcacmn: Add support to set MAC address command in WMI
As part of new enhancements, driver is supporting MAC address update
after VDE creation in the FW. To support this feature add WMI support
to send MAC address command to the FW.

Change-Id: Ie4b7291520793c8aa501fefccaf7b91ab22e9054
CRs-Fixed: 3084119
2021-12-06 06:26:43 -08:00
Chaithanya Garrepalli
16219ce7ce qcacmn: Print RxBUF ring stats in DMAC mode
When DMAC mode is enabled print Rx BUF rings at
SOC level

Change-Id: I22bab6676081e3faaf7b8cbe2d23e9b7fa7f2e43
2021-12-06 02:44:53 -08:00
Ashish
1dcd308bb3 qcacmn: Consider gindoor_channel_support ini to decide ap_power_type
Currently driver does not consider gindoor_channel_support ini
when it decides the ap power type and because of that it always
decides ap power type as VLP. Driver should consider this ini
value as well because this INI says that indoor channels are
allowed so driver should set ap power mode as LPI to allow
LPI power mode.

Change-ID: Id7ad546ba23ce210497002e3083a22f1edc87185
CRs-Fixed: 3085997
2021-12-06 02:44:48 -08:00
Karthik Kantamneni
5118e6daa1 qcacmn: Increase EP wake timeout for debug build in QCA6750
Currently EP wake delay timeout is less and there is chance
of timeout to happen, so increase the timeout value.

Change-Id: I59261ade269908cd4d9c17025838807f39913999
CRs-Fixed: 3086547
2021-12-06 02:44:43 -08:00
Himanshu Batra
14325a4a60 qcacmn: Clear MLO cap only when it is the last disconnect req
Clear MLO cap only when it is the last disconnect req as osif would not
have informed userspace for other disconnect req because of
cm_id mismatch

Change-Id: Ifcfde3e0efd6fb28e73679cbbccfa6f64ed35902
2021-12-06 02:44:37 -08:00
Venkateswara Swamy Bandaru
d2d8b77ec4 qcacmn: Add support for 11be D1.2 eht mcs map
Add support for 11be D1.2 eht mac map.

Change-Id: Ie5e0934f01c5614c0d2788d9b56b2e755ea23b1d
CRs-Fixed: 3081122
2021-12-05 22:53:43 -08:00
Jianmin Zhu
50eb6fef18 qcacmn: Fix deadlock for race condition
When connect from wpa_supplicant and roam from F/W happens at same
time, supplicant hold cm cm_req_lock and wait rsp from scheduler
thread, sheduler thread is blocked to wait for cm_req_lock.

Change-Id: I6b9010972d29be9a32d3b85ee72891ed62b50801
CRs-Fixed: 3087193
2021-12-04 20:51:25 -08:00
Srinivas Pitla
df5958c77b qcacmn: Add API to get PSOC by PSOC ID
This change defines an API to get PSOC object
with PSOC ID.

Change-Id: I4c0d63fa480ac33e0471a6e679934b30e3670f8e
2021-12-04 20:51:21 -08:00
Chaithanya Garrepalli
c9c1407d9a qcacmn: Correct the bank register config for QCN9224
For QCN9224 update dscp_to_tid_table_num correctly
in Bank register

Change-Id: I222fe103fbc676c8985b542a66c6aa246d73b4eb
2021-12-04 19:33:15 -08:00
sandhu
164ba5cc5a qcacmn: Reduce CE5 size to 0 for 6490
Reduce CE5 size to 0 for 6490 , this will save 1 mb of memory

Change-Id: Ifff574944b2dfd93ee8e056999bc8d30dd814c1a
CRs-Fixed: 3068274
2021-12-04 18:15:01 -08:00
Chaithanya Garrepalli
63cbee363b qcacmn: Correct RBM value when giving link_desc to HW
Use correct RBM value while giving back link descriptors
to HW from RX defrag path

Change-Id: I75eb41cd166dde2d26f32d3165ac52f732c83d82
2021-12-04 15:34:53 -08:00