diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-04-13 07:56:06 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-13 21:24:12 +0200 |
commit | e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872 (patch) | |
tree | 41697a62feb8438f2cc74b9d92d7d73e0c23df0d /drivers/net/wireless/ath/ath9k/hif_usb.c | |
parent | ath9k_htc: Drain pending TX frames properly (diff) | |
download | linux-e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872.tar.xz linux-e1fe7c38d39f8f6ebdffc3a55e2ec6e2ec0d1872.zip |
ath9k_htc: Optimize HTC start/stop API
There is no point in looping over all the endpoints,
since the HIF layer uses the start/stop APIs only
for the TX pipe. Simplify the API accordingly.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hif_usb.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hif_usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hif_usb.c b/drivers/net/wireless/ath/ath9k/hif_usb.c index db07e7b93204..b3f23c2be738 100644 --- a/drivers/net/wireless/ath/ath9k/hif_usb.c +++ b/drivers/net/wireless/ath/ath9k/hif_usb.c @@ -310,7 +310,7 @@ static int hif_usb_send_tx(struct hif_device_usb *hif_dev, struct sk_buff *skb) return 0; } -static void hif_usb_start(void *hif_handle, u8 pipe_id) +static void hif_usb_start(void *hif_handle) { struct hif_device_usb *hif_dev = (struct hif_device_usb *)hif_handle; unsigned long flags; @@ -322,7 +322,7 @@ static void hif_usb_start(void *hif_handle, u8 pipe_id) spin_unlock_irqrestore(&hif_dev->tx.tx_lock, flags); } -static void hif_usb_stop(void *hif_handle, u8 pipe_id) +static void hif_usb_stop(void *hif_handle) { struct hif_device_usb *hif_dev = (struct hif_device_usb *)hif_handle; struct tx_buf *tx_buf = NULL, *tx_buf_tmp = NULL; |