staging: wilc1000: wilc_msgqueue.c: remove braces for single statement
PATCH 1/13 staging: wilc1000: wilc_msgqueue.c: remove braces for single statement
This patch removes braces for single statement blocks.
WARNING: braces {} are not necessary for single statement blocks
--- drivers/staging/wilc1000/wilc_msgqueue.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +4 -4
@@ -84,9 +84,9 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, }else {Message *pstrTailMsg = pHandle->pstrMessageList; -while (pstrTailMsg->pstrNext !=NULL ) { +while (pstrTailMsg->pstrNext !=NULL ) pstrTailMsg = pstrTailMsg->pstrNext; - } + pstrTailMsg->pstrNext = pstrMessage; }
@@ -98,9 +98,9 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, {/* error occured, free any allocations */ if (pstrMessage !=NULL ) { -if (pstrMessage->pvBuffer !=NULL ) { +if (pstrMessage->pvBuffer !=NULL )kfree (pstrMessage->pvBuffer); - } +kfree (pstrMessage); } }
Signature · 1 line
1.9.1
PATCH 2/13 staging: wilc1000: wilc_msgqueue.c: remove blank line after open brace
This patch removes a blank line for open brace "{"
CHECK: Blank lines aren't necessary after an open brace '{'
--- drivers/staging/wilc1000/wilc_msgqueue.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +0 -2
@@ -26,7 +26,6 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle)*/ WILC_ErrNo WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle) { - pHandle->bExiting = true;/* Release any waiting receiver thread. */
@@ -120,7 +119,6 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle, void *pvRecvBuffer, u32 u32RecvBufferSize, u32 *pu32ReceivedLength) { - Message *pstrMessage;WILC_ErrNo s32RetStatus =WILC_SUCCESS ;unsigned long flags;
Signature · 1 line
1.9.1
PATCH 3/13 staging: wilc1000: wilc_msgqueue.c: remove multiple blank lines
In reply to Chaehyun LimThis patch removes multiple blank lines.
CHECK: Please don't use multiple blank lines
--- drivers/staging/wilc1000/wilc_msgqueue.c | 3 --- 1 file changed, 3 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +0 -3
@@ -76,7 +76,6 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,WILC_NULLCHECK (s32RetStatus, pstrMessage->pvBuffer);memcpy (pstrMessage->pvBuffer, pvSendBuffer, u32SendBufferSize); -/* add it to the message queue */ if (pHandle->pstrMessageList ==NULL ) { pHandle->pstrMessageList = pstrMessage;
@@ -107,8 +106,6 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,return s32RetStatus; } - -/*! * @author syounan * @date 1 Sep 2010
Signature · 1 line
1.9.1
PATCH 4/13 staging: wilc1000: wilc_msgqueue.c: remove blank line before a close brace
In reply to Chaehyun LimThis patch removes blank line before a close brace "}"
CHECK: Blank lines aren't necessary before a close brace '}'
--- drivers/staging/wilc1000/wilc_msgqueue.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/wilc1000/wilc_msgqueue.c +0 -1
@@ -173,7 +173,6 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,kfree (pstrMessage);spin_unlock_irqrestore (&pHandle->strCriticalSection, flags); - }WILC_CATCH (s32RetStatus)
Signature · 1 line
1.9.1
PATCH 5/13 staging: wilc1000: wilc_msgqueue.c: remove unnecessary parentheses
In reply to Chaehyun LimThis patch remove unnecessary parentheses found by checkpatch.pl
CHECK: Unnecessary parentheses around pHandle->hSem
--- drivers/staging/wilc1000/wilc_msgqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +2 -2
@@ -30,7 +30,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle)/* Release any waiting receiver thread. */ while (pHandle->u32ReceiversCount >0 ) { -up (&(pHandle->hSem)); +up (&pHandle->hSem); pHandle->u32ReceiversCount--; }
@@ -133,7 +133,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle, pHandle->u32ReceiversCount++;spin_unlock_irqrestore (&pHandle->strCriticalSection, flags); -down (&(pHandle->hSem)); +down (&pHandle->hSem);if (s32RetStatus ==WILC_TIMEOUT ) {/* timed out, just exit without consumeing the message */
Signature · 1 line
1.9.1
PATCH 6/13 staging: wilc1000: wilc_msgqueue.c: use ! operator instead of NULL comparison
In reply to Chaehyun LimThis patch uses ! operator instead of NULL comparison.
--- drivers/staging/wilc1000/wilc_msgqueue.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +9 -9
@@ -34,7 +34,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle) pHandle->u32ReceiversCount--; } -while (pHandle->pstrMessageList !=NULL ) { +while (pHandle->pstrMessageList) {Message *pstrMessge = pHandle->pstrMessageList->pstrNext;kfree (pHandle->pstrMessageList);
@@ -57,7 +57,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,unsigned long flags;Message *pstrMessage =NULL ; -if ((pHandle ==NULL ) || (u32SendBufferSize ==0 ) || (pvSendBuffer ==NULL )) { +if ((!pHandle) || (u32SendBufferSize ==0 ) || (!pvSendBuffer)) {WILC_ERRORREPORT (s32RetStatus,WILC_INVALID_ARGUMENT ); }
@@ -77,12 +77,12 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,memcpy (pstrMessage->pvBuffer, pvSendBuffer, u32SendBufferSize);/* add it to the message queue */ -if (pHandle->pstrMessageList ==NULL ) { +if (!pHandle->pstrMessageList) { pHandle->pstrMessageList = pstrMessage; }else {Message *pstrTailMsg = pHandle->pstrMessageList; -while (pstrTailMsg->pstrNext !=NULL ) +while (pstrTailMsg->pstrNext) pstrTailMsg = pstrTailMsg->pstrNext; pstrTailMsg->pstrNext = pstrMessage;
@@ -95,8 +95,8 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,WILC_CATCH (s32RetStatus) {/* error occured, free any allocations */ -if (pstrMessage !=NULL ) { -if (pstrMessage->pvBuffer !=NULL ) +if (pstrMessage) { +if (pstrMessage->pvBuffer)kfree (pstrMessage->pvBuffer);kfree (pstrMessage);
@@ -120,8 +120,8 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,WILC_ErrNo s32RetStatus =WILC_SUCCESS ;unsigned long flags; -if ((pHandle ==NULL ) || (u32RecvBufferSize ==0 ) - || (pvRecvBuffer ==NULL ) || (pu32ReceivedLength ==NULL )) { +if ((!pHandle) || (u32RecvBufferSize ==0 ) + || (!pvRecvBuffer) || (!pu32ReceivedLength)) {WILC_ERRORREPORT (s32RetStatus,WILC_INVALID_ARGUMENT ); }
@@ -151,7 +151,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,spin_lock_irqsave (&pHandle->strCriticalSection, flags); pstrMessage = pHandle->pstrMessageList; -if (pstrMessage ==NULL ) { +if (!pstrMessage) {spin_unlock_irqrestore (&pHandle->strCriticalSection, flags);WILC_ERRORREPORT (s32RetStatus,WILC_FAIL ); }
Signature · 1 line
1.9.1
PATCH 7/13 staging: wilc1000: wilc_msgqueue.c: remove kfree NULL check
In reply to Chaehyun LimThis patch removes kfree NULL check.
WARNING: kfree(NULL) is safe and this check is probably not required.
--- drivers/staging/wilc1000/wilc_msgqueue.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +1 -3
@@ -96,9 +96,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle, {/* error occured, free any allocations */ if (pstrMessage) { -if (pstrMessage->pvBuffer) -kfree (pstrMessage->pvBuffer); - +kfree (pstrMessage->pvBuffer);kfree (pstrMessage); } }
Signature · 1 line
1.9.1
PATCH 8/13 staging: wilc1000: wilc_msgqueue.c: fix bool comparison style
In reply to Chaehyun LimThis patch changes bool comparison style found by checkpatch.pl
CHECK: Using comparison to true is error prone
--- drivers/staging/wilc1000/wilc_msgqueue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/wilc1000/wilc_msgqueue.c +2 -2
@@ -61,7 +61,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,WILC_ERRORREPORT (s32RetStatus,WILC_INVALID_ARGUMENT ); } -if (pHandle->bExiting == true) { +if (pHandle->bExiting) {WILC_ERRORREPORT (s32RetStatus,WILC_FAIL ); }
@@ -123,7 +123,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,WILC_ERRORREPORT (s32RetStatus,WILC_INVALID_ARGUMENT ); } -if (pHandle->bExiting == true) { +if (pHandle->bExiting) {WILC_ERRORREPORT (s32RetStatus,WILC_FAIL ); }
Signature · 1 line
1.9.1
PATCH 9/13 staging: wilc1000: replace WILC_ErrNo by int type
In reply to Chaehyun LimThis patch replaces WILC_ErrNo with int type.WILC_ErrNo typedef is also removed.
--- drivers/staging/wilc1000/wilc_errorsupport.h | 2 -- drivers/staging/wilc1000/wilc_msgqueue.c | 12 ++++++------ drivers/staging/wilc1000/wilc_msgqueue.h | 8 ++++---- 3 files changed, 10 insertions(+), 12 deletions(-)
drivers/staging/wilc1000/wilc_errorsupport.h +0 -2
@@ -36,8 +36,6 @@#define WILC_FILE_EOF -116 -/* Error type */ -typedef s32 WILC_ErrNo ;#define WILC_IS_ERR (__status__) (__status__ < WILC_SUCCESS)
drivers/staging/wilc1000/wilc_msgqueue.c +6 -6
@@ -8,7 +8,7 @@* @note copied from FLO glue implementatuion * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle) +int WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle) {spin_lock_init (&pHandle->strCriticalSection);sema_init (&pHandle->hSem,0 );
@@ -24,7 +24,7 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle)* @note copied from FLO glue implementatuion * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle) +int WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle) { pHandle->bExiting = true;
@@ -50,10 +50,10 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle)* @note copied from FLO glue implementatuion * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, +int WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle,const void *pvSendBuffer,u32 u32SendBufferSize) { -WILC_ErrNo s32RetStatus =WILC_SUCCESS ; +int s32RetStatus =WILC_SUCCESS ;unsigned long flags;Message *pstrMessage =NULL ;
@@ -110,12 +110,12 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,* @note copied from FLO glue implementatuion * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, +int WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle,void *pvRecvBuffer,u32 u32RecvBufferSize,u32 *pu32ReceivedLength) {Message *pstrMessage; -WILC_ErrNo s32RetStatus =WILC_SUCCESS ; +int s32RetStatus =WILC_SUCCESS ;unsigned long flags; if ((!pHandle) || (u32RecvBufferSize == 0)
drivers/staging/wilc1000/wilc_msgqueue.h +4 -4
@@ -27,7 +27,7 @@* @date 30 Aug 2010 * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle); +int WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle);/*! * @brief Sends a message
@@ -44,7 +44,7 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle);* @date 30 Aug 2010 * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, +int WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle,const void *pvSendBuffer,u32 u32SendBufferSize);/*!
@@ -63,7 +63,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,* @date 30 Aug 2010 * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, +int WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle,void *pvRecvBuffer,u32 u32RecvBufferSize,u32 *pu32ReceivedLength);
@@ -76,6 +76,6 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,* @date 30 Aug 2010 * @version 1.0 */ -WILC_ErrNo WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle); +int WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle);#endif
Signature · 1 line
1.9.1
PATCH 10/13 staging: wilc1000: rename WILC_MsgQueueCreate to wilc_mq_create
In reply to Chaehyun LimThis patch replaces WILC_MsgQueueCreate with wilc_mq_create to shorten function name and avoid CamelCase.
--- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wilc1000/host_interface.c +1 -1
@@ -6532,7 +6532,7 @@ s32 host_int_init(tstrWILC_WFIDrv **phWFIDrv)PRINT_D (HOSTINF_DBG ,"INIT: CLIENT COUNT %d\n" , clients_count);if (clients_count ==0 ) { - s32Error =WILC_MsgQueueCreate (&gMsgQHostIF); + s32Error =wilc_mq_create (&gMsgQHostIF);if (s32Error <0 ) {PRINT_ER ("Failed to creat MQ\n" );
drivers/staging/wilc1000/wilc_msgqueue.c +1 -1
@@ -8,7 +8,7 @@* @note copied from FLO glue implementatuion * @version 1.0 */ -int WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle) +int wilc_mq_create (WILC_MsgQueueHandle *pHandle) {spin_lock_init (&pHandle->strCriticalSection);sema_init (&pHandle->hSem,0 );
drivers/staging/wilc1000/wilc_msgqueue.h +1 -1
@@ -27,7 +27,7 @@* @date 30 Aug 2010 * @version 1.0 */ -int WILC_MsgQueueCreate (WILC_MsgQueueHandle *pHandle); +int wilc_mq_create (WILC_MsgQueueHandle *pHandle);/*! * @brief Sends a message
Signature · 1 line
1.9.1
PATCH 11/13 staging: wilc1000: rename WILC_MsgQueueSend to wilc_mq_send
In reply to Chaehyun LimThis patch replaces WILC_MsgQueueSend with wilc_mq_send to shorten function name and avoid CamelCase.
--- drivers/staging/wilc1000/host_interface.c | 98 +++++++++++++++---------------- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 3 files changed, 51 insertions(+), 51 deletions(-)
drivers/staging/wilc1000/host_interface.c +49 -49
@@ -3997,7 +3997,7 @@ static void ListenTimerCB(unsigned long arg) strHostIFmsg.uniHostIFmsgBody.strHostIfRemainOnChan.u32ListenSessionID = pstrWFIDrv->strHostIfRemainOnChan.u32ListenSessionID;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -4344,13 +4344,13 @@ static int hostIFthread(void *pvArg)if ((!g_wilc_initialized)) {PRINT_D (GENERIC_DBG ,"--WAIT--" );usleep_range (200 *1000 ,200 *1000 ); -WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); +wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));continue ; }if (strHostIFmsg.u16MsgId ==HOST_IF_MSG_CONNECT && pstrWFIDrv->strWILC_UsrScanReq.pfUserScanResult !=NULL ) {PRINT_D (HOSTINF_DBG ,"Requeue connect request till scan done received\n" ); -WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); +wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));usleep_range (2 *1000 ,2 *1000 );continue ; }
@@ -4557,7 +4557,7 @@ static void TimerCB_Scan(unsigned long arg) strHostIFmsg.u16MsgId =HOST_IF_MSG_SCAN_TIMER_FIRED ;/* send the message */ -WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); +wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); }static void TimerCB_Connect (unsigned long arg)
@@ -4571,7 +4571,7 @@ static void TimerCB_Connect(unsigned long arg) strHostIFmsg.u16MsgId =HOST_IF_MSG_CONNECT_TIMER_FIRED ;/* send the message */ -WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); +wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); }
@@ -4642,7 +4642,7 @@ s32 host_int_remove_wep_key(tstrWILC_WFIDrv *hWFIDrv, u8 u8keyIdx) uniHostIFkeyAttr.strHostIFwepAttr.u8Wepidx = u8keyIdx;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue : Request to remove WEP key\n" );down (&(pstrWFIDrv->hSemTestKeyBlock));
@@ -4690,7 +4690,7 @@ s32 host_int_set_WEPDefaultKeyID(tstrWILC_WFIDrv *hWFIDrv, u8 u8Index) uniHostIFkeyAttr.strHostIFwepAttr.u8Wepidx = u8Index;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue : Default key index\n" );down (&(pstrWFIDrv->hSemTestKeyBlock));
@@ -4757,7 +4757,7 @@ s32 host_int_add_wep_key_bss_sta(tstrWILC_WFIDrv *hWFIDrv, const u8 *pu8WepKey, uniHostIFkeyAttr.strHostIFwepAttr.u8Wepidx = u8Keyidx;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue :WEP Key\n" );down (&(pstrWFIDrv->hSemTestKeyBlock));
@@ -4832,7 +4832,7 @@ s32 host_int_add_wep_key_bss_ap(tstrWILC_WFIDrv *hWFIDrv, const u8 *pu8WepKey, u strHostIFmsg.uniHostIFmsgBody.strHostIFkeyAttr. uniHostIFkeyAttr.strHostIFwepAttr.tenuAuth_type = tenuAuth_type;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue :WEP Key\n" );
@@ -4931,7 +4931,7 @@ s32 host_int_add_ptk(tstrWILC_WFIDrv *hWFIDrv, const u8 *pu8Ptk, u8 u8PtkKeylen, strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue: PTK Key\n" );
@@ -5033,7 +5033,7 @@ s32 host_int_add_rx_gtk(tstrWILC_WFIDrv *hWFIDrv, const u8 *pu8RxGtk, u8 u8GtkKe/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue: RX GTK\n" );/* ////////////// */
@@ -5096,7 +5096,7 @@ s32 host_int_set_pmkid_info(tstrWILC_WFIDrv *hWFIDrv, tstrHostIFpmkidAttr *pu8Pm }/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER (" Error in sending messagequeue: PMKID Info\n" );
@@ -5198,7 +5198,7 @@ s32 host_int_get_MacAddress(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8MacAddress) strHostIFmsg.uniHostIFmsgBody.strHostIfGetMacAddress.u8MacAddress = pu8MacAddress; strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send get mac address\n" );return WILC_FAIL ;
@@ -5232,7 +5232,7 @@ s32 host_int_set_MacAddress(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8MacAddress)memcpy (strHostIFmsg.uniHostIFmsgBody.strHostIfSetMacAddress.u8MacAddress, pu8MacAddress,ETH_ALEN ); strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send message queue: Set mac address\n" );WILC_ERRORREPORT (s32Error, s32Error);
@@ -5484,7 +5484,7 @@ s32 host_int_set_join_req(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8bssid,PRINT_D (GENERIC_DBG ,"Don't set state to 'connecting' as state is %d\n" , pstrWFIDrv->enuHostIFstate);/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send message queue: Set join request\n" );WILC_ERRORREPORT (s32Error,WILC_FAIL );
@@ -5534,7 +5534,7 @@ s32 host_int_flush_join_req(tstrWILC_WFIDrv *hWFIDrv) strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send message queue: Flush join request\n" );WILC_ERRORREPORT (s32Error,WILC_FAIL );
@@ -5581,7 +5581,7 @@ s32 host_int_disconnect(tstrWILC_WFIDrv *hWFIDrv, u16 u16ReasonCode) strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Failed to send message queue: disconnect\n" );/* ////////////// */
@@ -5770,7 +5770,7 @@ s32 host_int_set_mac_chnl_num(tstrWILC_WFIDrv *hWFIDrv, u8 u8ChNum) strHostIFmsg.uniHostIFmsgBody.strHostIFSetChan.u8SetChan = u8ChNum; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -5792,7 +5792,7 @@ s32 host_int_wait_msg_queue_idle(void)memset (&strHostIFmsg,0 ,sizeof (tstrHostIFmsg)); strHostIFmsg.u16MsgId =HOST_IF_MSG_Q_IDLE ; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -5821,7 +5821,7 @@ s32 host_int_set_wfi_drv_handler(tstrWILC_WFIDrv *u32address) strHostIFmsg.uniHostIFmsgBody.strHostIfSetDrvHandler.u32Address = u32address;/* strHostIFmsg.drvHandler=hWFIDrv; */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -5848,7 +5848,7 @@ s32 host_int_set_operation_mode(tstrWILC_WFIDrv *hWFIDrv, u32 u32mode) strHostIFmsg.uniHostIFmsgBody.strHostIfSetOperationMode.u32Mode = u32mode; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -5892,7 +5892,7 @@ s32 host_int_get_host_chnl_num(tstrWILC_WFIDrv *hWFIDrv, u8 *pu8ChNo) strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Failed to send get host channel param's message queue " );down (&(pstrWFIDrv->hSemGetCHNL));
@@ -5988,7 +5988,7 @@ s32 host_int_get_inactive_time(tstrWILC_WFIDrv *hWFIDrv, const u8 *mac, u32 *pu3 strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Failed to send get host channel param's message queue " );
@@ -6076,7 +6076,7 @@ s32 host_int_get_rssi(tstrWILC_WFIDrv *hWFIDrv, s8 *ps8Rssi) strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send get host channel param's message queue " );return WILC_FAIL ;
@@ -6113,7 +6113,7 @@ s32 host_int_get_link_speed(tstrWILC_WFIDrv *hWFIDrv, s8 *ps8lnkspd) strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send GET_LINKSPEED to message queue " );return WILC_FAIL ;
@@ -6147,7 +6147,7 @@ s32 host_int_get_statistics(tstrWILC_WFIDrv *hWFIDrv, tstrStatistics *pstrStatis strHostIFmsg.uniHostIFmsgBody.pUserData = (char *)pstrStatistics; strHostIFmsg.drvHandler = hWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send get host channel param's message queue " );return WILC_FAIL ;
@@ -6218,7 +6218,7 @@ s32 host_int_scan(tstrWILC_WFIDrv *hWFIDrv, u8 u8ScanSource, pu8IEs, IEsLen);/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Error in sending message queue scanning parameters: Error(%d)\n" , s32Error);WILC_ERRORREPORT (s32Error,WILC_FAIL );
@@ -6265,7 +6265,7 @@ s32 hif_set_cfg(tstrWILC_WFIDrv *hWFIDrv, tstrCfgParamVal *pstrCfgParamVal) strHostIFmsg.uniHostIFmsgBody.strHostIFCfgParamAttr.pstrCfgParamVal = *pstrCfgParamVal; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));WILC_CATCH (s32Error) {
@@ -6444,7 +6444,7 @@ static void GetPeriodicRSSI(unsigned long arg) strHostIFmsg.drvHandler = pstrWFIDrv;/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error) {PRINT_ER ("Failed to send get host channel param's message queue " );return ;
@@ -6711,7 +6711,7 @@ s32 host_int_deinit(tstrWILC_WFIDrv *hWFIDrv) strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error !=WILC_SUCCESS )PRINT_ER ("Error in sending deinit's message queue message function: Error(%d)\n" , s32Error);
@@ -6780,7 +6780,7 @@ void NetworkInfoReceived(u8 *pu8Buffer, u32 u32Length) pu8Buffer, u32Length);/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending network info message queue message parameters: Error(%d)\n" , s32Error); }
@@ -6840,7 +6840,7 @@ void GnrlAsyncInfoReceived(u8 *pu8Buffer, u32 u32Length) pu8Buffer, u32Length);/* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue asynchronous message info: Error(%d)\n" , s32Error);
@@ -6891,7 +6891,7 @@ void host_int_ScanCompleteReceived(u8 *pu8Buffer, u32 u32Length)* pu8Buffer, u32Length); */ /* send the message */ - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)PRINT_ER ("Error in sending message queue scan complete parameters: Error(%d)\n" , s32Error); }
@@ -6938,7 +6938,7 @@ s32 host_int_remain_on_channel(tstrWILC_WFIDrv *hWFIDrv, u32 u32SessionID, u32 u strHostIFmsg.uniHostIFmsgBody.strHostIfRemainOnChan.u32ListenSessionID = u32SessionID; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -6981,7 +6981,7 @@ s32 host_int_ListenStateExpired(tstrWILC_WFIDrv *hWFIDrv, u32 u32SessionID) strHostIFmsg.drvHandler = hWFIDrv; strHostIFmsg.uniHostIFmsgBody.strHostIfRemainOnChan.u32ListenSessionID = u32SessionID; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7031,7 +7031,7 @@ s32 host_int_frame_register(tstrWILC_WFIDrv *hWFIDrv, u16 u16FrameType, bool bRe strHostIFmsg.uniHostIFmsgBody.strHostIfRegisterFrame.bReg = bReg; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7097,7 +7097,7 @@ s32 host_int_add_beacon(tstrWILC_WFIDrv *hWFIDrv, u32 u32Interval, pstrSetBeaconParam->pu8Tail =NULL ; } - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);
@@ -7138,7 +7138,7 @@ s32 host_int_del_beacon(tstrWILC_WFIDrv *hWFIDrv) strHostIFmsg.drvHandler = hWFIDrv;PRINT_D (HOSTINF_DBG ,"Setting deleting beacon message queue params\n" ); - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));WILC_ERRORCHECK (s32Error);WILC_CATCH (s32Error)
@@ -7188,7 +7188,7 @@ s32 host_int_add_station(tstrWILC_WFIDrv *hWFIDrv, tstrWILC_AddStaParam *pstrSta } - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);
@@ -7233,7 +7233,7 @@ s32 host_int_del_station(tstrWILC_WFIDrv *hWFIDrv, const u8 *pu8MacAddr)else memcpy (pstrDelStationMsg->au8MacAddr, pu8MacAddr,ETH_ALEN ); - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);
@@ -7288,7 +7288,7 @@ s32 host_int_del_allstation(tstrWILC_WFIDrv *hWFIDrv, u8 pu8MacAddr[][ETH_ALEN]) } pstrDelAllStationMsg->u8Num_AssocSta = u8AssocNumb; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)
@@ -7341,7 +7341,7 @@ s32 host_int_edit_station(tstrWILC_WFIDrv *hWFIDrv, tstrWILC_AddStaParam *pstrSt pstrAddStationMsg->pu8Rates = rates; } - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7377,7 +7377,7 @@ s32 host_int_set_power_mgmt(tstrWILC_WFIDrv *hWFIDrv, bool bIsEnabled, u32 u32Ti pstrPowerMgmtParam->u32Timeout = u32Timeout; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7410,7 +7410,7 @@ s32 host_int_setup_multicast_filter(tstrWILC_WFIDrv *hWFIDrv, bool bIsEnabled, u pstrMulticastFilterParam->bIsEnabled = bIsEnabled; pstrMulticastFilterParam->u32count = u32count; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7678,7 +7678,7 @@ static int host_int_addBASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char TI pBASessionInfo->u16SessionTimeout = SessionTimeout; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7709,7 +7709,7 @@ s32 host_int_delBASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char TID) pBASessionInfo->u8Ted =TID ; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7742,7 +7742,7 @@ s32 host_int_del_All_Rx_BASession(tstrWILC_WFIDrv *hWFIDrv, char *pBSSID, char T pBASessionInfo->u8Ted =TID ; strHostIFmsg.drvHandler = hWFIDrv; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7785,7 +7785,7 @@ s32 host_int_setup_ipaddress(tstrWILC_WFIDrv *hWFIDrv, u8 *u16ipadd, u8 idx) strHostIFmsg.drvHandler = hWFIDrv; strHostIFmsg.uniHostIFmsgBody.strHostIfSetIP.idx = idx; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
@@ -7824,7 +7824,7 @@ s32 host_int_get_ipaddress(tstrWILC_WFIDrv *hWFIDrv, u8 *u16ipadd, u8 idx) strHostIFmsg.drvHandler = hWFIDrv; strHostIFmsg.uniHostIFmsgBody.strHostIfSetIP.idx = idx; - s32Error =WILC_MsgQueueSend (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg)); + s32Error =wilc_mq_send (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg));if (s32Error)WILC_ERRORREPORT (s32Error, s32Error);WILC_CATCH (s32Error)
drivers/staging/wilc1000/wilc_msgqueue.c +1 -1
@@ -50,7 +50,7 @@ int WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle)* @note copied from FLO glue implementatuion * @version 1.0 */ -int WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, +int wilc_mq_send (WILC_MsgQueueHandle *pHandle,const void *pvSendBuffer,u32 u32SendBufferSize) {int s32RetStatus =WILC_SUCCESS ;
drivers/staging/wilc1000/wilc_msgqueue.h +1 -1
@@ -44,7 +44,7 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle);* @date 30 Aug 2010 * @version 1.0 */ -int WILC_MsgQueueSend (WILC_MsgQueueHandle *pHandle, +int wilc_mq_send (WILC_MsgQueueHandle *pHandle,const void *pvSendBuffer,u32 u32SendBufferSize);/*!
Signature · 1 line
1.9.1
PATCH 12/13 staging: wilc1000: rename WILC_MsgQueueRecv to wilc_mq_recv
In reply to Chaehyun LimThis patch replaces WILC_MsgQueueRecv with wilc_mq_recv to shorten function name and avoid CamelCase.
--- drivers/staging/wilc1000/host_interface.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/staging/wilc1000/host_interface.c +1 -1
@@ -4332,7 +4332,7 @@ static int hostIFthread(void *pvArg)memset (&strHostIFmsg,0 ,sizeof (tstrHostIFmsg));while (1 ) { -WILC_MsgQueueRecv (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg), &u32Ret); +wilc_mq_recv (&gMsgQHostIF, &strHostIFmsg,sizeof (tstrHostIFmsg), &u32Ret); pstrWFIDrv = (tstrWILC_WFIDrv *)strHostIFmsg.drvHandler;if (strHostIFmsg.u16MsgId ==HOST_IF_MSG_EXIT ) {PRINT_D (GENERIC_DBG ,"THREAD: Exiting HostIfThread\n" );
drivers/staging/wilc1000/wilc_msgqueue.c +1 -1
@@ -110,7 +110,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,* @note copied from FLO glue implementatuion * @version 1.0 */ -int WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, +int wilc_mq_recv (WILC_MsgQueueHandle *pHandle,void *pvRecvBuffer,u32 u32RecvBufferSize,u32 *pu32ReceivedLength) {
drivers/staging/wilc1000/wilc_msgqueue.h +1 -1
@@ -63,7 +63,7 @@ int wilc_mq_send(WILC_MsgQueueHandle *pHandle,* @date 30 Aug 2010 * @version 1.0 */ -int WILC_MsgQueueRecv (WILC_MsgQueueHandle *pHandle, +int wilc_mq_recv (WILC_MsgQueueHandle *pHandle,void *pvRecvBuffer,u32 u32RecvBufferSize,u32 *pu32ReceivedLength);
Signature · 1 line
1.9.1
PATCH 13/13 staging: wilc1000: rename WILC_MsgQueueDestroy to wilc_mq_destroy
In reply to Chaehyun LimThis patch replaces WILC_MsgQueueDestroy to wilc_mq_destroy to shorten function name and avoid CamelCase.
--- drivers/staging/wilc1000/host_interface.c | 4 ++-- drivers/staging/wilc1000/wilc_msgqueue.c | 2 +- drivers/staging/wilc1000/wilc_msgqueue.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
drivers/staging/wilc1000/host_interface.c +2 -2
@@ -6616,7 +6616,7 @@ _fail_timer_2:del_timer_sync (&pstrWFIDrv->hScanTimer);kthread_stop (HostIFthreadHandler); _fail_mq_: -WILC_MsgQueueDestroy (&gMsgQHostIF); +wilc_mq_destroy (&gMsgQHostIF); _fail_:return s32Error;
@@ -6717,7 +6717,7 @@ s32 host_int_deinit(tstrWILC_WFIDrv *hWFIDrv)down (&hSemHostIFthrdEnd); -WILC_MsgQueueDestroy (&gMsgQHostIF); +wilc_mq_destroy (&gMsgQHostIF); msgQ_created =0 ; }
drivers/staging/wilc1000/wilc_msgqueue.c +1 -1
@@ -24,7 +24,7 @@ int wilc_mq_create(WILC_MsgQueueHandle *pHandle)* @note copied from FLO glue implementatuion * @version 1.0 */ -int WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle) +int wilc_mq_destroy (WILC_MsgQueueHandle *pHandle) { pHandle->bExiting = true;
drivers/staging/wilc1000/wilc_msgqueue.h +1 -1
@@ -76,6 +76,6 @@ int wilc_mq_recv(WILC_MsgQueueHandle *pHandle,* @date 30 Aug 2010 * @version 1.0 */ -int WILC_MsgQueueDestroy (WILC_MsgQueueHandle *pHandle); +int wilc_mq_destroy (WILC_MsgQueueHandle *pHandle);#endif
Signature · 1 line
1.9.1