asuswrt-merlin.ng/release/src-rt-5.02L.07p2axhnd/router-sysdep.rt-ac68u_v4/dpsta/dpsta.h
2022-06-09 12:29:55 -04:00

49 lines
1.5 KiB
C

/*
* Copyright (C) 2021, Broadcom. 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 above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
*
* <<Broadcom-WL-IPTag/Open:>>
*
* $Id: dpsta.h 786009 2020-04-14 07:13:17Z $
*/
#ifndef _DPSTA_H_
#define _DPSTA_H_
typedef enum {
DPSTA_MODE_PSTA = 1,
DPSTA_MODE_DWDS = 2,
DPSTA_MODE_WET = 3
} dpsta_mode_e;
typedef struct psta_if psta_if_t;
/* Proxy STA instance data and exported functions */
typedef struct psta_if_api {
void *wl;
void *psta;
void *bsscfg;
bool (*is_ds_sta)(void *wl, void *psta, struct ether_addr *ea);
void *(*psta_find)(void *wl, void *psta, uint8 *ea);
bool (*bss_auth)(void *wl, void *bsscfg);
dpsta_mode_e mode;
} psta_if_api_t;
extern psta_if_t *dpsta_register(uint32 unit, psta_if_api_t *inst);
extern int32 dpsta_unregister(uint32 unit);
extern int32 dpsta_recv(void *p);
extern void dpsta_flush_stalist(void);
#endif /* _DPSTA_H_ */