Gráfico de commits

23 Commits

Autor SHA1 Mensagem Data
Deeksha Gupta
4aa45fd033 qcacmn: Added new parameter in TWT context
Added new "is_ps_disabled" parameter in twt_psoc_priv_obj
and twt_work_params structure.

CRs-Fixed: 3606623
Change-Id: I2210251b1a96ffe39b152e73d6d82dddde80653d
2023-09-05 23:41:53 -07:00
Rahul Gusain
25a99149d2 qcacmn: Resolve compilation error for TWT APIs
Currently, driver does not use "WLAN_TWT_CONV_SUPPORTED" flag in
TWT APIs declaration. So, for some targets, it causes
compilation failure.

So, this change fixes the compilation issue.

Change-Id: Ie1b92119ef37b85f4c7eb1d0e23e7910eeab3415
CRs-Fixed: 3603668
2023-09-01 13:07:29 -07:00
Aasir Rasheed
0cd3985fb6 qcacmn: Register pmo handler for twt
Register pmo handler for twt to prevent WMI from
crashing due to concurrent WMI_WOW_ENABLE_CMDID
and twt requester enable commands during suspend.

Change-Id: Ifeef52f7a758020e8599a056f9b3f03455e96def
CRs-Fixed: 3580088
2023-08-13 23:59:34 -07:00
Vijay Raj
38f6a7af8d qcacmn: Add conversion for new twt notification and twt status codes
Introduce new twt statusconversion
HOST_ADD_TWT_STATUS_LINK_SWITCH_IN_PROGRESS and
HOST_ADD_TWT_STATUS_UNSUPPORTED_MODE_MLMR for
individual twt in 11be.

Change-Id: I76194ec0172d06c1b176e3afd3a5e66efdd12f4a
CRs-Fixed: 3568732
2023-07-31 05:43:23 -07:00
Aditya Kodukula
58e80d75bd qcacmn: Fix typographical errors
Fix typographical errors spanned over various files in cmn.

Change-Id: I9fcf3b7f9bb7d7dd406e6576a60aa4eb783c9ceb
CRs-Fixed: 3529628
2023-06-14 22:02:33 -07:00
David Oladunjoye
a6b80a2f32 qcacmn: Add stub implementation when TWT is not enabled
Add stub implementation when TWT is not enabled.

Change-Id: I5a24376a04ebdaa88cbbc6cf4350d8de38bc6879
CRs-Fixed: 3488459
2023-05-14 16:07:24 -07:00
David Oladunjoye
c8d254437d qcacmn: Add apis to fetch btwt and rtwt ini values
Add apis to get rtwt and btwt ini values.

Change-Id: I3f82dc93bce24f24ba2236c286b717dbb2d9b690
CRs-Fixed: 3449537
2023-04-11 22:38:14 -07:00
Kiran Venkatappa
732edac4b9 qcacmn: Add rTWT params in btwt invite sta cmd
Add new params(ul_tid_bitmap & dl_tid_bitmap) for rTWT invite sta cmd.
This will be sent from test command to trigger invite sta.

Change-Id: I843badeb5e826ded5ab4f8083448b2b7fc4c3486
CRs-Fixed: 3456956
2023-04-06 21:49:06 -07:00
Kiran Venkatappa
a9dbdc28df qcacmn: Add rTWT params in btwt remove sta cmd
Add new params(ul_tid_bitmap & dl_tid_bitmap) for rTWT remove sta cmd.
This will be sent from test command to trigger remove sta.

Change-Id: Id68c020a18e3e418ad6605f27827ab755f8eea53
CRs-Fixed: 3431178
2023-03-17 09:13:31 -07:00
Pragaspathi Thilagaraj
28a0436d35 qcacmn: Cleanup unused TWT APIs & validation checks
PSOC null sanity check is done in caller, but again done in few
callee APIs.

Remove the duplicate sanity checks and unused TWT API.

Change-Id: Iac485bdce27be41c0d7152de1c86626edb534d11
CRs-Fixed: 3402622
2023-02-20 10:38:49 -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
David Oladunjoye
79e577fcfe qcacmn: Fix TWT documentation
Kernel doc script identified documentation issues
in twt, so fix these issues.

Change-Id: I9168e01e5a1941c947726d5f7ac67b6d17af4fb6
CRs-Fixed: 3400817
2023-02-13 14:01:49 -08:00
Pragaspathi Thilagaraj
daf6b01d39 qcacmn: Remove unused TWT API
Remove the below unused TWT API's:
-wlan_twt_tgt_caps_get_requestor
-wlan_twt_tgt_caps_get_bcast_req_support
-wlan_twt_tgt_caps_get_bcast_res_support
-wlan_twt_tgt_caps_get_requestor
-wlan_twt_tgt_caps_get_bcast_res_support
-ucfg_twt_get_requestor
-ucfg_twt_get_twt_bcast_req_support
-ucfg_twt_get_twt_bcast_res_support

Change-Id: I98b2f829a47ed727712828376ddb0c6eb1f02706
CRs-Fixed: 3397194
2023-02-07 18:04:39 -08:00
Jeff Johnson
c52c4258c2 qcacmn: umac: Fix misspellings
Fix misspellings in umac/...

Change-Id: I0e439d67be2aa064b0fb223449e70053d5ecb68a
CRs-Fixed: 3304702
2022-10-11 00:47:34 -07:00
nakul kachhwaha
566ce9d06b qcacmn: Handle new WMI param to support flexible TWT
This change is to handle new WMI param sp_start_offset. It
is use to pass value to fw to offset the start time of next SP.

Change-Id: Id3eb1cecdcdfc883c0620ad7f5cf18a50bd5256b
CRs-Fixed: 3266687
2022-10-08 05:12:57 -07:00
Jyoti Kumari
4afef82b70 qcacmn: Handle TWT renegotiation failure case
Generally below process should happen in renegotiation failure
case.
1. TWT setup (successful)
2. TWT setup (renegotiation failure)
3. TWT teardown
4. TWT GET STATUS - 0(dialog ID) 0 0 0
5. TWT setup - successful

Since all WMI TWT events gets executed in WMI thread. So when
renegotiation failure case hits, driver sends TWT
teardown to firmware and waits for twt ack in worker thread.
In same worker thread TWT event needs to be processed.
TWT ack event will not process as it's waiting in same worker
thread and it will get timedout.

As part of fix, break the context in renegotiation and
send the teardown in the new worker context.

Change-Id: Id12cb906b780d3013562c1772e276639a056c8f7
CRs-Fixed: 3207537
2022-06-10 18:58:29 -07:00
David Oladunjoye
52945c51a9 qcacmn: umac: Add mapping for WMI to Host TWT nudge status
Add mapping for WMI_NUDGE_TWT_STATUS_ALREADY_PAUSED on host side.

Change-Id: Ia7bcd78cfc709677b9b28a9fc2703e30f3cb2b7b
CRs-Fixed: 3181119
2022-04-27 13:01:48 -07:00
Vishal Miskin
36da36e010 qcacmn: Populate TWT target API to set pdev param
Populate TWT target API to set pdev param

Change-Id: Id82ee089825293c05bace5ead97727c8c79845db
CRs-Fixed: 3168199
2022-04-26 07:03:52 -07:00
Deeksha Gupta
b37b9b12cd qcacmn: Handle status code for TWT Notify event
Handle status code for TWT Notify event

Change-Id: I7065ab52b21ce8ce9dd5d12e30d2380e4c7d0da2
CRs-Fixed: 3138647
2022-03-14 07:28:44 -07:00
Jyoti Kumari
6ff68674b9 qcacmn: Handle TWT disable reason code
When host sends TWT disable command to firmware, send reason code
also as part of it. So that firmware will check and take the
following action:
a. If host sends disable due SCC/MCC concurrency then firmware
will teardown the existing TWT session and send the teardown
reason code as concurrency to host.
b. If it's for other reason then it will take action based on
that.

Change-Id: I5b4584a964f142d17aef5629adeb12e686fd983c
CRs-Fixed: 3098862
2022-02-28 07:53:44 -08:00
Srinivas Girigowda
2040cc94c8 qcacmn: Add support for TWT get capabilities
Add support for TWT get capabilities.

Change-Id: Ib52401f1ef57b0ffab4fb32aa45a2e9435612fc4
CRs-Fixed: 3085389
2022-02-11 00:25:34 -08:00
Srinivas Girigowda
fb22b66fd2 qcacmn: Populate TWT target capabilities
Read TWT target capabilities and update the TWT object manager
data structure.

Change-Id: I03a4b8f367ccc749443139cbedb3c76e4ef8cd39
CRs-Fixed: 3085366
2022-02-11 00:25:00 -08:00
Srinivas Girigowda
b6ef4fe306 qcacmn: umac: Add TWT componentization structs and skeleton code
Add TWT componentization structs and skeleton code.

Change-Id: I1c99c15b94cc39c6e5c7a32eea0d8095cf72555c
CRs-Fixed: 3085344
2022-02-11 00:24:42 -08:00