qcacmn: Validate the periodicity based on target
Allow cfr period to be multiples of 1ms for targets like qcn9000, qca6018, qca8074v2 and qca5018. For other targets, restrict it to be multiples of 10ms. CRs-Fixed: 2878062 Change-Id: I7f5638adf8ef39f7b8b681ae6693f5f032217e88
This commit is contained in:

committed by
snandini

orang tua
6dac66bcbf
melakukan
a48ce19f53
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019-2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2019-2021 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@@ -74,6 +74,15 @@ int tgt_cfr_start_capture(struct wlan_objmgr_pdev *pdev,
|
||||
int tgt_cfr_stop_capture(struct wlan_objmgr_pdev *pdev,
|
||||
struct wlan_objmgr_peer *peer);
|
||||
|
||||
/**
|
||||
* tgt_cfr_validate_period() - API to validate cfr period configured by user
|
||||
* @psoc: pointer to the psoc object
|
||||
* @period: period value to validate
|
||||
*
|
||||
* Return: success/failure of periodicity validation
|
||||
*/
|
||||
int tgt_cfr_validate_period(struct wlan_objmgr_psoc *psoc, u_int32_t period);
|
||||
|
||||
/**
|
||||
* tgt_cfr_enable_cfr_timer() - API to enable cfr timer
|
||||
* @pdev: pointer to pdev_object
|
||||
|
@@ -24,9 +24,6 @@
|
||||
#include <wlan_cfr_public_structs.h>
|
||||
#include <wlan_cfr_utils_api.h>
|
||||
|
||||
#define MAX_CFR_PRD (10 * 60 * 1000) /* 10 minutes */
|
||||
#define CFR_MOD_PRD 2 /* CFR period to be multiples of 2 ms */
|
||||
|
||||
/**
|
||||
* ucfg_cfr_start_capture() - function to start cfr capture for connected client
|
||||
* @pdev: pointer to pdev object
|
||||
|
@@ -57,6 +57,9 @@
|
||||
#define DEFAULT_SRNGID_CFR 0
|
||||
#endif
|
||||
|
||||
#define MAX_CFR_PRD (10 * 60 * 1000) /* 10 minutes */
|
||||
#define CFR_MOD_PRD 10 /* CFR period to be multiples of 10ms */
|
||||
|
||||
enum cfrmetaversion {
|
||||
CFR_META_VERSION_NONE,
|
||||
CFR_META_VERSION_1,
|
||||
|
Reference in New Issue
Block a user