1 /* Copyright (C) 2007, Red Hat, Inc. */
9 /* lbs_cmd() infers the size of the buffer to copy data back into, from
10 the size of the target of the pointer. Since the command to be sent
11 may often be smaller, that size is set in cmd->size by the caller.*/
12 #define lbs_cmd(priv, cmdnr, cmd, cb, cb_arg) ({ \
13 uint16_t __sz = le16_to_cpu((cmd)->hdr.size); \
14 (cmd)->hdr.size = cpu_to_le16(sizeof(*(cmd))); \
15 __lbs_cmd(priv, cmdnr, &(cmd)->hdr, __sz, cb, cb_arg); \
18 #define lbs_cmd_with_response(priv, cmdnr, cmd) \
19 lbs_cmd(priv, cmdnr, cmd, lbs_cmd_copyback, (unsigned long) (cmd))
21 void lbs_cmd_async(struct lbs_private
*priv
, uint16_t command
,
22 struct cmd_header
*in_cmd
, int in_cmd_size
);
24 int __lbs_cmd(struct lbs_private
*priv
, uint16_t command
,
25 struct cmd_header
*in_cmd
, int in_cmd_size
,
26 int (*callback
)(struct lbs_private
*, unsigned long, struct cmd_header
*),
27 unsigned long callback_arg
);
29 int lbs_cmd_copyback(struct lbs_private
*priv
, unsigned long extra
,
30 struct cmd_header
*resp
);
32 int lbs_update_hw_spec(struct lbs_private
*priv
);
34 int lbs_mesh_access(struct lbs_private
*priv
, uint16_t cmd_action
,
35 struct cmd_ds_mesh_access
*cmd
);
37 int lbs_get_data_rate(struct lbs_private
*priv
);
38 int lbs_set_data_rate(struct lbs_private
*priv
, u8 rate
);
40 int lbs_get_channel(struct lbs_private
*priv
);
41 int lbs_set_channel(struct lbs_private
*priv
, u8 channel
);
43 int lbs_mesh_config(struct lbs_private
*priv
, uint16_t enable
, uint16_t chan
);
45 int lbs_host_sleep_cfg(struct lbs_private
*priv
, uint32_t criteria
);
46 int lbs_suspend(struct lbs_private
*priv
);
47 int lbs_resume(struct lbs_private
*priv
);
49 int lbs_cmd_802_11_inactivity_timeout(struct lbs_private
*priv
,
50 uint16_t cmd_action
, uint16_t *timeout
);
51 int lbs_cmd_802_11_sleep_params(struct lbs_private
*priv
, uint16_t cmd_action
,
52 struct sleep_params
*sp
);
53 int lbs_cmd_802_11_set_wep(struct lbs_private
*priv
, uint16_t cmd_action
,
54 struct assoc_request
*assoc
);
55 int lbs_cmd_802_11_enable_rsn(struct lbs_private
*priv
, uint16_t cmd_action
,
57 int lbs_cmd_802_11_key_material(struct lbs_private
*priv
, uint16_t cmd_action
,
58 struct assoc_request
*assoc
);
60 #endif /* _LBS_CMD_H */
This page took 0.092602 seconds and 5 git commands to generate.