drivers: wifi: siwx91x: Fix TWT wake interval unit conversion
Fixed an incorrect TWT wake interval unit conversion (256 was incorrectly swapped with 1024) Signed-off-by: Muzaffar Ahmed <muzaffar.ahmed@silabs.com>
This commit is contained in:
parent
91f4082a52
commit
918d76918f
1 changed files with 2 additions and 2 deletions
|
@ -1559,10 +1559,10 @@ static int siwx91x_set_twt_setup(struct wifi_twt_params *params)
|
||||||
|
|
||||||
if (params->setup.twt_wake_interval > 255 * 256) {
|
if (params->setup.twt_wake_interval > 255 * 256) {
|
||||||
twt_req.wake_duration_unit = 1;
|
twt_req.wake_duration_unit = 1;
|
||||||
twt_req.wake_duration = params->setup.twt_wake_interval / 256;
|
twt_req.wake_duration = params->setup.twt_wake_interval / 1024;
|
||||||
} else {
|
} else {
|
||||||
twt_req.wake_duration_unit = 0;
|
twt_req.wake_duration_unit = 0;
|
||||||
twt_req.wake_duration = params->setup.twt_wake_interval / 1024;
|
twt_req.wake_duration = params->setup.twt_wake_interval / 256;
|
||||||
}
|
}
|
||||||
|
|
||||||
status = sl_wifi_enable_target_wake_time(&twt_req);
|
status = sl_wifi_enable_target_wake_time(&twt_req);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue