asuswrt-merlin.ng/release/src-rt-5.04axhnd.675x/router-sysdep.rt-ax88u_pro/dpsta/dpsta.h

49 lines
1.5 KiB
C

/*
* Copyright (C) 2022, 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 789504 2020-07-30 03:37:02Z $
*/
#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_ */