summaryrefslogtreecommitdiff
path: root/core.h
blob: 8c43e986352f353662ba33b82309a148ef81a940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Driver for Wifi performance tracker
 *
 * Copyright 2022 Google LLC.
 *
 * Author: Star Chang <starchang@google.com>
 */
#ifndef _WLAN_PTRACKER_CORE_H
#define _WLAN_PTRACKER_CORE_H

#include "debugfs.h"
#include "debug.h"
#include "tp_monitor.h"
#include "notifier.h"
#include "scenes_fsm.h"
#include "wlan_ptracker_client.h"
#include "dynamic_twt_manager.h"

#define DSCP_MASK  0xfc
#define DSCP_MAX (DSCP_MASK + 1)
#define DSCP_SHIFT 2
#define DSCP_MAP_MAX 10

struct wlan_ptracker_core {
	struct device device;
	struct tp_monitor_stats tp;
	struct wlan_ptracker_notifier notifier;
	struct wlan_ptracker_debugfs debugfs;
	struct wlan_ptracker_fsm fsm;
	struct net_device *dev;
	struct dytwt_manager *dytwt;
	struct wlan_ptracker_client *client;
	u8 dscp_to_ac[DSCP_MAX];
};
#endif /* _WLAN_PTRACKER_CORE_H */