Commit b0b9f3e4 authored by Leo Kim's avatar Leo Kim Committed by Greg Kroah-Hartman

staging: wilc1000: Handle_AddBASession: remove unused function

This patch removes unused a function Handle_AddBASession.
And, removes the relation define.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarGlen Lee <glen.lee@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da537229
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#define HOST_IF_MSG_FLUSH_CONNECT 30 #define HOST_IF_MSG_FLUSH_CONNECT 30
#define HOST_IF_MSG_GET_STATISTICS 31 #define HOST_IF_MSG_GET_STATISTICS 31
#define HOST_IF_MSG_SET_MULTICAST_FILTER 32 #define HOST_IF_MSG_SET_MULTICAST_FILTER 32
#define HOST_IF_MSG_ADD_BA_SESSION 33
#define HOST_IF_MSG_DEL_BA_SESSION 34 #define HOST_IF_MSG_DEL_BA_SESSION 34
#define HOST_IF_MSG_Q_IDLE 35 #define HOST_IF_MSG_Q_IDLE 35
#define HOST_IF_MSG_DEL_ALL_STA 36 #define HOST_IF_MSG_DEL_ALL_STA 36
...@@ -2739,70 +2738,6 @@ static void Handle_SetMulticastFilter(struct host_if_drv *hif_drv, ...@@ -2739,70 +2738,6 @@ static void Handle_SetMulticastFilter(struct host_if_drv *hif_drv,
kfree(wid.val); kfree(wid.val);
} }
static s32 Handle_AddBASession(struct host_if_drv *hif_drv,
struct ba_session_info *strHostIfBASessionInfo)
{
s32 result = 0;
struct wid wid;
int AddbaTimeout = 100;
char *ptr = NULL;
PRINT_D(HOSTINF_DBG, "Opening Block Ack session with\nBSSID = %.2x:%.2x:%.2x\nTID=%d\nBufferSize == %d\nSessionTimeOut = %d\n",
strHostIfBASessionInfo->bssid[0],
strHostIfBASessionInfo->bssid[1],
strHostIfBASessionInfo->bssid[2],
strHostIfBASessionInfo->buf_size,
strHostIfBASessionInfo->time_out,
strHostIfBASessionInfo->tid);
wid.id = (u16)WID_11E_P_ACTION_REQ;
wid.type = WID_STR;
wid.val = kmalloc(BLOCK_ACK_REQ_SIZE, GFP_KERNEL);
wid.size = BLOCK_ACK_REQ_SIZE;
ptr = wid.val;
*ptr++ = 0x14;
*ptr++ = 0x3;
*ptr++ = 0x0;
memcpy(ptr, strHostIfBASessionInfo->bssid, ETH_ALEN);
ptr += ETH_ALEN;
*ptr++ = strHostIfBASessionInfo->tid;
*ptr++ = 1;
*ptr++ = (strHostIfBASessionInfo->buf_size & 0xFF);
*ptr++ = ((strHostIfBASessionInfo->buf_size >> 16) & 0xFF);
*ptr++ = (strHostIfBASessionInfo->time_out & 0xFF);
*ptr++ = ((strHostIfBASessionInfo->time_out >> 16) & 0xFF);
*ptr++ = (AddbaTimeout & 0xFF);
*ptr++ = ((AddbaTimeout >> 16) & 0xFF);
*ptr++ = 8;
*ptr++ = 0;
result = wilc_send_config_pkt(hif_drv->wilc, SET_CFG, &wid, 1,
get_id_from_handler(hif_drv));
if (result)
PRINT_D(HOSTINF_DBG, "Couldn't open BA Session\n");
wid.id = (u16)WID_11E_P_ACTION_REQ;
wid.type = WID_STR;
wid.size = 15;
ptr = wid.val;
*ptr++ = 15;
*ptr++ = 7;
*ptr++ = 0x2;
memcpy(ptr, strHostIfBASessionInfo->bssid, ETH_ALEN);
ptr += ETH_ALEN;
*ptr++ = strHostIfBASessionInfo->tid;
*ptr++ = 8;
*ptr++ = (strHostIfBASessionInfo->buf_size & 0xFF);
*ptr++ = ((strHostIfBASessionInfo->time_out >> 16) & 0xFF);
*ptr++ = 3;
result = wilc_send_config_pkt(hif_drv->wilc, SET_CFG, &wid, 1,
get_id_from_handler(hif_drv));
kfree(wid.val);
return result;
}
static s32 Handle_DelAllRxBASessions(struct host_if_drv *hif_drv, static s32 Handle_DelAllRxBASessions(struct host_if_drv *hif_drv,
struct ba_session_info *strHostIfBASessionInfo) struct ba_session_info *strHostIfBASessionInfo)
{ {
...@@ -3033,10 +2968,6 @@ static int hostIFthread(void *pvArg) ...@@ -3033,10 +2968,6 @@ static int hostIFthread(void *pvArg)
Handle_SetMulticastFilter(msg.drv, &msg.body.multicast_info); Handle_SetMulticastFilter(msg.drv, &msg.body.multicast_info);
break; break;
case HOST_IF_MSG_ADD_BA_SESSION:
Handle_AddBASession(msg.drv, &msg.body.session_info);
break;
case HOST_IF_MSG_DEL_ALL_RX_BA_SESSIONS: case HOST_IF_MSG_DEL_ALL_RX_BA_SESSIONS:
Handle_DelAllRxBASessions(msg.drv, &msg.body.session_info); Handle_DelAllRxBASessions(msg.drv, &msg.body.session_info);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment