aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmdresp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas/cmdresp.c')
-rw-r--r--drivers/net/wireless/libertas/cmdresp.c25
1 files changed, 1 insertions, 24 deletions
diff --git a/drivers/net/wireless/libertas/cmdresp.c b/drivers/net/wireless/libertas/cmdresp.c
index 26a30db77d37..a4e147a11d0c 100644
--- a/drivers/net/wireless/libertas/cmdresp.c
+++ b/drivers/net/wireless/libertas/cmdresp.c
@@ -54,28 +54,6 @@ void lbs_mac_event_disconnected(struct lbs_private *priv)
54 lbs_deb_leave(LBS_DEB_ASSOC); 54 lbs_deb_leave(LBS_DEB_ASSOC);
55} 55}
56 56
57static inline int handle_cmd_response(struct lbs_private *priv,
58 struct cmd_header *cmd_response)
59{
60 struct cmd_ds_command *resp = (struct cmd_ds_command *) cmd_response;
61 int ret = 0;
62 uint16_t respcmd = le16_to_cpu(resp->command);
63
64 lbs_deb_enter(LBS_DEB_HOST);
65
66 switch (respcmd) {
67 case CMD_RET(CMD_802_11_BEACON_STOP):
68 break;
69
70 default:
71 lbs_pr_err("CMD_RESP: unknown cmd response 0x%04x\n",
72 le16_to_cpu(resp->command));
73 break;
74 }
75 lbs_deb_leave(LBS_DEB_HOST);
76 return ret;
77}
78
79int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len) 57int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len)
80{ 58{
81 uint16_t respcmd, curcmd; 59 uint16_t respcmd, curcmd;
@@ -216,8 +194,7 @@ int lbs_process_command_response(struct lbs_private *priv, u8 *data, u32 len)
216 if (priv->cur_cmd && priv->cur_cmd->callback) { 194 if (priv->cur_cmd && priv->cur_cmd->callback) {
217 ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg, 195 ret = priv->cur_cmd->callback(priv, priv->cur_cmd->callback_arg,
218 resp); 196 resp);
219 } else 197 }
220 ret = handle_cmd_response(priv, resp);
221 198
222 spin_lock_irqsave(&priv->driver_lock, flags); 199 spin_lock_irqsave(&priv->driver_lock, flags);
223 200