staging: ath6kl: Cleanups
cover staging: ath6kl: Cleanups
First block of many patches to be sent in blocks of 15.
The following changes since commit af109f2e323e9dc6aeb49962e3bc0237ce653cb9:
Staging: Westbridge: fix EXPORT_SYMBOL errors reported by checkpatch.pl (2011-01-26 15:02:53 +0800)
are available in the git repository at:
git://repo.or.cz/linux-2.6/trivial-mods.git 20110127_ath6kl
Joe Perches (15):
staging: ath6kl: Update cfg80211 to recent calling convention changes
staging: ath6kl: Convert enum A_STATUS to int
staging: ath6kl: Remove A_SUCCESS macro
staging: ath6kl: Remove A_FAILED macro
staging: ath6kl: wmi.h: Convert packed structures with A_BOOL to u32
staging: ath6kl: Convert bypasswmi to bool
staging: ath6kl: Convert type of streamExists to A_UINT8
staging: ath6kl: Convert BDADDR_Present uses to TRUE/FALSE bugfix
staging: ath6kl: Convert A_BOOL compressed sets from 0 to FALSE
staging: ath6kl: Convert 0 to FALSE
staging: ath6kl: cfg80211: Convert forceFgScan to A_UINT32
staging: ath6kl: Convert A_UINT8 is_amsdu and is_acl_data_frame to A_BOOL
staging: ath6kl: Convert A_NETBUF_QUEUE_EMPTY to return TRUE or FALSE
staging: ath6kl: Convert sets of scanSpecificSsid to TRUE/FALSE.
staging: ath6kl: Convert tspecCompliance from A_BOOL to int
drivers/staging/ath6kl/bmi/include/bmi_internal.h | 4 +- drivers/staging/ath6kl/bmi/src/bmi.c | 80 ++-- .../hif/sdio/linux_sdio/include/hif_internal.h | 10 +- .../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 52 +- .../ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | 18 +- drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 102 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k.h | 88 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c | 66 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c | 74 ++-- .../ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 123 +++--- drivers/staging/ath6kl/htc2/htc.c | 28 +- drivers/staging/ath6kl/htc2/htc_internal.h | 8 +- drivers/staging/ath6kl/htc2/htc_recv.c | 92 ++-- drivers/staging/ath6kl/htc2/htc_send.c | 14 +- drivers/staging/ath6kl/htc2/htc_services.c | 12 +- drivers/staging/ath6kl/include/a_debug.h | 4 +- drivers/staging/ath6kl/include/ar3kconfig.h | 4 +- drivers/staging/ath6kl/include/ar6000_diag.h | 10 +- drivers/staging/ath6kl/include/bmi.h | 34 +- drivers/staging/ath6kl/include/common/athdefs.h | 78 ++-- drivers/staging/ath6kl/include/common/wmi.h | 16 +- drivers/staging/ath6kl/include/common_drv.h | 24 +- drivers/staging/ath6kl/include/dset_api.h | 4 +- drivers/staging/ath6kl/include/gpio_api.h | 10 +- drivers/staging/ath6kl/include/hci_transport_api.h | 18 +- drivers/staging/ath6kl/include/hif.h | 34 +- drivers/staging/ath6kl/include/htc_api.h | 18 +- drivers/staging/ath6kl/include/htc_packet.h | 2 +- drivers/staging/ath6kl/include/wlan_api.h | 2 +- drivers/staging/ath6kl/include/wmi_api.h | 274 +++++----- drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 76 ++-- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c | 28 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h | 4 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | 22 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h | 6 +- drivers/staging/ath6kl/miscdrv/common_drv.c | 84 ++-- drivers/staging/ath6kl/miscdrv/credit_dist.c | 2 +- drivers/staging/ath6kl/os/linux/ar6000_android.c | 8 +- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 172 ++++---- drivers/staging/ath6kl/os/linux/ar6000_pm.c | 34 +- drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 14 +- drivers/staging/ath6kl/os/linux/ar6k_pal.c | 20 +- drivers/staging/ath6kl/os/linux/cfg80211.c | 20 +- .../staging/ath6kl/os/linux/export_hci_transport.c | 28 +- drivers/staging/ath6kl/os/linux/hci_bridge.c | 66 ++-- .../staging/ath6kl/os/linux/include/ar6000_drv.h | 8 +- .../ath6kl/os/linux/include/ar6xapi_linux.h | 30 +- drivers/staging/ath6kl/os/linux/include/cfg80211.h | 2 +- .../ath6kl/os/linux/include/export_hci_transport.h | 22 +- .../staging/ath6kl/os/linux/include/osapi_linux.h | 20 +- drivers/staging/ath6kl/os/linux/ioctl.c | 45 +- drivers/staging/ath6kl/os/linux/netbuf.c | 18 +- drivers/staging/ath6kl/os/linux/wireless_ext.c | 14 +- drivers/staging/ath6kl/reorder/rcv_aggr.c | 4 +- drivers/staging/ath6kl/wlan/src/wlan_recv_beacon.c | 2 +- drivers/staging/ath6kl/wmi/wmi.c | 538 ++++++++++---------- 56 files changed, 1299 insertions(+), 1291 deletions(-)
Signature · 1 line
1.7.4.rc3
PATCH 1/15 staging: ath6kl: Update cfg80211 to recent calling convention changes
Add bool unicast and bool multicast to set_default_key Return struct net_device * to add_virtual_intf
--- drivers/staging/ath6kl/os/linux/cfg80211.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/ath6kl/os/linux/cfg80211.c +3 -3
@@ -978,7 +978,7 @@ ar6k_cfg80211_get_key(struct wiphy *wiphy, struct net_device *ndev,static int ar6k_cfg80211_set_default_key (struct wiphy *wiphy,struct net_device *ndev, -A_UINT8 key_index) +A_UINT8 key_index,bool unicast,bool multicast) {AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv (ndev);struct ar_key *key =NULL ;
@@ -1201,7 +1201,7 @@ ar6k_cfg80211_set_power_mgmt(struct wiphy *wiphy,return 0 ; } -static int +static struct net_device *ar6k_cfg80211_add_virtual_intf (struct wiphy *wiphy,char *name,enum nl80211_iftype type,u32 *flags,struct vif_params *params)
@@ -1212,7 +1212,7 @@ ar6k_cfg80211_add_virtual_intf(struct wiphy *wiphy, char *name,/* Multiple virtual interface is not supported. * The default interface supports STA and IBSS type */ -return -EOPNOTSUPP ; +return ERR_PTR (-EOPNOTSUPP ); } static int
Signature · 1 line
1.7.4.rc3
Re: [PATCH 01/15] staging: ath6kl: Update cfg80211 to recent calling convention changes
Quoted 2 lines · Joe Perches
Add bool unicast and bool multicast to
set_default_keyReturn structnet_device* toadd_virtual_intf
Don't we have to update the callers when we change the functions? I think this would break git bisect. What am I missing?
regards,
dan carpenter
Re: [PATCH 01/15] staging: ath6kl: Update cfg80211 to recent calling convention changes
Quoted 6 lines · Dan Carpenter
Quoted 2 lines · Joe Perches
Add bool unicast and bool multicast to
set_default_keyReturn structnet_device* toadd_virtual_intfDon't we have to update the callers when we change the functions? I think this would break git bisect. What am I missing?
Ah. It didn't work before. I see.
regards,
dan carpenter
PATCH 2/15 staging: ath6kl: Convert enum A_STATUS to int
In reply to Joe PerchesConvert enum members to int as well.
--- drivers/staging/ath6kl/bmi/include/bmi_internal.h | 4 +- drivers/staging/ath6kl/bmi/src/bmi.c | 72 ++-- .../hif/sdio/linux_sdio/include/hif_internal.h | 10 +- .../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 46 +- .../ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | 12 +- drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 74 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k.h | 72 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c | 38 +- drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c | 40 +- .../ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 58 ++-- drivers/staging/ath6kl/htc2/htc.c | 10 +- drivers/staging/ath6kl/htc2/htc_internal.h | 8 +- drivers/staging/ath6kl/htc2/htc_recv.c | 40 +- drivers/staging/ath6kl/htc2/htc_send.c | 10 +- drivers/staging/ath6kl/htc2/htc_services.c | 8 +- drivers/staging/ath6kl/include/a_debug.h | 4 +- drivers/staging/ath6kl/include/ar3kconfig.h | 4 +- drivers/staging/ath6kl/include/ar6000_diag.h | 10 +- drivers/staging/ath6kl/include/bmi.h | 34 +- drivers/staging/ath6kl/include/common/athdefs.h | 75 ++-- drivers/staging/ath6kl/include/common_drv.h | 24 +- drivers/staging/ath6kl/include/dset_api.h | 4 +- drivers/staging/ath6kl/include/gpio_api.h | 10 +- drivers/staging/ath6kl/include/hci_transport_api.h | 18 +- drivers/staging/ath6kl/include/hif.h | 34 +- drivers/staging/ath6kl/include/htc_api.h | 18 +- drivers/staging/ath6kl/include/htc_packet.h | 2 +- drivers/staging/ath6kl/include/wlan_api.h | 2 +- drivers/staging/ath6kl/include/wmi_api.h | 274 +++++----- drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 38 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c | 28 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h | 4 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | 18 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h | 6 +- drivers/staging/ath6kl/miscdrv/common_drv.c | 66 ++-- drivers/staging/ath6kl/miscdrv/credit_dist.c | 2 +- drivers/staging/ath6kl/os/linux/ar6000_android.c | 6 +- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 106 ++-- drivers/staging/ath6kl/os/linux/ar6000_pm.c | 34 +- drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 6 +- drivers/staging/ath6kl/os/linux/ar6k_pal.c | 14 +- drivers/staging/ath6kl/os/linux/cfg80211.c | 10 +- .../staging/ath6kl/os/linux/export_hci_transport.c | 28 +- drivers/staging/ath6kl/os/linux/hci_bridge.c | 48 +- .../staging/ath6kl/os/linux/include/ar6000_drv.h | 8 +- .../ath6kl/os/linux/include/ar6xapi_linux.h | 30 +- drivers/staging/ath6kl/os/linux/include/cfg80211.h | 2 +- .../ath6kl/os/linux/include/export_hci_transport.h | 22 +- .../staging/ath6kl/os/linux/include/osapi_linux.h | 18 +- drivers/staging/ath6kl/os/linux/ioctl.c | 38 +- drivers/staging/ath6kl/os/linux/netbuf.c | 18 +- drivers/staging/ath6kl/os/linux/wireless_ext.c | 8 +- drivers/staging/ath6kl/reorder/rcv_aggr.c | 4 +- drivers/staging/ath6kl/wlan/src/wlan_recv_beacon.c | 2 +- drivers/staging/ath6kl/wmi/wmi.c | 528 ++++++++++---------- 55 files changed, 1055 insertions(+), 1052 deletions(-)
drivers/staging/ath6kl/bmi/include/bmi_internal.h +2 -2
@@ -41,12 +41,12 @@/* ------ Global Variable Declarations ------- */ static A_BOOL bmiDone; -A_STATUS +int bmiBufferSend (HIF_DEVICE *device,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int bmiBufferReceive(HIF_DEVICE *device, A_UCHAR *buffer, A_UINT32 length,
drivers/staging/ath6kl/bmi/src/bmi.c +36 -36
262 lines not on this page · raw message
drivers/staging/ath6kl/hif/sdio/linux_sdio/include/hif_internal.h +5 -5
@@ -58,7 +58,7 @@ typedef struct bus_request {A_UINT32 length;A_UINT32 request;void *context; -A_STATUS status; +int status;struct _HIF_SCATTER_REQ_PRIV *pScatterReq;/* this request is a scatter request */ }BUS_REQUEST ;
@@ -110,18 +110,18 @@ typedef struct _HIF_SCATTER_REQ_PRIV {#define ATH_DEBUG_SCATTER ATH_DEBUG_MAKE_MODULE_MASK(0) -A_STATUS SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo); +int SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo);void CleanupHIFScatterResources (HIF_DEVICE *device); -A_STATUS DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest); +int DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest);#else // HIF_LINUX_MMC_SCATTER_SUPPORT -static inline A_STATUS SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo) +static inline int SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo) {return A_ENOTSUP ; } -static inline A_STATUS DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest) +static inline int DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest) {return A_ENOTSUP ; }
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c +23 -23
165 lines not on this page · raw message
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c +6 -6
@@ -79,7 +79,7 @@ static HIF_SCATTER_REQ *AllocScatterReq(HIF_DEVICE *device) }/* called by async task to perform the operation synchronously using direct MMC APIs */ -A_STATUS DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest) +int DoHifReadWriteScatter (HIF_DEVICE *device,BUS_REQUEST *busrequest) {int i;A_UINT8 rw;
@@ -89,7 +89,7 @@ A_STATUS DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest)struct mmc_data data;HIF_SCATTER_REQ_PRIV *pReqPriv;HIF_SCATTER_REQ *pReq; -A_STATUS status =A_OK ; +int status =A_OK ;struct scatterlist *pSg; pReqPriv = busrequest->pScatterReq;
@@ -199,9 +199,9 @@ A_STATUS DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest) }/* callback to issue a read-write scatter request */ -static A_STATUS HifReadWriteScatter (HIF_DEVICE *device,HIF_SCATTER_REQ *pReq) +static int HifReadWriteScatter (HIF_DEVICE *device,HIF_SCATTER_REQ *pReq) { -A_STATUS status =A_EINVAL ; +int status =A_EINVAL ;A_UINT32 request = pReq->Request;HIF_SCATTER_REQ_PRIV *pReqPriv = (HIF_SCATTER_REQ_PRIV *)pReq->HIFPrivate[0 ];
@@ -275,9 +275,9 @@ static A_STATUS HifReadWriteScatter(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq) }/* setup of HIF scatter resources */ -A_STATUS SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo) +int SetupHIFScatterSupport (HIF_DEVICE *device,HIF_DEVICE_SCATTER_SUPPORT_INFO *pInfo) { -A_STATUS status =A_ERROR ; +int status =A_ERROR ;int i;HIF_SCATTER_REQ_PRIV *pReqPriv;BUS_REQUEST *busrequest;
drivers/staging/ath6kl/htc2/AR6000/ar6k.c +37 -37
223 lines not on this page · raw message
drivers/staging/ath6kl/htc2/AR6000/ar6k.h +36 -36
169 lines not on this page · raw message
drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c +19 -19
@@ -36,12 +36,12 @@extern void AR6KFreeIOPacket (AR6K_DEVICE *pDev,HTC_PACKET *pPacket);extern HTC_PACKET *AR6KAllocIOPacket (AR6K_DEVICE *pDev); -static A_STATUS DevServiceDebugInterrupt (AR6K_DEVICE *pDev); +static int DevServiceDebugInterrupt (AR6K_DEVICE *pDev);#define DELAY_PER_INTERVAL_MS 10/* 10 MS delay per polling interval */ /* completion routine for ALL HIF layer async I/O */ -A_STATUS DevRWCompletionHandler (void *context,A_STATUS status) +int DevRWCompletionHandler (void *context,int status) {HTC_PACKET *pPacket = (HTC_PACKET *)context;
@@ -59,11 +59,11 @@ A_STATUS DevRWCompletionHandler(void *context, A_STATUS status) }/* mailbox recv message polling */ -A_STATUS DevPollMboxMsgRecv (AR6K_DEVICE *pDev, +int DevPollMboxMsgRecv (AR6K_DEVICE *pDev,A_UINT32 *pLookAhead,int TimeoutMS) { -A_STATUS status =A_OK ; +int status =A_OK ;int timeout = TimeoutMS/DELAY_PER_INTERVAL_MS ;A_ASSERT (timeout >0 );
@@ -152,9 +152,9 @@ A_STATUS DevPollMboxMsgRecv(AR6K_DEVICE *pDev,return status; } -static A_STATUS DevServiceCPUInterrupt (AR6K_DEVICE *pDev) +static int DevServiceCPUInterrupt (AR6K_DEVICE *pDev) { -A_STATUS status; +int status;A_UINT8 cpu_int_status;A_UINT8 regBuffer[4 ];
@@ -192,9 +192,9 @@ static A_STATUS DevServiceCPUInterrupt(AR6K_DEVICE *pDev) } -static A_STATUS DevServiceErrorInterrupt (AR6K_DEVICE *pDev) +static int DevServiceErrorInterrupt (AR6K_DEVICE *pDev) { -A_STATUS status; +int status;A_UINT8 error_int_status;A_UINT8 regBuffer[4 ];
@@ -245,10 +245,10 @@ static A_STATUS DevServiceErrorInterrupt(AR6K_DEVICE *pDev)return status; } -static A_STATUS DevServiceDebugInterrupt (AR6K_DEVICE *pDev) +static int DevServiceDebugInterrupt (AR6K_DEVICE *pDev) {A_UINT32 dummy; -A_STATUS status; +int status;/* Send a target failure event to the application */ AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("Target debug interrupt\n" ));
@@ -275,7 +275,7 @@ static A_STATUS DevServiceDebugInterrupt(AR6K_DEVICE *pDev)return status; } -static A_STATUS DevServiceCounterInterrupt (AR6K_DEVICE *pDev) +static int DevServiceCounterInterrupt (AR6K_DEVICE *pDev) {A_UINT8 counter_int_status;
@@ -363,7 +363,7 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket)HIFAckInterrupt (pDev->HIFDevice); }else {int fetched =0 ; -A_STATUS status; +int status; AR_DEBUG_PRINTF(ATH_DEBUG_IRQ, (" DevGetEventAsyncHandler : detected another message, lookahead :0x%X \n",
@@ -388,10 +388,10 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket)/* called by the HTC layer when it wants us to check if the device has any more pending * recv messages, this starts off a series of async requests to read interrupt registers */ -A_STATUS DevCheckPendingRecvMsgsAsync (void *context) +int DevCheckPendingRecvMsgsAsync (void *context) {AR6K_DEVICE *pDev = (AR6K_DEVICE *)context; -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pIOPacket;/* this is called in an ASYNC only context, we may NOT block, sleep or call any apis that can
@@ -467,9 +467,9 @@ void DevAsyncIrqProcessComplete(AR6K_DEVICE *pDev) }/* process pending interrupts synchronously */ -static A_STATUS ProcessPendingIRQs (AR6K_DEVICE *pDev,A_BOOL *pDone,A_BOOL *pASyncProcessing) +static int ProcessPendingIRQs (AR6K_DEVICE *pDev,A_BOOL *pDone,A_BOOL *pASyncProcessing) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 host_int_status =0 ;A_UINT32 lookAhead =0 ;
@@ -681,10 +681,10 @@ static A_STATUS ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pAS/* Synchronousinterrupt handler, this handler kicks off all interrupt processing.*/ -A_STATUS DevDsrHandler (void *context) +int DevDsrHandler (void *context) {AR6K_DEVICE *pDev = (AR6K_DEVICE *)context; -A_STATUS status =A_OK ; +int status =A_OK ;A_BOOL done = FALSE;A_BOOL asyncProc = FALSE;
@@ -746,7 +746,7 @@ A_STATUS DevDsrHandler(void *context)#ifdef ATH_DEBUG_MODULE void DumpAR6KDevState (AR6K_DEVICE *pDev) { -A_STATUS status; +int status;AR6K_IRQ_ENABLE_REGISTERS regs;AR6K_IRQ_PROC_REGISTERS procRegs;
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c +20 -20
@@ -74,9 +74,9 @@ static void DevGMboxIRQActionAsyncHandler(void *Context, HTC_PACKET *pPacket)AR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("-DevGMboxIRQActionAsyncHandler \n" )); } -static A_STATUS DevGMboxCounterEnableDisable (AR6K_DEVICE *pDev,GMBOX_IRQ_ACTION_TYPE IrqAction,A_BOOL AsyncMode) +static int DevGMboxCounterEnableDisable (AR6K_DEVICE *pDev,GMBOX_IRQ_ACTION_TYPE IrqAction,A_BOOL AsyncMode) { -A_STATUS status =A_OK ; +int status =A_OK ;AR6K_IRQ_ENABLE_REGISTERS regs;HTC_PACKET *pIOPacket =NULL ;
@@ -155,9 +155,9 @@ static A_STATUS DevGMboxCounterEnableDisable(AR6K_DEVICE *pDev, GMBOX_IRQ_ACTION } -A_STATUS DevGMboxIRQAction (AR6K_DEVICE *pDev,GMBOX_IRQ_ACTION_TYPE IrqAction,A_BOOL AsyncMode) +int DevGMboxIRQAction (AR6K_DEVICE *pDev,GMBOX_IRQ_ACTION_TYPE IrqAction,A_BOOL AsyncMode) { -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pIOPacket =NULL ;A_UINT8 GMboxIntControl[4 ];
@@ -269,9 +269,9 @@ void DevCleanupGMbox(AR6K_DEVICE *pDev) } } -A_STATUS DevSetupGMbox (AR6K_DEVICE *pDev) +int DevSetupGMbox (AR6K_DEVICE *pDev) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 muxControl[4 ]; do {
@@ -322,9 +322,9 @@ A_STATUS DevSetupGMbox(AR6K_DEVICE *pDev)return status; } -A_STATUS DevCheckGMboxInterrupts (AR6K_DEVICE *pDev) +int DevCheckGMboxInterrupts (AR6K_DEVICE *pDev) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 counter_int_status;int credits;A_UINT8 host_int_status2;
@@ -396,11 +396,11 @@ A_STATUS DevCheckGMboxInterrupts(AR6K_DEVICE *pDev) } -A_STATUS DevGMboxWrite (AR6K_DEVICE *pDev,HTC_PACKET *pPacket,A_UINT32 WriteLength) +int DevGMboxWrite (AR6K_DEVICE *pDev,HTC_PACKET *pPacket,A_UINT32 WriteLength) {A_UINT32 paddedLength;A_BOOL sync = (pPacket->Completion ==NULL ) ? TRUE : FALSE; -A_STATUS status; +int status;A_UINT32 address;/* adjust the length to be a multiple of block size if appropriate */
@@ -433,11 +433,11 @@ A_STATUS DevGMboxWrite(AR6K_DEVICE *pDev, HTC_PACKET *pPacket, A_UINT32 WriteLenreturn status; } -A_STATUS DevGMboxRead (AR6K_DEVICE *pDev,HTC_PACKET *pPacket,A_UINT32 ReadLength) +int DevGMboxRead (AR6K_DEVICE *pDev,HTC_PACKET *pPacket,A_UINT32 ReadLength) {A_UINT32 paddedLength; -A_STATUS status; +int status;A_BOOL sync = (pPacket->Completion ==NULL ) ? TRUE : FALSE;/* adjust the length to be a multiple of block size if appropriate */
@@ -539,9 +539,9 @@ static void DevGMboxReadCreditsAsyncHandler(void *Context, HTC_PACKET *pPacket)AR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("-DevGMboxReadCreditsAsyncHandler \n" )); } -A_STATUS DevGMboxReadCreditCounter (AR6K_DEVICE *pDev,A_BOOL AsyncMode,int *pCredits) +int DevGMboxReadCreditCounter (AR6K_DEVICE *pDev,A_BOOL AsyncMode,int *pCredits) { -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pIOPacket =NULL ;AR_DEBUG_PRINTF (ATH_DEBUG_SEND ,("+DevGMboxReadCreditCounter (%s) \n" , AsyncMode ?"ASYNC" :"SYNC" ));
@@ -602,9 +602,9 @@ A_STATUS DevGMboxReadCreditCounter(AR6K_DEVICE *pDev, A_BOOL AsyncMode, int *pCrreturn status; } -A_STATUS DevGMboxReadCreditSize (AR6K_DEVICE *pDev,int *pCreditSize) +int DevGMboxReadCreditSize (AR6K_DEVICE *pDev,int *pCreditSize) { -A_STATUS status; +int status;A_UINT8 buffer[4 ]; status = HIFReadWrite(pDev->HIFDevice,
@@ -634,10 +634,10 @@ void DevNotifyGMboxTargetFailure(AR6K_DEVICE *pDev) } } -A_STATUS DevGMboxRecvLookAheadPeek (AR6K_DEVICE *pDev,A_UINT8 *pLookAheadBuffer,int *pLookAheadBytes) +int DevGMboxRecvLookAheadPeek (AR6K_DEVICE *pDev,A_UINT8 *pLookAheadBuffer,int *pLookAheadBytes) { -A_STATUS status =A_OK ; +int status =A_OK ;AR6K_IRQ_PROC_REGISTERS procRegs;int maxCopy;
@@ -676,9 +676,9 @@ A_STATUS DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, A_UINT8 *pLookAheadBuffer,return status; } -A_STATUS DevGMboxSetTargetInterrupt (AR6K_DEVICE *pDev,int Signal,int AckTimeoutMS) +int DevGMboxSetTargetInterrupt (AR6K_DEVICE *pDev,int Signal,int AckTimeoutMS) { -A_STATUS status =A_OK ; +int status =A_OK ;int i;A_UINT8 buffer[4 ];
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c +29 -29
185 lines not on this page · raw message
drivers/staging/ath6kl/htc2/htc.c +5 -5
@@ -93,7 +93,7 @@ static void HTCCleanup(HTC_TARGET *target)HTC_HANDLE HTCCreate (void *hif_handle,HTC_INIT_INFO *pInfo) {HTC_TARGET *target =NULL ; -A_STATUS status =A_OK ; +int status =A_OK ;int i;A_UINT32 ctrl_bufsz;A_UINT32 blocksizes[HTC_MAILBOX_NUM_MAX ];
@@ -222,10 +222,10 @@ void *HTCGetHifDevice(HTC_HANDLE HTCHandle)/* wait for the target to arrive (sends HTC Ready message) * this operation is fully synchronous and the message is polled for */ -A_STATUS HTCWaitTarget (HTC_HANDLE HTCHandle) +int HTCWaitTarget (HTC_HANDLE HTCHandle) {HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle); -A_STATUS status; +int status;HTC_PACKET *pPacket =NULL ;HTC_READY_EX_MSG *pRdyMsg;
@@ -369,11 +369,11 @@ A_STATUS HTCWaitTarget(HTC_HANDLE HTCHandle)/* Start HTC, enable interrupts and let the target know host has finished setup */ -A_STATUS HTCStart (HTC_HANDLE HTCHandle) +int HTCStart (HTC_HANDLE HTCHandle) {HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle);HTC_PACKET *pPacket; -A_STATUS status; +int status;AR_DEBUG_PRINTF (ATH_DEBUG_TRC , ("HTCStart Enter\n" ));
drivers/staging/ath6kl/htc2/htc_internal.h +4 -4
@@ -164,14 +164,14 @@ typedef struct _HTC_TARGET {/* internal HTC functions */ void HTCControlTxComplete (void *Context,HTC_PACKET *pPacket);void HTCControlRecv (void *Context,HTC_PACKET *pPacket); -A_STATUS HTCWaitforControlMessage (HTC_TARGET *target,HTC_PACKET **ppControlPacket); +int HTCWaitforControlMessage (HTC_TARGET *target,HTC_PACKET **ppControlPacket);HTC_PACKET *HTCAllocControlBuffer (HTC_TARGET *target,HTC_PACKET_QUEUE *pList);void HTCFreeControlBuffer (HTC_TARGET *target,HTC_PACKET *pPacket,HTC_PACKET_QUEUE *pList); -A_STATUS HTCIssueSend (HTC_TARGET *target,HTC_PACKET *pPacket); +int HTCIssueSend (HTC_TARGET *target,HTC_PACKET *pPacket);void HTCRecvCompleteHandler (void *Context,HTC_PACKET *pPacket); -A_STATUS HTCRecvMessagePendingHandler (void *Context,A_UINT32 MsgLookAheads[],int NumLookAheads,A_BOOL *pAsyncProc,int *pNumPktsFetched); +int HTCRecvMessagePendingHandler (void *Context,A_UINT32 MsgLookAheads[],int NumLookAheads,A_BOOL *pAsyncProc,int *pNumPktsFetched);void HTCProcessCreditRpt (HTC_TARGET *target,HTC_CREDIT_REPORT *pRpt,int NumEntries,HTC_ENDPOINT_ID FromEndpoint); -A_STATUS HTCSendSetupComplete (HTC_TARGET *target); +int HTCSendSetupComplete (HTC_TARGET *target);void HTCFlushRecvBuffers (HTC_TARGET *target);void HTCFlushSendPkts (HTC_TARGET *target);
drivers/staging/ath6kl/htc2/htc_recv.c +20 -20
@@ -83,7 +83,7 @@ static void DoRecvCompletion(HTC_ENDPOINT *pEndpoint, } -static INLINE A_STATUS HTCProcessTrailer(HTC_TARGET *target, +static INLINE int HTCProcessTrailer(HTC_TARGET *target, A_UINT8 *pBuffer, int Length, A_UINT32 *pNextLookAheads,
@@ -95,7 +95,7 @@ static INLINE A_STATUS HTCProcessTrailer(HTC_TARGET *target,HTC_LOOKAHEAD_REPORT *pLookAhead;A_UINT8 *pOrigBuffer;int origLength; -A_STATUS status; +int status;AR_DEBUG_PRINTF (ATH_DEBUG_RECV , ("+HTCProcessTrailer (length:%d) \n" , Length));
@@ -226,14 +226,14 @@ static INLINE A_STATUS HTCProcessTrailer(HTC_TARGET *target,/* process a received message (i.e. strip off header, process any trailer data) * note : locks must be released when this function is called */ -static A_STATUS HTCProcessRecvHeader (HTC_TARGET *target, +static int HTCProcessRecvHeader (HTC_TARGET *target,HTC_PACKET *pPacket,A_UINT32 *pNextLookAheads,int *pNumLookAheads) {A_UINT8 temp;A_UINT8 *pBuf; -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT16 payloadLen;A_UINT32 lookAhead;
@@ -392,7 +392,7 @@ static INLINE void HTCAsyncRecvCheckMorePackets(HTC_TARGET *target, {/* was there a lookahead for the next packet? */ if (NumLookAheads >0 ) { -A_STATUS nextStatus; +int nextStatus;int fetched =0 ; AR_DEBUG_PRINTF(ATH_DEBUG_RECV, ("HTCAsyncRecvCheckMorePackets - num lookaheads were non-zero : %d \n",
@@ -521,7 +521,7 @@ void HTCRecvCompleteHandler(void *Context, HTC_PACKET *pPacket)HTC_ENDPOINT *pEndpoint;A_UINT32 nextLookAheads[HTC_HOST_MAX_MSG_PER_BUNDLE ];int numLookAheads =0 ; -A_STATUS status; +int status;A_BOOL checkMorePkts = TRUE; AR_DEBUG_PRINTF(ATH_DEBUG_RECV, ("+HTCRecvCompleteHandler (pkt:0x%lX, status:%d, ep:%d) \n",
@@ -587,9 +587,9 @@ void HTCRecvCompleteHandler(void *Context, HTC_PACKET *pPacket)/* synchronously wait for a control message from the target, * This function is used at initialization time ONLY. At init messages * on ENDPOINT 0 are expected. */ -A_STATUS HTCWaitforControlMessage (HTC_TARGET *target,HTC_PACKET **ppControlPacket) +int HTCWaitforControlMessage (HTC_TARGET *target,HTC_PACKET **ppControlPacket) { -A_STATUS status; +int status;A_UINT32 lookAhead;HTC_PACKET *pPacket =NULL ;HTC_FRAME_HDR *pHdr;
@@ -686,13 +686,13 @@ A_STATUS HTCWaitforControlMessage(HTC_TARGET *target, HTC_PACKET **ppControlPackreturn status; } -static A_STATUS AllocAndPrepareRxPackets (HTC_TARGET *target, +static int AllocAndPrepareRxPackets (HTC_TARGET *target,A_UINT32 LookAheads[],int Messages,HTC_ENDPOINT *pEndpoint,HTC_PACKET_QUEUE *pQueue) { -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pPacket;HTC_FRAME_HDR *pHdr;int i,j;
@@ -887,7 +887,7 @@ static void HTCAsyncRecvScatterCompletion(HIF_SCATTER_REQ *pScatterReq)A_UINT32 lookAheads[HTC_HOST_MAX_MSG_PER_BUNDLE ];int numLookAheads =0 ;HTC_TARGET *target = (HTC_TARGET *)pScatterReq->Context; -A_STATUS status; +int status;A_BOOL partialBundle = FALSE;HTC_PACKET_QUEUE localRecvQueue;A_BOOL procError = FALSE;
@@ -984,13 +984,13 @@ static void HTCAsyncRecvScatterCompletion(HIF_SCATTER_REQ *pScatterReq)AR_DEBUG_PRINTF (ATH_DEBUG_RECV ,("-HTCAsyncRecvScatterCompletion \n" )); } -static A_STATUS HTCIssueRecvPacketBundle (HTC_TARGET *target, +static int HTCIssueRecvPacketBundle (HTC_TARGET *target,HTC_PACKET_QUEUE *pRecvPktQueue,HTC_PACKET_QUEUE *pSyncCompletionQueue,int *pNumPacketsFetched,A_BOOL PartialBundle) { -A_STATUS status =A_OK ; +int status =A_OK ;HIF_SCATTER_REQ *pScatterReq;int i, totalLength;int pktsToScatter;
@@ -1117,10 +1117,10 @@ static INLINE void CheckRecvWaterMark(HTC_ENDPOINT *pEndpoint) }/* callback when device layer or lookahead report parsing detects a pending message */ -A_STATUS HTCRecvMessagePendingHandler (void *Context,A_UINT32 MsgLookAheads[],int NumLookAheads,A_BOOL *pAsyncProc,int *pNumPktsFetched) +int HTCRecvMessagePendingHandler (void *Context,A_UINT32 MsgLookAheads[],int NumLookAheads,A_BOOL *pAsyncProc,int *pNumPktsFetched) {HTC_TARGET *target = (HTC_TARGET *)Context; -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pPacket;HTC_ENDPOINT *pEndpoint;A_BOOL asyncProc = FALSE;
@@ -1385,12 +1385,12 @@ A_STATUS HTCRecvMessagePendingHandler(void *Context, A_UINT32 MsgLookAheads[], ireturn status; } -A_STATUS HTCAddReceivePktMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue) +int HTCAddReceivePktMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue) {HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle);HTC_ENDPOINT *pEndpoint;A_BOOL unblockRecv = FALSE; -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pFirstPacket; pFirstPacket =HTC_GET_PKT_AT_HEAD (pPktQueue);
@@ -1455,7 +1455,7 @@ A_STATUS HTCAddReceivePktMultiple(HTC_HANDLE HTCHandle, HTC_PACKET_QUEUE *pPktQu }/* Makes a buffer available to the HTC module */ -A_STATUS HTCAddReceivePkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket) +int HTCAddReceivePkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket) {HTC_PACKET_QUEUE queue;INIT_HTC_PACKET_QUEUE_AND_ADD (&queue,pPacket);
@@ -1563,11 +1563,11 @@ int HTCGetNumRecvBuffers(HTC_HANDLE HTCHandle,return HTC_PACKET_QUEUE_DEPTH (&(target->EndPoint[Endpoint].RxBuffers)); } -A_STATUS HTCWaitForPendingRecv (HTC_HANDLE HTCHandle, +int HTCWaitForPendingRecv (HTC_HANDLE HTCHandle,A_UINT32 TimeoutInMs,A_BOOL *pbIsRecvPending) { -A_STATUS status =A_OK ; +int status =A_OK ;HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle); status = DevWaitForPendingRecv(&target->Device,
drivers/staging/ath6kl/htc2/htc_send.c +5 -5
@@ -113,9 +113,9 @@ static void HTCSendPktCompletionHandler(void *Context, HTC_PACKET *pPacket)DO_EP_TX_COMPLETION (pEndpoint,&container); } -A_STATUS HTCIssueSend (HTC_TARGET *target,HTC_PACKET *pPacket) +int HTCIssueSend (HTC_TARGET *target,HTC_PACKET *pPacket) { -A_STATUS status; +int status;A_BOOL sync = FALSE;if (pPacket->Completion ==NULL ) {
@@ -270,7 +270,7 @@ static void HTCAsyncSendScatterCompletion(HIF_SCATTER_REQ *pScatterReq)HTC_PACKET *pPacket;HTC_ENDPOINT *pEndpoint = (HTC_ENDPOINT *)pScatterReq->Context;HTC_TARGET *target = (HTC_TARGET *)pEndpoint->target; -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET_QUEUE sendCompletes;INIT_HTC_PACKET_QUEUE (&sendCompletes);
@@ -668,7 +668,7 @@ static HTC_SEND_QUEUE_RESULT HTCTrySend(HTC_TARGET *target,return HTC_SEND_QUEUE_OK ; } -A_STATUS HTCSendPktsMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue) +int HTCSendPktsMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue) {HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle);HTC_ENDPOINT *pEndpoint;
@@ -709,7 +709,7 @@ A_STATUS HTCSendPktsMultiple(HTC_HANDLE HTCHandle, HTC_PACKET_QUEUE *pPktQueue) }/* HTC API - HTCSendPkt */ -A_STATUS HTCSendPkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket) +int HTCSendPkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket) {HTC_PACKET_QUEUE queue;
drivers/staging/ath6kl/htc2/htc_services.c +4 -4
@@ -57,10 +57,10 @@ void HTCControlRecv(void *Context, HTC_PACKET *pPacket)HTC_RECYCLE_RX_PKT ((HTC_TARGET *)Context,pPacket,&((HTC_TARGET *)Context)->EndPoint[0 ]); } -A_STATUS HTCSendSetupComplete (HTC_TARGET *target) +int HTCSendSetupComplete (HTC_TARGET *target) {HTC_PACKET *pSendPacket =NULL ; -A_STATUS status; +int status; do { /* allocate a packet to send to the target */
@@ -121,12 +121,12 @@ A_STATUS HTCSendSetupComplete(HTC_TARGET *target) } -A_STATUS HTCConnectService (HTC_HANDLE HTCHandle, +int HTCConnectService (HTC_HANDLE HTCHandle,HTC_SERVICE_CONNECT_REQ *pConnectReq,HTC_SERVICE_CONNECT_RESP *pConnectResp) {HTC_TARGET *target =GET_HTC_TARGET_FROM_HANDLE (HTCHandle); -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pRecvPacket =NULL ;HTC_PACKET *pSendPacket =NULL ;HTC_CONNECT_SERVICE_RESPONSE_MSG *pResponseMsg;
drivers/staging/ath6kl/include/a_debug.h +2 -2
@@ -181,8 +181,8 @@ void a_register_module_debug_info(ATH_DEBUG_MODULE_DBG_INFO *pInfo);#endif -A_STATUS a_get_module_mask (A_CHAR *module_name,A_UINT32 *pMask); -A_STATUS a_set_module_mask (A_CHAR *module_name,A_UINT32 Mask); +int a_get_module_mask (A_CHAR *module_name,A_UINT32 *pMask); +int a_set_module_mask (A_CHAR *module_name,A_UINT32 Mask);void a_dump_module_debug_info_by_name (A_CHAR *module_name);void a_module_debug_support_init (void );void a_module_debug_support_cleanup (void );
drivers/staging/ath6kl/include/ar3kconfig.h +2 -2
@@ -54,9 +54,9 @@ typedef struct {A_UINT8 bdaddr[6 ];/* Bluetooth device address */ }AR3K_CONFIG_INFO ; -A_STATUS AR3KConfigure (AR3K_CONFIG_INFO *pConfigInfo); +int AR3KConfigure (AR3K_CONFIG_INFO *pConfigInfo); -A_STATUS AR3KConfigureExit (void *config); +int AR3KConfigureExit (void *config); #ifdef __cplusplus }
drivers/staging/ath6kl/include/ar6000_diag.h +5 -5
@@ -25,21 +25,21 @@#define AR6000_DIAG_H_ -A_STATUS +int ar6000_ReadRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); -A_STATUS +int ar6000_WriteRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); -A_STATUS +int ar6000_ReadDataDiag (HIF_DEVICE *hifDevice,A_UINT32 address,A_UCHAR *data,A_UINT32 length); -A_STATUS +int ar6000_WriteDataDiag (HIF_DEVICE *hifDevice,A_UINT32 address,A_UCHAR *data,A_UINT32 length); -A_STATUS +int ar6k_ReadTargetRegister (HIF_DEVICE *hifDevice,int regsel,A_UINT32 *regval);void
drivers/staging/ath6kl/include/bmi.h +17 -17
@@ -43,44 +43,44 @@ BMIInit(void);void BMICleanup (void ); -A_STATUS +int BMIDone (HIF_DEVICE *device); -A_STATUS +int BMIGetTargetInfo (HIF_DEVICE *device,struct bmi_target_info *targ_info); -A_STATUS +int BMIReadMemory (HIF_DEVICE *device,A_UINT32 address,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int BMIWriteMemory (HIF_DEVICE *device,A_UINT32 address,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int BMIExecute (HIF_DEVICE *device,A_UINT32 address,A_UINT32 *param); -A_STATUS +int BMISetAppStart (HIF_DEVICE *device,A_UINT32 address); -A_STATUS +int BMIReadSOCRegister (HIF_DEVICE *device,A_UINT32 address,A_UINT32 *param); -A_STATUS +int BMIWriteSOCRegister (HIF_DEVICE *device,A_UINT32 address,A_UINT32 param); -A_STATUS +int BMIrompatchInstall(HIF_DEVICE *device, A_UINT32 ROM_addr, A_UINT32 RAM_addr,
@@ -88,41 +88,41 @@ BMIrompatchInstall(HIF_DEVICE *device,A_UINT32 do_activate, A_UINT32 *patch_id); -A_STATUS +int BMIrompatchUninstall (HIF_DEVICE *device,A_UINT32 rompatch_id); -A_STATUS +int BMIrompatchActivate (HIF_DEVICE *device,A_UINT32 rompatch_count,A_UINT32 *rompatch_list); -A_STATUS +int BMIrompatchDeactivate (HIF_DEVICE *device,A_UINT32 rompatch_count,A_UINT32 *rompatch_list); -A_STATUS +int BMILZStreamStart (HIF_DEVICE *device,A_UINT32 address); -A_STATUS +int BMILZData (HIF_DEVICE *device,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int BMIFastDownload (HIF_DEVICE *device,A_UINT32 address,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int BMIRawWrite (HIF_DEVICE *device,A_UCHAR *buffer,A_UINT32 length); -A_STATUS +int BMIRawRead(HIF_DEVICE *device, A_UCHAR *buffer, A_UINT32 length,
drivers/staging/ath6kl/include/common/athdefs.h +39 -36
83 lines not on this page · raw message
drivers/staging/ath6kl/include/common_drv.h +12 -12
@@ -64,28 +64,28 @@ extern "C" {#endif /* OS-independent APIs */ -A_STATUS ar6000_setup_credit_dist (HTC_HANDLE HTCHandle,COMMON_CREDIT_STATE_INFO *pCredInfo); +int ar6000_setup_credit_dist (HTC_HANDLE HTCHandle,COMMON_CREDIT_STATE_INFO *pCredInfo); -A_STATUS ar6000_ReadRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); +int ar6000_ReadRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); -A_STATUS ar6000_WriteRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); +int ar6000_WriteRegDiag (HIF_DEVICE *hifDevice,A_UINT32 *address,A_UINT32 *data); -A_STATUS ar6000_ReadDataDiag (HIF_DEVICE *hifDevice,A_UINT32 address,A_UCHAR *data,A_UINT32 length); +int ar6000_ReadDataDiag (HIF_DEVICE *hifDevice,A_UINT32 address,A_UCHAR *data,A_UINT32 length); -A_STATUS ar6000_reset_device (HIF_DEVICE *hifDevice,A_UINT32 TargetType,A_BOOL waitForCompletion,A_BOOL coldReset); +int ar6000_reset_device (HIF_DEVICE *hifDevice,A_UINT32 TargetType,A_BOOL waitForCompletion,A_BOOL coldReset);void ar6000_dump_target_assert_info (HIF_DEVICE *hifDevice,A_UINT32 TargetType); -A_STATUS ar6000_set_htc_params (HIF_DEVICE *hifDevice, +int ar6000_set_htc_params (HIF_DEVICE *hifDevice,A_UINT32 TargetType,A_UINT32 MboxIsrYieldValue,A_UINT8 HtcControlBuffers); -A_STATUS ar6000_prepare_target (HIF_DEVICE *hifDevice, +int ar6000_prepare_target (HIF_DEVICE *hifDevice,A_UINT32 TargetType,A_UINT32 TargetVersion); -A_STATUS ar6000_set_hci_bridge_flags (HIF_DEVICE *hifDevice, +int ar6000_set_hci_bridge_flags (HIF_DEVICE *hifDevice,A_UINT32 TargetType,A_UINT32 Flags);
@@ -93,13 +93,13 @@ void ar6000_copy_cust_data_from_target(HIF_DEVICE *hifDevice, A_UINT32 TargetTypA_UINT8 *ar6000_get_cust_data_buffer (A_UINT32 TargetType); -A_STATUS ar6000_setBTState (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); +int ar6000_setBTState (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); -A_STATUS ar6000_setDevicePowerState (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); +int ar6000_setDevicePowerState (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); -A_STATUS ar6000_setWowMode (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); +int ar6000_setWowMode (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); -A_STATUS ar6000_setHostMode (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); +int ar6000_setHostMode (void *context,A_UINT8 *pInBuf,A_UINT32 InBufSize); #ifdef __cplusplus }
drivers/staging/ath6kl/include/dset_api.h +2 -2
@@ -39,7 +39,7 @@ extern "C" {#endif /* Called to send a DataSet Open Reply back to the Target. */ -A_STATUS wmi_dset_open_reply(struct wmi_t *wmip, +int wmi_dset_open_reply(struct wmi_t *wmip, A_UINT32 status, A_UINT32 access_cookie, A_UINT32 size,
@@ -49,7 +49,7 @@ A_STATUS wmi_dset_open_reply(struct wmi_t *wmip, A_UINT32 targ_reply_arg);/* Called to send a DataSet Data Reply back to the Target. */ -A_STATUS wmi_dset_data_reply(struct wmi_t *wmip, +int wmi_dset_data_reply(struct wmi_t *wmip, A_UINT32 status, A_UINT8 *host_buf, A_UINT32 length,
drivers/staging/ath6kl/include/gpio_api.h +5 -5
@@ -28,7 +28,7 @@/* * Send a command to the Target in order to change output on GPIO pins. */ -A_STATUS wmi_gpio_output_set(struct wmi_t *wmip, +int wmi_gpio_output_set(struct wmi_t *wmip, A_UINT32 set_mask, A_UINT32 clear_mask, A_UINT32 enable_mask,
@@ -37,23 +37,23 @@ A_STATUS wmi_gpio_output_set(struct wmi_t *wmip,/* * Send a command to the Target requesting input state of GPIO pins. */ -A_STATUS wmi_gpio_input_get (struct wmi_t *wmip); +int wmi_gpio_input_get (struct wmi_t *wmip);/* * Send a command to the Target to change the value of a GPIO register. */ -A_STATUS wmi_gpio_register_set (struct wmi_t *wmip, +int wmi_gpio_register_set (struct wmi_t *wmip,A_UINT32 gpioreg_id,A_UINT32 value);/* * Send a command to the Target to fetch the value of a GPIO register. */ -A_STATUS wmi_gpio_register_get (struct wmi_t *wmip,A_UINT32 gpioreg_id); +int wmi_gpio_register_get (struct wmi_t *wmip,A_UINT32 gpioreg_id);/* * Send a command to the Target, acknowledging some GPIO interrupts. */ -A_STATUS wmi_gpio_intr_ack (struct wmi_t *wmip,A_UINT32 ack_mask); +int wmi_gpio_intr_ack (struct wmi_t *wmip,A_UINT32 ack_mask);#endif /* _GPIO_API_H_ */
drivers/staging/ath6kl/include/hci_transport_api.h +9 -9
@@ -90,8 +90,8 @@ typedef struct _HCI_TRANSPORT_CONFIG_INFO {int EventRecvBufferWaterMark;/* low watermark to trigger recv refill */ int MaxSendQueueDepth;/* max number of packets in the single send queue */ void *pContext;/* context for all callbacks */ -void (*TransportFailure)(void *pContext,A_STATUS Status);/* transport failure callback */ -A_STATUS (*TransportReady)(HCI_TRANSPORT_HANDLE ,HCI_TRANSPORT_PROPERTIES *,void *pContext);/* transport is ready */ +void (*TransportFailure)(void *pContext,int Status);/* transport failure callback */ +int (*TransportReady)(HCI_TRANSPORT_HANDLE ,HCI_TRANSPORT_PROPERTIES *,void *pContext);/* transport is ready */ void (*TransportRemoved)(void *pContext);/* transport was removed */ /* packet processing callbacks */ HCI_TRANSPORT_SEND_PKT_COMPLETE pHCISendComplete;
@@ -141,7 +141,7 @@ void HCI_TransportDetach(HCI_TRANSPORT_HANDLE HciTrans);@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportAddReceivePkts (HCI_TRANSPORT_HANDLE HciTrans,HTC_PACKET_QUEUE *pQueue); +int HCI_TransportAddReceivePkts (HCI_TRANSPORT_HANDLE HciTrans,HTC_PACKET_QUEUE *pQueue);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Send an HCI packet packet
@@ -166,7 +166,7 @@ A_STATUS HCI_TransportAddReceivePkts(HCI_TRANSPORT_HANDLE HciTrans, HTC_PACKE@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportSendPkt (HCI_TRANSPORT_HANDLE HciTrans,HTC_PACKET *pPacket,A_BOOL Synchronous); +int HCI_TransportSendPkt (HCI_TRANSPORT_HANDLE HciTrans,HTC_PACKET *pPacket,A_BOOL Synchronous);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -193,7 +193,7 @@ void HCI_TransportStop(HCI_TRANSPORT_HANDLE HciTrans);@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportStart (HCI_TRANSPORT_HANDLE HciTrans); +int HCI_TransportStart (HCI_TRANSPORT_HANDLE HciTrans);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Enable or Disable Asynchronous Recv
@@ -206,7 +206,7 @@ A_STATUS HCI_TransportStart(HCI_TRANSPORT_HANDLE HciTrans);@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportEnableDisableAsyncRecv (HCI_TRANSPORT_HANDLE HciTrans,A_BOOL Enable); +int HCI_TransportEnableDisableAsyncRecv (HCI_TRANSPORT_HANDLE HciTrans,A_BOOL Enable);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Receive an event packet from the HCI transport synchronously using polling
@@ -222,7 +222,7 @@ A_STATUS HCI_TransportEnableDisableAsyncRecv(HCI_TRANSPORT_HANDLE HciTrans, A@example: @see also: HCI_TransportEnableDisableAsyncRecv +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportRecvHCIEventSync (HCI_TRANSPORT_HANDLE HciTrans, +int HCI_TransportRecvHCIEventSync (HCI_TRANSPORT_HANDLE HciTrans,HTC_PACKET *pPacket,int MaxPollMS);
@@ -237,7 +237,7 @@ A_STATUS HCI_TransportRecvHCIEventSync(HCI_TRANSPORT_HANDLE HciTrans,@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportSetBaudRate (HCI_TRANSPORT_HANDLE HciTrans,A_UINT32 Baud); +int HCI_TransportSetBaudRate (HCI_TRANSPORT_HANDLE HciTrans,A_UINT32 Baud);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Enable/Disable HCI Transport Power Management
@@ -250,7 +250,7 @@ A_STATUS HCI_TransportSetBaudRate(HCI_TRANSPORT_HANDLE HciTrans, A_UINT32 Bau@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HCI_TransportEnablePowerMgmt (HCI_TRANSPORT_HANDLE HciTrans,A_BOOL Enable); +int HCI_TransportEnablePowerMgmt (HCI_TRANSPORT_HANDLE HciTrans,A_BOOL Enable); #ifdef __cplusplus }
drivers/staging/ath6kl/include/hif.h +17 -17
@@ -293,7 +293,7 @@ typedef struct _HIF_SCATTER_REQ {A_UINT32 TotalLength;/* total length of entire transfer */ A_UINT32 CallerFlags;/* caller specific flags can be stored here */ HIF_SCATTER_COMP_CB CompletionRoutine;/* completion routine set by caller */ -A_STATUS CompletionStatus;/* status of completion */ +int CompletionStatus;/* status of completion */ void *Context;/* caller context for this request */ int ValidScatterEntries;/* number of valid entries set by caller */ HIF_SCATTER_METHOD ScatterMethod;/* scatter method handled by HIF */
@@ -304,7 +304,7 @@ typedef struct _HIF_SCATTER_REQ {typedef HIF_SCATTER_REQ * ( *HIF_ALLOCATE_SCATTER_REQUEST )(HIF_DEVICE *device);typedef void ( *HIF_FREE_SCATTER_REQUEST )(HIF_DEVICE *device,HIF_SCATTER_REQ *request); -typedef A_STATUS ( *HIF_READWRITE_SCATTER )(HIF_DEVICE *device,HIF_SCATTER_REQ *request); +typedef int ( *HIF_READWRITE_SCATTER )(HIF_DEVICE *device,HIF_SCATTER_REQ *request); typedef struct _HIF_DEVICE_SCATTER_SUPPORT_INFO { /* information returned from HIF layer */
@@ -324,19 +324,19 @@ typedef struct {struct htc_callbacks {void *context;/* context to pass to the dsrhandler note : rwCompletionHandler is provided the context passed to HIFReadWrite */ -A_STATUS (* rwCompletionHandler)(void *rwContext,A_STATUS status); -A_STATUS (* dsrHandler)(void *context); +int (* rwCompletionHandler)(void *rwContext,int status); +int (* dsrHandler)(void *context); };typedef struct osdrv_callbacks {void *context;/* context to pass for all callbacks except deviceRemovedHandler the deviceRemovedHandler is only called if the device is claimed */ -A_STATUS (* deviceInsertedHandler)(void *context,void *hif_handle); -A_STATUS (* deviceRemovedHandler)(void *claimedContext,void *hif_handle); -A_STATUS (* deviceSuspendHandler)(void *context); -A_STATUS (* deviceResumeHandler)(void *context); -A_STATUS (* deviceWakeupHandler)(void *context); -A_STATUS (* devicePowerChangeHandler)(void *context,HIF_DEVICE_POWER_CHANGE_TYPE config); +int (* deviceInsertedHandler)(void *context,void *hif_handle); +int (* deviceRemovedHandler)(void *claimedContext,void *hif_handle); +int (* deviceSuspendHandler)(void *context); +int (* deviceResumeHandler)(void *context); +int (* deviceWakeupHandler)(void *context); +int (* devicePowerChangeHandler)(void *context,HIF_DEVICE_POWER_CHANGE_TYPE config); }OSDRV_CALLBACKS ;#define HIF_OTHER_EVENTS (1 << 0)/* other interrupts (non-Recv) are pending, host
@@ -355,14 +355,14 @@ typedef struct _HIF_PENDING_EVENTS_INFO {/* function to get pending events , some HIF modules use special mechanisms * to detect packet available and other interrupts */ -typedef A_STATUS ( *HIF_PENDING_EVENTS_FUNC )(HIF_DEVICE *device, +typedef int ( *HIF_PENDING_EVENTS_FUNC )(HIF_DEVICE *device,HIF_PENDING_EVENTS_INFO *pEvents,void *AsyncContext);#define HIF_MASK_RECV TRUE#define HIF_UNMASK_RECV FALSE/* function to mask recv events */ -typedef A_STATUS ( *HIF_MASK_UNMASK_RECV_EVENT )(HIF_DEVICE *device, +typedef int ( *HIF_MASK_UNMASK_RECV_EVENT )(HIF_DEVICE *device,A_BOOL Mask,void *AsyncContext);
@@ -372,7 +372,7 @@ typedef A_STATUS ( *HIF_MASK_UNMASK_RECV_EVENT)(HIF_DEVICE *device,* and to set OS driver callbacks (i.e. insertion/removal) to the HIF layer * */ -A_STATUS HIFInit (OSDRV_CALLBACKS *callbacks); +int HIFInit (OSDRV_CALLBACKS *callbacks);/* This API claims the HIF device and provides a context for handling removal. * The device removal callback is only called when the OSDRV layer claims
@@ -382,7 +382,7 @@ void HIFClaimDevice(HIF_DEVICE *device, void *claimedContext);void HIFReleaseDevice (HIF_DEVICE *device);/* This API allows the HTC layer to attach to the HIF device */ -A_STATUS HIFAttachHTC (HIF_DEVICE *device,HTC_CALLBACKS *callbacks); +int HIFAttachHTC (HIF_DEVICE *device,HTC_CALLBACKS *callbacks);/* This API detaches the HTC layer from the HIF device */ void HIFDetachHTC (HIF_DEVICE *device);
@@ -398,7 +398,7 @@ void HIFDetachHTC(HIF_DEVICE *device);* length - Amount of data to be transmitted or received. * request - Characterizes the attributes of the command. */ -A_STATUS +int HIFReadWrite(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer,
@@ -441,7 +441,7 @@ int HIFIRQEventNotify(void);int HIFRWCompleteEventNotify (void );#endif -A_STATUS +int HIFConfigureDevice (HIF_DEVICE *device,HIF_DEVICE_CONFIG_OPCODE opcode,void *config,A_UINT32 configLen);
@@ -449,7 +449,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode,* This API wait for the remaining MBOX messages to be drained * This should be moved to HTC AR6K layer */ -A_STATUS hifWaitForPendingRecv (HIF_DEVICE *device); +int hifWaitForPendingRecv (HIF_DEVICE *device); #ifdef __cplusplus }
drivers/staging/ath6kl/include/htc_api.h +9 -9
@@ -45,7 +45,7 @@ typedef A_UINT16 HTC_SERVICE_ID;typedef struct _HTC_INIT_INFO {void *pContext;/* context for target failure notification */ -void (*TargetFailure)(void *Instance,A_STATUS Status); +void (*TargetFailure)(void *Instance,int Status); }HTC_INIT_INFO ;/* per service connection send completion */
@@ -319,7 +319,7 @@ void HTCSetCreditDistribution(HTC_HANDLE HTCHandle,@example: @see also: HTCConnectService +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCWaitTarget (HTC_HANDLE HTCHandle); +int HTCWaitTarget (HTC_HANDLE HTCHandle);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Start target service communications @function name: HTCStart
@@ -334,7 +334,7 @@ A_STATUS HTCWaitTarget(HTC_HANDLE HTCHandle);@example: @see also: HTCConnectService +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCStart (HTC_HANDLE HTCHandle); +int HTCStart (HTC_HANDLE HTCHandle);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Add receive packet to HTC @function name: HTCAddReceivePkt
@@ -348,7 +348,7 @@ A_STATUS HTCStart(HTC_HANDLE HTCHandle);@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCAddReceivePkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket); +int HTCAddReceivePkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Connect to an HTC service @function name: HTCConnectService
@@ -361,7 +361,7 @@ A_STATUS HTCAddReceivePkt(HTC_HANDLE HTCHandle, HTC_PACKET *pPacket);@example: @see also: HTCStart +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCConnectService (HTC_HANDLE HTCHandle, +int HTCConnectService (HTC_HANDLE HTCHandle,HTC_SERVICE_CONNECT_REQ *pReq,HTC_SERVICE_CONNECT_RESP *pResp);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
@@ -377,7 +377,7 @@ A_STATUS HTCConnectService(HTC_HANDLE HTCHandle,@example: @see also: HTCFlushEndpoint +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCSendPkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket); +int HTCSendPkt (HTC_HANDLE HTCHandle,HTC_PACKET *pPacket);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Stop HTC service communications @function name: HTCStop
@@ -511,7 +511,7 @@ void HTCUnblockRecv(HTC_HANDLE HTCHandle);@example: @see also: HTCFlushEndpoint +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCSendPktsMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue); +int HTCSendPktsMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Add multiple receive packets to HTC
@@ -530,7 +530,7 @@ A_STATUS HTCSendPktsMultiple(HTC_HANDLE HTCHandle, HTC_PACKET_QUEUE *pPktQueu@example: @see also: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ -A_STATUS HTCAddReceivePktMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue); +int HTCAddReceivePktMultiple (HTC_HANDLE HTCHandle,HTC_PACKET_QUEUE *pPktQueue);/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ @desc: Check if an endpoint is marked active
@@ -564,7 +564,7 @@ int HTCGetNumRecvBuffers(HTC_HANDLE HTCHandle,/* internally used functions for testing... */ void HTCEnableRecv (HTC_HANDLE HTCHandle);void HTCDisableRecv (HTC_HANDLE HTCHandle); -A_STATUS HTCWaitForPendingRecv (HTC_HANDLE HTCHandle, +int HTCWaitForPendingRecv (HTC_HANDLE HTCHandle,A_UINT32 TimeoutInMs,A_BOOL *pbIsRecvPending);
drivers/staging/ath6kl/include/htc_packet.h +1 -1
@@ -89,7 +89,7 @@ typedef struct _HTC_PACKET {A_UINT32 BufferLength;/* length of buffer */ A_UINT32 ActualLength;/* actual length of payload */ HTC_ENDPOINT_ID Endpoint;/* endpoint that this packet was sent/recv'd from */ -A_STATUS Status;/* completion status */ +int Status;/* completion status */ union {HTC_TX_PACKET_INFO AsTx;/* Tx Packet specific info */ HTC_RX_PACKET_INFO AsRx;/* Rx Packet specific info */
drivers/staging/ath6kl/include/wlan_api.h +1 -1
@@ -96,7 +96,7 @@ void wlan_node_table_init(void *wmip, struct ieee80211_node_table *nt);void wlan_node_table_reset (struct ieee80211_node_table *nt);void wlan_node_table_cleanup (struct ieee80211_node_table *nt); -A_STATUS wlan_parse_beacon (A_UINT8 *buf,int framelen, +int wlan_parse_beacon (A_UINT8 *buf,int framelen,struct ieee80211_common_ie *cie);A_UINT16 wlan_ieee2freq (int chan);
drivers/staging/ath6kl/include/wmi_api.h +137 -137
470 lines not on this page · raw message
drivers/staging/ath6kl/miscdrv/ar3kconfig.c +19 -19
@@ -47,14 +47,14 @@#define HCI_MAX_EVT_RECV_LENGTH 257#define EXIT_MIN_BOOT_COMMAND_STATUS_OFFSET 5 -A_STATUS AthPSInitialize (AR3K_CONFIG_INFO *hdev); +int AthPSInitialize (AR3K_CONFIG_INFO *hdev); -static A_STATUS SendHCICommand (AR3K_CONFIG_INFO *pConfig, +static int SendHCICommand (AR3K_CONFIG_INFO *pConfig,A_UINT8 *pBuffer,int Length) {HTC_PACKET *pPacket =NULL ; -A_STATUS status =A_OK ; +int status =A_OK ; do {
@@ -84,11 +84,11 @@ static A_STATUS SendHCICommand(AR3K_CONFIG_INFO *pConfig,return status; } -static A_STATUS RecvHCIEvent (AR3K_CONFIG_INFO *pConfig, +static int RecvHCIEvent (AR3K_CONFIG_INFO *pConfig,A_UINT8 *pBuffer,int *pLength) { -A_STATUS status =A_OK ; +int status =A_OK ;HTC_PACKET *pRecvPacket =NULL ; do {
@@ -122,13 +122,13 @@ static A_STATUS RecvHCIEvent(AR3K_CONFIG_INFO *pConfig,return status; } -A_STATUS SendHCICommandWaitCommandComplete (AR3K_CONFIG_INFO *pConfig, +int SendHCICommandWaitCommandComplete (AR3K_CONFIG_INFO *pConfig,A_UINT8 *pHCICommand,int CmdLength,A_UINT8 **ppEventBuffer,A_UINT8 **ppBufferToFree) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 *pBuffer =NULL ;A_UINT8 *pTemp;int length;
@@ -209,9 +209,9 @@ A_STATUS SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,return status; } -static A_STATUS AR3KConfigureHCIBaud (AR3K_CONFIG_INFO *pConfig) +static int AR3KConfigureHCIBaud (AR3K_CONFIG_INFO *pConfig) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 hciBaudChangeCommand[] = {0x0c ,0xfc ,0x2 ,0 ,0 };A_UINT16 baudVal;A_UINT8 *pEvent =NULL ;
@@ -274,9 +274,9 @@ static A_STATUS AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)return status; } -static A_STATUS AR3KExitMinBoot (AR3K_CONFIG_INFO *pConfig) +static int AR3KExitMinBoot (AR3K_CONFIG_INFO *pConfig) { -A_STATUS status; +int status;A_CHAR exitMinBootCmd[] = {0x25 ,0xFC ,0x0c ,0x03 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 };A_UINT8 *pEvent =NULL ;
@@ -310,9 +310,9 @@ static A_STATUS AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig)return status; } -static A_STATUS AR3KConfigureSendHCIReset (AR3K_CONFIG_INFO *pConfig) +static int AR3KConfigureSendHCIReset (AR3K_CONFIG_INFO *pConfig) { -A_STATUS status =A_OK ; +int status =A_OK ;A_UINT8 hciResetCommand[] = {0x03 ,0x0c ,0x0 };A_UINT8 *pEvent =NULL ;A_UINT8 *pBufferToFree =NULL ;
@@ -334,9 +334,9 @@ static A_STATUS AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig)return status; } -static A_STATUS AR3KEnableTLPM (AR3K_CONFIG_INFO *pConfig) +static int AR3KEnableTLPM (AR3K_CONFIG_INFO *pConfig) { -A_STATUS status; +int status;/* AR3K vendor specific command for Host Wakeup Config */ A_CHAR hostWakeupConfig[] = {0x31 ,0xFC ,0x18 ,0x02 ,0x00 ,0x00 ,0x00 ,
@@ -453,9 +453,9 @@ static A_STATUS AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)return status; } -A_STATUS AR3KConfigure (AR3K_CONFIG_INFO *pConfig) +int AR3KConfigure (AR3K_CONFIG_INFO *pConfig) { -A_STATUS status =A_OK ; +int status =A_OK ;AR_DEBUG_PRINTF (ATH_DEBUG_INFO ,("AR3K Config: Configuring AR3K ...\n" ));
@@ -521,9 +521,9 @@ A_STATUS AR3KConfigure(AR3K_CONFIG_INFO *pConfig)return status; } -A_STATUS AR3KConfigureExit (void *config) +int AR3KConfigureExit (void *config) { -A_STATUS status =A_OK ; +int status =A_OK ;AR3K_CONFIG_INFO *pConfig = (AR3K_CONFIG_INFO *)config;AR_DEBUG_PRINTF (ATH_DEBUG_INFO ,("AR3K Config: Cleaning up AR3K ...\n" ));
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c +14 -14
@@ -46,7 +46,7 @@ typedef struct {AR3K_CONFIG_INFO *dev; }HciCommandListParam; -A_STATUS SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, +int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, A_UINT8 *pHCICommand, int CmdLength, A_UINT8 **ppEventBuffer,
@@ -56,8 +56,8 @@ A_UINT32 Rom_Version;A_UINT32 Build_Version;extern A_BOOL BDADDR ; -A_STATUS getDeviceType (AR3K_CONFIG_INFO *pConfig,A_UINT32 * code); -A_STATUS ReadVersionInfo (AR3K_CONFIG_INFO *pConfig); +int getDeviceType (AR3K_CONFIG_INFO *pConfig,A_UINT32 * code); +int ReadVersionInfo (AR3K_CONFIG_INFO *pConfig);#ifndef HCI_TRANSPORT_SDIO DECLARE_WAIT_QUEUE_HEAD (PsCompleteEvent);
@@ -70,7 +70,7 @@ int PSHciWritepacket(struct hci_dev*,A_UCHAR* Data, A_UINT32 len);extern char *bdaddr;#endif /* HCI_TRANSPORT_SDIO */ -A_STATUS write_bdaddr (AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type); +int write_bdaddr (AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type);int PSSendOps (void *arg);
@@ -91,9 +91,9 @@ void Hci_log(A_UCHAR * log_string,A_UCHAR *data,A_UINT32 len) -A_STATUS AthPSInitialize (AR3K_CONFIG_INFO *hdev) +int AthPSInitialize (AR3K_CONFIG_INFO *hdev) { -A_STATUS status =A_OK ; +int status =A_OK ;if (hdev ==NULL ) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Invalid Device handle received\n" ));return A_ERROR ;
@@ -389,7 +389,7 @@ complete:* with a HCI Command Complete event. * For HCI SDIO transport, this will be internally defined. */ -A_STATUS SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, +int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, A_UINT8 *pHCICommand, int CmdLength, A_UINT8 **ppEventBuffer,
@@ -419,7 +419,7 @@ A_STATUS SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, }#endif /* HCI_TRANSPORT_SDIO */ -A_STATUS ReadPSEvent (A_UCHAR * Data){ +int ReadPSEvent (A_UCHAR * Data){AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,(" PS Event %x %x %x\n" ,Data[4 ],Data[5 ],Data[3 ]));if (Data[4 ] ==0xFC && Data[5 ] ==0x00 )
@@ -481,14 +481,14 @@ int str2ba(unsigned char *str_bdaddr,unsigned char *bdaddr)return 0 ; } -A_STATUS write_bdaddr (AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type) +int write_bdaddr (AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type) {A_UCHAR bdaddr_cmd[] = {0x0B ,0xFC ,0x0A ,0x01 ,0x01 ,0x00 ,0x06 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 };A_UINT8 *event;A_UINT8 *bufferToFree =NULL ; -A_STATUS result =A_ERROR ; +int result =A_ERROR ;int inc,outc;if (type ==BDADDR_TYPE_STRING )
@@ -516,12 +516,12 @@ A_STATUS write_bdaddr(AR3K_CONFIG_INFO *pConfig,A_UCHAR *bdaddr,int type)return result; } -A_STATUS ReadVersionInfo (AR3K_CONFIG_INFO *pConfig) +int ReadVersionInfo (AR3K_CONFIG_INFO *pConfig) {A_UINT8 hciCommand[] = {0x1E ,0xfc ,0x00 };A_UINT8 *event;A_UINT8 *bufferToFree =NULL ; -A_STATUS result =A_ERROR ; +int result =A_ERROR ;if (A_OK ==SendHCICommandWaitCommandComplete (pConfig,hciCommand,sizeof (hciCommand),&event,&bufferToFree)) { result =ReadPSEvent (event);
@@ -531,13 +531,13 @@ A_STATUS ReadVersionInfo(AR3K_CONFIG_INFO *pConfig) }return result; } -A_STATUS getDeviceType (AR3K_CONFIG_INFO *pConfig,A_UINT32 * code) +int getDeviceType (AR3K_CONFIG_INFO *pConfig,A_UINT32 * code) {A_UINT8 hciCommand[] = {0x05 ,0xfc ,0x05 ,0x00 ,0x00 ,0x00 ,0x00 ,0x04 };A_UINT8 *event;A_UINT8 *bufferToFree =NULL ;A_UINT32 reg; -A_STATUS result =A_ERROR ; +int result =A_ERROR ; *code =0 ; hciCommand[3 ] = (A_UINT8 )(FPGA_REGISTER &0xFF ); hciCommand[4 ] = (A_UINT8 )((FPGA_REGISTER >>8 ) &0xFF );
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h +2 -2
@@ -70,6 +70,6 @@ extern wait_queue_t Eventwait;extern A_UCHAR *HciEventpacket;#endif /* #ifndef HCI_TRANSPORT_SDIO */ -A_STATUS AthPSInitialize (AR3K_CONFIG_INFO *hdev); -A_STATUS ReadPSEvent (A_UCHAR * Data); +int AthPSInitialize (AR3K_CONFIG_INFO *hdev); +int ReadPSEvent (A_UCHAR * Data);#endif /* __AR3KPSCONFIG_H */
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c +9 -9
@@ -127,10 +127,10 @@ tPsTagEntry PsTagEntry[RAMPS_MAX_PS_TAGS_PER_FILE];tRamPatch RamPatch[MAX_NUM_PATCH_ENTRY ]; -A_STATUS AthParseFilesUnified (A_UCHAR *srcbuffer,A_UINT32 srclen,int FileFormat); +int AthParseFilesUnified (A_UCHAR *srcbuffer,A_UINT32 srclen,int FileFormat);char AthReadChar (A_UCHAR *buffer,A_UINT32 len,A_UINT32 *pos);char *AthGetLine (char * buffer,int maxlen,A_UCHAR *srcbuffer,A_UINT32 len,A_UINT32 *pos); -static A_STATUS AthPSCreateHCICommand (A_UCHAR Opcode,A_UINT32 Param1,PSCmdPacket *PSPatchPacket,A_UINT32 *index); +static int AthPSCreateHCICommand (A_UCHAR Opcode,A_UINT32 Param1,PSCmdPacket *PSPatchPacket,A_UINT32 *index);/* Function to reads the next character from the input buffer */ char AthReadChar (A_UCHAR *buffer,A_UINT32 len,A_UINT32 *pos)
@@ -315,7 +315,7 @@ unsigned int uReadDataInSection(char *pCharLine, ST_PS_DATA_FORMAT stPS_DataFormreturn (0x0FFF ); } } -A_STATUS AthParseFilesUnified (A_UCHAR *srcbuffer,A_UINT32 srclen,int FileFormat) +int AthParseFilesUnified (A_UCHAR *srcbuffer,A_UINT32 srclen,int FileFormat) {char *Buffer;char *pCharLine;
@@ -558,7 +558,7 @@ A_STATUS AthParseFilesUnified(A_UCHAR *srcbuffer,A_UINT32 srclen, int FileFormat/********************/ -A_STATUS GetNextTwoChar (A_UCHAR *srcbuffer,A_UINT32 len,A_UINT32 *pos,char * buffer) +int GetNextTwoChar (A_UCHAR *srcbuffer,A_UINT32 len,A_UINT32 *pos,char * buffer) {unsigned char ch;
@@ -579,7 +579,7 @@ A_STATUS GetNextTwoChar(A_UCHAR *srcbuffer,A_UINT32 len, A_UINT32 *pos, char * breturn A_OK ; } -A_STATUS AthDoParsePatch (A_UCHAR *patchbuffer,A_UINT32 patchlen) +int AthDoParsePatch (A_UCHAR *patchbuffer,A_UINT32 patchlen) {char Byte[3 ];
@@ -659,9 +659,9 @@ A_STATUS AthDoParsePatch(A_UCHAR *patchbuffer, A_UINT32 patchlen)/********************/ -A_STATUS AthDoParsePS (A_UCHAR *srcbuffer,A_UINT32 srclen) +int AthDoParsePS (A_UCHAR *srcbuffer,A_UINT32 srclen) { -A_STATUS status; +int status;int i;A_BOOL BDADDR_Present =A_ERROR ;
@@ -833,7 +833,7 @@ int AthCreateCommandList(PSCmdPacket **HciPacketList, A_UINT32 *numPackets)//////////////////////// ///////////// -static A_STATUS AthPSCreateHCICommand (A_UCHAR Opcode,A_UINT32 Param1,PSCmdPacket *PSPatchPacket,A_UINT32 *index) +static int AthPSCreateHCICommand (A_UCHAR Opcode,A_UINT32 Param1,PSCmdPacket *PSPatchPacket,A_UINT32 *index) {A_UCHAR *HCI_PS_Command;A_UINT32 Length;
@@ -955,7 +955,7 @@ static A_STATUS AthPSCreateHCICommand(A_UCHAR Opcode, A_UINT32 Param1,PSCmdPacke }return A_OK ; } -A_STATUS AthFreeCommandList (PSCmdPacket **HciPacketList,A_UINT32 numPackets) +int AthFreeCommandList (PSCmdPacket **HciPacketList,A_UINT32 numPackets) {int i;if (*HciPacketList ==NULL ) {
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h +3 -3
@@ -104,10 +104,10 @@ typedef struct PSCmdPacket } PSCmdPacket;/* Parses a Patch information buffer and store it in global structure */ -A_STATUS AthDoParsePatch (A_UCHAR *,A_UINT32 ); +int AthDoParsePatch (A_UCHAR *,A_UINT32 );/* parses a PS information buffer and stores it in a global structure */ -A_STATUS AthDoParsePS (A_UCHAR *,A_UINT32 ); +int AthDoParsePS (A_UCHAR *,A_UINT32 );/* * Uses the output of Both AthDoParsePS and AthDoParsePatch APIs to form HCI command array with
@@ -123,5 +123,5 @@ A_STATUS AthDoParsePS(A_UCHAR *, A_UINT32);int AthCreateCommandList (PSCmdPacket **,A_UINT32 *);/* Cleanup the dynamically allicated HCI command list */ -A_STATUS AthFreeCommandList (PSCmdPacket **HciPacketList,A_UINT32 numPackets); +int AthFreeCommandList (PSCmdPacket **HciPacketList,A_UINT32 numPackets);#endif /* __AR3KPSPARSER_H */
drivers/staging/ath6kl/miscdrv/common_drv.c +33 -33
66 lines not on this page · raw message
drivers/staging/ath6kl/miscdrv/credit_dist.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/ar6000_android.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/ar6000_drv.c +53 -53
106 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/ar6000_pm.c +17 -17
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/ar6000_raw_if.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/ar6k_pal.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/cfg80211.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/export_hci_transport.c +14 -14
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/hci_bridge.c +24 -24
48 lines not on this page · raw message
drivers/staging/ath6kl/os/linux/include/ar6000_drv.h +4 -4
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/include/ar6xapi_linux.h +15 -15
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/include/cfg80211.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/include/export_hci_transport.h +11 -11
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/include/osapi_linux.h +9 -9
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/ioctl.c +19 -19
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/netbuf.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/os/linux/wireless_ext.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/reorder/rcv_aggr.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/wlan/src/wlan_recv_beacon.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/staging/ath6kl/wmi/wmi.c +264 -264
528 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.7.4.rc3
Part of the diff is not shown here. View the raw message.
PATCH 3/15 staging: ath6kl: Remove A_SUCCESS macro
In reply to Joe PerchesRemove obfuscating A_SUCCESS(foo) macro.
Just test for !foo instead.
Reformat a few macros that used A_SUCCESS for better readability. Add do { foo } while (0) surrounds to those macros too.
--- drivers/staging/ath6kl/bmi/src/bmi.c | 2 +- .../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 4 +- drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 6 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k.h | 16 +++++++++----- drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c | 4 +- drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c | 6 ++-- .../ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 21 ++++++++++++------- drivers/staging/ath6kl/htc2/htc_recv.c | 10 ++++---- drivers/staging/ath6kl/include/common/athdefs.h | 3 +- drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 2 +- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 10 ++++---- 11 files changed, 46 insertions(+), 38 deletions(-)
drivers/staging/ath6kl/bmi/src/bmi.c +1 -1
@@ -985,7 +985,7 @@ BMIFastDownload(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer, A_UINT32 status =BMILZData (device, (A_UINT8 *)&lastWord,4 ); } -if (A_SUCCESS (status)) { +if (!status) {// // Close compressed stream and open a new (fake) one. This serves mainly to flush Target caches. //
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c +2 -2
@@ -1120,7 +1120,7 @@ static int hifDeviceResume(struct device *dev) }AR_DEBUG_PRINTF (ATH_DEBUG_TRACE , ("AR6000: -hifDeviceResume\n" )); -return A_SUCCESS (status) ?0 : status; +return status; }#endif /* CONFIG_PM */
@@ -1167,7 +1167,7 @@ int hifWaitForPendingRecv(HIF_DEVICE *device) status =HIFReadWrite (device,HOST_INT_STATUS_ADDRESS , (A_UINT8 *)&host_int_status,sizeof (host_int_status),HIF_RD_SYNC_BYTE_INC ,NULL ); - host_int_status =A_SUCCESS (status) ? (host_int_status & (1 <<0 )) :0 ; + host_int_status = !status ? (host_int_status & (1 <<0 )) :0 ;if (host_int_status) {schedule ();/* schedule for next dsrHandler */ }
drivers/staging/ath6kl/htc2/AR6000/ar6k.c +3 -3
@@ -516,7 +516,7 @@ int DevWaitForPendingRecv(AR6K_DEVICE *pDev,A_UINT32 TimeoutInMs,A_BOOL *pbIsRecbreak ; } - host_int_status =A_SUCCESS (status) ? (host_int_status & (1 <<0 )):0 ; + host_int_status = !status ? (host_int_status & (1 <<0 )):0 ;if (!host_int_status) { status =A_OK ;
@@ -832,7 +832,7 @@ int DevSetupMsgBundling(AR6K_DEVICE *pDev, int MaxMsgsPerTransfer)/* we can try to use a virtual DMA scatter mechanism using legacy HIFReadWrite() */ status =DevSetupVirtualScatterSupport (pDev); -if (A_SUCCESS (status)) { +if (!status) {AR_DEBUG_PRINTF (ATH_DEBUG_ANY , ("AR6K: virtual scatter transfers enabled (max scatter items:%d: maxlen:%d) \n" ,DEV_GET_MAX_MSG_PER_BUNDLE (pDev),DEV_GET_MAX_BUNDLE_LENGTH (pDev)));
@@ -844,7 +844,7 @@ int DevSetupMsgBundling(AR6K_DEVICE *pDev, int MaxMsgsPerTransfer) DEV_GET_MAX_MSG_PER_BUNDLE(pDev), DEV_GET_MAX_BUNDLE_LENGTH(pDev))); } -if (A_SUCCESS (status)) { +if (!status) {/* for the recv path, the maximum number of bytes per recv bundle is just limited * by the maximum transfer size at the HIF layer */ pDev->MaxRecvBundleSize = pDev->HifScatterInfo.MaxTransferSizePerScatterReq;
drivers/staging/ath6kl/htc2/AR6000/ar6k.h +10 -6
@@ -275,12 +275,16 @@ static INLINE int DevRecvPacket(AR6K_DEVICE *pDev, HTC_PACKET *pPacket, A_UINT32int DevCopyScatterListToFromDMABuffer (HIF_SCATTER_REQ *pReq,A_BOOL FromDMA);/* copy any READ data back into scatter list */ -#define DEV_FINISH_SCATTER_OPERATION (pR) \ - if (A_SUCCESS((pR)->CompletionStatus) && \ - !((pR)->Request & HIF_WRITE) && \ - ((pR)->ScatterMethod == HIF_SCATTER_DMA_BOUNCE)) { \ - (pR)->CompletionStatus = DevCopyScatterListToFromDMABuffer((pR),FROM_DMA_BUFFER); \ - } +#define DEV_FINISH_SCATTER_OPERATION (pR) \ +do { \ + if (!((pR)->CompletionStatus) && \ + !((pR)->Request & HIF_WRITE) && \ + ((pR)->ScatterMethod == HIF_SCATTER_DMA_BOUNCE)) { \ + (pR)->CompletionStatus = \ + DevCopyScatterListToFromDMABuffer((pR), \ + FROM_DMA_BUFFER); \ + } \ +} while (0)/* copy any WRITE data to bounce buffer */ static INLINE int DEV_PREPARE_SCATTER_OPERATION(HIF_SCATTER_REQ *pReq) {
drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c +2 -2
@@ -372,7 +372,7 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket)* go get the next message */ status = pDev->MessagePendingCallback (pDev->HTCContext, &lookAhead,1 ,NULL , &fetched); -if (A_SUCCESS (status) && !fetched) { +if (!status && !fetched) {/* HTC layer could not pull out messages due to lack of resources, stop IRQ processing */ AR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("MessagePendingCallback did not pull any messages, force-ack \n" ));DevAsyncIrqProcessComplete (pDev);
@@ -725,7 +725,7 @@ int DevDsrHandler(void *context) } -if (A_SUCCESS (status) && !asyncProc) { +if (!status && !asyncProc) {/* Ack the interrupt only if : * 1. we did not get any errors in processing interrupts * 2. there are no outstanding async processing requests */
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c +3 -3
@@ -589,7 +589,7 @@ int DevGMboxReadCreditCounter(AR6K_DEVICE *pDev, A_BOOL AsyncMode, int *pCredits }if (pIOPacket !=NULL ) { -if (A_SUCCESS (status)) { +if (!status) {/* sync mode processing */ *pCredits =ProcessCreditCounterReadBuffer (pIOPacket->pBuffer,AR6K_REG_IO_BUFFER_SIZE ); }
@@ -614,7 +614,7 @@ int DevGMboxReadCreditSize(AR6K_DEVICE *pDev, int *pCreditSize)HIF_RD_SYNC_BYTE_FIX ,/* hit the register 4 times to align the I/O */ NULL); -if (A_SUCCESS (status)) { +if (!status) {if (buffer[0 ] ==0 ) { *pCreditSize =256 ; }else {
@@ -708,7 +708,7 @@ int DevGMboxSetTargetInterrupt(AR6K_DEVICE *pDev, int Signal, int AckTimeoutMS) }while (FALSE); -if (A_SUCCESS (status)) { +if (!status) {/* now read back the register to see if the bit cleared */ while (AckTimeoutMS) { status = HIFReadWrite(pDev->HIFDevice,
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c +13 -8
@@ -82,11 +82,16 @@ typedef struct {#define LOCK_HCI_TX (t) A_MUTEX_LOCK(&(t)->HCITxLock);#define UNLOCK_HCI_TX (t) A_MUTEX_UNLOCK(&(t)->HCITxLock); -#define DO_HCI_RECV_INDICATION (p,pt) \ -{ AR_DEBUG_PRINTF(ATH_DEBUG_RECV,("HCI: Indicate Recv on packet:0x%lX status:%d len:%d type:%d \n", \ - (unsigned long)(pt),(pt)->Status, A_SUCCESS((pt)->Status) ? (pt)->ActualLength : 0, HCI_GET_PACKET_TYPE(pt))); \ - (p)->HCIConfig.pHCIPktRecv((p)->HCIConfig.pContext, (pt)); \ -} +#define DO_HCI_RECV_INDICATION (p, pt) \ +do { \ + AR_DEBUG_PRINTF(ATH_DEBUG_RECV, \ + ("HCI: Indicate Recv on packet:0x%lX status:%d len:%d type:%d \n", \ + (unsigned long)(pt), \ + (pt)->Status, \ + !(pt)->Status ? (pt)->ActualLength : 0, \ + HCI_GET_PACKET_TYPE(pt))); \ + (p)->HCIConfig.pHCIPktRecv((p)->HCIConfig.pContext, (pt)); \ +} while (0)#define DO_HCI_SEND_INDICATION (p,pt) \ { AR_DEBUG_PRINTF(ATH_DEBUG_SEND,("HCI: Indicate Send on packet:0x%lX status:%d type:%d \n", \
@@ -175,7 +180,7 @@ static int InitTxCreditState(GMBOX_PROTO_HCI_UART *pProt) }while (FALSE); -if (A_SUCCESS (status)) { +if (!status) { pProt->CreditsAvailable = pProt->CreditsMax;AR_DEBUG_PRINTF (ATH_DEBUG_ANY ,("HCI : InitTxCreditState - credits avail: %d, size: %d \n" , pProt->CreditsAvailable, pProt->CreditSize));
@@ -768,7 +773,7 @@ static int HCITrySend(GMBOX_PROTO_HCI_UART *pProt, HTC_PACKET *pPacket, A_BOOL Sif (Synchronous) {A_ASSERT (pPacket !=NULL ); -if (A_SUCCESS (status) && (!synchSendComplete)) { +if (!status && (!synchSendComplete)) { status =A_EBUSY ;A_ASSERT (FALSE);LOCK_HCI_TX (pProt);
@@ -865,7 +870,7 @@ int GMboxProtocolInstall(AR6K_DEVICE *pDev) }while (FALSE); -if (A_SUCCESS (status)) { +if (!status) {LOCK_AR6K (pDev); DEV_GMBOX_SET_PROTOCOL(pDev, HCIUartMessagePending,
drivers/staging/ath6kl/htc2/htc_recv.c +5 -5
@@ -410,7 +410,7 @@ static INLINE void HTCAsyncRecvCheckMorePackets(HTC_TARGET *target, "BAD lookaheads from lookahead report");#endif } -if (A_SUCCESS (nextStatus) && !fetched) { +if (!nextStatus && !fetched) {/* we could not fetch any more packets due to resources */ DevAsyncIrqProcessComplete (&target->Device); }
@@ -923,14 +923,14 @@ static void HTCAsyncRecvScatterCompletion(HIF_SCATTER_REQ *pScatterReq)* break out of this loop */ numLookAheads =0 ; -if (A_SUCCESS (pScatterReq->CompletionStatus)) { +if (!pScatterReq->CompletionStatus) {/* process header for each of the recv packets */ status =HTCProcessRecvHeader (target,pPacket,lookAheads,&numLookAheads); }else { status =A_ERROR ; } -if (A_SUCCESS (status)) { +if (!status) {#ifdef HTC_EP_STAT_PROFILING LOCK_HTC_RX (target);HTC_RX_STAT_PROFILE (target,pEndpoint,numLookAheads);
@@ -1085,7 +1085,7 @@ static int HTCIssueRecvPacketBundle(HTC_TARGET *target, status =DevSubmitScatterRequest (&target->Device, pScatterReq,DEV_SCATTER_READ , asyncMode); -if (A_SUCCESS (status)) { +if (!status) { *pNumPacketsFetched = i; }
@@ -1261,7 +1261,7 @@ int HTCRecvMessagePendingHandler(void *Context, A_UINT32 MsgLookAheads[], int Nu } -if (A_SUCCESS (status)) { +if (!status) {CheckRecvWaterMark (pEndpoint); }
drivers/staging/ath6kl/include/common/athdefs.h +1 -2
@@ -73,8 +73,7 @@#define A_PHY_ERROR 27/* RX PHY error */ #define A_CONSUMED 28/* Object was consumed */ -#define A_SUCCESS (x) (x == A_OK) -#define A_FAILED (x) (!A_SUCCESS(x)) +#define A_FAILED (x) (!!x)#ifndef TRUE #define TRUE 1
drivers/staging/ath6kl/miscdrv/ar3kconfig.c +1 -1
@@ -288,7 +288,7 @@ static int AR3KExitMinBoot(AR3K_CONFIG_INFO *pConfig) &pEvent, &pBufferToFree); -if (A_SUCCESS (status)) { +if (!status) {if (pEvent[EXIT_MIN_BOOT_COMMAND_STATUS_OFFSET ] !=0 ) { AR_DEBUG_PRINTF(ATH_DEBUG_ERR, ("AR3K Config: MinBoot exit command event status failed: %d \n",
drivers/staging/ath6kl/os/linux/ar6000_drv.c +5 -5
@@ -1674,8 +1674,8 @@ ar6000_avail_ev(void *context, void *hif_handle)if (ar_netif) {HIF_DEVICE_OS_DEVICE_INFO osDevInfo;A_MEMZERO (&osDevInfo,sizeof (osDevInfo)); -if (A_SUCCESS (HIFConfigureDevice (hif_handle,HIF_DEVICE_GET_OS_DEVICE , - &osDevInfo,sizeof (osDevInfo))) ) { +if (!HIFConfigureDevice (hif_handle,HIF_DEVICE_GET_OS_DEVICE , + &osDevInfo,sizeof (osDevInfo))) {SET_NETDEV_DEV (dev, osDevInfo.pOSDevice); } }
@@ -3115,7 +3115,7 @@ ar6000_data_tx(struct sk_buff *skb, struct net_device *dev)if (ac ==HCI_TRANSPORT_STREAM_NUM ) {/* pass this to HCI */ #ifndef EXPORT_HCI_BRIDGE_INTERFACE -if (A_SUCCESS (hci_test_send (ar,skb))) { +if (!hci_test_send (ar,skb)) {return 0 ; }#endif
@@ -3428,7 +3428,7 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue)/* add this to the list, use faster non-lock API */ __skb_queue_tail (&skb_queue,pktSkb); -if (A_SUCCESS (status)) { +if (!status) {A_ASSERT (pPacket->ActualLength ==A_NETBUF_LEN (pktSkb)); }
@@ -3597,7 +3597,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)* and adaptive power throughput state */ AR6000_SPIN_LOCK (&ar->arLock,0 ); -if (A_SUCCESS (status)) { +if (!status) {AR6000_STAT_INC (ar, rx_packets); ar->arNetStats.rx_bytes += pPacket->ActualLength;#ifdef ADAPTIVE_POWER_THROUGHPUT_CONTROL
Signature · 1 line
1.7.4.rc3
PATCH 4/15 staging: ath6kl: Remove A_FAILED macro
In reply to Joe PerchesRemove obfuscating A_FAILED(foo) macro.
Just test for foo instead.
--- drivers/staging/ath6kl/bmi/src/bmi.c | 6 +- .../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 2 +- .../ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | 6 +- drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 22 +++++----- drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c | 24 +++++----- drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c | 28 ++++++------ .../ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 44 ++++++++++---------- drivers/staging/ath6kl/htc2/htc.c | 18 ++++---- drivers/staging/ath6kl/htc2/htc_recv.c | 42 +++++++++--------- drivers/staging/ath6kl/htc2/htc_send.c | 4 +- drivers/staging/ath6kl/htc2/htc_services.c | 4 +- drivers/staging/ath6kl/include/common/athdefs.h | 2 - drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 36 ++++++++-------- drivers/staging/ath6kl/miscdrv/common_drv.c | 18 ++++---- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 36 ++++++++-------- drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 8 ++-- drivers/staging/ath6kl/os/linux/ar6k_pal.c | 6 +- drivers/staging/ath6kl/os/linux/hci_bridge.c | 18 ++++---- drivers/staging/ath6kl/os/linux/ioctl.c | 6 +- drivers/staging/ath6kl/wmi/wmi.c | 6 +- 20 files changed, 166 insertions(+), 170 deletions(-)
drivers/staging/ath6kl/bmi/src/bmi.c +3 -3
@@ -966,7 +966,7 @@ BMIFastDownload(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer, A_UINT32A_UINT32 unalignedBytes = length &0x3 ; status =BMILZStreamStart (device, address); -if (A_FAILED (status)) { +if (status) {return A_ERROR ; }
@@ -977,7 +977,7 @@ BMIFastDownload(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer, A_UINT32 status =BMILZData (device, buffer, lastWordOffset); -if (A_FAILED (status)) { +if (status) {return A_ERROR ; }
@@ -990,7 +990,7 @@ BMIFastDownload(HIF_DEVICE *device, A_UINT32 address, A_UCHAR *buffer, A_UINT32// Close compressed stream and open a new (fake) one. This serves mainly to flush Target caches. // status =BMILZStreamStart (device,0x00 ); -if (A_FAILED (status)) { +if (status) {return A_ERROR ; } }
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif.c +1 -1
@@ -724,7 +724,7 @@ HIFConfigureDevice(HIF_DEVICE *device, HIF_DEVICE_CONFIG_OPCODE opcode,return A_ENOTSUP ; } status =SetupHIFScatterSupport (device, (HIF_DEVICE_SCATTER_SUPPORT_INFO *)config); -if (A_FAILED (status)) { +if (status) { device->scatter_enabled = FALSE; }break ;
drivers/staging/ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c +3 -3
@@ -176,7 +176,7 @@ int DoHifReadWriteScatter(HIF_DEVICE *device, BUS_REQUEST *busrequest)AR_DEBUG_PRINTF (ATH_DEBUG_ERROR , ("HIF-SCATTER: data error: %d \n" ,data.error)); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERROR , ("HIF-SCATTER: FAILED!!! (%s) Address: 0x%X, Block mode (BlockLen: %d, BlockCount: %d)\n" , (pReq->Request &HIF_WRITE ) ?"WRITE" :"READ" ,pReq->Address, data.blksz, data.blocks)); }
@@ -265,7 +265,7 @@ static int HifReadWriteScatter(HIF_DEVICE *device, HIF_SCATTER_REQ *pReq) }while (FALSE); -if (A_FAILED (status) && (request &HIF_ASYNCHRONOUS )) { +if (status && (request &HIF_ASYNCHRONOUS )) { pReq->CompletionStatus = status; pReq->CompletionRoutine (pReq); status =A_OK ;
@@ -348,7 +348,7 @@ int SetupHIFScatterSupport(HIF_DEVICE *device, HIF_DEVICE_SCATTER_SUPPORT_INFO * }while (FALSE); -if (A_FAILED (status)) { +if (status) {CleanupHIFScatterResources (device); }
drivers/staging/ath6kl/htc2/AR6000/ar6k.c +11 -11
@@ -96,7 +96,7 @@ int DevSetup(AR6K_DEVICE *pDev) status =HIFAttachHTC (pDev->HIFDevice, &htcCallbacks); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -197,7 +197,7 @@ int DevSetup(AR6K_DEVICE *pDev) status =DevDisableInterrupts (pDev); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -205,7 +205,7 @@ int DevSetup(AR6K_DEVICE *pDev) }while (FALSE); -if (A_FAILED (status)) { +if (status) {if (pDev->HifAttached) {HIFDetachHTC (pDev->HIFDevice); pDev->HifAttached = FALSE;
@@ -343,7 +343,7 @@ static void DevDoEnableDisableRecvAsyncHandler(void *Context, HTC_PACKET *pPackeAR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("+DevDoEnableDisableRecvAsyncHandler: (dev: 0x%lX)\n" , (unsigned long )pDev)); -if (A_FAILED (pPacket->Status)) { +if (pPacket->Status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , (" Failed to disable receiver, status:%d \n" , pPacket->Status)); }
@@ -393,7 +393,7 @@ static int DevDoEnableDisableRecvOverride(AR6K_DEVICE *pDev, A_BOOL EnableRecv, }while (FALSE); -if (A_FAILED (status) && (pIOPacket !=NULL )) { +if (status && (pIOPacket !=NULL )) {AR6KFreeIOPacket (pDev,pIOPacket); }
@@ -462,7 +462,7 @@ static int DevDoEnableDisableRecvNormal(AR6K_DEVICE *pDev, A_BOOL EnableRecv, A_ }while (FALSE); -if (A_FAILED (status) && (pIOPacket !=NULL )) { +if (status && (pIOPacket !=NULL )) {AR6KFreeIOPacket (pDev,pIOPacket); }
@@ -510,7 +510,7 @@ int DevWaitForPendingRecv(AR6K_DEVICE *pDev,A_UINT32 TimeoutInMs,A_BOOL *pbIsRecsizeof (A_UCHAR ),HIF_RD_SYNC_BYTE_INC , NULL); -if (A_FAILED (status)) +if (status) {AR_DEBUG_PRINTF (ATH_LOG_ERR ,("DevWaitForPendingRecv:Read HOST_INT_STATUS_ADDRESS Failed 0x%X\n" ,status));break ;
@@ -721,7 +721,7 @@ static int DevReadWriteScatter(HIF_DEVICE *Context, HIF_SCATTER_REQ *pReq) }while (FALSE); -if ((status !=A_PENDING ) &&A_FAILED (status) && (request &HIF_ASYNCHRONOUS )) { +if ((status !=A_PENDING ) && status && (request &HIF_ASYNCHRONOUS )) {if (pIOPacket !=NULL ) {AR6KFreeIOPacket (pDev,pIOPacket); }
@@ -790,7 +790,7 @@ static int DevSetupVirtualScatterSupport(AR6K_DEVICE *pDev)DevFreeScatterReq ((HIF_DEVICE *)pDev,pReq); } -if (A_FAILED (status)) { +if (status) {DevCleanupVirtualScatterSupport (pDev); }else { pDev->HifScatterInfo.pAllocateReqFunc = DevAllocScatterReq;
@@ -825,7 +825,7 @@ int DevSetupMsgBundling(AR6K_DEVICE *pDev, int MaxMsgsPerTransfer) &pDev->HifScatterInfo, sizeof(pDev->HifScatterInfo)); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_WARN , ("AR6K: ** HIF layer does not support scatter requests (%d) \n" ,status));
@@ -919,7 +919,7 @@ int DevSubmitScatterRequest(AR6K_DEVICE *pDev, HIF_SCATTER_REQ *pScatterReq, A_B status =DEV_PREPARE_SCATTER_OPERATION (pScatterReq); -if (A_FAILED (status)) { +if (status) {if (Async) { pScatterReq->CompletionStatus = status; pScatterReq->CompletionRoutine (pScatterReq);
drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c +12 -12
@@ -85,7 +85,7 @@ int DevPollMboxMsgRecv(AR6K_DEVICE *pDev, status = pDev->GetPendingEventsFunc (pDev->HIFDevice, &events,NULL ); -if (A_FAILED (status)) +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Failed to get pending events \n" ));break ;
@@ -109,7 +109,7 @@ int DevPollMboxMsgRecv(AR6K_DEVICE *pDev,HIF_RD_SYNC_BYTE_INC , NULL); -if (A_FAILED (status)){ +if (status){AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Failed to read register table \n" ));break ; }
@@ -310,7 +310,7 @@ static void DevGetEventAsyncHandler(void *Context, HTC_PACKET *pPacket) do { - if (A_FAILED(pPacket->Status)) { + if (pPacket->Status) { AR_DEBUG_PRINTF(ATH_DEBUG_ERR, (" GetEvents I/O request failed, status:%d \n", pPacket->Status)); /* bail out, don't unmask HIF interrupt */
@@ -501,7 +501,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPr &events, NULL); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -550,7 +550,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPrHIF_RD_SYNC_BYTE_INC , NULL); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -597,7 +597,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPr do { /* did the interrupt status fetches succeed? */ - if (A_FAILED(status)) { + if (status) { break; }
@@ -617,7 +617,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPr* completion routine of the callers read request. This can improve performance * by reducing context switching when we rapidly pull packets */ status = pDev->MessagePendingCallback (pDev->HTCContext, &lookAhead,1 , pASyncProcessing, &fetched); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -637,7 +637,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPrif (HOST_INT_STATUS_CPU_GET (host_int_status)) {/* CPU Interrupt */ status =DevServiceCPUInterrupt (pDev); -if (A_FAILED (status)){ +if (status){break ; } }
@@ -645,7 +645,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPrif (HOST_INT_STATUS_ERROR_GET (host_int_status)) {/* Error Interrupt */ status =DevServiceErrorInterrupt (pDev); -if (A_FAILED (status)){ +if (status){break ; } }
@@ -653,7 +653,7 @@ static int ProcessPendingIRQs(AR6K_DEVICE *pDev, A_BOOL *pDone, A_BOOL *pASyncPrif (HOST_INT_STATUS_COUNTER_GET (host_int_status)) {/* Counter Interrupt */ status =DevServiceCounterInterrupt (pDev); -if (A_FAILED (status)){ +if (status){break ; } }
@@ -697,7 +697,7 @@ int DevDsrHandler(void *context)while (!done) { status =ProcessPendingIRQs (pDev, &done, &asyncProc); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -763,7 +763,7 @@ void DumpAR6KDevState(AR6K_DEVICE *pDev)HIF_RD_SYNC_BYTE_INC , NULL); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("DumpAR6KDevState : Failed to read register table (%d) \n" ,status));return ;
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c +14 -14
@@ -65,7 +65,7 @@ static void DevGMboxIRQActionAsyncHandler(void *Context, HTC_PACKET *pPacket)AR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("+DevGMboxIRQActionAsyncHandler: (dev: 0x%lX)\n" , (unsigned long )pDev)); -if (A_FAILED (pPacket->Status)) { +if (pPacket->Status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("IRQAction Operation (%d) failed! status:%d \n" , pPacket->PktInfo.AsRx.HTCRxFlags,pPacket->Status)); }
@@ -137,7 +137,7 @@ static int DevGMboxCounterEnableDisable(AR6K_DEVICE *pDev, GMBOX_IRQ_ACTION_TYPE NULL); }while (FALSE); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , (" IRQAction Operation (%d) failed! status:%d \n" , IrqAction, status)); }else {
@@ -244,7 +244,7 @@ int DevGMboxIRQAction(AR6K_DEVICE *pDev, GMBOX_IRQ_ACTION_TYPE IrqAction, A_BOOL }while (FALSE); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , (" IRQAction Operation (%d) failed! status:%d \n" , IrqAction, status)); }else {
@@ -285,7 +285,7 @@ int DevSetupGMbox(AR6K_DEVICE *pDev) status =DevGMboxIRQAction (pDev,GMBOX_DISABLE_ALL ,PROC_IO_SYNC ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -305,13 +305,13 @@ int DevSetupGMbox(AR6K_DEVICE *pDev)HIF_WR_SYNC_BYTE_FIX ,/* hit this register 4 times */ NULL); -if (A_FAILED (status)) { +if (status) {break ; } status =GMboxProtocolInstall (pDev); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -348,7 +348,7 @@ int DevCheckGMboxInterrupts(AR6K_DEVICE *pDev) status =A_ECOMM ; } -if (A_FAILED (status)) { +if (status) {if (pDev->GMboxInfo.pTargetFailureCallback !=NULL ) { pDev->GMboxInfo.pTargetFailureCallback (pDev->GMboxInfo.pProtocolContext, status); }
@@ -365,7 +365,7 @@ int DevCheckGMboxInterrupts(AR6K_DEVICE *pDev) } } -if (A_FAILED (status)) { +if (status) {break ; }
@@ -378,7 +378,7 @@ int DevCheckGMboxInterrupts(AR6K_DEVICE *pDev)/* do synchronous read */ status =DevGMboxReadCreditCounter (pDev,PROC_IO_SYNC , &credits); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -522,7 +522,7 @@ static void DevGMboxReadCreditsAsyncHandler(void *Context, HTC_PACKET *pPacket)AR_DEBUG_PRINTF (ATH_DEBUG_IRQ ,("+DevGMboxReadCreditsAsyncHandler: (dev: 0x%lX)\n" , (unsigned long )pDev)); -if (A_FAILED (pPacket->Status)) { +if (pPacket->Status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("Read Credit Operation failed! status:%d \n" , pPacket->Status)); }else {
@@ -583,7 +583,7 @@ int DevGMboxReadCreditCounter(AR6K_DEVICE *pDev, A_BOOL AsyncMode, int *pCredits NULL); }while (FALSE); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , (" DevGMboxReadCreditCounter failed! status:%d \n" , status)); }
@@ -659,7 +659,7 @@ int DevGMboxRecvLookAheadPeek(AR6K_DEVICE *pDev, A_UINT8 *pLookAheadBuffer, intHIF_RD_SYNC_BYTE_INC , NULL); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("DevGMboxRecvLookAheadPeek : Failed to read register table (%d) \n" ,status));break ;
@@ -701,7 +701,7 @@ int DevGMboxSetTargetInterrupt(AR6K_DEVICE *pDev, int Signal, int AckTimeoutMS)HIF_WR_SYNC_BYTE_FIX ,/* hit the register 4 times to align the I/O */ NULL); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -718,7 +718,7 @@ int DevGMboxSetTargetInterrupt(AR6K_DEVICE *pDev, int Signal, int AckTimeoutMS)HIF_RD_SYNC_BYTE_FIX , NULL); -if (A_FAILED (status)) { +if (status) {break ; }
drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c +22 -22
170 lines not on this page · raw message
drivers/staging/ath6kl/htc2/htc.c +9 -9
@@ -137,7 +137,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo)/* setup device layer */ status =DevSetup (&target->Device); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -145,7 +145,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo)/* get the block sizes */ status =HIFConfigureDevice (hif_handle,HIF_DEVICE_GET_MBOX_BLOCK_SIZE , blocksizes,sizeof (blocksizes)); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Failed to get block size info from HIF layer...\n" ));break ; }
@@ -165,7 +165,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo) } } -if (A_FAILED (status)) { +if (status) {break ; }
@@ -192,7 +192,7 @@ HTC_HANDLE HTCCreate(void *hif_handle, HTC_INIT_INFO *pInfo) }while (FALSE); -if (A_FAILED (status)) { +if (status) {if (target !=NULL ) {HTCCleanup (target); target =NULL ;
@@ -249,7 +249,7 @@ int HTCWaitTarget(HTC_HANDLE HTCHandle)/* we should be getting 1 control message that the target is ready */ status =HTCWaitforControlMessage (target, &pPacket); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , (" Target Not Available!!\n" ));break ; }
@@ -305,7 +305,7 @@ int HTCWaitTarget(HTC_HANDLE HTCHandle)/* limit what HTC can handle */ target->MaxMsgPerBundle =min (HTC_HOST_MAX_MSG_PER_BUNDLE , target->MaxMsgPerBundle);/* target supports message bundling, setup device layer */ -if (A_FAILED (DevSetupMsgBundling (&target->Device,target->MaxMsgPerBundle))) { +if (DevSetupMsgBundling (&target->Device,target->MaxMsgPerBundle)) {/* device layer can't handle bundling */ target->MaxMsgPerBundle =0 ; }else {
@@ -351,7 +351,7 @@ int HTCWaitTarget(HTC_HANDLE HTCHandle) &connect, &resp); -if (!A_FAILED (status)) { +if (!status) {break ; }
@@ -419,14 +419,14 @@ int HTCStart(HTC_HANDLE HTCHandle)* target that the setup phase is complete */ status =HTCSendSetupComplete (target); -if (A_FAILED (status)) { +if (status) {break ; }/* unmask interrupts */ status =DevUnmaskInterrupts (&target->Device); -if (A_FAILED (status)) { +if (status) {HTCStop (target); }
drivers/staging/ath6kl/htc2/htc_recv.c +21 -21
168 lines not on this page · raw message
drivers/staging/ath6kl/htc2/htc_send.c +2 -2
@@ -81,7 +81,7 @@ static INLINE void CompleteSentPacket(HTC_TARGET *target, HTC_ENDPOINT *pEndpoin { pPacket->Completion =NULL ; -if (A_FAILED (pPacket->Status)) { +if (pPacket->Status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("CompleteSentPacket: request failed (status:%d, ep:%d, length:%d creds:%d) \n" , pPacket->Status, pPacket->Endpoint, pPacket->ActualLength, pPacket->PktInfo.AsTx.CreditsUsed));
@@ -280,7 +280,7 @@ static void HTCAsyncSendScatterCompletion(HIF_SCATTER_REQ *pScatterReq)DEV_FINISH_SCATTER_OPERATION (pScatterReq); -if (A_FAILED (pScatterReq->CompletionStatus)) { +if (pScatterReq->CompletionStatus) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("** Send Scatter Request Failed: %d \n" ,pScatterReq->CompletionStatus)); status =A_ERROR ; }
drivers/staging/ath6kl/htc2/htc_services.c +2 -2
@@ -184,14 +184,14 @@ int HTCConnectService(HTC_HANDLE HTCHandle,HTC_PREPARE_SEND_PKT (pSendPacket,0 ,0 ,0 ); status =HTCIssueSend (target,pSendPacket); -if (A_FAILED (status)) { +if (status) {break ; }/* wait for response */ status =HTCWaitforControlMessage (target, &pRecvPacket); -if (A_FAILED (status)) { +if (status) {break ; }/* we controlled the buffer creation so it has to be properly aligned */
drivers/staging/ath6kl/include/common/athdefs.h +0 -2
@@ -73,8 +73,6 @@#define A_PHY_ERROR 27/* RX PHY error */ #define A_CONSUMED 28/* Object was consumed */ -#define A_FAILED (x) (!!x) -#ifndef TRUE #define TRUE 1#endif
drivers/staging/ath6kl/miscdrv/ar3kconfig.c +18 -18
@@ -107,7 +107,7 @@ static int RecvHCIEvent(AR3K_CONFIG_INFO *pConfig, status =HCI_TransportRecvHCIEventSync (pConfig->pHCIDev, pRecvPacket,HCI_EVENT_RESP_TIMEOUTMS ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -158,7 +158,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig, status =SendHCICommand (pConfig, pBuffer + pConfig->pHCIProps->HeadRoom, CmdLength); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR3K Config: Failed to send HCI Command (%d) \n" , status));AR_DEBUG_PRINTBUF (pHCICommand,CmdLength,"HCI Bridge Failed HCI Command" );break ;
@@ -167,7 +167,7 @@ int SendHCICommandWaitCommandComplete(AR3K_CONFIG_INFO *pConfig,/* reuse buffer to capture command complete event */ A_MEMZERO (pBuffer,length); status =RecvHCIEvent (pConfig,pBuffer,&length); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR3K Config: HCI event recv failed \n" ));AR_DEBUG_PRINTBUF (pHCICommand,CmdLength,"HCI Bridge Failed HCI Command" );break ;
@@ -229,7 +229,7 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)sizeof (hciBaudChangeCommand), &pEvent, &pBufferToFree); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR3K Config: Baud rate change failed! \n" ));break ; }
@@ -255,7 +255,7 @@ static int AR3KConfigureHCIBaud(AR3K_CONFIG_INFO *pConfig)/* Tell target to change UART baud rate for AR6K */ status =HCI_TransportSetBaudRate (pConfig->pHCIDev, pConfig->AR3KBaudRate); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("AR3K Config: failed to set scale and step values: %d \n" , status));break ;
@@ -323,7 +323,7 @@ static int AR3KConfigureSendHCIReset(AR3K_CONFIG_INFO *pConfig) &pEvent, &pBufferToFree ); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR3K Config: HCI reset failed! \n" )); }
@@ -384,7 +384,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)if (pBufferToFree !=NULL ) {A_FREE (pBufferToFree); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("HostWakeup Config Failed! \n" ));return status; }
@@ -399,7 +399,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)if (pBufferToFree !=NULL ) {A_FREE (pBufferToFree); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Target Wakeup Config Failed! \n" ));return status; }
@@ -414,7 +414,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)if (pBufferToFree !=NULL ) {A_FREE (pBufferToFree); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("HostWakeup Enable Failed! \n" ));return status; }
@@ -429,7 +429,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)if (pBufferToFree !=NULL ) {A_FREE (pBufferToFree); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Target Wakeup Enable Failed! \n" ));return status; }
@@ -444,7 +444,7 @@ static int AR3KEnableTLPM(AR3K_CONFIG_INFO *pConfig)if (pBufferToFree !=NULL ) {A_FREE (pBufferToFree); } -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Sleep Enable Failed! \n" )); }
@@ -468,13 +468,13 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)/* disable asynchronous recv while we issue commands and receive events synchronously */ status =HCI_TransportEnableDisableAsyncRecv (pConfig->pHCIDev,FALSE); -if (A_FAILED (status)) { +if (status) {break ; }if (pConfig->Flags &AR3K_CONFIG_FLAG_FORCE_MINBOOT_EXIT ) { status =AR3KExitMinBoot (pConfig); -if (A_FAILED (status)) { +if (status) {break ; } }
@@ -491,7 +491,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)if (pConfig->Flags & (AR3K_CONFIG_FLAG_SET_AR3K_BAUD |AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP )) { status =AR3KConfigureHCIBaud (pConfig); -if (A_FAILED (status)) { +if (status) {break ; } }
@@ -508,7 +508,7 @@ int AR3KConfigure(AR3K_CONFIG_INFO *pConfig)/* re-enable asynchronous recv */ status =HCI_TransportEnableDisableAsyncRecv (pConfig->pHCIDev,TRUE); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -537,21 +537,21 @@ int AR3KConfigureExit(void *config)/* disable asynchronous recv while we issue commands and receive events synchronously */ status =HCI_TransportEnableDisableAsyncRecv (pConfig->pHCIDev,FALSE); -if (A_FAILED (status)) { +if (status) {break ; }if (pConfig->Flags & (AR3K_CONFIG_FLAG_SET_AR3K_BAUD |AR3K_CONFIG_FLAG_SET_AR6K_SCALE_STEP )) { status =AR3KConfigureHCIBaud (pConfig); -if (A_FAILED (status)) { +if (status) {break ; } }/* re-enable asynchronous recv */ status =HCI_TransportEnableDisableAsyncRecv (pConfig->pHCIDev,TRUE); -if (A_FAILED (status)) { +if (status) {break ; }
drivers/staging/ath6kl/miscdrv/common_drv.c +9 -9
@@ -428,7 +428,7 @@ int ar6000_reset_device(HIF_DEVICE *hifDevice, A_UINT32 TargetType, A_BOOL waitF status =ar6000_WriteRegDiag (hifDevice, &address, &data); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -458,7 +458,7 @@ int ar6000_reset_device(HIF_DEVICE *hifDevice, A_UINT32 TargetType, A_BOOL waitF data =0 ; status =ar6000_ReadRegDiag (hifDevice, &address, &data); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -472,7 +472,7 @@ int ar6000_reset_device(HIF_DEVICE *hifDevice, A_UINT32 TargetType, A_BOOL waitF }while (FALSE); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_LOG_ERR , ("Failed to reset target \n" )); }
@@ -579,7 +579,7 @@ void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType)/* read RAM location through diagnostic window */ status =ar6000_ReadRegDiag (hifDevice, &address, ®DumpArea); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR6K: Failed to get ptr to register dump area \n" ));break ; }
@@ -599,7 +599,7 @@ void ar6000_dump_target_assert_info(HIF_DEVICE *hifDevice, A_UINT32 TargetType) (A_UCHAR *)®DumpValues[0 ], regDumpCount * (sizeof(A_UINT32))); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("AR6K: Failed to get register dump \n" ));break ; }
@@ -638,7 +638,7 @@ int ar6000_set_htc_params(HIF_DEVICE *hifDevice, status =HIFConfigureDevice (hifDevice,HIF_DEVICE_GET_MBOX_BLOCK_SIZE , blocksizes,sizeof (blocksizes)); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_LOG_ERR ,("Failed to get block size info from HIF layer...\n" ));break ; }
@@ -658,7 +658,7 @@ int ar6000_set_htc_params(HIF_DEVICE *hifDevice, (A_UCHAR *)&blocksizes[1 ], 4); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_LOG_ERR ,("BMIWriteMemory for IO block size failed \n" ));break ; }
@@ -673,7 +673,7 @@ int ar6000_set_htc_params(HIF_DEVICE *hifDevice, (A_UCHAR *)&MboxIsrYieldValue, 4); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_LOG_ERR ,("BMIWriteMemory for yield limit failed \n" ));break ; }
@@ -771,7 +771,7 @@ ar6002_REV1_reset_force_host (HIF_DEVICE *hifDevice) address =0x004ed4b0 ;/* REV1 target software ID is stored here */ status =ar6000_ReadRegDiag (hifDevice, &address, &data); -if (A_FAILED (status) || (data !=AR6002_VERSION_REV1 )) { +if (status || (data !=AR6002_VERSION_REV1 )) {return A_ERROR ;/* Not AR6002 REV1 */ }
drivers/staging/ath6kl/os/linux/ar6000_drv.c +17 -19
@@ -866,7 +866,7 @@ ar6000_sysfs_bmi_init(AR_SOFTC_T *ar) &ar->osDevInfo, sizeof(HIF_DEVICE_OS_DEVICE_INFO)); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("BMI: Failed to get OS device info from HIF\n" ));return A_ERROR ; }
@@ -1536,18 +1536,16 @@ ar6000_configure_target(AR_SOFTC_T *ar)/* since BMIInit is called in the driver layer, we have to set the block * size here for the target */ -if (A_FAILED (ar6000_set_htc_params (ar->arHifDevice, - ar->arTargetType, - mbox_yield_limit, -0 /* use default number of control buffers */ - ))) { +if (ar6000_set_htc_params (ar->arHifDevice, ar->arTargetType, + mbox_yield_limit,0 )) { +/* use default number of control buffers */ return A_ERROR ; }if (setupbtdev !=0 ) { -if (A_FAILED (ar6000_set_hci_bridge_flags (ar->arHifDevice, - ar->arTargetType, - setupbtdev))) { +if (ar6000_set_hci_bridge_flags (ar->arHifDevice, + ar->arTargetType, + setupbtdev)) {return A_ERROR ; } }
@@ -1841,7 +1839,7 @@ ar6000_avail_ev(void *context, void *hif_handle) (unsigned long)ar)); avail_ev_failed : -if (A_FAILED (init_status)) { +if (init_status) {if (bmienable) {ar6000_sysfs_bmi_deinit (ar); }
@@ -2359,7 +2357,7 @@ static int ar6000_connectservice(AR_SOFTC_T *ar, pConnect, &response); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,(" Failed to connect to %s service status:%d \n" , pDesc, status));break ;
@@ -2502,7 +2500,7 @@ int ar6000_init(struct net_device *dev)*/ status =HTCWaitTarget (ar->arHtcTarget); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2533,7 +2531,7 @@ int ar6000_init(struct net_device *dev) status =ar6000_connectservice (ar, &connect,"WMI CONTROL" ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2563,7 +2561,7 @@ int ar6000_init(struct net_device *dev) status =ar6000_connectservice (ar, &connect,"WMI DATA BE" ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2573,7 +2571,7 @@ int ar6000_init(struct net_device *dev) status =ar6000_connectservice (ar, &connect,"WMI DATA BK" ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2583,7 +2581,7 @@ int ar6000_init(struct net_device *dev) status =ar6000_connectservice (ar, &connect,"WMI DATA VI" ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2596,7 +2594,7 @@ int ar6000_init(struct net_device *dev) status =ar6000_connectservice (ar, &connect,"WMI DATA VO" ); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -2636,7 +2634,7 @@ int ar6000_init(struct net_device *dev) }while (FALSE); -if (A_FAILED (status)) { +if (status) { ret = -EIO ; goto ar6000_init_done; }
@@ -3455,7 +3453,7 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue) } } -if (A_FAILED (status)) { +if (status) {if (status ==A_ECANCELED ) {/* a packet was flushed */ flushing = TRUE;
drivers/staging/ath6kl/os/linux/ar6000_raw_if.c +4 -4
@@ -147,7 +147,7 @@ static int ar6000_connect_raw_service(AR_SOFTC_T *ar, &connect, &response); -if (A_FAILED (status)) { +if (status) {if (response.ConnectRespCode ==HTC_SERVICE_NO_MORE_EP ) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("HTC RAW , No more streams allowed \n" )); status =A_OK ;
@@ -187,7 +187,7 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar)/* wait for target */ status =HTCWaitTarget (ar->arHtcTarget); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("HTCWaitTarget failed (%d)\n" , status));return -ENODEV ; }
@@ -206,7 +206,7 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar)/* try to connect to the raw service */ status =ar6000_connect_raw_service (ar,streamID); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -245,7 +245,7 @@ int ar6000_htc_raw_open(AR_SOFTC_T *ar) arRaw->write_buffer_available[streamID] = TRUE; } -if (A_FAILED (status)) { +if (status) {return -EIO ; }
drivers/staging/ath6kl/os/linux/ar6k_pal.c +3 -3
@@ -304,7 +304,7 @@ static int bt_setup_hci_pal(ar6k_hci_pal_info_t *pHciPalInfo) }while (FALSE); -if (A_FAILED (status)) { +if (status) {bt_cleanup_hci_pal (pHciPalInfo); }return status;
@@ -423,7 +423,7 @@ int ar6k_setup_hci_pal(void *ar_p) pHciPalInfo->ar = ar; status =bt_setup_hci_pal (pHciPalInfo); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -437,7 +437,7 @@ int ar6k_setup_hci_pal(void *ar_p)ar6k_pal_transport_ready (ar->hcipal_info); }while (FALSE); -if (A_FAILED (status)) { +if (status) {ar6k_cleanup_hci_pal (ar); }return status;
drivers/staging/ath6kl/os/linux/hci_bridge.c +9 -9
@@ -248,7 +248,7 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle,/* start transport */ status =HCI_TransportStart (pHcidevInfo->pHCIDev); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -304,14 +304,14 @@ static int ar6000_hci_transport_ready(HCI_TRANSPORT_HANDLE HCIHandle,/* configure the AR3K device */ memcpy (ar3kconfig.bdaddr,pHcidevInfo->ar->bdaddr,6 ); status =AR3KConfigure (&ar3kconfig); -if (A_FAILED (status)) { +if (status) {break ; }/* Make sure both AR6K and AR3K have power management enabled */ if (ar3kconfig.PwrMgmtEnabled) { status =HCI_TransportEnablePowerMgmt (pHcidevInfo->pHCIDev, TRUE); -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("HCI Bridge: failed to enable TLPM for AR6K! \n" )); } }
@@ -354,7 +354,7 @@ static void ar6000_hci_send_complete(void *pContext, HTC_PACKET *pPacket)A_ASSERT (osbuf !=NULL );A_ASSERT (pHcidevInfo !=NULL ); -if (A_FAILED (pPacket->Status)) { +if (pPacket->Status) {if ((pPacket->Status !=A_ECANCELED ) && (pPacket->Status !=A_NO_RESOURCE )) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("HCI Bridge: Send Packet Failed: %d \n" ,pPacket->Status)); }
@@ -376,7 +376,7 @@ static void ar6000_hci_pkt_recv(void *pContext, HTC_PACKET *pPacket) do { - if (A_FAILED(pPacket->Status)) { + if (pPacket->Status) { break; }
@@ -499,7 +499,7 @@ int ar6000_setup_hci(AR_SOFTC_T *ar) ar->exitCallback = AR3KConfigureExit; status =bt_setup_hci (pHcidevInfo); -if (A_FAILED (status)) { +if (status) {break ; }
@@ -546,7 +546,7 @@ int ar6000_setup_hci(AR_SOFTC_T *ar) }while (FALSE); -if (A_FAILED (status)) { +if (status) {if (pHcidevInfo !=NULL ) {if (NULL == pHcidevInfo->pHCIDev) {/* GMBOX may not be present in older chips */
@@ -877,7 +877,7 @@ static int bt_setup_hci(AR6K_HCI_BRIDGE_INFO *pHcidevInfo) sizeof(osDevInfo));#endif -if (A_FAILED (status)) { +if (status) {AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("Failed to OS device info from HIF\n" ));break ; }
@@ -906,7 +906,7 @@ static int bt_setup_hci(AR6K_HCI_BRIDGE_INFO *pHcidevInfo) }while (FALSE); -if (A_FAILED (status)) { +if (status) {bt_cleanup_hci (pHcidevInfo); }
drivers/staging/ath6kl/os/linux/ioctl.c +3 -3
@@ -2203,7 +2203,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)0 ,/* use default yield */ 0 /* use default number of HTC ctrl buffers */ ); -if (A_FAILED (ret)) { +if (ret) {break ; }/* Terminate the BMI phase */
@@ -4276,7 +4276,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)break ; } -if (A_FAILED (a_set_module_mask (moduleinfo.modulename, moduleinfo.mask))) { +if (a_set_module_mask (moduleinfo.modulename, moduleinfo.mask)) { ret = -EFAULT ; }
@@ -4291,7 +4291,7 @@ int ar6000_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)break ; } -if (A_FAILED (a_get_module_mask (moduleinfo.modulename, &moduleinfo.mask))) { +if (a_get_module_mask (moduleinfo.modulename, &moduleinfo.mask)) { ret = -EFAULT ;break ; }
drivers/staging/ath6kl/wmi/wmi.c +3 -3
@@ -3144,7 +3144,7 @@ wmi_sync_point(struct wmi_t *wmip)/* if Buffer allocation for any of the dataSync fails, then do not * send the Synchronize cmd on the control ep */ -if (A_FAILED (status)) { +if (status) {break ; }
@@ -3155,7 +3155,7 @@ wmi_sync_point(struct wmi_t *wmip) status =wmi_cmd_send (wmip, cmd_osbuf,WMI_SYNCHRONIZE_CMDID ,NO_SYNC_WMIFLAG ); -if (A_FAILED (status)) { +if (status) {break ; }/* cmd buffer sent, we no longer own it */
@@ -3170,7 +3170,7 @@ wmi_sync_point(struct wmi_t *wmip) trafficClass) ); -if (A_FAILED (status)) { +if (status) {break ; }/* we don't own this buffer anymore, NULL it out of the array so it
Signature · 1 line
1.7.4.rc3
PATCH 6/15 staging: ath6kl: Convert bypasswmi to bool
In reply to Joe PerchesTypes should match logical uses.
Remove unused extern, make static.
--- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 8 ++++---- drivers/staging/ath6kl/os/linux/ioctl.c | 1 - 2 files changed, 4 insertions(+), 5 deletions(-)
drivers/staging/ath6kl/os/linux/ar6000_drv.c +4 -4
@@ -123,7 +123,7 @@ int bmienable = BMIENABLE_DEFAULT;char ifname[IFNAMSIZ ] = {0 ,};int wlaninitmode =WLAN_INIT_MODE_DEFAULT ; -unsigned int bypasswmi =0 ; +static bool bypasswmi;unsigned int debuglevel =0 ;int tspecCompliance =ATHEROS_COMPLIANCE ;unsigned int busspeedlow =0 ;
@@ -165,7 +165,7 @@ unsigned int eppingtest=0;module_param_string (ifname, ifname,sizeof (ifname),0644 );module_param (wlaninitmode, int,0644 );module_param (bmienable, int,0644 ); -module_param (bypasswmi, uint,0644 ); +module_param (bypasswmi, bool,0644 );module_param (debuglevel, uint,0644 );module_param (tspecCompliance, int,0644 );module_param (onebitmode, uint,0644 );
@@ -1024,7 +1024,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, A }if (eppingtest) { - bypasswmi = TRUE; + bypasswmi = true;if (ar->arVersion.target_ver ==AR6003_REV1_VERSION ) { filename =AR6003_REV1_EPPING_FIRMWARE_FILE ; }else if (ar->arVersion.target_ver ==AR6003_REV2_VERSION ) {
@@ -3512,7 +3512,7 @@ ar6000_tx_complete(void *Context, HTC_PACKET_QUEUE *pPacketQueue)A_NETBUF_FREE (pktSkb); } -if ((ar->arConnected == TRUE) || (bypasswmi)) { +if ((ar->arConnected == TRUE) || bypasswmi) {if (!flushing) {/* don't wake the queue if we are flushing, other wise it will just * keep queueing packets, which will keep failing */
drivers/staging/ath6kl/os/linux/ioctl.c +0 -1
@@ -34,7 +34,6 @@ extern unsigned int wmitimeout;extern A_WAITQUEUE_HEAD arEvent;extern int tspecCompliance;extern int bmienable; -extern int bypasswmi;extern int loghci; static int
Signature · 1 line
1.7.4.rc3
PATCH 7/15 staging: ath6kl: Convert type of streamExists to A_UINT8
In reply to Joe PerchesMake the declaration type match the assigned from type. It's not a bool, it's a u8.
--- drivers/staging/ath6kl/wmi/wmi.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/ath6kl/wmi/wmi.c +1 -1
@@ -537,7 +537,7 @@ A_UINT8 wmi_implicit_create_pstream(struct wmi_t *wmip, void *osbuf, A_UINT32 laA_UINT8 trafficClass =WMM_AC_BE ;A_UINT16 ipType =IP_ETHERTYPE ;WMI_DATA_HDR *dtHdr; -A_BOOL streamExists = FALSE; +A_UINT8 streamExists =0 ;A_UINT8 userPriority;A_UINT32 hdrsize, metasize;ATH_LLC_SNAP_HDR *llcHdr;
Signature · 1 line
1.7.4.rc3
PATCH 8/15 staging: ath6kl: Convert BDADDR_Present uses to TRUE/FALSE bugfix
In reply to Joe PerchesThe previous uses of BDADDR_Present set the initial value to A_ERROR (-1) when not present and A_OK (0) when present.
A later test for (!BDADDR_Present) was therefore logically inverted. Convert the values to TRUE/FALSE and the test is now logically correct.
--- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c +2 -2
@@ -663,7 +663,7 @@ int AthDoParsePS(A_UCHAR *srcbuffer, A_UINT32 srclen) {int status;int i; -A_BOOL BDADDR_Present =A_ERROR ; +A_BOOL BDADDR_Present = FALSE; Tag_Count =0 ;
@@ -689,7 +689,7 @@ int AthDoParsePS(A_UCHAR *srcbuffer, A_UINT32 srclen)else {for (i=0 ; i<Tag_Count; i++){if (PsTagEntry[i].TagId ==1 ){ - BDADDR_Present =A_OK ; + BDADDR_Present = TRUE;AR_DEBUG_PRINTF (ATH_DEBUG_ERR ,("BD ADDR is present in Patch File \r\n" )); }
Signature · 1 line
1.7.4.rc3
PATCH 9/15 staging: ath6kl: Convert A_BOOL compressed sets from 0 to FALSE
In reply to Joe PerchesUse the appropriate define.
--- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/ath6kl/os/linux/ar6000_drv.c +3 -3
@@ -1034,7 +1034,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, A ar->arVersion.target_ver));return A_ERROR ; } - compressed =0 ; + compressed = FALSE; }#ifdef CONFIG_HOST_TCMD_SUPPORT
@@ -1047,7 +1047,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, AAR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("Unknown firmware revision: %d\n" , ar->arVersion.target_ver)); return A_ERROR; } - compressed =0 ; + compressed = FALSE; }#endif #ifdef HTC_RAW_INTERFACE
@@ -1060,7 +1060,7 @@ ar6000_transfer_bin_file(AR_SOFTC_T *ar, AR6K_BIN_FILE file, A_UINT32 address, AAR_DEBUG_PRINTF (ATH_DEBUG_ERR , ("Unknown firmware revision: %d\n" , ar->arVersion.target_ver)); return A_ERROR; } - compressed =0 ; + compressed = FALSE; }#endif break;
Signature · 1 line
1.7.4.rc3
PATCH 10/15 staging: ath6kl: Convert 0 to FALSE
In reply to Joe PerchesConvert a set of an A_BOOL from 0 to FALSE.
--- drivers/staging/ath6kl/os/linux/ar6000_android.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/ath6kl/os/linux/ar6000_android.c +1 -1
@@ -29,7 +29,7 @@#include <linux/earlysuspend.h> #endif -A_BOOL enable_mmc_host_detect_change =0 ; +A_BOOL enable_mmc_host_detect_change = FALSE;static void ar6000_enable_mmchost_detect_change (int enable);
Signature · 1 line
1.7.4.rc3
PATCH 11/15 staging: ath6kl: cfg80211: Convert forceFgScan to A_UINT32
In reply to Joe PerchesIt's declared that way in the prototype, use it that way too.
--- drivers/staging/ath6kl/os/linux/cfg80211.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ath6kl/os/linux/cfg80211.c +2 -2
@@ -726,7 +726,7 @@ ar6k_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, {AR_SOFTC_T *ar = (AR_SOFTC_T *)ar6k_priv (ndev);int ret =0 ; -A_BOOL forceFgScan = FALSE; +A_UINT32 forceFgScan =0 ;AR_DEBUG_PRINTF (ATH_DEBUG_INFO , ("%s: \n" , __func__));
@@ -765,7 +765,7 @@ ar6k_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev, }if (ar->arConnected) { - forceFgScan = TRUE; + forceFgScan =1 ; } if(wmi_startscan_cmd(ar->arWmi, WMI_LONG_SCAN, forceFgScan, FALSE, \
Signature · 1 line
1.7.4.rc3
PATCH 12/15 staging: ath6kl: Convert A_UINT8 is_amsdu and is_acl_data_frame to A_BOOL
In reply to Joe PerchesUse A_BOOL as appropriate for actual variable uses.
--- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-)
drivers/staging/ath6kl/os/linux/ar6000_drv.c +4 -2
@@ -3630,7 +3630,9 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket)wmi_control_rx (ar->arWmi, skb); }else {WMI_DATA_HDR *dhdr = (WMI_DATA_HDR *)A_NETBUF_DATA (skb); -A_UINT8 is_amsdu, tid, is_acl_data_frame; +A_BOOL is_amsdu; +A_UINT8 tid; +A_BOOL is_acl_data_frame; is_acl_data_frame =WMI_DATA_HDR_GET_DATA_TYPE (dhdr) ==WMI_DATA_HDR_DATA_TYPE_ACL ;#ifdef CONFIG_PM ar6000_check_wow_status (ar,NULL , FALSE);
@@ -3751,7 +3753,7 @@ ar6000_rx(void *Context, HTC_PACKET *pPacket) } } - is_amsdu =WMI_DATA_HDR_IS_AMSDU (dhdr); + is_amsdu =WMI_DATA_HDR_IS_AMSDU (dhdr) ? TRUE : FALSE; tid =WMI_DATA_HDR_GET_UP (dhdr); seq_no =WMI_DATA_HDR_GET_SEQNO (dhdr); meta_type =WMI_DATA_HDR_GET_META (dhdr);
Signature · 1 line
1.7.4.rc3
Re: [PATCH 12/15] staging: ath6kl: Convert A_UINT8 is_amsdu and is_acl_data_frame to A_BOOL
drivers/staging/ath6kl/os/linux/ar6000_drv.c ar6000_rx(void *Context, HTC_PACKET *pPacket) · line 3635
Quoted 4 lines · Joe Perches
drivers/staging/ath6kl/os/linux/ar6000_drv.c +3
-1-A_UINT8 is_amsdu, tid, is_acl_data_frame; +A_BOOL is_amsdu; +A_UINT8 tid; +A_BOOL is_acl_data_frame;
Just use bool for bool and u8 for u8. It's not reasonable for everyone to rename basic types for every driver. (Unless Atheros bool really is different from other people's bool then it would be totally reasonable).
regards,
dan carpenter
Re: [PATCH 12/15] staging: ath6kl: Convert A_UINT8 is_amsdu and is_acl_data_frame to A_BOOL
Quoted 9 lines · Dan Carpenter
drivers/staging/ath6kl/os/linux/ar6000_drv.c ar6000_rx(void *Context, HTC_PACKET *pPacket) · line 3635
Quoted 4 lines · Joe Perches
drivers/staging/ath6kl/os/linux/ar6000_drv.c +3
-1-A_UINT8 is_amsdu, tid, is_acl_data_frame; +A_BOOL is_amsdu; +A_UINT8 tid; +A_BOOL is_acl_data_frame;Just use bool for bool and u8 for u8. It's not reasonable for everyone to rename basic types for every driver. (Unless Atheros bool really is different from other people's bool then it would be totally reasonable).
That's a whole set of later patches.
No worries, they're coming.
At this point, doing a straight rename causes some defects.
PATCH 13/15 staging: ath6kl: Convert A_NETBUF_QUEUE_EMPTY to return TRUE or FALSE
In reply to Joe PerchesMake the return an A_BOOL not int.
--- .../staging/ath6kl/os/linux/include/osapi_linux.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/staging/ath6kl/os/linux/include/osapi_linux.h +1 -1
@@ -247,7 +247,7 @@ typedef struct sk_buff_head A_NETBUF_QUEUE_T;#define A_NETBUF_QUEUE_SIZE (q) \ a_netbuf_queue_size(q)#define A_NETBUF_QUEUE_EMPTY (q) \ - a_netbuf_queue_empty(q) + (a_netbuf_queue_empty(q) ? TRUE : FALSE)/* * Network buffer support
Signature · 1 line
1.7.4.rc3
PATCH 14/15 staging: ath6kl: Convert sets of scanSpecificSsid to TRUE/FALSE.
In reply to Joe PerchesDon't use 0/1 for an A_BOOL.
--- drivers/staging/ath6kl/os/linux/wireless_ext.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/ath6kl/os/linux/wireless_ext.c +3 -3
@@ -2510,14 +2510,14 @@ ar6000_ioctl_siwscan(struct net_device *dev,return -EIO ;if (wmi_probedSsid_cmd (ar->arWmi,1 ,SPECIFIC_SSID_FLAG , req.essid_len, req.essid) !=A_OK )return -EIO ; - ar->scanSpecificSsid =1 ; + ar->scanSpecificSsid = TRUE; }else {if (ar->scanSpecificSsid) {if (wmi_probedSsid_cmd (ar->arWmi,1 ,DISABLE_SSID_FLAG ,0 ,NULL ) !=A_OK )return -EIO ; - ar->scanSpecificSsid =0 ; + ar->scanSpecificSsid = FALSE; } } }
@@ -2526,7 +2526,7 @@ ar6000_ioctl_siwscan(struct net_device *dev,if (ar->scanSpecificSsid) {if (wmi_probedSsid_cmd (ar->arWmi,1 ,DISABLE_SSID_FLAG ,0 ,NULL ) !=A_OK )return -EIO ; - ar->scanSpecificSsid =0 ; + ar->scanSpecificSsid = FALSE; } }#endif
Signature · 1 line
1.7.4.rc3
PATCH 15/15 staging: ath6kl: Convert tspecCompliance from A_BOOL to int
In reply to Joe PerchesMake the use in wmi_verify_tspec_params match the declaration of the variable.
--- drivers/staging/ath6kl/include/wmi_api.h | 2 +- drivers/staging/ath6kl/wmi/wmi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/ath6kl/include/wmi_api.h +1 -1
@@ -234,7 +234,7 @@ int wmi_set_voice_pkt_size_cmd(struct wmi_t *wmip, A_UINT16 voicePktSize);int wmi_set_max_sp_len_cmd (struct wmi_t *wmip,A_UINT8 maxSpLen);A_UINT8 convert_userPriority_to_trafficClass (A_UINT8 userPriority);A_UINT8 wmi_get_power_mode_cmd (struct wmi_t *wmip); -int wmi_verify_tspec_params (WMI_CREATE_PSTREAM_CMD *pCmd,A_BOOL tspecCompliance); +int wmi_verify_tspec_params (WMI_CREATE_PSTREAM_CMD *pCmd,int tspecCompliance);#ifdef CONFIG_HOST_TCMD_SUPPORT int wmi_test_cmd (struct wmi_t *wmip,A_UINT8 *buf,A_UINT32 len);
drivers/staging/ath6kl/wmi/wmi.c +1 -1
@@ -4650,7 +4650,7 @@ wmi_get_power_mode_cmd(struct wmi_t *wmip) }int -wmi_verify_tspec_params (WMI_CREATE_PSTREAM_CMD *pCmd,A_BOOL tspecCompliance) +wmi_verify_tspec_params (WMI_CREATE_PSTREAM_CMD *pCmd,int tspecCompliance) {int ret =A_OK ;
Signature · 1 line
1.7.4.rc3
A message that is not in the archive (sent off-list or not yet received): d1deb8a42497651898ad03bda9018d9deca93f12.1296186677.git.joe@perches.com
Re: [PATCH 05/15] staging: ath6kl: wmi.h: Convert packed structures with A_BOOL to u32
Quoted 6 lines · Joe Perches
From: Joe Perches <joe@atheros-desktop.(none)>
These structures are device native and need to be 4 bytes long.
Signed-off-by Joe Perches <joe@atheros-desktop.(none)>---
You should fix your email address here
Quoted 73 lines
drivers/staging/ath6kl/include/common/wmi.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)drivers/staging/ath6kl/include/common/wmi.h +2
-2@@ -635,8 +635,8 @@ typedef enum { } WMI_SCAN_TYPE; typedef PREPACK struct { - A_BOOL forceFgScan; - A_BOOL isLegacy; /* For Legacy Cisco AP compatibility */ + u32 forceFgScan; + u32 isLegacy; /* For Legacy Cisco AP compatibility */
A_UINT32homeDwellTime; /* Maximum duration in the home channel(milliseconds) */A_UINT32forceScanInterval; /* Time interval between scans (milliseconds)*/A_UINT8scanType; /*WMI_SCAN_TYPE*/drivers/staging/ath6kl/include/common/wmi.h +6
-7@@ -1241,7 +1241,7 @@ typedef PREPACK struct {* WMI_ENABLE_RM_CMDID */ typedef PREPACK struct { - A_BOOL enable_radio_measurements; + u32 enable_radio_measurements; } POSTPACK WMI_ENABLE_RM_CMD; /*@@ -2638,7 +2638,7 @@ typedef PREPACK struct { } POSTPACK WMI_SET_KEEPALIVE_CMD; typedef PREPACK struct { - A_BOOL configured; + u32 configured; A_UINT8 keepaliveInterval; } POSTPACK WMI_GET_KEEPALIVE_CMD;@@ -2717,8 +2717,8 @@ typedef PREPACK struct { } POSTPACK WMI_SET_IP_CMD; typedef PREPACK struct { - A_BOOL awake; - A_BOOL asleep; + u32 awake; + u32 asleep; } POSTPACK WMI_SET_HOST_SLEEP_MODE_CMD; typedef enum {@@ -2726,7 +2726,7 @@ typedef enum { } WMI_WOW_FILTER; typedef PREPACK struct { - A_BOOL enable_wow; + u32 enable_wow; WMI_WOW_FILTER filter; A_UINT16 hostReqDelay; } POSTPACK WMI_SET_WOW_MODE_CMD;@@ -3010,7 +3010,7 @@ typedef PREPACK struct { } POSTPACK WMI_AP_PROT_SCAN_TIME_CMD; typedef PREPACK struct { - A_BOOL flag; + u32 flag; A_UINT16 aid; } POSTPACK WMI_AP_SET_PVB_CMD; --1.7.4.rc3
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
Signature · 2 lines
Regards, Denis
Quoted 75 lines · Joe Perches
First block of many patches to be sent in blocks of 15.
The following changes since commit
af109f2e323e9dc6aeb49962e3bc0237ce653cb9:Staging: Westbridge: fix
EXPORT_SYMBOLerrors reported by checkpatch.pl (2011-01-26 15:02:53 +0800)are available in the git repository at:
git://repo.or.cz/linux-2.6/trivial-mods.git20110127_ath6klJoe Perches (15):
staging: ath6kl: Update cfg80211 to recent calling convention changes
staging: ath6kl: Convert enumA_STATUSto int
staging: ath6kl: RemoveA_SUCCESSmacro
staging: ath6kl: RemoveA_FAILEDmacro
staging: ath6kl:wmi.h: Convert packed structures withA_BOOLto u32
staging: ath6kl: Convert bypasswmi to bool
staging: ath6kl: Convert type of streamExists toA_UINT8
staging: ath6kl: ConvertBDADDR_Presentuses to TRUE/FALSE bugfix
staging: ath6kl: ConvertA_BOOLcompressed sets from 0 to FALSE
staging: ath6kl: Convert 0 to FALSE
staging: ath6kl: cfg80211: Convert forceFgScan toA_UINT32
staging: ath6kl: ConvertA_UINT8is_amsduandis_acl_data_frametoA_BOOL
staging: ath6kl: ConvertA_NETBUF_QUEUE_EMPTYto return TRUE or FALSE
staging: ath6kl: Convert sets of scanSpecificSsid to TRUE/FALSE.
staging: ath6kl: Convert tspecCompliance fromA_BOOLto intdrivers/staging/ath6kl/bmi/include/bmi_internal.h | 4 +- drivers/staging/ath6kl/bmi/src/bmi.c | 80 ++-- .../hif/sdio/linux_sdio/include/hif_internal.h | 10 +- .../staging/ath6kl/hif/sdio/linux_sdio/src/hif.c | 52 +- .../ath6kl/hif/sdio/linux_sdio/src/hif_scatter.c | 18 +- drivers/staging/ath6kl/htc2/AR6000/ar6k.c | 102 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k.h | 88 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k_events.c | 66 ++-- drivers/staging/ath6kl/htc2/AR6000/ar6k_gmbox.c | 74 ++-- .../ath6kl/htc2/AR6000/ar6k_gmbox_hciuart.c | 123 +++--- drivers/staging/ath6kl/htc2/htc.c | 28 +- drivers/staging/ath6kl/htc2/htc_internal.h | 8 +- drivers/staging/ath6kl/htc2/htc_recv.c | 92 ++-- drivers/staging/ath6kl/htc2/htc_send.c | 14 +- drivers/staging/ath6kl/htc2/htc_services.c | 12 +- drivers/staging/ath6kl/include/a_debug.h | 4 +- drivers/staging/ath6kl/include/ar3kconfig.h | 4 +- drivers/staging/ath6kl/include/ar6000_diag.h | 10 +- drivers/staging/ath6kl/include/bmi.h | 34 +- drivers/staging/ath6kl/include/common/athdefs.h | 78 ++-- drivers/staging/ath6kl/include/common/wmi.h | 16 +- drivers/staging/ath6kl/include/common_drv.h | 24 +- drivers/staging/ath6kl/include/dset_api.h | 4 +- drivers/staging/ath6kl/include/gpio_api.h | 10 +- drivers/staging/ath6kl/include/hci_transport_api.h | 18 +- drivers/staging/ath6kl/include/hif.h | 34 +- drivers/staging/ath6kl/include/htc_api.h | 18 +- drivers/staging/ath6kl/include/htc_packet.h | 2 +- drivers/staging/ath6kl/include/wlan_api.h | 2 +- drivers/staging/ath6kl/include/wmi_api.h | 274 +++++----- drivers/staging/ath6kl/miscdrv/ar3kconfig.c | 76 ++-- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.c | 28 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsconfig.h | 4 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.c | 22 +- .../staging/ath6kl/miscdrv/ar3kps/ar3kpsparser.h | 6 +- drivers/staging/ath6kl/miscdrv/common_drv.c | 84 ++-- drivers/staging/ath6kl/miscdrv/credit_dist.c | 2 +- drivers/staging/ath6kl/os/linux/ar6000_android.c | 8 +- drivers/staging/ath6kl/os/linux/ar6000_drv.c | 172 ++++---- drivers/staging/ath6kl/os/linux/ar6000_pm.c | 34 +- drivers/staging/ath6kl/os/linux/ar6000_raw_if.c | 14 +- drivers/staging/ath6kl/os/linux/ar6k_pal.c | 20 +- drivers/staging/ath6kl/os/linux/cfg80211.c | 20 +- .../staging/ath6kl/os/linux/export_hci_transport.c | 28 +- drivers/staging/ath6kl/os/linux/hci_bridge.c | 66 ++-- .../staging/ath6kl/os/linux/include/ar6000_drv.h | 8 +- .../ath6kl/os/linux/include/ar6xapi_linux.h | 30 +- drivers/staging/ath6kl/os/linux/include/cfg80211.h | 2 +- .../ath6kl/os/linux/include/export_hci_transport.h | 22 +-
Quoted 12 lines
.../staging/ath6kl/os/linux/include/osapi_linux.h | 20 +- drivers/staging/ath6kl/os/linux/ioctl.c | 45 +- drivers/staging/ath6kl/os/linux/netbuf.c | 18 +- drivers/staging/ath6kl/os/linux/wireless_ext.c | 14 +- drivers/staging/ath6kl/reorder/rcv_aggr.c | 4 +- drivers/staging/ath6kl/wlan/src/wlan_recv_beacon.c | 2 +- drivers/staging/ath6kl/wmi/wmi.c | 538 ++++++++++---------- 56 files changed, 1299 insertions(+), 1291 deletions(-)Signature · 1 line
1.7.4.rc3
"Acked-by: Vipin Mehta <[email protected]>"