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

staging: wilc1000: remove typedef from tstrWID

This patch removes typedef from the struct tstrWID and
rename it to wid.
Signed-off-by: default avatarLeo Kim <leo.kim@atmel.com>
Signed-off-by: default avatarTony Cho <tony.cho@atmel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 684125a2
...@@ -595,7 +595,7 @@ s32 DeallocateAssocRespInfo(tstrConnectRespInfo *pstrConnectRespInfo) ...@@ -595,7 +595,7 @@ s32 DeallocateAssocRespInfo(tstrConnectRespInfo *pstrConnectRespInfo)
* @date 1 Mar 2012 * @date 1 Mar 2012
* @version 1.0 * @version 1.0
*/ */
s32 send_config_pkt(u8 mode, tstrWID *wids, u32 count, u32 drv) s32 send_config_pkt(u8 mode, struct wid *wids, u32 count, u32 drv)
{ {
s32 counter = 0, ret = 0; s32 counter = 0, ret = 0;
......
...@@ -70,13 +70,12 @@ typedef enum { ...@@ -70,13 +70,12 @@ typedef enum {
CONNECT_STS_FORCE_16_BIT = 0xFFFF CONNECT_STS_FORCE_16_BIT = 0xFFFF
} tenuConnectSts; } tenuConnectSts;
typedef struct { struct wid {
u16 u16WIDid; u16 u16WIDid;
tenuWIDtype enuWIDtype; tenuWIDtype enuWIDtype;
s32 s32ValueSize; s32 s32ValueSize;
s8 *ps8WidVal; s8 *ps8WidVal;
};
} tstrWID;
typedef struct { typedef struct {
u8 u8Full; u8 u8Full;
...@@ -128,7 +127,7 @@ typedef struct { ...@@ -128,7 +127,7 @@ typedef struct {
size_t ie_len; size_t ie_len;
} tstrDisconnectNotifInfo; } tstrDisconnectNotifInfo;
s32 send_config_pkt(u8 mode, tstrWID *wids, u32 count, u32 drv); s32 send_config_pkt(u8 mode, struct wid *wids, u32 count, u32 drv);
s32 parse_network_info(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo); s32 parse_network_info(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo);
s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo); s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo);
......
...@@ -572,7 +572,7 @@ static s32 Handle_SetChannel(struct host_if_drv *drvHandler, ...@@ -572,7 +572,7 @@ static s32 Handle_SetChannel(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
/*prepare configuration packet*/ /*prepare configuration packet*/
...@@ -607,7 +607,7 @@ static s32 Handle_SetWfiDrvHandler(struct host_if_drv *drvHandler, ...@@ -607,7 +607,7 @@ static s32 Handle_SetWfiDrvHandler(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = drvHandler; struct host_if_drv *pstrWFIDrv = drvHandler;
...@@ -648,7 +648,7 @@ static s32 Handle_SetOperationMode(struct host_if_drv *drvHandler, ...@@ -648,7 +648,7 @@ static s32 Handle_SetOperationMode(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -690,7 +690,7 @@ s32 Handle_set_IPAddress(struct host_if_drv *drvHandler, u8 *pu8IPAddr, u8 idx) ...@@ -690,7 +690,7 @@ s32 Handle_set_IPAddress(struct host_if_drv *drvHandler, u8 *pu8IPAddr, u8 idx)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
char firmwareIPAddress[4] = {0}; char firmwareIPAddress[4] = {0};
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -737,7 +737,7 @@ s32 Handle_get_IPAddress(struct host_if_drv *drvHandler, u8 *pu8IPAddr, u8 idx) ...@@ -737,7 +737,7 @@ s32 Handle_get_IPAddress(struct host_if_drv *drvHandler, u8 *pu8IPAddr, u8 idx)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
/*prepare configuration packet*/ /*prepare configuration packet*/
...@@ -786,7 +786,7 @@ static s32 Handle_SetMacAddress(struct host_if_drv *drvHandler, ...@@ -786,7 +786,7 @@ static s32 Handle_SetMacAddress(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
u8 *mac_buf = kmalloc(ETH_ALEN, GFP_KERNEL); u8 *mac_buf = kmalloc(ETH_ALEN, GFP_KERNEL);
...@@ -829,7 +829,7 @@ static s32 Handle_GetMacAddress(struct host_if_drv *drvHandler, ...@@ -829,7 +829,7 @@ static s32 Handle_GetMacAddress(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
/*prepare configuration packet*/ /*prepare configuration packet*/
strWID.u16WIDid = (u16)WID_MAC_ADDR; strWID.u16WIDid = (u16)WID_MAC_ADDR;
...@@ -863,7 +863,7 @@ static s32 Handle_CfgParam(struct host_if_drv *drvHandler, ...@@ -863,7 +863,7 @@ static s32 Handle_CfgParam(struct host_if_drv *drvHandler,
struct cfg_param_attr *strHostIFCfgParamAttr) struct cfg_param_attr *strHostIFCfgParamAttr)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWIDList[32]; struct wid strWIDList[32];
u8 u8WidCnt = 0; u8 u8WidCnt = 0;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -1221,7 +1221,7 @@ static s32 Handle_Scan(struct host_if_drv *drvHandler, ...@@ -1221,7 +1221,7 @@ static s32 Handle_Scan(struct host_if_drv *drvHandler,
struct scan_attr *pstrHostIFscanAttr) struct scan_attr *pstrHostIFscanAttr)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWIDList[5]; struct wid strWIDList[5];
u32 u32WidsCount = 0; u32 u32WidsCount = 0;
u32 i; u32 i;
u8 *pu8Buffer; u8 *pu8Buffer;
...@@ -1392,7 +1392,7 @@ static s32 Handle_ScanDone(struct host_if_drv *drvHandler, tenuScanEvent enuEven ...@@ -1392,7 +1392,7 @@ static s32 Handle_ScanDone(struct host_if_drv *drvHandler, tenuScanEvent enuEven
u8 u8abort_running_scan; u8 u8abort_running_scan;
tstrWID strWID; struct wid strWID;
PRINT_D(HOSTINF_DBG, "in Handle_ScanDone()\n"); PRINT_D(HOSTINF_DBG, "in Handle_ScanDone()\n");
...@@ -1446,7 +1446,7 @@ static s32 Handle_Connect(struct host_if_drv *drvHandler, ...@@ -1446,7 +1446,7 @@ static s32 Handle_Connect(struct host_if_drv *drvHandler,
{ {
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler;
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWIDList[8]; struct wid strWIDList[8];
u32 u32WidsCount = 0, dummyval = 0; u32 u32WidsCount = 0, dummyval = 0;
/* char passphrase[] = "12345678"; */ /* char passphrase[] = "12345678"; */
u8 *pu8CurrByte = NULL; u8 *pu8CurrByte = NULL;
...@@ -1807,7 +1807,7 @@ static s32 Handle_Connect(struct host_if_drv *drvHandler, ...@@ -1807,7 +1807,7 @@ static s32 Handle_Connect(struct host_if_drv *drvHandler,
static s32 Handle_FlushConnect(struct host_if_drv *drvHandler) static s32 Handle_FlushConnect(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWIDList[5]; struct wid strWIDList[5];
u32 u32WidsCount = 0; u32 u32WidsCount = 0;
u8 *pu8CurrByte = NULL; u8 *pu8CurrByte = NULL;
...@@ -1867,7 +1867,7 @@ static s32 Handle_ConnectTimeout(struct host_if_drv *drvHandler) ...@@ -1867,7 +1867,7 @@ static s32 Handle_ConnectTimeout(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrConnectInfo strConnectInfo; tstrConnectInfo strConnectInfo;
tstrWID strWID; struct wid strWID;
u16 u16DummyReasonCode = 0; u16 u16DummyReasonCode = 0;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler;
...@@ -2407,8 +2407,8 @@ static int Handle_Key(struct host_if_drv *drvHandler, ...@@ -2407,8 +2407,8 @@ static int Handle_Key(struct host_if_drv *drvHandler,
struct key_attr *pstrHostIFkeyAttr) struct key_attr *pstrHostIFkeyAttr)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
tstrWID strWIDList[5]; struct wid strWIDList[5];
u8 i; u8 i;
u8 *pu8keybuf; u8 *pu8keybuf;
s8 s8idxarray[1]; s8 s8idxarray[1];
...@@ -2769,7 +2769,7 @@ static int Handle_Key(struct host_if_drv *drvHandler, ...@@ -2769,7 +2769,7 @@ static int Handle_Key(struct host_if_drv *drvHandler,
*/ */
static void Handle_Disconnect(struct host_if_drv *drvHandler) static void Handle_Disconnect(struct host_if_drv *drvHandler)
{ {
tstrWID strWID; struct wid strWID;
s32 s32Error = 0; s32 s32Error = 0;
u16 u16DummyReasonCode = 0; u16 u16DummyReasonCode = 0;
...@@ -2897,7 +2897,7 @@ static s32 Handle_GetChnl(struct host_if_drv *drvHandler) ...@@ -2897,7 +2897,7 @@ static s32 Handle_GetChnl(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
strWID.u16WIDid = (u16)WID_CURRENT_CHANNEL; strWID.u16WIDid = (u16)WID_CURRENT_CHANNEL;
...@@ -2936,7 +2936,7 @@ static s32 Handle_GetChnl(struct host_if_drv *drvHandler) ...@@ -2936,7 +2936,7 @@ static s32 Handle_GetChnl(struct host_if_drv *drvHandler)
static void Handle_GetRssi(struct host_if_drv *drvHandler) static void Handle_GetRssi(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
strWID.u16WIDid = (u16)WID_RSSI; strWID.u16WIDid = (u16)WID_RSSI;
...@@ -2963,7 +2963,7 @@ static void Handle_GetRssi(struct host_if_drv *drvHandler) ...@@ -2963,7 +2963,7 @@ static void Handle_GetRssi(struct host_if_drv *drvHandler)
static void Handle_GetLinkspeed(struct host_if_drv *drvHandler) static void Handle_GetLinkspeed(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
gs8lnkspd = 0; gs8lnkspd = 0;
...@@ -2989,7 +2989,7 @@ static void Handle_GetLinkspeed(struct host_if_drv *drvHandler) ...@@ -2989,7 +2989,7 @@ static void Handle_GetLinkspeed(struct host_if_drv *drvHandler)
s32 Handle_GetStatistics(struct host_if_drv *drvHandler, tstrStatistics *pstrStatistics) s32 Handle_GetStatistics(struct host_if_drv *drvHandler, tstrStatistics *pstrStatistics)
{ {
tstrWID strWIDList[5]; struct wid strWIDList[5];
u32 u32WidsCount = 0, s32Error = 0; u32 u32WidsCount = 0, s32Error = 0;
strWIDList[u32WidsCount].u16WIDid = WID_LINKSPEED; strWIDList[u32WidsCount].u16WIDid = WID_LINKSPEED;
...@@ -3050,7 +3050,7 @@ static s32 Handle_Get_InActiveTime(struct host_if_drv *drvHandler, ...@@ -3050,7 +3050,7 @@ static s32 Handle_Get_InActiveTime(struct host_if_drv *drvHandler,
s32 s32Error = 0; s32 s32Error = 0;
u8 *stamac; u8 *stamac;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3115,7 +3115,7 @@ static void Handle_AddBeacon(struct host_if_drv *drvHandler, ...@@ -3115,7 +3115,7 @@ static void Handle_AddBeacon(struct host_if_drv *drvHandler,
struct beacon_attr *pstrSetBeaconParam) struct beacon_attr *pstrSetBeaconParam)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3183,7 +3183,7 @@ static void Handle_AddBeacon(struct host_if_drv *drvHandler, ...@@ -3183,7 +3183,7 @@ static void Handle_AddBeacon(struct host_if_drv *drvHandler,
static void Handle_DelBeacon(struct host_if_drv *drvHandler) static void Handle_DelBeacon(struct host_if_drv *drvHandler)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3276,7 +3276,7 @@ static void Handle_AddStation(struct host_if_drv *drvHandler, ...@@ -3276,7 +3276,7 @@ static void Handle_AddStation(struct host_if_drv *drvHandler,
struct add_sta_param *pstrStationParam) struct add_sta_param *pstrStationParam)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3317,7 +3317,7 @@ static void Handle_DelAllSta(struct host_if_drv *drvHandler, ...@@ -3317,7 +3317,7 @@ static void Handle_DelAllSta(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
u8 i; u8 i;
...@@ -3372,7 +3372,7 @@ static void Handle_DelStation(struct host_if_drv *drvHandler, ...@@ -3372,7 +3372,7 @@ static void Handle_DelStation(struct host_if_drv *drvHandler,
struct del_sta *pstrDelStaParam) struct del_sta *pstrDelStaParam)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3414,7 +3414,7 @@ static void Handle_EditStation(struct host_if_drv *drvHandler, ...@@ -3414,7 +3414,7 @@ static void Handle_EditStation(struct host_if_drv *drvHandler,
struct add_sta_param *pstrStationParam) struct add_sta_param *pstrStationParam)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3455,7 +3455,7 @@ static int Handle_RemainOnChan(struct host_if_drv *drvHandler, ...@@ -3455,7 +3455,7 @@ static int Handle_RemainOnChan(struct host_if_drv *drvHandler,
{ {
s32 s32Error = 0; s32 s32Error = 0;
u8 u8remain_on_chan_flag; u8 u8remain_on_chan_flag;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler;
/*If it's a pendig remain-on-channel, don't overwrite gWFiDrvHandle values (since incoming msg is garbbage)*/ /*If it's a pendig remain-on-channel, don't overwrite gWFiDrvHandle values (since incoming msg is garbbage)*/
...@@ -3541,7 +3541,7 @@ static int Handle_RegisterFrame(struct host_if_drv *drvHandler, ...@@ -3541,7 +3541,7 @@ static int Handle_RegisterFrame(struct host_if_drv *drvHandler,
struct reg_frame *pstrHostIfRegisterFrame) struct reg_frame *pstrHostIfRegisterFrame)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3590,7 +3590,7 @@ static u32 Handle_ListenStateExpired(struct host_if_drv *drvHandler, ...@@ -3590,7 +3590,7 @@ static u32 Handle_ListenStateExpired(struct host_if_drv *drvHandler,
struct remain_ch *pstrHostIfRemainOnChan) struct remain_ch *pstrHostIfRemainOnChan)
{ {
u8 u8remain_on_chan_flag; u8 u8remain_on_chan_flag;
tstrWID strWID; struct wid strWID;
s32 s32Error = 0; s32 s32Error = 0;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *) drvHandler;
...@@ -3676,7 +3676,7 @@ static void Handle_PowerManagement(struct host_if_drv *drvHandler, ...@@ -3676,7 +3676,7 @@ static void Handle_PowerManagement(struct host_if_drv *drvHandler,
struct power_mgmt_param *strPowerMgmtParam) struct power_mgmt_param *strPowerMgmtParam)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
s8 s8PowerMode; s8 s8PowerMode;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3712,7 +3712,7 @@ static void Handle_SetMulticastFilter(struct host_if_drv *drvHandler, ...@@ -3712,7 +3712,7 @@ static void Handle_SetMulticastFilter(struct host_if_drv *drvHandler,
struct set_multicast *strHostIfSetMulti) struct set_multicast *strHostIfSetMulti)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
u8 *pu8CurrByte; u8 *pu8CurrByte;
PRINT_D(HOSTINF_DBG, "Setup Multicast Filter\n"); PRINT_D(HOSTINF_DBG, "Setup Multicast Filter\n");
...@@ -3763,7 +3763,7 @@ static s32 Handle_AddBASession(struct host_if_drv *drvHandler, ...@@ -3763,7 +3763,7 @@ static s32 Handle_AddBASession(struct host_if_drv *drvHandler,
struct ba_session_info *strHostIfBASessionInfo) struct ba_session_info *strHostIfBASessionInfo)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
int AddbaTimeout = 100; int AddbaTimeout = 100;
char *ptr = NULL; char *ptr = NULL;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -3852,7 +3852,7 @@ static s32 Handle_DelAllRxBASessions(struct host_if_drv *drvHandler, ...@@ -3852,7 +3852,7 @@ static s32 Handle_DelAllRxBASessions(struct host_if_drv *drvHandler,
struct ba_session_info *strHostIfBASessionInfo) struct ba_session_info *strHostIfBASessionInfo)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
char *ptr = NULL; char *ptr = NULL;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)drvHandler;
...@@ -4159,7 +4159,7 @@ static void TimerCB_Connect(unsigned long arg) ...@@ -4159,7 +4159,7 @@ static void TimerCB_Connect(unsigned long arg)
/* Check implementation in core adding 9 bytes to the input! */ /* Check implementation in core adding 9 bytes to the input! */
s32 host_int_remove_key(struct host_if_drv *hWFIDrv, const u8 *pu8StaAddress) s32 host_int_remove_key(struct host_if_drv *hWFIDrv, const u8 *pu8StaAddress)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_REMOVE_KEY; strWID.u16WIDid = (u16)WID_REMOVE_KEY;
strWID.enuWIDtype = WID_STR; strWID.enuWIDtype = WID_STR;
...@@ -4676,7 +4676,7 @@ s32 host_int_set_pmkid_info(struct host_if_drv *hWFIDrv, struct host_if_pmkid_at ...@@ -4676,7 +4676,7 @@ s32 host_int_set_pmkid_info(struct host_if_drv *hWFIDrv, struct host_if_pmkid_at
s32 host_int_get_pmkid_info(struct host_if_drv *hWFIDrv, u8 *pu8PmkidInfoArray, s32 host_int_get_pmkid_info(struct host_if_drv *hWFIDrv, u8 *pu8PmkidInfoArray,
u32 u32PmkidInfoLen) u32 u32PmkidInfoLen)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_PMKID_INFO; strWID.u16WIDid = (u16)WID_PMKID_INFO;
strWID.enuWIDtype = WID_STR; strWID.enuWIDtype = WID_STR;
...@@ -4703,7 +4703,7 @@ s32 host_int_get_pmkid_info(struct host_if_drv *hWFIDrv, u8 *pu8PmkidInfoArray, ...@@ -4703,7 +4703,7 @@ s32 host_int_get_pmkid_info(struct host_if_drv *hWFIDrv, u8 *pu8PmkidInfoArray,
s32 host_int_set_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv, u8 *pu8PassPhrase, s32 host_int_set_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv, u8 *pu8PassPhrase,
u8 u8Psklength) u8 u8Psklength)
{ {
tstrWID strWID; struct wid strWID;
/*validating psk length*/ /*validating psk length*/
if ((u8Psklength > 7) && (u8Psklength < 65)) { if ((u8Psklength > 7) && (u8Psklength < 65)) {
...@@ -4798,7 +4798,7 @@ s32 host_int_set_MacAddress(struct host_if_drv *hWFIDrv, u8 *pu8MacAddress) ...@@ -4798,7 +4798,7 @@ s32 host_int_set_MacAddress(struct host_if_drv *hWFIDrv, u8 *pu8MacAddress)
s32 host_int_get_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv, s32 host_int_get_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv,
u8 *pu8PassPhrase, u8 u8Psklength) u8 *pu8PassPhrase, u8 u8Psklength)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_11I_PSK; strWID.u16WIDid = (u16)WID_11I_PSK;
strWID.enuWIDtype = WID_STR; strWID.enuWIDtype = WID_STR;
...@@ -4825,7 +4825,7 @@ s32 host_int_get_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv, ...@@ -4825,7 +4825,7 @@ s32 host_int_get_RSNAConfigPSKPassPhrase(struct host_if_drv *hWFIDrv,
*/ */
s32 host_int_set_start_scan_req(struct host_if_drv *hWFIDrv, u8 scanSource) s32 host_int_set_start_scan_req(struct host_if_drv *hWFIDrv, u8 scanSource)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_START_SCAN_REQ; strWID.u16WIDid = (u16)WID_START_SCAN_REQ;
strWID.enuWIDtype = WID_CHAR; strWID.enuWIDtype = WID_CHAR;
...@@ -4853,7 +4853,7 @@ s32 host_int_set_start_scan_req(struct host_if_drv *hWFIDrv, u8 scanSource) ...@@ -4853,7 +4853,7 @@ s32 host_int_set_start_scan_req(struct host_if_drv *hWFIDrv, u8 scanSource)
s32 host_int_get_start_scan_req(struct host_if_drv *hWFIDrv, u8 *pu8ScanSource) s32 host_int_get_start_scan_req(struct host_if_drv *hWFIDrv, u8 *pu8ScanSource)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_START_SCAN_REQ; strWID.u16WIDid = (u16)WID_START_SCAN_REQ;
strWID.enuWIDtype = WID_CHAR; strWID.enuWIDtype = WID_CHAR;
...@@ -5050,7 +5050,7 @@ s32 host_int_disconnect(struct host_if_drv *hWFIDrv, u16 u16ReasonCode) ...@@ -5050,7 +5050,7 @@ s32 host_int_disconnect(struct host_if_drv *hWFIDrv, u16 u16ReasonCode)
*/ */
s32 host_int_disconnect_station(struct host_if_drv *hWFIDrv, u8 assoc_id) s32 host_int_disconnect_station(struct host_if_drv *hWFIDrv, u8 assoc_id)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_DISCONNECT; strWID.u16WIDid = (u16)WID_DISCONNECT;
strWID.enuWIDtype = WID_CHAR; strWID.enuWIDtype = WID_CHAR;
...@@ -5089,7 +5089,7 @@ s32 host_int_disconnect_station(struct host_if_drv *hWFIDrv, u8 assoc_id) ...@@ -5089,7 +5089,7 @@ s32 host_int_disconnect_station(struct host_if_drv *hWFIDrv, u8 assoc_id)
s32 host_int_get_assoc_req_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocReqInfo, s32 host_int_get_assoc_req_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocReqInfo,
u32 u32AssocReqInfoLen) u32 u32AssocReqInfoLen)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_ASSOC_REQ_INFO; strWID.u16WIDid = (u16)WID_ASSOC_REQ_INFO;
strWID.enuWIDtype = WID_STR; strWID.enuWIDtype = WID_STR;
...@@ -5114,7 +5114,7 @@ s32 host_int_get_assoc_res_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocRespInf ...@@ -5114,7 +5114,7 @@ s32 host_int_get_assoc_res_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocRespInf
u32 u32MaxAssocRespInfoLen, u32 *pu32RcvdAssocRespInfoLen) u32 u32MaxAssocRespInfoLen, u32 *pu32RcvdAssocRespInfoLen)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)hWFIDrv; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)hWFIDrv;
if (pstrWFIDrv == NULL) { if (pstrWFIDrv == NULL) {
...@@ -5160,7 +5160,7 @@ s32 host_int_get_assoc_res_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocRespInf ...@@ -5160,7 +5160,7 @@ s32 host_int_get_assoc_res_info(struct host_if_drv *hWFIDrv, u8 *pu8AssocRespInf
s32 host_int_get_rx_power_level(struct host_if_drv *hWFIDrv, u8 *pu8RxPowerLevel, s32 host_int_get_rx_power_level(struct host_if_drv *hWFIDrv, u8 *pu8RxPowerLevel,
u32 u32RxPowerLevelLen) u32 u32RxPowerLevelLen)
{ {
tstrWID strWID; struct wid strWID;
strWID.u16WIDid = (u16)WID_RX_POWER_LEVEL; strWID.u16WIDid = (u16)WID_RX_POWER_LEVEL;
strWID.enuWIDtype = WID_STR; strWID.enuWIDtype = WID_STR;
...@@ -5379,7 +5379,7 @@ s32 host_int_test_get_int_wid(struct host_if_drv *hWFIDrv, u32 *pu32TestMemAddr) ...@@ -5379,7 +5379,7 @@ s32 host_int_test_get_int_wid(struct host_if_drv *hWFIDrv, u32 *pu32TestMemAddr)
{ {
s32 s32Error = 0; s32 s32Error = 0;
tstrWID strWID; struct wid strWID;
struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)hWFIDrv; struct host_if_drv *pstrWFIDrv = (struct host_if_drv *)hWFIDrv;
......
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