diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/htc_mbox.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc_mbox.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc_mbox.c b/drivers/net/wireless/ath/ath6kl/htc_mbox.c index cd0e1ba410d..fbb78dfe078 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_mbox.c +++ b/drivers/net/wireless/ath/ath6kl/htc_mbox.c | |||
@@ -2492,7 +2492,8 @@ static int ath6kl_htc_mbox_conn_service(struct htc_target *target, | |||
2492 | max_msg_sz = le16_to_cpu(resp_msg->max_msg_sz); | 2492 | max_msg_sz = le16_to_cpu(resp_msg->max_msg_sz); |
2493 | } | 2493 | } |
2494 | 2494 | ||
2495 | if (assigned_ep >= ENDPOINT_MAX || !max_msg_sz) { | 2495 | if (WARN_ON_ONCE(assigned_ep == ENDPOINT_UNUSED || |
2496 | assigned_ep >= ENDPOINT_MAX || !max_msg_sz)) { | ||
2496 | status = -ENOMEM; | 2497 | status = -ENOMEM; |
2497 | goto fail_tx; | 2498 | goto fail_tx; |
2498 | } | 2499 | } |
@@ -2655,12 +2656,6 @@ static int ath6kl_htc_mbox_wait_target(struct htc_target *target) | |||
2655 | struct htc_service_connect_resp resp; | 2656 | struct htc_service_connect_resp resp; |
2656 | int status; | 2657 | int status; |
2657 | 2658 | ||
2658 | /* FIXME: remove once USB support is implemented */ | ||
2659 | if (target->dev->ar->hif_type == ATH6KL_HIF_TYPE_USB) { | ||
2660 | ath6kl_err("HTC doesn't support USB yet. Patience!\n"); | ||
2661 | return -EOPNOTSUPP; | ||
2662 | } | ||
2663 | |||
2664 | /* we should be getting 1 control message that the target is ready */ | 2659 | /* we should be getting 1 control message that the target is ready */ |
2665 | packet = htc_wait_for_ctrl_msg(target); | 2660 | packet = htc_wait_for_ctrl_msg(target); |
2666 | 2661 | ||
@@ -2890,9 +2885,7 @@ static void ath6kl_htc_mbox_cleanup(struct htc_target *target) | |||
2890 | { | 2885 | { |
2891 | struct htc_packet *packet, *tmp_packet; | 2886 | struct htc_packet *packet, *tmp_packet; |
2892 | 2887 | ||
2893 | /* FIXME: remove check once USB support is implemented */ | 2888 | ath6kl_hif_cleanup_scatter(target->dev->ar); |
2894 | if (target->dev->ar->hif_type != ATH6KL_HIF_TYPE_USB) | ||
2895 | ath6kl_hif_cleanup_scatter(target->dev->ar); | ||
2896 | 2889 | ||
2897 | list_for_each_entry_safe(packet, tmp_packet, | 2890 | list_for_each_entry_safe(packet, tmp_packet, |
2898 | &target->free_ctrl_txbuf, list) { | 2891 | &target->free_ctrl_txbuf, list) { |