blob: 279278c6e7ce4272f59e8619294b5772519d46ff [file] [log] [blame]
/*
* RWL module of
* Broadcom 802.11bang Networking Device Driver
*
* Broadcom Proprietary and Confidential. Copyright (C) 2017,
* All Rights Reserved.
*
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom;
* the contents of this file may not be disclosed to third parties, copied
* or duplicated in any form, in whole or in part, without the prior
* written permission of Broadcom.
*
*
* <<Broadcom-WL-IPTag/Proprietary:>>
*
* $Id: wlc_rwl.h 524641 2015-01-07 15:25:03Z $
*
*/
#ifndef _wlc_rwl_h_
#define _wlc_rwl_h_
#if defined(RWL_WIFI) || defined(WIFI_REFLECTOR)
#include <rwl_wifi.h>
typedef struct rwl_info {
wlc_info_t *wlc;
wlc_pub_t *pub;
rwl_request_t *rwl_first_action_node;
rwl_request_t *rwl_last_action_node;
struct ether_addr rwl_ea;
} rwl_info_t;
extern rwl_info_t* wlc_rwl_attach(wlc_info_t *wlc);
extern int wlc_rwl_detach(rwl_info_t *rwlh);
extern void wlc_rwl_init(rwl_info_t *rwlh);
extern void wlc_rwl_deinit(rwl_info_t *rwlh);
extern void wlc_rwl_up(wlc_info_t *wlc);
extern uint wlc_rwl_down(wlc_info_t *wlc);
extern void wlc_rwl_frameaction(rwl_info_t *rwlh, struct dot11_management_header *hdr,
uint8 *body, int body_len);
extern void wlc_recv_wifi_mgmtact(rwl_info_t *rwlh, uint8 *body, const struct ether_addr * sa);
#else /* !defined(RWL_WIFI) && !defined(WIFI_REFLECTOR) && !defined(WLTEST) */
typedef struct rwl_info {
wlc_info_t *wlc;
wlc_pub_t *pub;
} rwl_info_t;
#define wlc_rwl_attach(a) (rwl_info_t *)0xdeadbeef
#define wlc_rwl_detach(a) 0
#define wlc_rwl_init(a) do {} while (0)
#define wlc_rwl_deinit(a) do {} while (0)
#define wlc_rwl_up(a) do {} while (0)
#define wlc_rwl_down(a) 0
#define wlc_rwl_frameaction(a) do {} while (0)
#define wlc_recv_wifi_mgmtact(a, b, c) do {} while (0)
#endif
#endif /* _wlc_rwl_h_ */