libertas: add opaque extra argument to cmd callback function

This will be useful for letting callbacks do stuff like copying the
response into a buffer provided by the caller of lbs_cmd()

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
David Woodhouse
2007-12-10 13:36:10 -05:00
committed by David S. Miller
parent b6b8abe4dd
commit 1309b55b4d
5 changed files with 16 additions and 9 deletions

View File

@@ -71,7 +71,8 @@ struct cmd_ctrl_node {
u16 wait_option;
/* command response */
void *pdata_buf;
int (*callback)(uint16_t respcmd, struct cmd_ds_command *resp, struct lbs_private *priv);
int (*callback)(struct lbs_private *priv, unsigned long arg, struct cmd_ds_command *resp);
unsigned long callback_arg;
/* command data */
u8 *bufvirtualaddr;
/* wait queue */