提交图

1713 次代码提交

作者 SHA1 备注 提交日期
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
Jeff Johnson
0c3d0db206 qcacmn: Fix misspelling "vaidate"
The misspelling "vaidate" was found during code review, so replace it
with the correct spelling: "validate".

Change-Id: Ifa25e118e71381c5eaace4429ce5f80cd8873f32
CRs-Fixed: 3398094
2023-02-09 00:57:56 -08:00
Liangwei Dong
91f844bfce qcacmn: Handle link active_inactive command
Add code to handle new set link state command -
MLO_LINK_FORCE_MODE_ACTIVE_INACTIVE.

Change-Id: I4fad93e9e09309f7e8ac07f2e3c43a0aa6472a3a
CRs-Fixed: 3352970
2023-02-08 06:56:46 -08:00
Shivam Kumar
65c8964062 qcacmn: Add TDMA function pointer support for WMI
Add function pointer support for wmi to pass
the TDMA Data

Change-Id: I5e253ac3ad3d165fdf0867297d72c6841540fe52
CRs-Fixed: 3386637
2023-02-05 22:51:52 -08:00
Aravind Kishore Sukla
56a3111134 qcacmn: Rate limit WMA MGT RX process logs
WMA MGT RX process extraction are logged in err level.
Rate limit the logs to avoid excessive logs to kernel
logging.

Change-Id: I5ee92941f83b456b092efff2d3d7509959474c07
CRs-Fixed: 3391352
2023-01-31 08:35:52 -08:00
Vinay Adella
b53d796a11 qcacmn: Move some WMI prints to wmi_info
Moving Rx mgmt extended params parsing error prints to wmi_info.
This is needed to avoid flood of prints in some cases.

Note that this is temporary and the original cause of the error
needs to be root-caused.

CRs-Fixed: 3386728
Change-Id: I0119ff51199424bfcf1f8db284db364fcc5817d5
2023-01-25 21:27:06 -08:00
Mukul Dhiman
c56d208844 qcacmn: Add wmi support to extract telemetry stats from FW
Add wmi support to extract telemetry stats from FW.

Change-Id: I050b22b594145739adcf7ddf8e6fc85866a27625
CRs-Fixed: 3376698
2023-01-22 22:26:01 -08:00
Mukul Dhiman
b590809644 qcacmn: Add wmi support to get telemetry stats from FW
Add wmi support to get telemetry stats from FW.

Change-Id: I7aec4ff19dc0a23755f572d3bca32f8491c60a5b
CRs-Fixed: 3376707
2023-01-22 22:25:44 -08:00
Mohammed Ahmed
cef49bdf89 qcacmn: add SSR host log collection API usage
Current code does not use the SSR host log collection API.
Fix this by adding SSR host log collection API usage.

Change-Id: I9dfb0bd7054986760a711d0752f37f4327c706b2
CRs-Fixed: 3339933
2023-01-19 20:44:09 -08:00
Mohammed Ahmed
07edd1636f qcacmn: change wmi_event type from uint32 to WMI_EVT_ID
Current code defines wmi_event members of wmi_handle and soc as uint32
when it should be defined as WMI_EVT_ID because it should only hold
wmi events.
Fix this by changing type to WMI_EVT_ID.

Change-Id: Ifa8ab19ac7633457e1160e951026036aa9ebdb04
CRs-Fixed: 3355825
2023-01-19 18:41:22 -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
Jeff Johnson
213581ab0b qcacmn: Fix WMI documentation
The kernel-doc script identified many documentation issues in
the wmi folder, so fix them.

Note that in quite a few cases there is duplicate documentation in .h
and .c files, and in those cases remove the documentation from the .c
files since the interface should be documented, not the
implementation.

Change-Id: I097d5b8e8f0ba09046b7b8abe338d05a00f8cc7e
CRs-Fixed: 3372831
2023-01-11 06:53:31 -08:00
Venkateswara Swamy Bandaru
935663d03b qcacmn: Fix typo in eht debug print
Fix typo in wmi debug print of peer assoc.

Change-Id: I0b58fbd6a6a153374b3695b82710dfe017678883
CRs-Fixed: 3366004
2022-12-29 13:41:45 -08:00
Divyajyothi Goparaju
b823977572 qcacmn: map pdev_param_default_6ghz_rate param
Currently there is no mapping for
wmi_pdev_param_default_6ghz_rate host param
with target param when TARGET_TO_HOST_CONVERSION
is enabled.This change will map the same.

Change-Id: I91a0af726ab787c93b3ed86bf975878a1919c7ed
CRs-Fixed: 3363930
2022-12-28 11:44:18 -08:00
chunquan
58455ec078 qcacmn: Realloc memory for wmi_service_ext_bitmap
Realloc memory for wmi_service_ext_bitmap when
WMI_SERVICE_AVAILABLE_EVENTID event come, and
the num of wmi_service_ext_bitmap large then
previous num.

Change-Id: I2800fe3274e5516369486ef065ce03ba121bd5b3
CRs-Fixed: 3346739
2022-12-28 08:11:52 -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
Sriranjani N
7e8649bed8 qcacmn: Add prints in CC event to improve debugging
Add debug prints in the event handler of WMI_REG_CHAN_LIST_CC_EXT_EVENT
to enhance debuggability. Also print the AP power type in the
function "send_set_tpc_power_cmd_tlv" in string format.

Change-Id: I4df5b72a5b07c530241985ef5a91cf402dc60b80
CRs-Fixed: 3322198
2022-12-26 03:24:42 -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
Vijay Raj
f0578f5bdb qcacmn: Add ucfg and wmi changes for green ap low latency ps mode
Add ucfg and wmi changes to support for green ap low latency
power mode enable/disable command.

Change-Id: Ib9112e384c8354f1eff0f15610301225d51ef3ac
CRs-Fixed: 3265649
2022-12-26 03:24:14 -08:00
Jyoti Kumari
4dfe160bf8 qcacmn: Send converted cw min and cw max val to firmware
As part of edca param for ll sap, send converted cw min
and cw max val to firmware instead of exponential val.

Change-Id: Ie5c98a2038f002c4c4218007e1bce79f120c42f6
CRs-Fixed: 3360551
2022-12-26 03:24:05 -08:00
Basamma Yakkanahalli
73e6b1ef7c qcacmn: Populate vdev group_id and group_flag in vdev start cmd
Populate mbssid_multi_group_flag and mbssid_multi_group_id during
WMI_VDEV_START_REQUEST_CMD.

Change-Id: I77a00a4f8268e9f8e68f195f81671a87e86175a0
CRs-Fixed: 3352540
2022-12-21 15:56:45 -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
f967a39488 qcacmn: Add int16 check in WMI TLV handler
This change is to add missing handling for
INT16 data in the WMI TLV handler.

Change-Id: I5da3f8ef05d2a26221afb50446d3920973897e8d
CRs-Fixed: 3344085
2022-12-20 00:47:30 -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
06d17f4e3d qcacmn: Populate mlo_link_add in VDEV_START WMI command
When a VDEV is dynamically getting added to an MLD,
WLAN_VDEV_OP_MLO_LINK_ADD op flag will be set on that VDEV during its
start_ap() sequence. Use that flag to update the mlo_link_add flag in
the VDEV_START WMI command.

CRs-Fixed: 3352057
Change-Id: Ie83a15f47d5cb4e54af410ebb68567694f38ccc7
2022-12-11 23:52:19 -08:00
Shiva Krishna Pittala
11fa724d8a qcacmn: Add support to extract link removal TLVs from MGMT Rx event
To assist the Host in ML reconfiguration element construction for probe
responses, FW sends MLO link removal information as part of the MGMT Rx
event containing the corresponding probe request. This information is an
array of TLVs, one TLV for each link that is undergoing link removal from
the MLD for which this probe request is intended. The TLV carries the link
removal TBTT countdown value maintained by the FW for that link.
Add support to extract the same.

CRs-Fixed: 3335361
Change-Id: I16c6791a443ddb166da596d404a52ff2a38da291
2022-12-11 23:52:12 -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
Shiva Krishna Pittala
11dccd8fac qcacmn: Add support to extract wmi_mlo_link_removal_tbtt_update TLV
WMI_MLO_LINK_REMOVAL_EVENTID will be sent by FW to update the Host with the
progress of the link delete operation. Add support to extract the TBTT
update TLV sent in this event.

Change-Id: I01ce710d282f16e7a7cf4fb767279661558d129f
CRs-Fixed: 3322714
2022-12-11 23:51:54 -08:00
Shiva Krishna Pittala
b24b3a7e25 qcacmn: Add support to extract wmi_mlo_link_removal_evt_fixed_param TLV
WMI_MLO_LINK_REMOVAL_EVENTID will be sent by FW to update the Host with the
progress of the link delete operation. Add support to extract the fixed
params TLV sent in this event.

Change-Id: Ic42a822339363b1347ae174926a4dac19eef3f99
CRs-Fixed: 3318005
2022-12-11 23:51:45 -08:00
Shiva Krishna Pittala
c1231d0824 qcacmn: Add support to populate and send WMI_MLO_LINK_REMOVAL_CMDID
WMI_MLO_LINK_REMOVAL_CMDID is to be sent by the Host to initiate the
removal procedure for a given link from its MLD. This command will be sent
on the impacted link only. Add support to populate and send this command.

Change-Id: I8485d8c8897bb2bb891d50546d5fbfac2a69a4ce
CRs-Fixed: 3314430
2022-12-11 23:51:35 -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
Aditya Kodukula
89af1dd476 qcacmn: Move feature flags to avoid compilation failures
Move the functions wmi_get_tlv_length_for_mlo_stats and
wmi_update_tlv_headers_for_mlo_stats defined under
WLAN_FEATURE_11BE_MLO inside the feature flag
FEATURE_CLUB_LL_STATS_AND_GET_STATION to avoid compilation failures.

Change-Id: I7c5a273797c692d2f0303dd547d2917c2261e8f7
CRs-Fixed: 3354430
2022-12-09 09:36:04 -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
Vijay Raj
af28913edf qcacmn: Modify KEK and KCK length in WMI_GTK_OFFLOAD_CMDID for AKM24
In order to support AKM24, the max length of KCK is modified to
24 bytes and KEK max length is modified to 32 bytes for
cmd WMI_GTK_OFFLOAD_CMDID.

Change-Id: Ia504a1ce92c80793fc1302fdf03b8d93471d9322
CRs-Fixed: 3305317
2022-12-09 07:32:32 -08:00
Deeksha Gupta
9c289d3485 qcacmn: Handle default case in send_mlo_link_set_active_cmd_tlv()
Handle default force_mode case in send_mlo_link_set_active_cmd_tlv()
to avoid compilation issue

Change-Id: I9d269ce906f560decbab8bce0af1c7cc7aad35fc
CRs-Fixed: 3354134
2022-12-07 14:29:38 -08:00
Chaoli Zhou
79aef5290e qcacmn: Change kmsg log debug log
Change qdf_print to wmi_info to print out
log with info level not error level.

Change-Id: I9da34693292bee2405e0bf5fbfe857eac1dfcfb3
CRs-Fixed: 3352909
2022-12-07 09:47:19 -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
a76b886ed4 qcacmn: Check for WMI_RXERR_MIC status flag
When beacon protection is enabled, On the station side,
MIC validation is performed in firmware for the received
beacons ,by computing the expected MIC and comparing it
against the MIC received in MMIE of the beacons. Check for
WMI_RXERR_MIC, a status in Mgmt RX WMI event reported to
host when a MIC validation failure/mismatch found.

Change-Id: I2f55d4481e8a0decbc89d2fc88a442478a09faf6
CRs-Fixed: 3344354
2022-12-04 12:07:30 -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 Sivaraj
3f1ea18b05 qcacmn: Enhance MBSSID profile config debugs
Add debugs in VDEV UP cmdid to track the MBSSID profile
count and index being sent to the firmware.

Change-Id: I592d9abe9226d2f065ea8c3b6ad5c7e8db62965e
CRs-Fixed: 3347415
2022-12-02 10:30:36 -08:00
Surya Prakash Raajen
73591dcdf2 qcacmn: Add sanity check for t2lm ie info and macro changes
Add sanity check for t2lm ie info and use appropriate macro
changes for expected duration.

Change-Id: Ib369c44b41247e0ca5174b65e39e9d94e19c7af2
CRs-Fixed: 3339695
2022-11-27 12:31:56 -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
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
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
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