summaryrefslogtreecommitdiff
path: root/wlan_ptracker_client.h
blob: 49339604f4bd5907c2c20c670ecca0a1e4d901d5 (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
37
// 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_CLIENT_H
#define __WLAN_PTRACKER_CLIENT_H

#include "dynamic_twt_manager.h"

#define IFNAME_MAX 16

enum {
	WLAN_PTRACKER_NOTIFY_TP,
	WLAN_PTRACKER_NOTIFY_SCENE_CHANGE,
	WLAN_PTRACKER_NOTIFY_SCENE_CHANGE_PREPARE,
	WLAN_PTRACKER_NOTIFY_SUSPEND,
	WLAN_PTRACKER_NOTIFY_STA_CHANGE,
	WLAN_PTRACKER_NOTIFY_MAX,
};

struct wlan_ptracker_client {
	void *priv;
	void *core;
	char ifname[IFNAME_MAX];
	struct dytwt_client_ops *dytwt_ops;
	int (*cb)(void *priv, u32 event);
};

extern int wlan_ptracker_register_client(struct wlan_ptracker_client *client);
extern void wlan_ptracker_unregister_client(struct wlan_ptracker_client *client);

#endif /*__WLAN_PTRACKER_CLIENT_H*/