2 * wl server declarations
4 * Copyright (C) 2010, Broadcom Corporation
7 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 * the contents of this file may not be disclosed to third parties, copied
9 * or duplicated in any form, in whole or in part, without the prior
10 * written permission of Broadcom Corporation.
12 * $Id: wlu_server_shared.h,v 1.4 2010-01-30 09:58:11 Exp $
15 #ifndef _wlu_server_shared_h
16 #define _wlu_server_shared_h
18 extern int wl_ioctl(void *wl
, int cmd
, void *buf
, int len
, bool set
);
20 extern int dhd_ioctl(void *dhd
, int cmd
, void *buf
, int len
, bool set
);
23 /* streams' buffers */
24 BYTE
*xcCmdBuf
= NULL
, *parmsVal
= NULL
;
25 BYTE
*trafficBuf
= NULL
, *respBuf
= NULL
;
26 struct timeval
*toutvalp
= NULL
;
29 #define POLLING_TIME 200
30 #define DONGLE_TX_FRAME_SIZE 1024
31 #define MESSAGE_LENGTH 1024
32 #define MAX_SHELL_FILE_LENGTH 50
33 #define MAX_IOVAR 10000
34 int remote_type
= NO_REMOTE
;
35 rem_ioctl_t
*g_rem_ptr
;
37 extern int wl_ioctl(void *wl
, int cmd
, void *buf
, int len
, bool set
);
39 /* Function prototypes from shellpoc_linux.c/shell_ce.c */
40 extern int rwl_create_dir(void);
41 extern int remote_shell_execute(char *buf_ptr
, void *wl
);
42 extern int remote_shell_get_resp(char* shell_fname
, void *wl
);
43 extern void rwl_wifi_find_server_response(void *wl
, dot11_action_wifi_vendor_specific_t
*rec_frame
);
44 extern dot11_action_wifi_vendor_specific_t
*rwl_wifi_allocate_actionframe();
46 /* Common code for serial and wifi */
47 #if defined(RWL_DONGLE) || defined(RWL_WIFI) || defined(RWL_SERIAL)
48 typedef struct rem_packet
{
50 uchar message
[MESSAGE_LENGTH
];
52 #define REMOTE_PACKET_SIZE sizeof(rem_packet_t)
54 rem_packet_t
*g_rem_pkt_ptr
;
55 rem_packet_t g_rem_pkt
;
58 static struct ether_addr rwlea
;
61 uchar bufdata
[WLC_IOCTL_MAXLEN
];
64 static uchar
* rwl_buf
= (uchar
*) &bufstruct_wlu
.bufdata
;
65 extern int need_speedy_response
;
67 #endif /* _wlu_server_shared_h_ */