Skip to contentSkip to conversation

staging: wilc1000: remove WILC_Uint16

PATCH Superseded Chaehyun Lim 1 participant 1 message Jun 9, 2015

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/8 staging: wilc1000: remove WILC_Uint16

Use u16 in stead of WILC_Uint16.

---
V2 : remove the spaces on the subject
Capitalize the name on the From and the Signed-off-by

 drivers/staging/wilc1000/coreconfigurator.c       |  98 +++----
 drivers/staging/wilc1000/coreconfigurator.h       |  26 +-
 drivers/staging/wilc1000/host_interface.c         | 302 +++++++++++-----------
 drivers/staging/wilc1000/host_interface.h         |  56 ++--
 drivers/staging/wilc1000/linux_mon.c              |   2 +-
 drivers/staging/wilc1000/linux_wlan.c             |   2 +-
 drivers/staging/wilc1000/wilc_oswrapper.h         |   3 +-
 drivers/staging/wilc1000/wilc_time.h              |   2 +-
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c |   8 +-
 drivers/staging/wilc1000/wilc_wfi_netdevice.h     |   2 +-
 drivers/staging/wilc1000/wilc_wlan.c              |   8 +-
 11 files changed, 254 insertions(+), 255 deletions(-)
drivers/staging/wilc1000/coreconfigurator.c +49 -49
index 6cc5c6a..58a2e53 100644
@@ -175,7 +175,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;
 
@@ -308,7 +308,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                                              */
 /*****************************************************************************/
@@ -339,7 +339,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') {
@@ -475,9 +475,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);
@@ -604,10 +604,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);
@@ -625,9 +625,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);
@@ -637,9 +637,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];
@@ -649,9 +649,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);
@@ -699,9 +699,9 @@ _fail_:
 	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                       */
@@ -729,9 +729,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)) {
@@ -748,7 +748,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
@@ -782,10 +782,10 @@ WILC_Sint32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInf
 	tstrNetworkInfo *pstrNetworkInfo = WILC_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];
@@ -814,10 +814,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;
@@ -936,15 +936,15 @@ WILC_Sint32 ParseAssocRespInfo(u8 *pu8Buffer, WILC_Uint32 u32BufferLen,
 {
 	WILC_Sint32 s32Error = WILC_SUCCESS;
 	tstrConnectRespInfo *pstrConnectRespInfo = WILC_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);
@@ -1160,8 +1160,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);
@@ -1176,7 +1176,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);
@@ -1331,8 +1331,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");
@@ -1346,7 +1346,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;
@@ -1388,7 +1388,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) {
@@ -1454,8 +1454,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;
 
@@ -1470,7 +1470,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; */
@@ -1525,8 +1525,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)
@@ -1534,7 +1534,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;
@@ -1555,7 +1555,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; */
@@ -1696,9 +1696,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;
@@ -1720,7 +1720,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;
@@ -1770,8 +1770,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]) {
@@ -1813,8 +1813,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:                                         */
 	/* +-------------------------------------------------------------------+ */
drivers/staging/wilc1000/coreconfigurator.h +13 -13
index 73cdbef..9644d61 100644
@@ -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;
drivers/staging/wilc1000/host_interface.c +151 -151

922 lines not on this page · raw message

drivers/staging/wilc1000/host_interface.h +28 -28

140 lines not on this page · raw message

drivers/staging/wilc1000/linux_mon.c +1 -1
index 171683c..6f8e747 100644
@@ -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){
drivers/staging/wilc1000/linux_wlan.c +1 -1
index 7af95e8..3f133d4 100644
@@ -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);
drivers/staging/wilc1000/wilc_oswrapper.h +1 -2
index 92bfd41..c287657 100644
@@ -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;
@@ -34,7 +33,7 @@ typedef enum {
 
 /* Character types */
 typedef char WILC_Char;
-typedef WILC_Uint16 WILC_WideChar;
+typedef u16 WILC_WideChar;
 
 #define WILC_OS_INFINITY (~((WILC_Uint32)0))
 #define WILC_NULL ((void *)0)
drivers/staging/wilc1000/wilc_time.h +1 -1
index 7e1a5c7..945b93d 100644
@@ -28,7 +28,7 @@ typedef struct {
 
 typedef struct {
 	/*!< current year */
-	WILC_Uint16	u16Year;
+	u16	u16Year;
 	/*!< current month */
 	u8	u8Month;
 	/*!< current day */
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +4 -4
index f4ccc09..99f946f 100644
@@ -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);
@@ -605,7 +605,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;
 
@@ -2832,7 +2832,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*/
@@ -3187,7 +3187,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
 	/* struct WILC_WFI_mon_priv* mon_priv; */
 	perInterface_wlan_t *nic;
 	u8 interface_type;
-	WILC_Uint16 TID = 0;
+	u16 TID = 0;
 	#ifdef WILC_P2P
 	u8 i;
 	#endif
drivers/staging/wilc1000/wilc_wfi_netdevice.h +1 -1
index 55c943e..e45b436 100644
@@ -183,7 +183,7 @@ struct WILC_WFI_priv {
 };
 
 typedef struct {
-	WILC_Uint16 frame_type;
+	u16 frame_type;
 	WILC_Bool reg;
 
 } struct_frame_reg;
drivers/staging/wilc1000/wilc_wlan.c +4 -4
index 5704b54..26b76be 100644
@@ -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);
 
 /* static uint32_t vmm_table[WILC_VMM_TBL_SIZE]; */
 /* static uint32_t vmm_table_rbk[WILC_VMM_TBL_SIZE]; */
@@ -2396,9 +2396,9 @@ _fail_:
 }
 
 #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*/
@@ -2425,7 +2425,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;
Signature · 1 line
1.9.1