Commit Graph

768 Commits

Author SHA1 Message Date
Jinwei Chen
499696eab5 qcacmn: update TX ILP capability to DP and target
After receiving WMI service ready ext2 event and htt msdu index to
qtype map is derived, call CDP API to evaluate whether TX ILP can be
supported or not, update the TX ILP capability to DP, also send WMI
INIT CMD to FW to notify if host has enabled the TX ILP support or
not.

Change-Id: I472ebc5c7fa4b2996b790b58274fa3c048f6d7f9
CRs-Fixed: 3447519
2023-04-13 20:05:46 -07:00
Aasir Rasheed
7962020d77 qcacmn: Add WMI params for MLO link state query
New TLVs for MLO link state information is introduced for
get link info command. Add WMI changes to add these TLV in
get link info command

Change-Id: Ib8d12a727ac6f59257dcce69174271330a065c77
CRs-Fixed: 3431076
2023-04-01 09:15:04 -07:00
Nidhi Jain
2bebf5e953 qcacmn: Add 11az TBR rsta host enum and wmi service
This change is to populate wmi service for 11az TBR rsta.
Also, this adds host based enum id for corresponding wmi service.

Change-Id: I9687855651bff222616adb3a8cf346e6264688ee
CRs-Fixed: 3437035
2023-03-29 11:29:54 -07:00
chunquan luo
9ee8244cd8 qcacmn: Add flag to filter special vendor roam log
Since special vendor roam log is not need for common roam,
add flag to filter the log.

Change-Id: Ide67de16ae68c507a7b4e81672cbf5e0fc0e4c5d
CRs-Fixed: 3442621
2023-03-29 01:13:32 -07:00
Rachit Kankane
d525bc0165 qcacmn: Support WMI_CSA_IE_RECEIVED_EVENTID
Add support for WMI_CSA_IE_RECEIVED_EVENTID as:

   1. Register the handler
   2. Handler to extract the event

Change-Id: I9f476c7fbc51d9686d05fbdb5f46dec3bcd3c29e
CRs-Fixed: 3431363
2023-03-27 09:22:51 -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
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
M Kavitha
9064b44469 qcacmn: Add support to receive EGID_INFO from BT WMI
Add WMI support to receive the EGID_INFO from BT and
forward to FW

Change-Id: I1698994173e6cefba1284f564c2f2e79e31ee221
CRs-Fixed: 3384085
2023-03-15 17:41:21 -07:00
Basamma Yakkanahalli
c6ec5df956 qcacmn: Add support for manual triggered UL OFDMA response
Added a support to handle manual triggered UL OFDMA
response user info event.

Change-Id: Ic1b8eca9a704a5fa8a82f8eb2f8735a9eaee08ad
CRs-Fixed: 3430299
2023-03-15 07:45:55 -07:00
Basamma Yakkanahalli
031d51614e qcacmn: Add DBR support for standalone sounding CBF CV data
Added change,
1. Define new DBR module DBR_MODULE_CBF to handle TxBF
   standalone sounding CV data and corresponding ring
   initialization.
2. API to extract new meta data TLV added for CV data.
3. API to handle standalone sounding complete.

Change-Id: Id28c5561bb8b3bf08de7ddd9aa2365e2ae99f1c2
CRs-Fixed: 3415627
2023-03-10 00:44:21 -08:00
Shivam Kumar
f2fe886cd6 qcacmn: Add pre rx ack timeout support for wmi
Add pre rx ack timeout support for wmi

Change-Id: I3e497e76f8e64867a3d40b8d9421bb474fe865d3
CRs-Fixed: 3406368
2023-03-08 02:30:47 -08:00
Rhythm Patwa
db04e08c9a qcacmn: Make changes for updating Link qualifier parameters
1. Make changes to selectively send the Link control WMI to the
   FW with out including the T2LM TLV.

2. Modify the TLV definitions for Link preference to use the newer
   Link control TLV.

Change-Id: Id8beae8376ee5d2fb3434367530a0a6bb976597d
CRs-Fixed: 3422692
2023-03-07 21:05:12 -08:00
Liangwei Dong
1bce26bfca qcacmn: Add pdev param map for WMI_PDEV_PARAM_SET_CONC_LOW_LATENCY_MODE
Add pdev param id for WMI_PDEV_PARAM_SET_CONC_LOW_LATENCY_MODE.

Change-Id: I860bd1bd22b007a2d67b40baa27af175cd838c2a
CRs-Fixed: 3411226
2023-03-07 16:39:47 -08:00
Divyajyothi Goparaju
2aae10f314 qcacmn: Add wmi_vdev_param_set_sap_ps_with_twt
As part of 'SAP PS with TWT enabled' new
requirement add new vdev set param
wmi_vdev_param_set_sap_ps_with_twt to map host vdev
param with firmware interface new vdev set param
WMI_VDEV_PARAM_SET_SAP_PS_WITH_TWT.

Change-Id: Ia8b45ddb35657e0293cda5821b8ddc92bf68bccc
CRs-Fixed: 3421621
2023-03-06 11:42:13 -08:00
Jianmin Zhu
a2503411a6 qcacmn: Support mld self roam
Support mld self roam between DBS(2 GHz+5/6 GHz) and HBS(5 GHz+6 GHz).

Change-Id: Ifd580da304548eaaee335901a507804b006579c0
CRs-Fixed: 3416555
2023-03-04 03:54:36 -08:00
Narayan Subramhanyan
52ee3a44b1 qcacmn: Add support for manual ulofdma trigger
1. Enable sending of SU/MU manual ulofdma trigger config to target
2. Enable processing of manual ulofdma trigger feedback event from target

Change-Id: Iba99137f87230222ad5896cd25df49ce8d2cf0de
CRs-Fixed: 3412905
2023-03-02 04:18:02 -08:00
Amith A
6ddd0be86d qcacmn: Add API to extract rate2power update response WMI event
Add API extract_tgtr2p_table_event_tlv to extract TLVs from the response
event of rate2power table update cmd. Add a wrapper function
wmi_extract_tgtr2p_table_event and call extract_tgtr2p_table_event_tlv
from it.

Add the host event id wmi_pdev_set_tgtr2p_table_eventid corresponding to
the target id WMI_PDEV_SET_TGTR2P_TABLE_EVENTID. Also add this mapping
to populate_tlv_events_id function.

Change-Id: I0a870125120f1f92ee50002953e114b27d597ae6
CRs-Fixed: 3405417
2023-02-28 11:19:58 -08:00
Subrat Mishra
19f2d80322 qcacmn: Add 160 MHz and 320 MHz BW support for Smart Antenna
Add 160 MHz and 320 MHz BW support for Smart Antenna.

Peer connect gets rate codes for all supported BW on connecting peer
as part of wmi_peer_ratecode_list_event. This changes add 320 MHz and
160 MHz BW support.

Change-Id: I715dd5a64c38114fef6e17c2e2f6a526e1a716c2
CRs-Fixed: 3381648
2023-02-27 20:54:01 -08:00
Amrit
e0e041ecc0 qcacmn: Add support to disable sched mode
- Add wmi vdev param id
- Add wmi ops to send disable sched mode cmd

Change-Id: I3cdc4bd799e8292e16863aaac16ee3f5a7a9b388
CRs-Fixed: 3399498
2023-02-27 00:14:13 -08:00
Wu Gao
ebf01e75ce qcacmn: Set pdev id base on FW capability for CFR request
Host and FW have agreement about using fixed pdev id for CFR on HMT,
which required changes on both sides. In case only picked host
change with old FW, which will case device broken during booting up,
add this change to set pdev id base on FW capability for CFR request.

Change-Id: Iac82074228d42c6f51ea2024defdb0272e5cb396
CRs-Fixed: 3409616
2023-02-26 17:35:54 -08:00
Vinay Adella
865c4c6d28 qcacmn: Extend Peer Assoc WMI to include more info on partner links
The FW needs mlo_flags of partner links as well during Assoc,
to handle more than 2-link MLO Association.
Extend the peer_assoc_ml_partner_links struct to pass them.

CRs-Fixed: 3403848
Change-Id: I543442ded6b5bc55c278b32f3d449eabacc49919
2023-02-23 22:07:35 -08:00
Amrit Sahai
e867292a52 qcacmn: Add support to API - disable sched mode
- Add wmi pdev param id
- Add wmi ops to send disable sched mode cmd

Change-Id: I8aae3fecefa5bb2bff75c98f82c7c1ccb43c4514
CRs-Fixed: 3395494
2023-02-22 05:48:20 -08:00
Guru Pratap Sharma
d32fe4db3c qcacmn: Add wmi changes to send the T2LM command to FW
Add WMI changes to send preferred link to FW

Change-Id: I8b8d7354d979705b1a938e9792de334c4faf65b6
CRs-Fixed: 3393604
2023-02-21 22:04:26 -08:00
Sheenam Monga
ba92b235ce qcacmn: Add support for wmi_vdev_param_set_profile
Add support for vdev_param_set_profile to indicate
AP profile to FW. VDEV_PARAM_XPAN_PROFILE can be used
as bit map to support other AP profiles. So, rename vdev
param VDEV_PARAM_XPAN_PROFILE to VDEV_PARAM_SET_PROFILE
to support multiple ap profiles. Bit 0 indicates XR SAP
profile is enabled or disabled and BIT 1 indicates XPAN
profile is enabled or disabled.

Change-Id: I61c434c7a4bbba013690011c0a777af199207630
CRs-Fixed: 3401468
2023-02-17 02:21:36 -08:00
Kiran Venkatappa
7260b2db76 qcacmn: Add r-twt related changes
Add changes to read R-TWT svc bit from FW and update capabilities on
host accordingly. Update add twt session command to include new
params required for R-TWT.

Change-Id: I91cea65ef737b6fa445cb3680dac15e0f1063446
CRs-Fixed: 3399205
2023-02-16 18:20:03 -08:00
Kenvish Butani
3ee53085d3 qcacmn: WMI Service command for FW PeerMetaData Version
Add new WMI Service command to support multiple FW
PeerMetaData Versions

Change-Id: I3f94bd7515d2e024459dac7271b35f804f026b97
CRs-Fixed: 3399010
2023-02-14 13:34:14 -08:00
Edayilliam Jayadev
4dacd445d3 qcacmn: Add pdev param to set scan blanking mode
Add pdev param to set scan blanking mode in a scan
radio.

CRs-Fixed: 3396965
Change-Id: I973d555f7d520438b2f59001a04e4410dcb18465
2023-02-13 14:02:09 -08:00
chunquan
e26d34b3bb qcacmn: Extend WMI_ROAM_STATS_EVENTID for enhanced roam
Extend WMI_ROAM_STATS_EVENTID event information for
requirement of:
1.Roam trigger related information, include timestamp,
  trigger reason, trigger condition, abort reason,
  scan type, roam status and fail reason.
2.Roam scan related information, include scan channel
  number, dwell type, max dwell time of each channel
  and total scan time.
3.all types of roam related frame information, include
  timestamp and successful or failed status for Preauth,
  Reassoc, EAPOL-M1/M2/M3/M4.

Change-Id: I1f54bc04d7cb8b083f1394989746c57c66fa29f6
CRs-Fixed: 3381545
2023-02-09 19:23:37 -08:00
Rahul Gusain
01dc2e1bdd qcacmn: Add new host version req enum
Due to 11KV feature version update, add new enum
"WMI_HOST_VENDOR1_REQ1_VERSION_3_40" in WMI_HOST_VENDOR1_REQ1_VERSION
and convert the host enum to target.

Change-Id: Ibcd52b93b9caf3a8bbfc7fa9028664a2d3666197
CRs-Fixed: 3381254
2023-01-19 12:28:44 -08:00
Srinivas Dasari
8380ebaf9b qcacmn: Fetch fw support for fixed channel SAP in coex cases
Currently, firmware sends WMI_WLAN_FREQ_AVOID_EVENTID with set
of frequency ranges to be avoided when it finds LTE operating
around those frequencies. Host driver marks these frequencies
as unsafe and doesn't operate in SAP/P2P-GO mode.

There is a new requirement where SAP can be allowed to operate
in unsafe channels when below conditions are met,
1. Firmware advertises the capability fix_channel_priority in
   WMI_COEX_FIX_CHANNEL_CAPABILITIES through ext2 event.
2. SAP is started in a fixed channel.

Fetch the capability fix_channel_priority sent by firmware and
cache it in wlan_psoc_host_service_ext2_param to support
this feature. Add APIs to cache value received from firmware in
psoc_info->info.service_ext2_param.sap_coex_fixed_chan_support
and to fetch the same.

Change-Id: I8ceb501240bc86d6b004446f9927f4402c487203
CRs-Fixed: 3381399
2023-01-18 11:49:55 -08:00
Vijay Raj
bdbf9523bb qcacmn: Add support for token and report number in Neighbor report
In api extract_roam_11kv_stats_tlv(), request token,
response token and report number are not extracted
for neighbor report.

Add support for request token, response token and
report number for neighbor report.

Change-Id: Iefe384fe760f25d6ce1870e52817c72577f0d5a9
CRs-Fixed: 3370856
2023-01-17 01:42:02 -08:00
Jyoti Kumari
384147888a qcacmn: Fix kernel doc format in edca_pifs_vparam structure
Fix kernel doc format in edca_pifs_vparam structure

Change-Id: Id947aa350be513506a023c511ff647335e88037e
CRs-Fixed: 3363574
2022-12-27 05:17:10 -08:00
Chetan Kumar Sanga
176650cce4 qcacmn: Add Bitmap support for Multi-Vdev-Restart
Update MVR handlers and init to setup/use MVR bitmap
depending on bitmap MVR support by FW.

Change-Id: I3a73ddefeae85d8f6b4fc31f9c1f1164fa5346c7
CRs-Fixed: 3355001
2022-12-26 22:50:00 -08:00
Vijay Raj
2413e83ebd qcacmn: Add event response for green ap low latency pwer save mode
Add low latency power save mode event response for xpan
profile.

Change-Id: If3271c8a0ed649cd04b9060060706de9ec5764c1
CRs-Fixed: 3267486
2022-12-26 03:24:24 -08:00
Venkateswara Swamy Bandaru
a1abaf2a19 qcacmn: Add support for WMI_VDEV_PARAM_EXTRA_EHT_LTF setting
Add support for WMI_VDEV_PARAM_EXTRA_EHT_LTF vdev parameter
setting.

Change-Id: Ibc801b74e1247b011cf369b612cab790ff4f1ac2
CRs-Fixed: 3361368
2022-12-21 09:13:39 -08:00
Nidhi Jain
800dddec55 qcacmn: Registration function for link disablement
This change is to allow other modules to register for
link disablement.
It includes below functions:
1- Notify link update
2- Register to handler to get link update notification
3- Unregister T2LM handlers

Added the below changes as well,
- Move T2LM related data structures to wlan_mlo_t2lm.h file
- Host receives the expected duration from FW for multiple vdevs.
  Hence, add support to extract the expected duration for multiple vdevs.

Change-Id: Ie8e77d5d3b4351a8551ecd7da50786b58dad3b2e
CRs-Fixed: 3346432
2022-12-19 22:17:49 -08:00
Jeff Johnson
f138380bb7 qcacmn: Fix wmi_unified_param.h documentation
The kernel-doc script identified numerous documentation issues in
wmi_unified_param.h, so fix them.

Change-Id: I249e4f990a125ba45497c48edef373b926cc3d01
CRs-Fixed: 3351041
2022-12-17 21:25:52 -08:00
Jyoti Kumari
44b33e8326 qcacmn: Add WMI interface to configure EDCA/PIFS param
Add WMI interface(WMI_VDEV_SET_TWT_EDCA_PARAMS_CMDID) to
configure EDCA/PIFS param for LL SAP.

This configuration depends on edca_param_type.
If edca_param_type is 0 then host will configure EDCA param and
send it to firmware via WMI interface.
If edca_param_type is 0 then host will configure PIFS param and
send it to firmware via WMI interface.

Change-Id: I4f2e4120a258cc4a20aabeed503709aa2ceb8ec9
CRs-Fixed: 3349467
2022-12-12 11:49:38 -08:00
Shiva Krishna Pittala
22be442546 qcacmn: Add supoprt to process WMI_MLO_LINK_REMOVAL_EVENTID
WMI_MLO_LINK_REMOVAL_EVENTID will be sent by FW to update the Host on the
progress of the link removal operation. Add support to process this event.

Change-Id: I0c4d5b047cf062b421380f85717fac5a9bdea9c2
CRs-Fixed: 3334950
2022-12-11 23:52:04 -08:00
Surya Prakash Sivaraj
68c9e15c31 qcacmn: Increase PMK max length to 64bytes
For SAE-EXT-KEY AKM with group-21 pwe, the PMK
length is 64bytes. Therefore, increase the max
size of the PMK to 64bytes in host to facilitate
PMK storage and PMK offloads.

Change-Id: I049cd14c1c71e1809b394199862409780a16371d
CRs-Fixed: 3353114
2022-12-09 09:36:15 -08:00
Surya Prakash Sivaraj
2be3e823e2 qcacmn: Add service bit for wpa3 sha384 roam
Add the service bit wmi_service_wpa3_sha384_roam_support
used by firmware to indicate the roaming support for
WPA3 SHA384.

Change-Id: I4bb4f9fd83085c48c646818124265486bae62c0c
CRs-Fixed: 3334343
2022-12-09 07:32:42 -08:00
Shashikala Prabhu
952dd4de06 qcacmn: Add API to parse the T2LM event ID
Add API to parse the TID-to-link mapping event ID for the AP vaps.
As part of this event,
	 - Update the mapping switch time TSF value in host data structures.
	 - When mapping switch time or expected duration expires in the FW,
	   update the host data structure.

Change-Id: I93232429fe5c2aa12dc4bf9f6a2f014761b7df15
CRs-Fixed: 3350697
2022-12-05 13:03:47 -08:00
Sai Pratyusha Magam
c87c0928b1 qcacmn: Add Keyix param for PN request to FW
Add Keyix param for PN request cmdid and event to FW
WMI_PEER_TX_PN_REQUEST_CMDID,
WMI_PEER_TX_PN_RESPONSE_EVENTID

Change-Id: I2803fdfaa20fae543cf0de34dd5c3f0966f2d605
CRs-Fixed: 3345914
2022-12-03 11:34:15 -08:00
Surya Prakash Raajen
6a2a1f1a5e qcacmn: Add vdev wmi cmd and event support t2lm ie info
Add support for vdev level WMI Command and event to send
and receive t2lm ie info

CRs-Fixed: 3339695
Change-Id: I8b896a961cba8f1d8e11111f900a98da090b9513
2022-11-27 12:31:47 -08:00
Divyajyothi Goparaju
7a737732fe qcacmn: Define set params for no host to target conversion
Currently if ENABLE_HOST_TO_TARGET_CONVERSION is defined,
host pdev/vdev set params can be translated to
target pdev/vdev set params through APIs
convert_host_pdev_param_tlv,convert_host_vdev_param_tlv.
If ENABLE_HOST_TO_TARGET_CONVERSION is not defined,
host pdev/vdev set params in
common code is sent to firmware directly, which is incorrect.

Define pdev/vdev set params in such away they represents
host params on ENABLE_HOST_TO_TARGET_CONVERSION enabled and
target params on ENABLE_HOST_TO_TARGET_CONVERSION disabled.

Change-Id: I5718c76c351b2d7904d8bf8b603073ffcb0a039d
CRs-Fixed: 3321556
2022-11-18 11:52:27 -08:00
Will Huang
f8f0b97ffa qcacmn: Add APIs to configure target AFC flags
Add common code to configure target AFC flags:
enable_6ghz_sp_pwrmode_supp, afc_disable_timer_check,
afc_disable_request_id_check.

Remove cfg_get set is_afc_reg_noaction code, add it to psoc regulatory
private data.

Add APIs to set and get these AFC configures.

Change-Id: Idf74b245113eee18b071a7fbb92bb151cd535ce8
CRs-Fixed: 3154185
2022-11-17 15:35:45 -08:00
Basamma Yakkanahalli
23001226b9 qcacmn: Critical update signaling for 20TU Probe Response
Critical update is the explicit signaling for STA to notify
any change in BSS param.

Present support is there for beacon, host notify to FW by
updating current link CU param in wmi_bcn_tmpl_ml_info TLV
of BCN TMPL CMD by setting the corresponding cu_vdev_map
for category 1 / category 2 based on change in critical
update params of ML VDEV.

The same Critical update signaling is extended to 20TU
unsolicited broadcast probe response.
In 6 GHz link host notify the same category 1 / category 2
cu_vdev_map critical update params of ML VDEVs in 20TU
enabled group wmi_prb_tmpl_ml_info TLV of WMI_PRB_TMPL_CMD.

CRs-Fixed: 3314429
Change-Id: I84dbd1901c5a3f2ef28f981c581fd7350d147829
2022-11-14 11:11:46 -08:00
Hariharan Basuthkar
9b699d0eb9 qcacmn: Add WMI_SERVICE_EIRP_PREFERRED_SUPPORT service bit
Add WMI support for WMI_SERVICE_EIRP_PREFERRED_SUPPORT service bit,
which indicates that the target prefers EIRP in the
WMI_VDEV_SET_TPC_POWER_CMD_ID.

Change-Id: I1433bd698e124336082e12f509f271c9dd7df40a
CRs-Fixed: 3307372
2022-10-22 19:48:49 -07:00
Rachit Kankane
a9083f7afe qcacmn: Add macro for Spatial Reuse
Add below macro for SR:

1. HESIGA_Spatial_reuse_value15_allowed bit
2. NON-SRG PD disabled threshold
3. Minimum PD Threshold
4. Add service bit - wmi_service_obss_per_packet_sr_support

Change-Id: I9560518cadc5c6f916579af63ef44d41c748fd8d
CRs-Fixed: 3307369
2022-10-17 06:48:16 -07:00
Jeff Johnson
bf756f06de qcacmn: wmi: Fix misspellings
Fix misspellings in wmi/...

Change-Id: I7fe506919cf382e3c19feeee550ce41646c974df
CRs-Fixed: 3304705
2022-10-15 12:12:39 -07:00