Commit Graph

16073 Commitit

Tekijä SHA1 Viesti Päivämäärä
sandhu
ad2829718c qcacmn: Remove IP from files
remove IP from code

Change-Id: If119a4af213b10aadb9f1344e50b0342e72405c2
CRs-Fixed: 3073864
2021-12-29 04:28:58 -08:00
Harsh Kumar Bijlani
2832d48c89 qcacmn: Use atomic variant of qdf_mem_malloc for vdev stats
Use qdf_mem_malloc_atomic for memory allocation while fetching
vdev stats.

Change-Id: Ia36a41deb5ba882adb0727538c085c33c7e38b7c
CRs-Fixed: 3097703
2021-12-29 02:55:10 -08:00
Edayilliam Jayadev
cb40cd916e qcacmn: Miscellaneous fixes in Mgmt Rx REO module
Add miscellaneous fixes in management Rx reorder module.

CRs-Fixed: 3094901
Change-Id: Iba579bac4243f42879fef0b1d3de2ac8ca05bea1
2021-12-28 23:14:05 -08:00
Edayilliam Jayadev
7b2b50778e qcacmn: Handle ref counts in Mgmt Rx reorder module
Handle refcount increment and decrement properly in
management Rx reorder module to avoid reference leaks.

CRs-Fixed: 3094885
Change-Id: I26d7ea360e7f6eabb755b825fd9d34c5320b4e82
2021-12-28 23:13:59 -08:00
Edayilliam Jayadev
ba7f1f77ef qcacmn: Add enhanced statistics for Mgmt Rx REO
Add enhanced statistics for management Rx reorder
module. Add key stats about the frames entering
and leaving the reorder module.

CRs-Fixed: 3094874
Change-Id: I8df7a9ac98106ff834c3897a6b495b8a0dd5214d
2021-12-28 23:13:54 -08:00
Edayilliam Jayadev
a245acf476 qcacmn: Atomically modify pending and stale list in Mgmt Rx REO
The operations with stale and pending list should be atomic.
Share a single spin lock for pending and stale list so that
the modifications are atomic.

CRs-Fixed: 3081847
Change-Id: Ia647de01af0172039659c73bdd32de819dae1257
2021-12-28 22:13:12 -08:00
Kiran Venkatappa
31d1d1ac4a qcacmn: Skip mlo setup triggers if soc in not mlo capable
Skip sending triggers for MLO setup if a soc is not mlo capable to avoid
inconsistent MLO setup exchange with target.

Change-Id: Ie17dcd03e2fcf778795d964a55e4a400adacfb33
CRs-Fixed: 3100309
2021-12-28 14:42:43 -08:00
Chaithanya Garrepalli
0ead24e9f6 qcacmn: Correct ml peer_id check in partner chips map
In dp_mlo_partner_chips_map API correct the ML peer_id
check

Change-Id: I036e725571d922a3d01f3f07e16bda755f6f966e
2021-12-28 10:52:03 -08:00
Tushnim Bhattacharyya
2a660189e5 qcacmn: drop the log level to debug for invalid channel number
Drop the log level to debug from error for the prints indicating
input or output channel number is invalid.

Change-Id: Ief2f609f1c95c223c97cded6d81460e52a34c729
CRs-Fixed: 3100105
2021-12-28 10:51:59 -08:00
Rakesh Pillai
125174cdd1 qcacmn: Initialize only one RXDMA Monitor Status ring
For WCN7850, the first mac (i.e.. MAC0) is capable of
2G/5G and 6G data transfer. Hence initialize and use
only on RXDMA monitor status ring.

Change-Id: Idb6e23a887a9ed32a52dd54765e5ed3c6a12df06
CRs-Fixed: 3094138
2021-12-28 10:51:54 -08:00
Sai Pratyusha Magam
fc5f47db1a qcacmn: Release peer only after key access for peer is completed
Release peer only after key access for peer is completed

Change-Id: I88948536605eb4afac82772428938e0aaecbc957
2021-12-28 07:43:23 -08:00
Shiva Krishna Pittala
a9547b0f25 qcacmn: Add support to extract fixed params from Spectral Caps event
WMI_SPECTRAL_CAPABILITIES_EVENTID event will be sent by the FW to
indicated the different capabilities of the Spectral HW block.
Add support to extract the fixed parameters from this event.

Change-Id: Ib13108f078de008b6a76a25a010e85a7fdb6f5fe
CRs-Fixed: 3098203
2021-12-28 06:43:12 -08:00
Himanshu Batra
0ae42b09e4 qcacmn: Use correct API to find is peer is assoc peer of an MLD
Use correct API to find if peer is assoc peer of an MLD

Change-Id: If485222ed23a1ac7b7fc625c6d9dfd6000959f36
2021-12-28 02:55:59 -08:00
Naga
719e163615 qcacmn: Change to make monitor ops per soc
- make monitor ops per soc, so that when ops are
  reset it will not impact other soc.
- reset filter setting during pdev deinit.

Change-Id: Ic40582fc1d03343d0bfaf879177212ecb83ae058
CRs-Fixed: 3086841
2021-12-27 23:39:49 -08:00
Himanshu Batra
0dd1799d92 qcacmn: Increase IPA Max bandwidth to support high BW voting
Increase IPA Max bandwidth to support high BW voting

Change-Id: I80d127601d7c6c6feb214062cee6b35a3553f9de
2021-12-27 22:34:27 -08:00
Disha Das
601e5975d1 qcacmn: Fix for concurrency issues in wlan_crypto_getkey
Adding changes to call getpn after checking if key is valid,
and releasing the peer reference.

Change-Id: I8821407472db2b7008ad8226e754077a601d325e
2021-12-27 18:33:59 -08:00
Rakesh Pillai
b93b4af698 qcacmn: Fix timestamp parsing from TLV for kiwi
For KIWI target, 64-bit timestamp is reported
in the PHY TLVs. use the first 32-bits timestamp
value for the radiotap header.

Change-Id: Ia7d7a6913e4cdca3a1432cc5edbb0348ec8a6857
CRs-Fixed: 3096680
2021-12-27 13:00:47 -08:00
Jinwei Chen
1c27daa164 qcacmn: Remove HW CC CMEM cleanup for Kiwi
For Kiwi, if force device wake mechanism is enabled for register
writing, host will try to wake up UMAC before writing real register,
this also happened for CMEM write. but during soc deinit/detach
period, device might already lose power supply and then UMAC can't
be awake from host view result in panic.

Remove HW CC CMEM cleanup which is not necessary for Kiwi as
CMEM will be re-configured during next boot up.

Change-Id: I515308c065eefbba896cb232773b8d7ffc32d385
CRs-Fixed: 3097991
2021-12-27 13:00:41 -08:00
Jinwei Chen
c9ff3a2ac9 qcacmn: Support hif window register and set init_phase for Kiwi
For Kiwi, if UMAC force wake is enabled, HIF window register
support is needed as well. currently hal_soc->init_phase just be
true for a very short periord, this lead to hif_force_wake_request
is called frequently when configure register during initialization,
this is not necessary as pld and device is not in power collapse
state during this period.

Enable HIF window register and increase init_phase true period

Change-Id: I0b5394bbc1ca73d20b2fcabbf2a261e6f8335626
CRs-Fixed: 3097991
2021-12-27 13:00:36 -08:00
Shwetha G K
3ac9cf9e6b qcacmn: WMI support to enable/disable TQM reset
Add WMI command support to enable and disable the
TQM reset on SOC.

Change-Id: Ic9476c56d5a6758ea3006c819372b5f89140a4da
2021-12-27 08:31:11 -08:00
Liangwei Dong
a5503f36a3 qcacmn: Add DEBUG_CONN_RSO log history
Add new DEBUG_CONN_RSO enum to record RSO state changing.

Change-Id: Ie46ab5d4b32d8b5632aa3c3eaed96d00afda22b3
CRs-Fixed: 3097076
2021-12-27 01:03:55 -08:00
Chaithanya Garrepalli
9764cf5e3d qcacmn: Fix double free in MEC notify event
Fix double free of tx descriptors with MEC notify
event

Change-Id: I7456b14e8872fd7732afade7d49134c1fca9284b
2021-12-24 10:33:53 -08:00
Tallapragada Kalyan
0156c41d12 qcacmn: store per page descriptor index instead of descriptor count
store per page descriptor index instead of descriptor count
in the link descriptor cookie

Change-Id: I719bd5707e6c7f11d7cd159974b5255cd845f2bc
2021-12-24 09:13:18 -08:00
Will Huang
f920f723a9 qcacmn: Extend IPA max intf number to 4
To support 4 SAP concurrency on sdxlemur, it is required to extend IPA
max interface number to 4.

wlan_ipa_iface_2_client is for legacy chip which support MCC, it is not
useful for nowaday chip, just extend it to 4 interface with same
content as other interface to pass ipa setup.

And Fix a static analyze error about session_id.

Change-Id: I5f2a4a0e3ff943e15ab9907e206b64423002eccb
CRs-Fixed: 3092428
2021-12-23 20:33:37 -08:00
Qun Zhang
439cfbfc48 qcacmn: Let OBSS scan disable action called directly
Wlan host side doesn't have ways to know whether OBSS scan is
run or not if OBSS scan is offloaded to FW. So should let OBSS
scan disable action called directly to make sure OBSS scan is
disabled during each suspend.

Change-Id: I6134c038bbea2ae4f09662354d60063488696cb5
CRs-Fixed: 3097186
2021-12-23 04:50:25 -08:00
Bing Sun
6b44bcd1c5 qcacmn: Add WLAN_RNR_TBTT_OFFSET_INVALID
When populating TBTT OFFSET in RNR IE, if TBTT OFFSET is unknown,
set it as WLAN_RNR_TBTT_OFFSET_INVALID.

Change-Id: Ie60d4b66c849b4c9d19cc63f88821b564aeace07
CRs-Fixed: 3097197
2021-12-23 04:50:19 -08:00
Bapiraju Alla
76caeb9b44 qcacmn: Use target if component for VDEV manager response path
Currently, VDEV manager responses are using legacy path instead of
target_if, vdev_mgr and os_if components. As the driver implementation
is planned for converged model, legacy implementation will be moved to
the respective components.

To avoid rework, Use target_if, vdev_mgr and os_if components to process
the FW responses corresponding to the vdev manager.

Change-Id: I778f6de93481fc730383e8f8e1c604f173947d69
CRs-Fixed: 3093776
2021-12-23 00:54:35 -08:00
Bapiraju Alla
df5cc86477 qcacmn: Set partner vdev link id before initiating the connect on it
Currently, Driver is notifying the connect response to the user-space
immediately after first link connection. At this time, partner vdev
information is not available. Hence user space is notified with invalid
partner wdevs.

To avoid this, set link ID's for the partner VDEVs before notifying the
connect completion to is_if.

Change-Id: I6524e9af9359fced471db8f25220d2ac6854fc22
CRs-Fixed: 3097646
2021-12-23 00:54:30 -08:00
Gururaj Pandurangi
bad847ced8 qcacmn: Reduce logging in get 6G power type for country API
Optimize the checks in reg_get_6g_power_type_for_ctry API to
reduce logging. Logs will appear only during initial connection
and not after parsing each beacon.

Change-Id: I4c4904c4825cd822d119e4ee9b2c69e96612be31
CRs-Fixed: 3094366
2021-12-22 23:02:00 -08:00
Naga
984bfae507 qcacmn: Enable timer based low threshold interrupt
Enable timer based low threshold interrupt for waikiki monitor
tx/rx source rings

Change-Id: I8c422b4157d0077cfa211d1b754fecbb2b98fad6
2021-12-22 23:01:55 -08:00
Shiva Krishna Pittala
6219f3d454 qcacmn: Populate the number of Spectral detector info TLVs
Populate the number of Spectral detector info TLVs and
add the debug prints for Beryllium Spectral TLV extraction APIs.

Change-Id: I1f449389ba630e30e160b3070bee14d93a45c3be
CRs-Fixed: 3097662
2021-12-22 16:50:12 -08:00
Sai Rupesh Chevuru
90b1e60e57 qcacmn: Upgrading to htt_tx_wbm_completion_v3
Due to overlap with WBM block in QCN9224,
upgrading to htt_tx_wbm_completion_v3.

Change-Id: If6f7fd64686c9c1b35b253930e7918f570bd547c
2021-12-22 10:43:58 -08:00
Santosh Anbu
dc34c41ae6 qcacmn: Wait in MLO sync wait until start response is rcvd
In scenarios where if the VDEV has just sent the start request and a
partner vdev has received start response, will bring up all the MLD
AP vdevs without waiting in MLO_SYNC_WAIT as the existing check only
validates if the VDEV is in INIT or STOP state.

Add change to send MLO_SYNC_COMPLETE only after all the partner VDEVs
have move to either UP or DFS_CAC_WAIT state.

Change-Id: I3175b94e90abf6994fc6922bbe8e62a7986208a6
CRs-Fixed: 3096634
2021-12-22 10:43:53 -08:00
Vevek V
03017ea28c qcacmn: handle_last_discon to disable IPA in dual SAP mode
In dual SAP connection, calls only disable_pipes to disable IPA,
whereas during second SAP disconnection, to enable IPA, calls
wlan_ipa_uc_handle_first_con, which sends ipa_set_active MSG
as true to FW, for both Tx/Rx to resume.
So calling wlan_ipa_uc_handle_last_discon in dual SAP mode,
which sends ipa_set_active MSG as false to FW, to suspend.

Change-Id: I224e94a003030f497e15f242634f15d9c71b9ef0
CRs-Fixed: 3094276
2021-12-22 06:43:27 -08:00
Edayilliam Jayadev
9a5fdf9dfb qcacmn: Ingress frame logging changes in Mgmt Rx REO
Add new fields to incoming management frame logging.

CRs-Fixed: 3081845
Change-Id: Ie549078066de91d87701fa4ee588df4c7840e9ec
2021-12-22 04:32:02 -08:00
Edayilliam Jayadev
6540534870 qcacmn: Misc fixes in mgmt Rx REO module
Add fixes in management Rx reorder list handling.

CRs-Fixed: 3081836
Change-Id: Icef1ac3e42dc79e39079093c50b7fae83c4b1fa0
2021-12-22 04:31:57 -08:00
Amruta Kulkarni
475dd8ff1e qcacmn: Add mlo ie capability struct
For mlo, add mlo ie capability info
struct in common code.

Change-Id: I77c9792c736b1bdd95b2d863bb9f1ab4ee7ed4bb
CRs-Fixed: 3097761
2021-12-22 03:33:04 -08:00
Chaithanya Garrepalli
2f1a13fd88 qcacmn: Change bank profile init to soc init
As bank registers need to be reconfigured after
soc deinit. Initialize bank profiles in SOC init
instead of SOC attach

Change-Id: I3baaf62e1cb73d2882d03012e9e078523dcfe736
2021-12-22 00:54:17 -08:00
Chaithanya Garrepalli
e6440269ae qcacmn: Export wlan_objmgr_get_psoc_by_id API
Add qdf_export for wlan_objmgr_get_psoc_by_id
API

Change-Id: Ic079f60b0752de847701e517878ed4f3974ee66f
2021-12-22 00:54:11 -08:00
Yu Ouyang
b6a3f2fd44 qcacmn: Trim scan channel list
As requirement, concurrent mode, station 5G/2G scan need stop when AP
connected by peer station.

Condition:
STA + AP 5G (connected) + AP 2.4G	skip 5G scan
STA + AP 5G (connected)			skip 5G scan
STA + AP 2.4G (connected && 2.4G only)	skip 2.4G scan
Others concurrency			skip none

Add ini ch_list_trim_conc to enable/disable the feature. Default is
disabled.

Before send WMI_SCAN_CMD to firmware, call API
policy_mgr_scan_trim_chnls_for_connected_ap() to check if need
trim scan channel list. Which channel list need be trimmed

Change-Id: If4d1cf7347f757fb013ffcb4016e8e6f16859f42
CRs-Fixed: 3075068
2021-12-21 22:10:35 -08:00
Kai Chen
d93357ef5d qcacmn: Move CCE and flow hal implementation to per chip
Move CCE and flow hal implementation to per chip hal layer.

Change-Id: I95a37d8bab00cdecfd6e8ae9a724b8c5541b336e
2021-12-21 11:41:42 -08:00
Shashikala Prabhu
bb3953b75b qcacmn: Populate MLO Queit IE parameters in beacon template
- Add MLO Quiet IE related parameters in ml_bcn_partner_info structure.

- Populate MLO Quiet IE related parameters in the beacon  template.

Change-Id: I5a4a069d067bdbc5e7c44c407f51a504e9aba151
CRs-Fixed: 3088019
2021-12-21 10:23:25 -08:00
Shashikala Prabhu
0a725937cd qcacmn: Get pointers to per-STA profile CSA, eCSA, MCST IE
Parse the per-STA profile IE and save the CSA, eCSA, Max Channel Switch
Time IE pointers in partner_link_info structure.

Change-Id: Icac75e3ad1f45bd5325c9144db7732684ebb4512
CRs-Fixed: 3087692
2021-12-21 10:23:19 -08:00
Chaithanya Garrepalli
ed4b7bf28b qcacmn: Write Rx desc SPT on partner SOC
Changes to write Rx descriptor secondary page
tables on partner SOCs.

Change-Id: If89eff3425078aebb975463a01d0a45c9f5a21db
2021-12-21 01:10:24 -08:00
Himanshu Batra
f49b3a1753 qcacmn: Cfg changes for IPA offload support
Cfg changes for IPA offload support.

Change-Id: If477db8e958b22634e1505f3e4319c7aa0cc6ef4
2021-12-20 22:45:22 -08:00
Himanshu Batra
a83d7d4111 qcacmn: Modify IPA object cleanup path
Currently ipa object cleanup is happening as part of pdev destroy.
Move it to deinit API of IPA

Change-Id: Id36648397102fa47ad1d29f99f2f152f40663f36
2021-12-20 22:45:17 -08:00
Himanshu Batra
78fb9d70d7 qcacmn: IPA changes to support SDX+Pine
IPA changes to support SDX+Pine.

Change-Id: I66ad2a2c3e2f142c54df3e35c867ee827ac1d687
CRs-Fixed: 3079952
2021-12-20 22:44:55 -08:00
Liangwei Dong
db8e2c1604 qcacmn: Disallow 6ghz scan entry without country IE
The two api have different result for country ie empty AP case
at present:
scm_is_bss_allowed_for_country : allow ap with empty country ie
reg_get_6g_power_type_for_ctry: disallow ap with empty count ie
Add check empty country IE in scm_is_bss_allowed_for_country
to align reg_get_6g_power_type_for_ctry.

Change-Id: I8c929bf0befa691f60861ceb8c63827cde400ae9
CRs-Fixed: 3093481
2021-12-20 10:55:24 -08:00
Srinivas Girigowda
a448fdf6b4 qcacmn: qdf: Add TWT module ID
Add TWT module ID.

Change-Id: If20b7b8db65f38dee7c0f59cc185ac4ba87eac29
CRs-Fixed: 3085321
2021-12-17 20:44:31 -08:00
Srinivas Girigowda
c64646331b qcacmn: umac: Add TWT component ID
Add TWT component ID.

CRs-Fixed: 3085319
Change-Id: I200a9d1008fa0aae98b633c4433964b48a14d00d
2021-12-17 20:44:26 -08:00