1/*
2 * Copyright (C) 2013, Broadcom Corporation. All Rights Reserved.
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 *
16 * $Id: dpsta_linux.h 408904 2013-06-21 03:13:39Z $
17 */
18
19#ifndef _DPSTA_LINUX_H_
20#define _DPSTA_LINUX_H_
21
22#define DPSTA_CMD_ENABLE	SIOCDEVPRIVATE
23
24#define DPSTA_POLICY_AUTO	0
25#define DPSTA_POLICY_SAMEBAND	1
26#define DPSTA_POLICY_CROSSBAND	2
27
28#define DPSTA_LAN_UIF_AUTO	0	/* UIF is not assigned/fixed for LAN traffic */
29#define DPSTA_LAN_UIF_2G	1	/* Use 2G as UIF for LAN traffic */
30#define DPSTA_LAN_UIF_5G	2	/* Use 5G as UIF for LAN traffic */
31#define DPSTA_LAN_UIF_AUTO_5G	3	/* UIF is not assigned/fixed for LAN traffic (default 5G) */
32
33#define DPSTA_NUM_UPSTREAM_IF	2
34
35typedef struct dpsta_enable_info {
36	bool	enable;			/* Enable/Disable Dualband PSTA mode */
37	uint32	policy;			/* Inband or crossband repeating */
38	uint32	lan_uif;		/* Upstream interface for lan traffic */
39					/* Upstream interfaces managed by DPSTA */
40	uint8	upstream_if[DPSTA_NUM_UPSTREAM_IF][IFNAMSIZ];
41} dpsta_enable_info_t;
42
43#endif /* _DPSTA_LINUX_H_ */
44