Commit Graph

14 Commits

Author SHA1 Message Date
Sheenam Monga
f6de97d19c qcacld-3.0: Don't send success status to user space
Currently, If AP doesn't allow Prohibit to be set and user tries
to enable prohibit, host doesn't send command to FW to enable prohibit
but doesn't send failure status to user space.

Fix is to send failure status to userspace in case prohibit is not enabled.

Change-Id: Ic983b85d27e16314f63c02f88d3b1689d587d622
CRs-Fixed: 3344607
2022-12-02 18:05:17 -08:00
Rachit Kankane
f5b2eeb7f6 qcacld-3.0: Fail SR commands in concurrency
Fail all the Spatial Reuse commands if SR in concurrency
is not supported.

Change-Id: Ifcee0cfb6f52bcde5bcb4193f4f8bb336ba6b191
CRs-Fixed: 3338582
2022-12-01 08:19:26 -08:00
Sheenam Monga
728998c4af qcacld-3.0: Send async event to user space in case of roaming
Currently, if SR (Spatial Reuse) is supported by AP and then
STA roams to another AP then host needs to parse SR IE and
send events to userspace and commands to Fw based on below
scenarios:

i.) Roamed AP doesn't support SR: If roamed AP doesn't support
SR then async event with SR disable is required to be sent to
userspace.

ii.) Roamed AP supports SR: If roamed AP supports SR then below
validations are required.

a.) existing thresholds are in range of roamed AP: Send SR enable
command to FW with previous thresholds , as FW disables SR during
roaming.

b.) existing thresholds are not in range of roamed AP: then decision
will be based on whether threshold is provided during SR enable command
or not. If threshold is provided along with SR enable command then send
disable to userspace and in other case update thresholds as per roamed
AP , send async event to userspace with new configured values and send
enable command to fw with new thresholds.

Change-Id: I0c39de349c0f723d49d510c6e8ba09dcb98c6d17
CRs-Fixed: 3316985
2022-11-29 05:28:46 -08:00
Sheenam Monga
45372b860a qcacld-3.0: Handle SRG and NON-SRG pd threshold
Currently, only single pd_threshold is fetched and
treated as SRG and NON-SRG pd threshold instead of
handling both threshold separately.

Fix is to get SRG and NON-SRG pd threshold from
userspace instead of single pd threshold

Change-Id: I2a131ea9040c799bc12a17a9ce42be02da8a717b
CRs-Fixed: 3328189
2022-11-10 09:33:10 -08:00
Rachit Kankane
f020a7bf78 qcacld-3.0: Remove PDEV based PD threshold command
Remove WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD which is sent to
initialize the hardware registers. The initialization of hardware
registers is done as part of WMI_VDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD

Change-Id: I272fbd6723836efb9864cb78bdaf3e0eacf45554
CRs-Fixed: 3329913
2022-11-08 03:24:30 -08:00
Jeff Johnson
5a9edac67d qcacld-3.0: Fix new misspelling of "disable"
The following change introduced a new misspelling of "disable", so fix
it.
- Change-Id Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
  qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation

Change-Id: I7a06c24cf732b12072377835f01bd50aa5785062
CRs-Fixed: 3319368
2022-10-27 11:30:32 -07:00
Jeff Johnson
55fd78b983 qcacld-3.0: Fix misspelling of "threshold"
The following change introduced a misspelling of "threshold", so fix
it.
- Change-Id Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
  qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation

Change-Id: I255ef45d9978ce777a41564f0d05e6d99efe5a4b
CRs-Fixed: 3319363
2022-10-27 08:00:58 -07:00
Rachit Kankane
183358dc26 qcacld-3.0: Check for HESIGA_VAL15_ALLOWED
Check for HESIGA_VAL15_ALLOWED bit before enabling SR prohibit
in SR control field

Change-Id: Ie902941c7642d76901adbf5d685265c0552a814c
CRs-Fixed: 3308160
2022-10-17 06:47:49 -07:00
Rachit Kankane
14e356b81e qcacld-3.0: Add async event for Spatial Reuse
Add async event for Spatial Reuse and also send Spatial Reuse
enable / disable event to upper layer due to same MAC concurrency.

Change-Id: Idcb5b99e39f1810e63ae7ac1e8d2eab6028a163f
CRs-Fixed: 3307801
2022-10-17 06:47:43 -07:00
Rachit Kankane
45f42c90a8 qcacld-3.0: Add concurrency check with SR
Add check for concurrency with SR, if SR with concurrency
is not enabled then disable the SR on existing VDEV as soon as
new VDEV is up.
When this new VDEV is disconnected, then enable back the SR on
the previous VDEV.

Change-Id: Id6aee592b889bb7006efb44420e6d272212e13ba
CRs-Fixed: 3306181
2022-10-17 06:47:37 -07:00
Rachit Kankane
6cdc4ce277 qcacld-3.0: Send PDEV Param command for SR
Send WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD during PDEV
init with disabled PD-Threshold value to initialize SR related
registers in HW.

Change-Id: I49e73c76974e098b6dfbf647a898b53abf8ea2ba
CRs-Fixed: 3306179
2022-10-17 06:47:31 -07:00
Rachit Kankane
983623c4b8 qcacld-3.0: Spatial Reuse enhancement for SAP
Add below two enhancements for SAP
1. Spatial Reuse enabled in single MAC concurrency
2. Set bit HESIGA_Spatial_reuse_value15_allowed in SRP IE

Change-Id: Id2d3d04ae1b3b9a2e6d84f30749b577bc7b79061
CRs-Fixed: 3305447
2022-10-17 06:47:26 -07:00
Sheenam Monga
c4c40f5217 qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation
Add support to parse VENDOR_SUBCMD_SR and to parse
nested attributes OPERATION and PARAMS and to handle
ENABLE operation, Disable operation and prohibit
operation. Enable opeartion may have PD threshold
or in case vendor command doesn't provide PD threshold
host will send PD threshold advertised by AP.

Change-Id: Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
CRs-Fixed: 3299042
2022-10-17 06:47:00 -07:00
Jayachandran Sreekumaran
e728680f11 qcacld-3.0: Add spatial reuse feature support
Add SAP mode support for non-srg spatial reuse.

Change-Id: Ic575eefd0d36b6750d826c9bccbd53f07ae9ea75
CRs-Fixed: 3213404
2022-07-11 23:12:40 -07:00