提交 d85f5326 编写于 作者: C Chaehyun Lim 提交者: Greg Kroah-Hartman

staging: wilc1000: remove WILC_Uint16

Use u16 instead of WILC_Uint16.
Signed-off-by: NChaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 8a54d917
......@@ -176,7 +176,7 @@ static u8 g_seqno;
static WILC_Sint16 g_wid_num = -1;
static WILC_Uint16 Res_Len;
static u16 Res_Len;
static u8 g_oper_mode = SET_CFG;
......@@ -309,7 +309,7 @@ static tstrWID gastrWIDs[] = {
#endif /* MAC_802_11N */
};
WILC_Uint16 g_num_total_switches = (sizeof(gastrWIDs) / sizeof(tstrWID));
u16 g_num_total_switches = (sizeof(gastrWIDs) / sizeof(tstrWID));
/*****************************************************************************/
/* Static Function Declarations */
/*****************************************************************************/
......@@ -340,7 +340,7 @@ INLINE u8 get_hex_char(u8 inp)
/* This function extracts the MAC address held in a string in standard format */
/* into another buffer as integers. */
INLINE WILC_Uint16 extract_mac_addr(WILC_Char *str, u8 *buff)
INLINE u16 extract_mac_addr(WILC_Char *str, u8 *buff)
{
*buff = 0;
while (*str != '\0') {
......@@ -476,9 +476,9 @@ INLINE tenuWIDtype get_wid_type(WILC_Uint32 wid_num)
/* This function extracts the beacon period field from the beacon or probe */
/* response frame. */
INLINE WILC_Uint16 get_beacon_period(u8 *data)
INLINE u16 get_beacon_period(u8 *data)
{
WILC_Uint16 bcn_per = 0;
u16 bcn_per = 0;
bcn_per = data[0];
bcn_per |= (data[1] << 8);
......@@ -605,10 +605,10 @@ INLINE void get_ssid(u8 *data, u8 *ssid, u8 *p_ssid_len)
/* This function extracts the capability info field from the beacon or probe */
/* response frame. */
INLINE WILC_Uint16 get_cap_info(u8 *data)
INLINE u16 get_cap_info(u8 *data)
{
WILC_Uint16 cap_info = 0;
WILC_Uint16 index = MAC_HDR_LEN;
u16 cap_info = 0;
u16 index = MAC_HDR_LEN;
tenuFrmSubtype st = BEACON;
st = get_sub_type(data);
......@@ -626,9 +626,9 @@ INLINE WILC_Uint16 get_cap_info(u8 *data)
/* This function extracts the capability info field from the Association */
/* response frame. */
INLINE WILC_Uint16 get_assoc_resp_cap_info(u8 *data)
INLINE u16 get_assoc_resp_cap_info(u8 *data)
{
WILC_Uint16 cap_info = 0;
u16 cap_info = 0;
cap_info = data[0];
cap_info |= (data[1] << 8);
......@@ -638,9 +638,9 @@ INLINE WILC_Uint16 get_assoc_resp_cap_info(u8 *data)
/* This funcion extracts the association status code from the incoming */
/* association response frame and returns association status code */
INLINE WILC_Uint16 get_asoc_status(u8 *data)
INLINE u16 get_asoc_status(u8 *data)
{
WILC_Uint16 asoc_status = 0;
u16 asoc_status = 0;
asoc_status = data[3];
asoc_status = (asoc_status << 8) | data[2];
......@@ -650,9 +650,9 @@ INLINE WILC_Uint16 get_asoc_status(u8 *data)
/* This function extracts association ID from the incoming association */
/* response frame */
INLINE WILC_Uint16 get_asoc_id(u8 *data)
INLINE u16 get_asoc_id(u8 *data)
{
WILC_Uint16 asoc_id = 0;
u16 asoc_id = 0;
asoc_id = data[4];
asoc_id |= (data[5] << 8);
......@@ -692,9 +692,9 @@ WILC_Sint32 CoreConfiguratorInit(void)
return s32Error;
}
u8 *get_tim_elm(u8 *pu8msa, WILC_Uint16 u16RxLen, WILC_Uint16 u16TagParamOffset)
u8 *get_tim_elm(u8 *pu8msa, u16 u16RxLen, u16 u16TagParamOffset)
{
WILC_Uint16 u16index = 0;
u16 u16index = 0;
/*************************************************************************/
/* Beacon Frame - Frame Body */
......@@ -722,9 +722,9 @@ u8 *get_tim_elm(u8 *pu8msa, WILC_Uint16 u16RxLen, WILC_Uint16 u16TagParamOffset)
/* This function gets the current channel information from
* the 802.11n beacon/probe response frame */
u8 get_current_channel_802_11n(u8 *pu8msa, WILC_Uint16 u16RxLen)
u8 get_current_channel_802_11n(u8 *pu8msa, u16 u16RxLen)
{
WILC_Uint16 index;
u16 index;
index = TAG_PARAM_OFFSET;
while (index < (u16RxLen - FCS_LEN)) {
......@@ -741,7 +741,7 @@ u8 get_current_channel_802_11n(u8 *pu8msa, WILC_Uint16 u16RxLen)
return 0; /* no MIB here */
}
u8 get_current_channel(u8 *pu8msa, WILC_Uint16 u16RxLen)
u8 get_current_channel(u8 *pu8msa, u16 u16RxLen)
{
#ifdef PHY_802_11n
#ifdef FIVE_GHZ_BAND
......@@ -775,10 +775,10 @@ WILC_Sint32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInf
tstrNetworkInfo *pstrNetworkInfo = NULL;
u8 u8MsgType = 0;
u8 u8MsgID = 0;
WILC_Uint16 u16MsgLen = 0;
u16 u16MsgLen = 0;
WILC_Uint16 u16WidID = (WILC_Uint16)WID_NIL;
WILC_Uint16 u16WidLen = 0;
u16 u16WidID = (u16)WID_NIL;
u16 u16WidLen = 0;
u8 *pu8WidVal = 0;
u8MsgType = pu8MsgBuffer[0];
......@@ -807,10 +807,10 @@ WILC_Sint32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInf
/* parse the WID value of the WID "WID_NEWORK_INFO" */
{
u8 *pu8msa = 0;
WILC_Uint16 u16RxLen = 0;
u16 u16RxLen = 0;
u8 *pu8TimElm = 0;
u8 *pu8IEs = 0;
WILC_Uint16 u16IEsLen = 0;
u16 u16IEsLen = 0;
u8 u8index = 0;
WILC_Uint32 u32Tsf_Lo;
WILC_Uint32 u32Tsf_Hi;
......@@ -929,15 +929,15 @@ WILC_Sint32 ParseAssocRespInfo(u8 *pu8Buffer, WILC_Uint32 u32BufferLen,
{
WILC_Sint32 s32Error = WILC_SUCCESS;
tstrConnectRespInfo *pstrConnectRespInfo = NULL;
WILC_Uint16 u16AssocRespLen = 0;
u16 u16AssocRespLen = 0;
u8 *pu8IEs = 0;
WILC_Uint16 u16IEsLen = 0;
u16 u16IEsLen = 0;
pstrConnectRespInfo = (tstrConnectRespInfo *)WILC_MALLOC(sizeof(tstrConnectRespInfo));
WILC_memset((void *)(pstrConnectRespInfo), 0, sizeof(tstrConnectRespInfo));
/* u16AssocRespLen = pu8Buffer[0]; */
u16AssocRespLen = (WILC_Uint16)u32BufferLen;
u16AssocRespLen = (u16)u32BufferLen;
/* get the status code */
pstrConnectRespInfo->u16ConnectStatus = get_asoc_status(pu8Buffer);
......@@ -1153,8 +1153,8 @@ void ProcessCharWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
void ProcessShortWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
tstrWID *pstrWID, WILC_Sint8 *ps8WidVal)
{
WILC_Uint16 *pu16val = (WILC_Uint16 *)ps8WidVal;
WILC_Uint16 u16val = 0;
u16 *pu16val = (u16 *)ps8WidVal;
u16 u16val = 0;
WILC_Sint32 s32PktLen = *ps32PktLen;
if (pstrWID == NULL) {
PRINT_WRN(CORECONFIG_DBG, "Can't set SHORT val 0x%x ,NULL structure\n", u16val);
......@@ -1169,7 +1169,7 @@ void ProcessShortWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
u16val = *pu16val;
/* Length */
pcPacket[s32PktLen++] = sizeof(WILC_Uint16);
pcPacket[s32PktLen++] = sizeof(u16);
/* Value */
pcPacket[s32PktLen++] = (u8)(u16val & 0xFF);
......@@ -1324,8 +1324,8 @@ void ProcessIPwid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
void ProcessStrWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
tstrWID *pstrWID, u8 *pu8val, WILC_Sint32 s32ValueSize)
{
WILC_Uint16 u16MsgLen = 0;
WILC_Uint16 idx = 0;
u16 u16MsgLen = 0;
u16 idx = 0;
WILC_Sint32 s32PktLen = *ps32PktLen;
if (pstrWID == NULL) {
PRINT_WRN(CORECONFIG_DBG, "Can't set STR val, NULL structure\n");
......@@ -1339,7 +1339,7 @@ void ProcessStrWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
if (g_oper_mode == SET_CFG) {
/* Message Length */
/* u16MsgLen = WILC_strlen(pu8val); */
u16MsgLen = (WILC_Uint16)s32ValueSize;
u16MsgLen = (u16)s32ValueSize;
/* Length */
pcPacket[s32PktLen++] = (u8)u16MsgLen;
......@@ -1381,7 +1381,7 @@ void ProcessStrWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
void ProcessAdrWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
tstrWID *pstrWID, u8 *pu8val)
{
WILC_Uint16 u16MsgLen = 0;
u16 u16MsgLen = 0;
WILC_Sint32 s32PktLen = *ps32PktLen;
if (pstrWID == NULL) {
......@@ -1447,8 +1447,8 @@ void ProcessBinWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
{
/* WILC_ERROR("processing Binary WIDs is not supported\n"); */
WILC_Uint16 u16MsgLen = 0;
WILC_Uint16 idx = 0;
u16 u16MsgLen = 0;
u16 idx = 0;
WILC_Sint32 s32PktLen = *ps32PktLen;
u8 u8checksum = 0;
......@@ -1463,7 +1463,7 @@ void ProcessBinWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
if (g_oper_mode == SET_CFG) {
/* Message Length */
u16MsgLen = (WILC_Uint16)s32ValueSize;
u16MsgLen = (u16)s32ValueSize;
/* Length */
/* pcPacket[s32PktLen++] = (u8)u16MsgLen; */
......@@ -1518,8 +1518,8 @@ void ProcessBinWid(WILC_Char *pcPacket, WILC_Sint32 *ps32PktLen,
/*****************************************************************************/
WILC_Sint32 further_process_response(u8 *resp,
WILC_Uint16 u16WIDid,
WILC_Uint16 cfg_len,
u16 u16WIDid,
u16 cfg_len,
WILC_Bool process_wid_num,
WILC_Uint32 cnt,
tstrWID *pstrWIDresult)
......@@ -1527,7 +1527,7 @@ WILC_Sint32 further_process_response(u8 *resp,
WILC_Uint32 retval = 0;
WILC_Uint32 idx = 0;
u8 cfg_chr = 0;
WILC_Uint16 cfg_sht = 0;
u16 cfg_sht = 0;
WILC_Uint32 cfg_int = 0;
u8 cfg_str[256] = {0};
tenuWIDtype enuWIDtype = WID_UNDEF;
......@@ -1548,7 +1548,7 @@ WILC_Sint32 further_process_response(u8 *resp,
case WID_SHORT:
{
WILC_Uint16 *pu16val = (WILC_Uint16 *)(pstrWIDresult->ps8WidVal);
u16 *pu16val = (u16 *)(pstrWIDresult->ps8WidVal);
cfg_sht = MAKE_WORD16(resp[idx], resp[idx + 1]);
/*Set local copy of WID*/
/* pstrWIDresult->ps8WidVal = (WILC_Sint8*)(WILC_Sint32)cfg_sht; */
......@@ -1689,9 +1689,9 @@ WILC_Sint32 further_process_response(u8 *resp,
WILC_Sint32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)
{
WILC_Uint16 u16RespLen = 0;
WILC_Uint16 u16WIDid = 0;
WILC_Uint16 cfg_len = 0;
u16 u16RespLen = 0;
u16 u16WIDid = 0;
u16 cfg_len = 0;
tenuWIDtype enuWIDtype = WID_UNDEF;
WILC_Bool num_wid_processed = WILC_FALSE;
WILC_Uint32 cnt = 0;
......@@ -1713,7 +1713,7 @@ WILC_Sint32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)
/* Incase of Bin Type Wid, the length is given by two byte field */
enuWIDtype = get_wid_type(u16WIDid);
if (WID_BIN_DATA == enuWIDtype) {
cfg_len |= ((WILC_Uint16)resp[idx + 3] << 8) & 0xFF00;
cfg_len |= ((u16)resp[idx + 3] << 8) & 0xFF00;
idx++;
}
idx += 3;
......@@ -1763,8 +1763,8 @@ WILC_Sint32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)
WILC_Sint32 ParseWriteResponse(u8 *pu8RespBuffer)
{
WILC_Sint32 s32Error = WILC_FAIL;
WILC_Uint16 u16RespLen = 0;
WILC_Uint16 u16WIDtype = (WILC_Uint16)WID_NIL;
u16 u16RespLen = 0;
u16 u16WIDtype = (u16)WID_NIL;
/* Check whether the received frame is a valid response */
if (RESP_MSG_TYPE != pu8RespBuffer[0]) {
......@@ -1806,8 +1806,8 @@ WILC_Sint32 ParseWriteResponse(u8 *pu8RespBuffer)
WILC_Sint32 CreatePacketHeader(WILC_Char *pcpacket, WILC_Sint32 *ps32PacketLength)
{
WILC_Sint32 s32Error = WILC_SUCCESS;
WILC_Uint16 u16MsgLen = (WILC_Uint16)(*ps32PacketLength);
WILC_Uint16 u16MsgInd = 0;
u16 u16MsgLen = (u16)(*ps32PacketLength);
u16 u16MsgInd = 0;
/* The format of the message is: */
/* +-------------------------------------------------------------------+ */
......
......@@ -31,7 +31,7 @@
#define NUM_11N_HUT_SWITCHES 0
#endif /* MAC_802_11N */
extern WILC_Uint16 g_num_total_switches;
extern u16 g_num_total_switches;
#define MAC_HDR_LEN 24 /* No Address4 - non-ESS */
#define MAX_SSID_LEN 33
......@@ -65,7 +65,7 @@ extern WILC_Uint16 g_num_total_switches;
/*****************************************************************************/
/* Function Macros */
/*****************************************************************************/
#define MAKE_WORD16(lsb, msb) ((((WILC_Uint16)(msb) << 8) & 0xFF00) | (lsb))
#define MAKE_WORD16(lsb, msb) ((((u16)(msb) << 8) & 0xFF00) | (lsb))
#define MAKE_WORD32(lsw, msw) ((((WILC_Uint32)(msw) << 16) & 0xFFFF0000) | (lsw))
......@@ -394,7 +394,7 @@ typedef enum {
} tenuConnectSts;
typedef struct {
WILC_Uint16 u16WIDid;
u16 u16WIDid;
tenuWIDtype enuWIDtype;
WILC_Sint32 s32ValueSize;
WILC_Sint8 *ps8WidVal;
......@@ -409,11 +409,11 @@ typedef struct {
/* This structure is used to support parsing of the received 'N' message */
typedef struct {
WILC_Sint8 s8rssi;
WILC_Uint16 u16CapInfo;
u16 u16CapInfo;
u8 au8ssid[MAX_SSID_LEN];
u8 u8SsidLen;
u8 au8bssid[6];
WILC_Uint16 u16BeaconPeriod;
u16 u16BeaconPeriod;
u8 u8DtimPeriod;
u8 u8channel;
unsigned long u32TimeRcvdInScanCached; /* of type unsigned long to be accepted by the linux kernel macro time_after() */
......@@ -426,7 +426,7 @@ typedef struct {
WILC_Uint32 u32Tsf; /* time-stamp [Low only 32 bit] */
#endif
u8 *pu8IEs;
WILC_Uint16 u16IEsLen;
u16 u16IEsLen;
void *pJoinParams;
tstrRSSI strRssi;
WILC_Uint64 u64Tsf; /* time-stamp [Low and High 64 bit] */
......@@ -434,11 +434,11 @@ typedef struct {
/* This structure is used to support parsing of the received Association Response frame */
typedef struct {
WILC_Uint16 u16capability;
WILC_Uint16 u16ConnectStatus;
WILC_Uint16 u16AssocID;
u16 u16capability;
u16 u16ConnectStatus;
u16 u16AssocID;
u8 *pu8RespIEs;
WILC_Uint16 u16RespIEsLen;
u16 u16RespIEsLen;
} tstrConnectRespInfo;
......@@ -447,14 +447,14 @@ typedef struct {
u8 *pu8ReqIEs;
size_t ReqIEsLen;
u8 *pu8RespIEs;
WILC_Uint16 u16RespIEsLen;
WILC_Uint16 u16ConnectStatus;
u16 u16RespIEsLen;
u16 u16ConnectStatus;
} tstrConnectInfo;
typedef struct {
WILC_Uint16 u16reason;
u16 u16reason;
u8 *ie;
size_t ie_len;
} tstrDisconnectNotifInfo;
......
......@@ -126,7 +126,7 @@ typedef enum {WID_CHAR = 0,
WID_UNDEF = 7} WID_TYPE_T;
#endif
typedef struct {
WILC_Uint16 cfg_wid;
u16 cfg_wid;
WID_TYPE_T cfg_type;
WILC_Sint8 *pu8Para;
} cfg_param_t;
......@@ -193,22 +193,22 @@ typedef struct {
u8 ht_enable;
u8 bss_type;
u8 auth_type;
WILC_Uint16 auth_timeout;
u16 auth_timeout;
u8 power_mgmt_mode;
WILC_Uint16 short_retry_limit;
WILC_Uint16 long_retry_limit;
WILC_Uint16 frag_threshold;
WILC_Uint16 rts_threshold;
WILC_Uint16 preamble_type;
u16 short_retry_limit;
u16 long_retry_limit;
u16 frag_threshold;
u16 rts_threshold;
u16 preamble_type;
u8 short_slot_allowed;
u8 txop_prot_disabled;
WILC_Uint16 beacon_interval;
WILC_Uint16 dtim_period;
u16 beacon_interval;
u16 dtim_period;
SITE_SURVEY_T site_survey_enabled;
WILC_Uint16 site_survey_scan_time;
u16 site_survey_scan_time;
u8 scan_source;
WILC_Uint16 active_scan_time;
WILC_Uint16 passive_scan_time;
u16 active_scan_time;
u16 passive_scan_time;
CURRENT_TX_RATE_T curr_tx_rate;
} tstrCfgParamVal;
......@@ -357,13 +357,13 @@ typedef struct {
typedef struct {
u8 au8Bssid[ETH_ALEN];
u8 u8Ted;
WILC_Uint16 u16BufferSize;
WILC_Uint16 u16SessionTimeout;
u16 u16BufferSize;
u16 u16SessionTimeout;
} tstrHostIfBASessionInfo;
#ifdef WILC_P2P
typedef struct {
WILC_Uint16 u16Channel;
u16 u16Channel;
WILC_Uint32 u32duration;
tWILCpfRemainOnChanExpired pRemainOnChanExpired;
tWILCpfRemainOnChanReady pRemainOnChanReady;
......@@ -374,7 +374,7 @@ typedef struct {
typedef struct {
WILC_Bool bReg;
WILC_Uint16 u16FrameType;
u16 u16FrameType;
u8 u8Regid;
......@@ -462,21 +462,21 @@ typedef enum {
typedef struct {
u8 au8BSSID[ETH_ALEN];
WILC_Uint16 u16AssocID;
u16 u16AssocID;
u8 u8NumRates;
const u8 *pu8Rates;
WILC_Bool bIsHTSupported;
WILC_Uint16 u16HTCapInfo;
u16 u16HTCapInfo;
u8 u8AmpduParams;
u8 au8SuppMCsSet[16];
WILC_Uint16 u16HTExtParams;
u16 u16HTExtParams;
WILC_Uint32 u32TxBeamformingCap;
u8 u8ASELCap;
WILC_Uint16 u16FlagsMask; /*<! Determines which of u16FlagsSet were changed>*/
WILC_Uint16 u16FlagsSet; /*<! Decoded according to tenuWILC_StaFlag */
u16 u16FlagsMask; /*<! Determines which of u16FlagsSet were changed>*/
u16 u16FlagsSet; /*<! Decoded according to tenuWILC_StaFlag */
} tstrWILC_AddStaParam;
/* extern void CfgDisconnected(void* pUserVoid, WILC_Uint16 u16reason, u8 * ie, size_t ie_len); */
/* extern void CfgDisconnected(void* pUserVoid, u16 u16reason, u8 * ie, size_t ie_len); */
/*****************************************************************************/
/* */
......@@ -869,7 +869,7 @@ WILC_Sint32 host_int_flush_join_req(WILC_WFIDrvHandle hWFIDrv);
* @date 8 March 2012
* @version 1.0
*/
WILC_Sint32 host_int_disconnect(WILC_WFIDrvHandle hWFIDrv, WILC_Uint16 u16ReasonCode);
WILC_Sint32 host_int_disconnect(WILC_WFIDrvHandle hWFIDrv, u16 u16ReasonCode);
/**
* @brief disconnects a sta
......@@ -1038,7 +1038,7 @@ WILC_Sint32 hif_set_cfg(WILC_WFIDrvHandle hWFIDrv, tstrCfgParamVal *pstrCfgParam
* @date 8 March 2012
* @version 1.0
*/
WILC_Sint32 hif_get_cfg(WILC_WFIDrvHandle hWFIDrv, WILC_Uint16 u16WID, WILC_Uint16 *pu16WID_Value);
WILC_Sint32 hif_get_cfg(WILC_WFIDrvHandle hWFIDrv, u16 u16WID, u16 *pu16WID_Value);
/*****************************************************************************/
/* Notification Functions */
/*****************************************************************************/
......@@ -1058,7 +1058,7 @@ WILC_Sint32 hif_get_cfg(WILC_WFIDrvHandle hWFIDrv, WILC_Uint16 u16WID, WILC_Uint
* @version 1.0
*/
void host_int_send_join_leave_info_to_host
(WILC_Uint16 assocId, u8 *stationAddr, WILC_Bool joining);
(u16 assocId, u8 *stationAddr, WILC_Bool joining);
/**
* @brief notifies host with stations found in scan
......@@ -1074,7 +1074,7 @@ void host_int_send_join_leave_info_to_host
* @version 1.0
*/
void host_int_send_network_info_to_host
(u8 *macStartAddress, WILC_Uint16 u16RxFrameLen, WILC_Sint8 s8Rssi);
(u8 *macStartAddress, u16 u16RxFrameLen, WILC_Sint8 s8Rssi);
/**
* @brief host interface initialization function
......@@ -1285,7 +1285,7 @@ WILC_Sint32 host_int_get_ipaddress(WILC_WFIDrvHandle hWFIDrv, u8 *pu8IPAddr, u8
* @date
* @version 1.0
*/
WILC_Sint32 host_int_remain_on_channel(WILC_WFIDrvHandle hWFIDrv, WILC_Uint32 u32SessionID, WILC_Uint32 u32duration, WILC_Uint16 chan, tWILCpfRemainOnChanExpired RemainOnChanExpired, tWILCpfRemainOnChanReady RemainOnChanReady, void *pvUserArg);
WILC_Sint32 host_int_remain_on_channel(WILC_WFIDrvHandle hWFIDrv, WILC_Uint32 u32SessionID, WILC_Uint32 u32duration, u16 chan, tWILCpfRemainOnChanExpired RemainOnChanExpired, tWILCpfRemainOnChanReady RemainOnChanReady, void *pvUserArg);
/**
* @brief host_int_ListenStateExpired
......@@ -1312,7 +1312,7 @@ WILC_Sint32 host_int_ListenStateExpired(WILC_WFIDrvHandle hWFIDrv, WILC_Uint32 u
* @date
* @version 1.0
*/
WILC_Sint32 host_int_frame_register(WILC_WFIDrvHandle hWFIDrv, WILC_Uint16 u16FrameType, WILC_Bool bReg);
WILC_Sint32 host_int_frame_register(WILC_WFIDrvHandle hWFIDrv, u16 u16FrameType, WILC_Bool bReg);
#endif
/**
* @brief host_int_set_wfi_drv_handler
......
......@@ -421,7 +421,7 @@ void WILC_mgm_HOSTAPD_ACK(void *priv, WILC_Bool bStatus)
u8 *buf = pv_data->buff;
/* len of the original frame without the added pointer at the tail */
WILC_Uint16 u16len = (pv_data->size) - sizeof(struct tx_complete_mon_data *);
u16 u16len = (pv_data->size) - sizeof(struct tx_complete_mon_data *);
/*if(bStatus == 1){
......
......@@ -67,7 +67,7 @@ unsigned char mac_add[] = {0x00, 0x80, 0xC2, 0x5E, 0xa2, 0xb2};
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
extern WILC_Bool g_obtainingIP;
#endif
extern WILC_Uint16 Set_machw_change_vir_if(WILC_Bool bValue);
extern u16 Set_machw_change_vir_if(WILC_Bool bValue);
extern void resolve_disconnect_aberration(void *drvHandler);
extern u8 gau8MulticastMacAddrList[WILC_MULTICAST_TABLE_SIZE][ETH_ALEN];
void wilc1000_wlan_deinit(linux_wlan_t *nic);
......
......@@ -14,7 +14,6 @@
#define WILC_OSW_INTERFACE_VER 2
/* Integer Types */
typedef unsigned short WILC_Uint16;
typedef unsigned int WILC_Uint32;
typedef unsigned long long WILC_Uint64;
typedef signed char WILC_Sint8;
......
......@@ -25,7 +25,7 @@
extern void linux_wlan_free(void *vp);
extern int linux_wlan_get_firmware(perInterface_wlan_t *p_nic);
extern void linux_wlan_unlock(void *vp);
extern WILC_Uint16 Set_machw_change_vir_if(WILC_Bool bValue);
extern u16 Set_machw_change_vir_if(WILC_Bool bValue);
extern int mac_open(struct net_device *ndev);
extern int mac_close(struct net_device *ndev);
......@@ -574,7 +574,7 @@ static void CfgConnectResult(tenuConnDisconnEvent enuConnDisconnEvent,
if (enuConnDisconnEvent == CONN_DISCONN_EVENT_CONN_RESP) {
/*Initialization*/
WILC_Uint16 u16ConnectStatus = WLAN_STATUS_SUCCESS;
u16 u16ConnectStatus = WLAN_STATUS_SUCCESS;
u16ConnectStatus = pstrConnectInfo->u16ConnectStatus;
......@@ -2549,7 +2549,7 @@ int WILC_WFI_mgmt_tx(struct wiphy *wiphy,
/*Save the current channel after we tune to it*/
u8CurrChannel = chan->hw_value;
} else if (ieee80211_is_action(mgmt->frame_control)) {
PRINT_D(GENERIC_DBG, "ACTION FRAME:%x\n", (WILC_Uint16)mgmt->frame_control);
PRINT_D(GENERIC_DBG, "ACTION FRAME:%x\n", (u16)mgmt->frame_control);
/*BugID_4847*/
......@@ -2845,7 +2845,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
struct WILC_WFI_priv *priv;
perInterface_wlan_t *nic;
u8 interface_type;
WILC_Uint16 TID = 0;
u16 TID = 0;
#ifdef WILC_P2P
u8 i;
#endif
......
......@@ -175,7 +175,7 @@ struct WILC_WFI_priv {
};
typedef struct {
WILC_Uint16 frame_type;
u16 frame_type;
WILC_Bool reg;
} struct_frame_reg;
......
......@@ -27,7 +27,7 @@ extern void WILC_WFI_mgmt_rx(uint8_t *buff, uint32_t size);
extern void frmw_to_linux(uint8_t *buff, uint32_t size);
int sdio_xfer_cnt(void);
uint32_t wilc_get_chipid(uint8_t update);
WILC_Uint16 Set_machw_change_vir_if(WILC_Bool bValue);
u16 Set_machw_change_vir_if(WILC_Bool bValue);
......@@ -2325,9 +2325,9 @@ int wilc_wlan_init(wilc_wlan_inp_t *inp, wilc_wlan_oup_t *oup)
}
#define BIT31 (1 << 31)
WILC_Uint16 Set_machw_change_vir_if(WILC_Bool bValue)
u16 Set_machw_change_vir_if(WILC_Bool bValue)
{
WILC_Uint16 ret;
u16 ret;
WILC_Uint32 reg;
/*Reset WILC_CHANGING_VIR_IF register to allow adding futrue keys to CE H/W*/
......@@ -2354,7 +2354,7 @@ WILC_Uint16 Set_machw_change_vir_if(WILC_Bool bValue)
}
#ifdef WILC_FULLY_HOSTING_AP
wilc_wlan_dev_t *Get_wlan_context(WILC_Uint16 *pu16size)
wilc_wlan_dev_t *Get_wlan_context(u16 *pu16size)
{
*pu16size = sizeof(wilc_wlan_dev_t);
return &g_wlan;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册