diff options
Diffstat (limited to 'drivers/net/wireless/iwlegacy/iwl-hcmd.c')
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-hcmd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlegacy/iwl-hcmd.c b/drivers/net/wireless/iwlegacy/iwl-hcmd.c index 61cf0d83af5..8f87bd87f63 100644 --- a/drivers/net/wireless/iwlegacy/iwl-hcmd.c +++ b/drivers/net/wireless/iwlegacy/iwl-hcmd.c | |||
@@ -95,7 +95,7 @@ static void il_generic_cmd_callback(struct il_priv *il, | |||
95 | struct il_rx_packet *pkt) | 95 | struct il_rx_packet *pkt) |
96 | { | 96 | { |
97 | if (pkt->hdr.flags & IL_CMD_FAILED_MSK) { | 97 | if (pkt->hdr.flags & IL_CMD_FAILED_MSK) { |
98 | IL_ERR(il, "Bad return from %s (0x%08X)\n", | 98 | IL_ERR("Bad return from %s (0x%08X)\n", |
99 | il_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); | 99 | il_get_cmd_string(cmd->hdr.cmd), pkt->hdr.flags); |
100 | return; | 100 | return; |
101 | } | 101 | } |
@@ -133,7 +133,7 @@ il_send_cmd_async(struct il_priv *il, struct il_host_cmd *cmd) | |||
133 | 133 | ||
134 | ret = il_enqueue_hcmd(il, cmd); | 134 | ret = il_enqueue_hcmd(il, cmd); |
135 | if (ret < 0) { | 135 | if (ret < 0) { |
136 | IL_ERR(il, "Error sending %s: enqueue_hcmd failed: %d\n", | 136 | IL_ERR("Error sending %s: enqueue_hcmd failed: %d\n", |
137 | il_get_cmd_string(cmd->id), ret); | 137 | il_get_cmd_string(cmd->id), ret); |
138 | return ret; | 138 | return ret; |
139 | } | 139 | } |
@@ -162,7 +162,7 @@ int il_send_cmd_sync(struct il_priv *il, struct il_host_cmd *cmd) | |||
162 | cmd_idx = il_enqueue_hcmd(il, cmd); | 162 | cmd_idx = il_enqueue_hcmd(il, cmd); |
163 | if (cmd_idx < 0) { | 163 | if (cmd_idx < 0) { |
164 | ret = cmd_idx; | 164 | ret = cmd_idx; |
165 | IL_ERR(il, "Error sending %s: enqueue_hcmd failed: %d\n", | 165 | IL_ERR("Error sending %s: enqueue_hcmd failed: %d\n", |
166 | il_get_cmd_string(cmd->id), ret); | 166 | il_get_cmd_string(cmd->id), ret); |
167 | goto out; | 167 | goto out; |
168 | } | 168 | } |
@@ -172,7 +172,7 @@ int il_send_cmd_sync(struct il_priv *il, struct il_host_cmd *cmd) | |||
172 | HOST_COMPLETE_TIMEOUT); | 172 | HOST_COMPLETE_TIMEOUT); |
173 | if (!ret) { | 173 | if (!ret) { |
174 | if (test_bit(STATUS_HCMD_ACTIVE, &il->status)) { | 174 | if (test_bit(STATUS_HCMD_ACTIVE, &il->status)) { |
175 | IL_ERR(il, | 175 | IL_ERR( |
176 | "Error sending %s: time out after %dms.\n", | 176 | "Error sending %s: time out after %dms.\n", |
177 | il_get_cmd_string(cmd->id), | 177 | il_get_cmd_string(cmd->id), |
178 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); | 178 | jiffies_to_msecs(HOST_COMPLETE_TIMEOUT)); |
@@ -187,19 +187,19 @@ int il_send_cmd_sync(struct il_priv *il, struct il_host_cmd *cmd) | |||
187 | } | 187 | } |
188 | 188 | ||
189 | if (test_bit(STATUS_RF_KILL_HW, &il->status)) { | 189 | if (test_bit(STATUS_RF_KILL_HW, &il->status)) { |
190 | IL_ERR(il, "Command %s aborted: RF KILL Switch\n", | 190 | IL_ERR("Command %s aborted: RF KILL Switch\n", |
191 | il_get_cmd_string(cmd->id)); | 191 | il_get_cmd_string(cmd->id)); |
192 | ret = -ECANCELED; | 192 | ret = -ECANCELED; |
193 | goto fail; | 193 | goto fail; |
194 | } | 194 | } |
195 | if (test_bit(STATUS_FW_ERROR, &il->status)) { | 195 | if (test_bit(STATUS_FW_ERROR, &il->status)) { |
196 | IL_ERR(il, "Command %s failed: FW Error\n", | 196 | IL_ERR("Command %s failed: FW Error\n", |
197 | il_get_cmd_string(cmd->id)); | 197 | il_get_cmd_string(cmd->id)); |
198 | ret = -EIO; | 198 | ret = -EIO; |
199 | goto fail; | 199 | goto fail; |
200 | } | 200 | } |
201 | if ((cmd->flags & CMD_WANT_SKB) && !cmd->reply_page) { | 201 | if ((cmd->flags & CMD_WANT_SKB) && !cmd->reply_page) { |
202 | IL_ERR(il, "Error: Response NULL in '%s'\n", | 202 | IL_ERR("Error: Response NULL in '%s'\n", |
203 | il_get_cmd_string(cmd->id)); | 203 | il_get_cmd_string(cmd->id)); |
204 | ret = -EIO; | 204 | ret = -EIO; |
205 | goto cancel; | 205 | goto cancel; |