Hong, I dont have a device, Currently I am doing a bit of code cleanup and testing my changes really dont require the actual hardware. /Ramesh On Fri, Nov 13, 2009 at 11:41 AM, hong zhang <henryzhang62@xxxxxxxxx> wrote: > Ramesh, > > What device you are using? I am using WN721N and it could not be initialised. Have you met this type of problem? > > ---henry > > --- On Fri, 11/13/09, Ramesh R <rshlinux@xxxxxxxxx> wrote: > >> From: Ramesh R <rshlinux@xxxxxxxxx> >> Subject: [PATCH 1/1] ath_hif_usb:Replaced whitespaces to tabs in the structure definitions >> To: "Luis R. Rodriguez" <lrodriguez@xxxxxxxxxxx> >> Cc: devel@xxxxxxxxxxxxxxxxxxxxxx >> Date: Friday, November 13, 2009, 11:59 AM >> From: Ramesh R <rshlinux@xxxxxxxxx> >> >> Signed-off-by: Ramesh R <rshlinux@xxxxxxxxx> >> --- >> ath/ath9k/ath_hif_usb.c | 86 >> ++++++++++++++++++++++------------------------ >> 1 files changed, 41 insertions(+), 45 deletions(-) >> >> diff --git a/ath/ath9k/ath_hif_usb.c >> b/ath/ath9k/ath_hif_usb.c >> index a9079c4..55a9ee5 100644 >> --- a/ath/ath9k/ath_hif_usb.c >> +++ b/ath/ath9k/ath_hif_usb.c >> @@ -85,63 +85,59 @@ struct hif_device_usb; >> static void hif_rx_cb(struct urb *urb); >> >> struct cmd_urb_context { >> - u8 use; >> - struct urb *urb; >> - struct sk_buff *buf; >> - struct hif_device_usb *hif_dev; >> + u8 >> use; >> + struct urb >> *urb; >> + struct sk_buff >> *buf; >> + struct hif_device_usb >> *hif_dev; >> }; >> >> struct UsbTxUrbContext { >> - u8 index; >> - u8 inUse; >> - struct hif_device_usb *hif_dev; >> - struct sk_buff *buf; >> - struct urb *urb; >> + u8 >> index; >> + u8 >> inUse; >> + struct hif_device_usb >> *hif_dev; >> + struct sk_buff >> *buf; >> + struct urb >> *urb; >> }; >> >> struct hif_usb_tx_pipe { >> - u8 >> usb_pipe; >> - struct sk_buff >> *UsbTxBufQ[ZM_MAX_TX_BUF_NUM]; >> - u16 >> TxBufHead; >> - u16 >> TxBufTail; >> - u16 >> TxBufCnt; >> - u16 >> TxUrbHead; >> - u16 >> TxUrbTail; >> - u16 >> TxUrbCnt; >> - struct UsbTxUrbContext >> TxUrbCtx[ZM_MAX_TX_URB_NUM]; >> - usb_complete_t complete; >> + u8 >> usb_pipe; >> + struct sk_buff >> *UsbTxBufQ[ZM_MAX_TX_BUF_NUM]; >> + u16 >> TxBufHead; >> + u16 >> TxBufTail; >> + u16 >> TxBufCnt; >> + u16 >> TxUrbHead; >> + u16 >> TxUrbTail; >> + u16 >> TxUrbCnt; >> + struct UsbTxUrbContext >> TxUrbCtx[ZM_MAX_TX_URB_NUM]; >> + usb_complete_t >> complete; >> }; >> >> struct UsbRxUrbContext { >> - u8 inUse; >> - struct hif_device_usb *hif_dev; >> - struct sk_buff *skb; >> - struct urb *urb; >> + u8 >> inUse; >> + struct hif_device_usb >> *hif_dev; >> + struct sk_buff >> *skb; >> + struct urb >> *urb; >> }; >> >> struct hif_device_usb { >> - void *htc_handle; >> - spinlock_t cs_lock; >> - >> - struct usb_device *udev; >> - struct usb_interface *interface; >> - u16 device_id; >> - >> - struct sk_buff *regUsbReadBuf; >> - struct UsbRxUrbContext >> RxUrbCtx[ZM_MAX_RX_URB_NUM]; >> - struct usb_anchor rx_submitted; >> - struct hif_usb_tx_pipe tx_lp; >> - struct hif_usb_tx_pipe tx_mp; >> - struct hif_usb_tx_pipe tx_hp; >> - >> - struct cmd_urb_context >> CmdUrbCtxs[MAX_CMD_URB]; >> - spinlock_t CmdUrbLock; >> - u8 surpriseRemoved; >> - >> - struct workqueue_struct *workqueue; >> - struct work_struct hif_some_work; >> - const struct firmware *firmware; >> - struct list_head list; >> + void >> *htc_handle; >> + spinlock_t >> cs_lock; >> + struct usb_device >> *udev; >> + struct usb_interface >> *interface; >> + u16 >> device_id; >> + struct sk_buff >> *regUsbReadBuf; >> + struct >> UsbRxUrbContext >> RxUrbCtx[ZM_MAX_RX_URB_NUM]; >> + struct usb_anchor >> rx_submitted; >> + struct >> hif_usb_tx_pipe tx_lp; >> + struct >> hif_usb_tx_pipe tx_mp; >> + struct >> hif_usb_tx_pipe tx_hp; >> + struct >> cmd_urb_context CmdUrbCtxs[MAX_CMD_URB]; >> + spinlock_t >> CmdUrbLock; >> + u8 >> surpriseRemoved; >> + struct >> workqueue_struct *workqueue; >> + struct work_struct >> hif_some_work; >> + const struct firmware >> *firmware; >> + struct list_head >> list; >> }; >> >> /* XXX: align against the CPU cache line size, don't just >> assume 4 */ >> -- >> 1.5.6.5 >> >> _______________________________________________ >> devel mailing list >> devel@xxxxxxxxxxxxxxxxxxxxxx >> http://driverdev.linuxdriverproject.org/mailman/listinfo/devel >> > > > > _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel