mirror of
https://github.com/ukui/kernel.git
synced 2026-03-09 10:07:04 -07:00
staging: wilc1000: change WILC_BOOL to bool
change own data type(WILC_BOOL) to common data type(bool) but that's contain true/false value. so change with them. Signed-off-by: Dean Lee <dean.lee@atmel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ab6a167f19
commit
72ed4dc73d
@@ -145,7 +145,7 @@ typedef struct {
|
||||
WILC_Char *pcRespBuffer;
|
||||
s32 s32MaxRespBuffLen;
|
||||
s32 s32BytesRead;
|
||||
WILC_Bool bRespRequired;
|
||||
bool bRespRequired;
|
||||
} tstrConfigPktInfo;
|
||||
|
||||
|
||||
@@ -1520,7 +1520,7 @@ void ProcessBinWid(WILC_Char *pcPacket, s32 *ps32PktLen,
|
||||
s32 further_process_response(u8 *resp,
|
||||
u16 u16WIDid,
|
||||
u16 cfg_len,
|
||||
WILC_Bool process_wid_num,
|
||||
bool process_wid_num,
|
||||
u32 cnt,
|
||||
tstrWID *pstrWIDresult)
|
||||
{
|
||||
@@ -1693,7 +1693,7 @@ s32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)
|
||||
u16 u16WIDid = 0;
|
||||
u16 cfg_len = 0;
|
||||
tenuWIDtype enuWIDtype = WID_UNDEF;
|
||||
WILC_Bool num_wid_processed = WILC_FALSE;
|
||||
bool num_wid_processed = false;
|
||||
u32 cnt = 0;
|
||||
u32 idx = 0;
|
||||
u32 ResCnt = 0;
|
||||
@@ -1717,17 +1717,17 @@ s32 ParseResponse(u8 *resp, tstrWID *pstrWIDcfgResult)
|
||||
idx++;
|
||||
}
|
||||
idx += 3;
|
||||
if ((u16WIDid == g_wid_num) && (num_wid_processed == WILC_FALSE)) {
|
||||
num_wid_processed = WILC_TRUE;
|
||||
if ((u16WIDid == g_wid_num) && (num_wid_processed == false)) {
|
||||
num_wid_processed = true;
|
||||
|
||||
if (-2 == further_process_response(&resp[idx], u16WIDid, cfg_len, WILC_TRUE, 0, &pstrWIDcfgResult[ResCnt])) {
|
||||
if (-2 == further_process_response(&resp[idx], u16WIDid, cfg_len, true, 0, &pstrWIDcfgResult[ResCnt])) {
|
||||
return -2;
|
||||
}
|
||||
ResCnt++;
|
||||
} else {
|
||||
for (cnt = 0; cnt < g_num_total_switches; cnt++) {
|
||||
if (gastrWIDs[cnt].u16WIDid == u16WIDid) {
|
||||
if (-2 == further_process_response(&resp[idx], u16WIDid, cfg_len, WILC_FALSE, cnt,
|
||||
if (-2 == further_process_response(&resp[idx], u16WIDid, cfg_len, false, cnt,
|
||||
&pstrWIDcfgResult[ResCnt])) {
|
||||
return -2;
|
||||
}
|
||||
@@ -1913,7 +1913,7 @@ s32 CreateConfigPacket(s8 *ps8packet, s32 *ps32PacketLength,
|
||||
}
|
||||
|
||||
s32 ConfigWaitResponse(WILC_Char *pcRespBuffer, s32 s32MaxRespBuffLen, s32 *ps32BytesRead,
|
||||
WILC_Bool bRespRequired)
|
||||
bool bRespRequired)
|
||||
{
|
||||
s32 s32Error = WILC_SUCCESS;
|
||||
/*bug 3878*/
|
||||
@@ -1923,7 +1923,7 @@ s32 ConfigWaitResponse(WILC_Char *pcRespBuffer, s32 s32MaxRespBuffLen, s32 *ps32
|
||||
* gstrConfigPktInfo.bRespRequired = bRespRequired;*/
|
||||
|
||||
|
||||
if (gstrConfigPktInfo.bRespRequired == WILC_TRUE) {
|
||||
if (gstrConfigPktInfo.bRespRequired == true) {
|
||||
down(&SemHandlePktResp);
|
||||
|
||||
*ps32BytesRead = gstrConfigPktInfo.s32BytesRead;
|
||||
@@ -1950,7 +1950,7 @@ s32 ConfigWaitResponse(WILC_Char *pcRespBuffer, s32 s32MaxRespBuffLen, s32 *ps32
|
||||
*/
|
||||
#ifdef SIMULATION
|
||||
s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
|
||||
u32 u32WIDsCount, WILC_Bool bRespRequired, u32 drvHandler)
|
||||
u32 u32WIDsCount, bool bRespRequired, u32 drvHandler)
|
||||
{
|
||||
s32 s32Error = WILC_SUCCESS;
|
||||
s32 err = WILC_SUCCESS;
|
||||
@@ -1984,7 +1984,7 @@ s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
|
||||
ConfigWaitResponse(gps8ConfigPacket, MAX_PACKET_BUFF_SIZE, &s32RcvdRespLen, bRespRequired);
|
||||
|
||||
|
||||
if (bRespRequired == WILC_TRUE) {
|
||||
if (bRespRequired == true) {
|
||||
/* If the operating Mode is GET, then we expect a response frame from */
|
||||
/* the driver. Hence start listening to the port for response */
|
||||
if (g_oper_mode == GET_CFG) {
|
||||
@@ -2021,7 +2021,7 @@ s32 ConfigProvideResponse(WILC_Char *pcRespBuffer, s32 s32RespLen)
|
||||
{
|
||||
s32 s32Error = WILC_SUCCESS;
|
||||
|
||||
if (gstrConfigPktInfo.bRespRequired == WILC_TRUE) {
|
||||
if (gstrConfigPktInfo.bRespRequired == true) {
|
||||
if (s32RespLen <= gstrConfigPktInfo.s32MaxRespBuffLen) {
|
||||
WILC_memcpy(gstrConfigPktInfo.pcRespBuffer, pcRespBuffer, s32RespLen);
|
||||
gstrConfigPktInfo.s32BytesRead = s32RespLen;
|
||||
@@ -2129,7 +2129,7 @@ extern wilc_wlan_oup_t *gpstrWlanOps;
|
||||
* @version 1.0
|
||||
*/
|
||||
s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
|
||||
u32 u32WIDsCount, WILC_Bool bRespRequired, u32 drvHandler)
|
||||
u32 u32WIDsCount, bool bRespRequired, u32 drvHandler)
|
||||
{
|
||||
s32 counter = 0, ret = 0;
|
||||
if (gpstrWlanOps == NULL) {
|
||||
|
||||
@@ -418,7 +418,7 @@ typedef struct {
|
||||
u8 u8channel;
|
||||
unsigned long u32TimeRcvdInScanCached; /* of type unsigned long to be accepted by the linux kernel macro time_after() */
|
||||
unsigned long u32TimeRcvdInScan;
|
||||
WILC_Bool bNewNetwork;
|
||||
bool bNewNetwork;
|
||||
#ifdef AGING_ALG
|
||||
u8 u8Found;
|
||||
#endif
|
||||
@@ -476,7 +476,7 @@ extern s32 CoreConfiguratorInit(void);
|
||||
extern s32 CoreConfiguratorDeInit(void);
|
||||
|
||||
extern s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
|
||||
u32 u32WIDsCount, WILC_Bool bRespRequired, u32 drvHandler);
|
||||
u32 u32WIDsCount, bool bRespRequired, u32 drvHandler);
|
||||
extern s32 ParseNetworkInfo(u8 *pu8MsgBuffer, tstrNetworkInfo **ppstrNetworkInfo);
|
||||
extern s32 DeallocateNetworkInfo(tstrNetworkInfo *pstrNetworkInfo);
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ u32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer, u32 u32BytesToRead, u32 *pu32By
|
||||
return u32Error;
|
||||
}
|
||||
|
||||
u32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer, u32 u32BytesToWrite, WILC_Bool bForceOverWrite)
|
||||
u32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer, u32 u32BytesToWrite, bool bForceOverWrite)
|
||||
{
|
||||
u32 u32Error = 0;
|
||||
tstrFifoHandler *pstrFifoHandler = (tstrFifoHandler *) hFifo;
|
||||
|
||||
@@ -20,4 +20,4 @@ extern u32 FIFO_DeInit(tHANDLE hFifo);
|
||||
extern u32 FIFO_ReadBytes(tHANDLE hFifo, u8 *pu8Buffer,
|
||||
u32 u32BytesToRead, u32 *pu32BytesRead);
|
||||
extern u32 FIFO_WriteBytes(tHANDLE hFifo, u8 *pu8Buffer,
|
||||
u32 u32BytesToWrite, WILC_Bool bForceOverWrite);
|
||||
u32 u32BytesToWrite, bool bForceOverWrite);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -330,7 +330,7 @@ typedef struct {
|
||||
size_t ConnReqIEsLen;
|
||||
/* Connect user call back function */
|
||||
tWILCpfConnectResult pfUserConnectResult;
|
||||
WILC_Bool IsHTCapable;
|
||||
bool IsHTCapable;
|
||||
/* User specific parameter to be delivered through the Connect User Callback function */
|
||||
void *u32UserConnectPvoid;
|
||||
} tstrWILC_UsrConnReq;
|
||||
@@ -373,7 +373,7 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
|
||||
WILC_Bool bReg;
|
||||
bool bReg;
|
||||
u16 u16FrameType;
|
||||
u8 u8Regid;
|
||||
|
||||
@@ -412,7 +412,7 @@ typedef struct {
|
||||
|
||||
tenuHostIFstate enuHostIFstate;
|
||||
|
||||
/* WILC_Bool bPendingConnRequest; */
|
||||
/* bool bPendingConnRequest; */
|
||||
|
||||
#ifndef CONNECT_DIRECT
|
||||
u32 u32SurveyResultsCount;
|
||||
@@ -437,7 +437,7 @@ typedef struct {
|
||||
WILC_TimerHandle hRemainOnChannel;
|
||||
#endif
|
||||
|
||||
WILC_Bool IFC_UP;
|
||||
bool IFC_UP;
|
||||
} tstrWILC_WFIDrv;
|
||||
|
||||
/*!
|
||||
@@ -465,7 +465,7 @@ typedef struct {
|
||||
u16 u16AssocID;
|
||||
u8 u8NumRates;
|
||||
const u8 *pu8Rates;
|
||||
WILC_Bool bIsHTSupported;
|
||||
bool bIsHTSupported;
|
||||
u16 u16HTCapInfo;
|
||||
u8 u8AmpduParams;
|
||||
u8 au8SuppMCsSet[16];
|
||||
@@ -1058,7 +1058,7 @@ s32 hif_get_cfg(WILC_WFIDrvHandle hWFIDrv, u16 u16WID, u16 *pu16WID_Value);
|
||||
* @version 1.0
|
||||
*/
|
||||
void host_int_send_join_leave_info_to_host
|
||||
(u16 assocId, u8 *stationAddr, WILC_Bool joining);
|
||||
(u16 assocId, u8 *stationAddr, bool joining);
|
||||
|
||||
/**
|
||||
* @brief notifies host with stations found in scan
|
||||
@@ -1202,7 +1202,7 @@ s32 host_int_del_station(WILC_WFIDrvHandle hWFIDrv, const u8 *pu8MacAddr);
|
||||
s32 host_int_edit_station(WILC_WFIDrvHandle hWFIDrv, tstrWILC_AddStaParam *pstrStaParams);
|
||||
|
||||
/*!
|
||||
* @fn s32 host_int_set_power_mgmt(WILC_WFIDrvHandle hWFIDrv, WILC_Bool bIsEnabled, u32 u32Timeout)
|
||||
* @fn s32 host_int_set_power_mgmt(WILC_WFIDrvHandle hWFIDrv, bool bIsEnabled, u32 u32Timeout)
|
||||
* @brief Set the power management mode to enabled or disabled
|
||||
* @details
|
||||
* @param[in,out] hWFIDrv handle to the wifi driver
|
||||
@@ -1216,7 +1216,7 @@ s32 host_int_edit_station(WILC_WFIDrvHandle hWFIDrv, tstrWILC_AddStaParam *pstrS
|
||||
* @date 24 November 2012
|
||||
* @version 1.0 Description
|
||||
*/
|
||||
s32 host_int_set_power_mgmt(WILC_WFIDrvHandle hWFIDrv, WILC_Bool bIsEnabled, u32 u32Timeout);
|
||||
s32 host_int_set_power_mgmt(WILC_WFIDrvHandle hWFIDrv, bool bIsEnabled, u32 u32Timeout);
|
||||
/* @param[in,out] hWFIDrv handle to the wifi driver
|
||||
* @param[in] bIsEnabled TRUE if enabled, FALSE otherwise
|
||||
* @param[in] u8count count of mac address entries in the filter table
|
||||
@@ -1228,7 +1228,7 @@ s32 host_int_set_power_mgmt(WILC_WFIDrvHandle hWFIDrv, WILC_Bool bIsEnabled, u32
|
||||
* @date 24 November 2012
|
||||
* @version 1.0 Description
|
||||
*/
|
||||
s32 host_int_setup_multicast_filter(WILC_WFIDrvHandle hWFIDrv, WILC_Bool bIsEnabled, u32 u32count);
|
||||
s32 host_int_setup_multicast_filter(WILC_WFIDrvHandle hWFIDrv, bool bIsEnabled, u32 u32count);
|
||||
/**
|
||||
* @brief host_int_setup_ipaddress
|
||||
* @details set IP address on firmware
|
||||
@@ -1312,7 +1312,7 @@ s32 host_int_ListenStateExpired(WILC_WFIDrvHandle hWFIDrv, u32 u32SessionID);
|
||||
* @date
|
||||
* @version 1.0
|
||||
*/
|
||||
s32 host_int_frame_register(WILC_WFIDrvHandle hWFIDrv, u16 u16FrameType, WILC_Bool bReg);
|
||||
s32 host_int_frame_register(WILC_WFIDrvHandle hWFIDrv, u16 u16FrameType, bool bReg);
|
||||
#endif
|
||||
/**
|
||||
* @brief host_int_set_wfi_drv_handler
|
||||
|
||||
@@ -274,7 +274,7 @@ static int mon_mgmt_tx(struct net_device *dev, const u8 *buf, size_t len)
|
||||
memcpy((mgmt_tx->buff) + (len - sizeof(struct tx_complete_mon_data *)), &mgmt_tx, sizeof(struct tx_complete_mon_data *));
|
||||
|
||||
/* filter data frames to handle it's PS */
|
||||
if (filter_monitor_data_frames((mgmt_tx->buff), len) == WILC_TRUE) {
|
||||
if (filter_monitor_data_frames((mgmt_tx->buff), len) == true) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ static const struct net_device_ops wilc_wfi_netdev_ops = {
|
||||
* @date 9 May 2013
|
||||
* @version 1.0
|
||||
*/
|
||||
void WILC_mgm_HOSTAPD_ACK(void *priv, WILC_Bool bStatus)
|
||||
void WILC_mgm_HOSTAPD_ACK(void *priv, bool bStatus)
|
||||
{
|
||||
struct sk_buff *skb;
|
||||
struct wilc_wfi_radiotap_cb_hdr *cb_hdr;
|
||||
@@ -452,7 +452,7 @@ void WILC_mgm_HOSTAPD_ACK(void *priv, WILC_Bool bStatus)
|
||||
cb_hdr->rate = 5; /* txrate->bitrate / 5; */
|
||||
|
||||
|
||||
if (WILC_TRUE == bStatus) {
|
||||
if (true == bStatus) {
|
||||
/* success */
|
||||
cb_hdr->tx_flags = IEEE80211_RADIOTAP_F_TX_RTS;
|
||||
} else {
|
||||
|
||||
@@ -65,9 +65,9 @@ unsigned char mac_add[] = {0x00, 0x80, 0xC2, 0x5E, 0xa2, 0xb2};
|
||||
#endif
|
||||
|
||||
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
|
||||
extern WILC_Bool g_obtainingIP;
|
||||
extern bool g_obtainingIP;
|
||||
#endif
|
||||
extern u16 Set_machw_change_vir_if(WILC_Bool bValue);
|
||||
extern u16 Set_machw_change_vir_if(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);
|
||||
@@ -178,7 +178,7 @@ static void wilc_set_multicast_list(struct net_device *dev);
|
||||
*/
|
||||
linux_wlan_t *g_linux_wlan;
|
||||
wilc_wlan_oup_t *gpstrWlanOps;
|
||||
WILC_Bool bEnablePS = WILC_TRUE;
|
||||
bool bEnablePS = true;
|
||||
|
||||
static const struct net_device_ops wilc_netdev_ops = {
|
||||
.ndo_init = mac_init_fn,
|
||||
@@ -302,14 +302,14 @@ static int dev_state_ev_handler(struct notifier_block *this, unsigned long event
|
||||
/*If we are in station mode or client mode*/
|
||||
if (nic->iftype == STATION_MODE || nic->iftype == CLIENT_MODE) {
|
||||
pstrWFIDrv->IFC_UP = 1;
|
||||
g_obtainingIP = WILC_FALSE;
|
||||
g_obtainingIP = false;
|
||||
WILC_TimerStop(&hDuringIpTimer, NULL);
|
||||
PRINT_D(GENERIC_DBG, "IP obtained , enable scan\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (bEnablePS == WILC_TRUE)
|
||||
if (bEnablePS == true)
|
||||
host_int_set_power_mgmt((WILC_WFIDrvHandle)pstrWFIDrv, 1, 0);
|
||||
|
||||
PRINT_D(GENERIC_DBG, "[%s] Up IP\n", dev_iface->ifa_label);
|
||||
@@ -326,7 +326,7 @@ static int dev_state_ev_handler(struct notifier_block *this, unsigned long event
|
||||
PRINT_INFO(GENERIC_DBG, "\n ============== IP Address Released ===============\n\n");
|
||||
if (nic->iftype == STATION_MODE || nic->iftype == CLIENT_MODE) {
|
||||
pstrWFIDrv->IFC_UP = 0;
|
||||
g_obtainingIP = WILC_FALSE;
|
||||
g_obtainingIP = false;
|
||||
}
|
||||
|
||||
if (memcmp(dev_iface->ifa_label, wlan_dev_name, 5) == 0)
|
||||
@@ -2090,7 +2090,7 @@ int mac_open(struct net_device *ndev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
Set_machw_change_vir_if(WILC_FALSE);
|
||||
Set_machw_change_vir_if(false);
|
||||
|
||||
host_int_get_MacAddress(priv->hWILCWFIDrv, mac_add);
|
||||
PRINT_D(INIT_DBG, "Mac address: %x:%x:%x:%x:%x:%x\n", mac_add[0], mac_add[1], mac_add[2],
|
||||
@@ -2187,14 +2187,14 @@ static void wilc_set_multicast_list(struct net_device *dev)
|
||||
if ((dev->flags & IFF_ALLMULTI) || (dev->mc.count) > WILC_MULTICAST_TABLE_SIZE) {
|
||||
PRINT_D(INIT_DBG, "Disable multicast filter, retrive all multicast packets\n");
|
||||
/* get all multicast packets */
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, WILC_FALSE, 0);
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, false, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
/* No multicast? Just get our own stuff */
|
||||
if ((dev->mc.count) == 0) {
|
||||
PRINT_D(INIT_DBG, "Enable multicast filter, retrive directed packets only.\n");
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, WILC_TRUE, 0);
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, true, 0);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -2207,7 +2207,7 @@ static void wilc_set_multicast_list(struct net_device *dev)
|
||||
i++;
|
||||
}
|
||||
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, WILC_TRUE, (dev->mc.count));
|
||||
host_int_setup_multicast_filter((WILC_WFIDrvHandle)pstrWFIDrv, true, (dev->mc.count));
|
||||
|
||||
return;
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ WILC_ErrNo WILC_MsgQueueCreate(WILC_MsgQueueHandle *pHandle,
|
||||
sema_init(&pHandle->hSem, 0);
|
||||
pHandle->pstrMessageList = NULL;
|
||||
pHandle->u32ReceiversCount = 0;
|
||||
pHandle->bExiting = WILC_FALSE;
|
||||
pHandle->bExiting = false;
|
||||
return WILC_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ WILC_ErrNo WILC_MsgQueueDestroy(WILC_MsgQueueHandle *pHandle,
|
||||
tstrWILC_MsgQueueAttrs *pstrAttrs)
|
||||
{
|
||||
|
||||
pHandle->bExiting = WILC_TRUE;
|
||||
pHandle->bExiting = true;
|
||||
|
||||
/* Release any waiting receiver thread. */
|
||||
while (pHandle->u32ReceiversCount > 0) {
|
||||
@@ -64,7 +64,7 @@ WILC_ErrNo WILC_MsgQueueSend(WILC_MsgQueueHandle *pHandle,
|
||||
WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT);
|
||||
}
|
||||
|
||||
if (pHandle->bExiting == WILC_TRUE) {
|
||||
if (pHandle->bExiting == true) {
|
||||
WILC_ERRORREPORT(s32RetStatus, WILC_FAIL);
|
||||
}
|
||||
|
||||
@@ -131,7 +131,7 @@ WILC_ErrNo WILC_MsgQueueRecv(WILC_MsgQueueHandle *pHandle,
|
||||
WILC_ERRORREPORT(s32RetStatus, WILC_INVALID_ARGUMENT);
|
||||
}
|
||||
|
||||
if (pHandle->bExiting == WILC_TRUE) {
|
||||
if (pHandle->bExiting == true) {
|
||||
WILC_ERRORREPORT(s32RetStatus, WILC_FAIL);
|
||||
}
|
||||
|
||||
|
||||
@@ -13,12 +13,6 @@
|
||||
/* OS Wrapper interface version */
|
||||
#define WILC_OSW_INTERFACE_VER 2
|
||||
|
||||
/* Boolean type */
|
||||
typedef enum {
|
||||
WILC_FALSE = 0,
|
||||
WILC_TRUE = 1
|
||||
} WILC_Bool;
|
||||
|
||||
/* Character types */
|
||||
typedef char WILC_Char;
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ typedef struct __Message_struct {
|
||||
typedef struct __MessageQueue_struct {
|
||||
struct semaphore hSem;
|
||||
spinlock_t strCriticalSection;
|
||||
WILC_Bool bExiting;
|
||||
bool bExiting;
|
||||
u32 u32ReceiversCount;
|
||||
Message *pstrMessageList;
|
||||
} WILC_MsgQueueHandle;
|
||||
|
||||
@@ -1472,4 +1472,3 @@ wilc_hif_func_t hif_spi = {
|
||||
spi_max_bus_speed,
|
||||
spi_default_bus_speed,
|
||||
};
|
||||
|
||||
|
||||
@@ -82,8 +82,8 @@ WILC_ErrNo WILC_TimerDestroy(WILC_TimerHandle *pHandle,
|
||||
* @details This function will move the timer to the PENDING state until the
|
||||
* given time expires (in msec) then the callback function will be
|
||||
* executed (timer in EXECUTING state) after execution is dene the
|
||||
* timer either goes to IDLE (if bPeriodicTimer==WILC_FALSE) or
|
||||
* PENDING with same timeout value (if bPeriodicTimer==WILC_TRUE)
|
||||
* timer either goes to IDLE (if bPeriodicTimer==false) or
|
||||
* PENDING with same timeout value (if bPeriodicTimer==true)
|
||||
* @param[in] pHandle handle to the timer object
|
||||
* @param[in] u32Timeout timeout value in msec after witch the callback
|
||||
* function will be executed. Timeout value of 0 is not allowed for
|
||||
|
||||
@@ -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 u16 Set_machw_change_vir_if(WILC_Bool bValue);
|
||||
extern u16 Set_machw_change_vir_if(bool bValue);
|
||||
|
||||
extern int mac_open(struct net_device *ndev);
|
||||
extern int mac_close(struct net_device *ndev);
|
||||
@@ -43,7 +43,7 @@ extern u8 u8ConnectedSSID[6];
|
||||
u8 g_wilc_initialized = 1;
|
||||
extern linux_wlan_t *g_linux_wlan;
|
||||
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
|
||||
extern WILC_Bool g_obtainingIP;
|
||||
extern bool g_obtainingIP;
|
||||
#endif
|
||||
|
||||
#define CHAN2G(_channel, _freq, _flags) { \
|
||||
@@ -112,7 +112,7 @@ u8 u8P2P_oui[] = {0x50, 0x6f, 0x9A, 0x09};
|
||||
u8 u8P2Plocalrandom = 0x01;
|
||||
u8 u8P2Precvrandom = 0x00;
|
||||
u8 u8P2P_vendorspec[] = {0xdd, 0x05, 0x00, 0x08, 0x40, 0x03};
|
||||
WILC_Bool bWilc_ie = WILC_FALSE;
|
||||
bool bWilc_ie = false;
|
||||
#endif
|
||||
|
||||
static struct ieee80211_supported_band WILC_WFI_band_2ghz = {
|
||||
@@ -135,9 +135,9 @@ struct add_key_params g_add_ptk_key_params;
|
||||
struct wilc_wfi_key g_key_ptk_params;
|
||||
struct wilc_wfi_wep_key g_key_wep_params;
|
||||
u8 g_flushing_in_progress;
|
||||
WILC_Bool g_ptk_keys_saved = WILC_FALSE;
|
||||
WILC_Bool g_gtk_keys_saved = WILC_FALSE;
|
||||
WILC_Bool g_wep_keys_saved = WILC_FALSE;
|
||||
bool g_ptk_keys_saved = false;
|
||||
bool g_gtk_keys_saved = false;
|
||||
bool g_wep_keys_saved = false;
|
||||
|
||||
#define AGING_TIME (9 * 1000)
|
||||
#define duringIP_TIME 15000
|
||||
@@ -178,7 +178,7 @@ uint32_t get_rssi_avg(tstrNetworkInfo *pstrNetworkInfo)
|
||||
return rssi_v;
|
||||
}
|
||||
|
||||
void refresh_scan(void *pUserVoid, uint8_t all, WILC_Bool bDirectScan)
|
||||
void refresh_scan(void *pUserVoid, uint8_t all, bool bDirectScan)
|
||||
{
|
||||
struct WILC_WFI_priv *priv;
|
||||
struct wiphy *wiphy;
|
||||
@@ -275,7 +275,7 @@ void remove_network_from_shadow(void *pUserVoid)
|
||||
void clear_duringIP(void *pUserVoid)
|
||||
{
|
||||
PRINT_D(GENERIC_DBG, "GO:IP Obtained , enable scan\n");
|
||||
g_obtainingIP = WILC_FALSE;
|
||||
g_obtainingIP = false;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -386,7 +386,7 @@ static void CfgScanResult(tenuScanEvent enuScanEvent, tstrNetworkInfo *pstrNetwo
|
||||
struct cfg80211_bss *bss = NULL;
|
||||
|
||||
priv = (struct WILC_WFI_priv *)pUserVoid;
|
||||
if (priv->bCfgScanning == WILC_TRUE) {
|
||||
if (priv->bCfgScanning == true) {
|
||||
if (enuScanEvent == SCAN_EVENT_NETWORK_FOUND) {
|
||||
wiphy = priv->dev->ieee80211_ptr->wiphy;
|
||||
WILC_NULLCHECK(s32Error, wiphy);
|
||||
@@ -409,7 +409,7 @@ static void CfgScanResult(tenuScanEvent enuScanEvent, tstrNetworkInfo *pstrNetwo
|
||||
"BeaconPeriod: %d \n", channel->center_freq, (((s32)pstrNetworkInfo->s8rssi) * 100),
|
||||
pstrNetworkInfo->u16CapInfo, pstrNetworkInfo->u16BeaconPeriod);
|
||||
|
||||
if (pstrNetworkInfo->bNewNetwork == WILC_TRUE) {
|
||||
if (pstrNetworkInfo->bNewNetwork == true) {
|
||||
if (priv->u32RcvdChCount < MAX_NUM_SCANNED_NETWORKS) { /* TODO: mostafa: to be replaced by */
|
||||
/* max_scan_ssids */
|
||||
PRINT_D(CFG80211_DBG, "Network %s found\n", pstrNetworkInfo->au8ssid);
|
||||
@@ -454,7 +454,7 @@ static void CfgScanResult(tenuScanEvent enuScanEvent, tstrNetworkInfo *pstrNetwo
|
||||
} else if (enuScanEvent == SCAN_EVENT_DONE) {
|
||||
PRINT_D(CFG80211_DBG, "Scan Done[%p] \n", priv->dev);
|
||||
PRINT_D(CFG80211_DBG, "Refreshing Scan ... \n");
|
||||
refresh_scan(priv, 1, WILC_FALSE);
|
||||
refresh_scan(priv, 1, false);
|
||||
|
||||
if (priv->u32RcvdChCount > 0) {
|
||||
PRINT_D(CFG80211_DBG, "%d Network(s) found \n", priv->u32RcvdChCount);
|
||||
@@ -465,9 +465,9 @@ static void CfgScanResult(tenuScanEvent enuScanEvent, tstrNetworkInfo *pstrNetwo
|
||||
down(&(priv->hSemScanReq));
|
||||
|
||||
if (priv->pstrScanReq != NULL) {
|
||||
cfg80211_scan_done(priv->pstrScanReq, WILC_FALSE);
|
||||
cfg80211_scan_done(priv->pstrScanReq, false);
|
||||
priv->u32RcvdChCount = 0;
|
||||
priv->bCfgScanning = WILC_FALSE;
|
||||
priv->bCfgScanning = false;
|
||||
priv->pstrScanReq = NULL;
|
||||
}
|
||||
up(&(priv->hSemScanReq));
|
||||
@@ -481,10 +481,10 @@ static void CfgScanResult(tenuScanEvent enuScanEvent, tstrNetworkInfo *pstrNetwo
|
||||
if (priv->pstrScanReq != NULL) {
|
||||
|
||||
update_scan_time(priv);
|
||||
refresh_scan(priv, 1, WILC_FALSE);
|
||||
refresh_scan(priv, 1, false);
|
||||
|
||||
cfg80211_scan_done(priv->pstrScanReq, WILC_FALSE);
|
||||
priv->bCfgScanning = WILC_FALSE;
|
||||
cfg80211_scan_done(priv->pstrScanReq, false);
|
||||
priv->bCfgScanning = false;
|
||||
priv->pstrScanReq = NULL;
|
||||
}
|
||||
up(&(priv->hSemScanReq));
|
||||
@@ -599,7 +599,7 @@ static void CfgConnectResult(tenuConnDisconnEvent enuConnDisconnEvent,
|
||||
}
|
||||
|
||||
if (u16ConnectStatus == WLAN_STATUS_SUCCESS) {
|
||||
WILC_Bool bNeedScanRefresh = WILC_FALSE;
|
||||
bool bNeedScanRefresh = false;
|
||||
u32 i;
|
||||
|
||||
PRINT_INFO(CFG80211_DBG, "Connection Successful:: BSSID: %x%x%x%x%x%x\n", pstrConnectInfo->au8bssid[0],
|
||||
@@ -617,17 +617,17 @@ static void CfgConnectResult(tenuConnDisconnEvent enuConnDisconnEvent,
|
||||
|
||||
if (time_after(now,
|
||||
astrLastScannedNtwrksShadow[i].u32TimeRcvdInScanCached + (unsigned long)(nl80211_SCAN_RESULT_EXPIRE - (1 * HZ)))) {
|
||||
bNeedScanRefresh = WILC_TRUE;
|
||||
bNeedScanRefresh = true;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (bNeedScanRefresh == WILC_TRUE) {
|
||||
if (bNeedScanRefresh == true) {
|
||||
/*BugID_5418*/
|
||||
/*Also, refrsh DIRECT- results if */
|
||||
refresh_scan(priv, 1, WILC_TRUE);
|
||||
refresh_scan(priv, 1, true);
|
||||
|
||||
}
|
||||
|
||||
@@ -645,13 +645,13 @@ static void CfgConnectResult(tenuConnDisconnEvent enuConnDisconnEvent,
|
||||
/* be replaced by pstrConnectInfo->u16ConnectStatus */
|
||||
} else if (enuConnDisconnEvent == CONN_DISCONN_EVENT_DISCONN_NOTIF) {
|
||||
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
|
||||
g_obtainingIP = WILC_FALSE;
|
||||
g_obtainingIP = false;
|
||||
#endif
|
||||
PRINT_ER("Received MAC_DISCONNECTED from firmware with reason %d on dev [%p]\n",
|
||||
pstrDisconnectNotifInfo->u16reason, priv->dev);
|
||||
u8P2Plocalrandom = 0x01;
|
||||
u8P2Precvrandom = 0x00;
|
||||
bWilc_ie = WILC_FALSE;
|
||||
bWilc_ie = false;
|
||||
WILC_memset(priv->au8AssociatedBss, 0, ETH_ALEN);
|
||||
linux_wlan_set_bssid(priv->dev, NullBssid);
|
||||
WILC_memset(u8ConnectedSSID, 0, ETH_ALEN);
|
||||
@@ -752,7 +752,7 @@ static int WILC_WFI_CfgScan(struct wiphy *wiphy, struct cfg80211_scan_request *r
|
||||
|
||||
reset_shadow_found(priv);
|
||||
|
||||
priv->bCfgScanning = WILC_TRUE;
|
||||
priv->bCfgScanning = true;
|
||||
if (request->n_channels <= MAX_NUM_SCANNED_NETWORKS) { /* TODO: mostafa: to be replaced by */
|
||||
/* max_scan_ssids */
|
||||
for (i = 0; i < request->n_channels; i++) {
|
||||
@@ -935,7 +935,7 @@ static int WILC_WFI_CfgConnect(struct wiphy *wiphy, struct net_device *dev,
|
||||
g_key_wep_params.key = WILC_MALLOC(sme->key_len);
|
||||
memcpy(g_key_wep_params.key, sme->key, sme->key_len);
|
||||
g_key_wep_params.key_idx = sme->key_idx;
|
||||
g_wep_keys_saved = WILC_TRUE;
|
||||
g_wep_keys_saved = true;
|
||||
|
||||
host_int_set_WEPDefaultKeyID(priv->hWILCWFIDrv, sme->key_idx);
|
||||
host_int_add_wep_key_bss_sta(priv->hWILCWFIDrv, sme->key, sme->key_len, sme->key_idx);
|
||||
@@ -953,7 +953,7 @@ static int WILC_WFI_CfgConnect(struct wiphy *wiphy, struct net_device *dev,
|
||||
g_key_wep_params.key = WILC_MALLOC(sme->key_len);
|
||||
memcpy(g_key_wep_params.key, sme->key, sme->key_len);
|
||||
g_key_wep_params.key_idx = sme->key_idx;
|
||||
g_wep_keys_saved = WILC_TRUE;
|
||||
g_wep_keys_saved = true;
|
||||
|
||||
host_int_set_WEPDefaultKeyID(priv->hWILCWFIDrv, sme->key_idx);
|
||||
host_int_add_wep_key_bss_sta(priv->hWILCWFIDrv, sme->key, sme->key_len, sme->key_idx);
|
||||
@@ -1101,7 +1101,7 @@ static int WILC_WFI_disconnect(struct wiphy *wiphy, struct net_device *dev, u16
|
||||
|
||||
u8P2Plocalrandom = 0x01;
|
||||
u8P2Precvrandom = 0x00;
|
||||
bWilc_ie = WILC_FALSE;
|
||||
bWilc_ie = false;
|
||||
#ifdef WILC_P2P
|
||||
pstrWFIDrv->u64P2p_MgmtTimeout = 0;
|
||||
#endif
|
||||
@@ -1348,7 +1348,7 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k
|
||||
PRINT_D(CFG80211_DBG, "key %x %x %x\n", g_key_gtk_params.key[0],
|
||||
g_key_gtk_params.key[1],
|
||||
g_key_gtk_params.key[2]);
|
||||
g_gtk_keys_saved = WILC_TRUE;
|
||||
g_gtk_keys_saved = true;
|
||||
}
|
||||
|
||||
host_int_add_rx_gtk(priv->hWILCWFIDrv, params->key, KeyLen,
|
||||
@@ -1385,7 +1385,7 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k
|
||||
PRINT_D(CFG80211_DBG, "key %x %x %x\n", g_key_ptk_params.key[0],
|
||||
g_key_ptk_params.key[1],
|
||||
g_key_ptk_params.key[2]);
|
||||
g_ptk_keys_saved = WILC_TRUE;
|
||||
g_ptk_keys_saved = true;
|
||||
}
|
||||
|
||||
host_int_add_ptk(priv->hWILCWFIDrv, params->key, KeyLen, mac_addr,
|
||||
@@ -1431,9 +1431,9 @@ static int WILC_WFI_del_key(struct wiphy *wiphy, struct net_device *netdev,
|
||||
/*BugID_5137*/
|
||||
/*delete saved keys, if any*/
|
||||
if (netdev == g_linux_wlan->strInterfaceInfo[0].wilc_netdev) {
|
||||
g_ptk_keys_saved = WILC_FALSE;
|
||||
g_gtk_keys_saved = WILC_FALSE;
|
||||
g_wep_keys_saved = WILC_FALSE;
|
||||
g_ptk_keys_saved = false;
|
||||
g_gtk_keys_saved = false;
|
||||
g_wep_keys_saved = false;
|
||||
|
||||
/*Delete saved WEP keys params, if any*/
|
||||
if (g_key_wep_params.key != NULL) {
|
||||
@@ -1499,7 +1499,7 @@ static int WILC_WFI_del_key(struct wiphy *wiphy, struct net_device *netdev,
|
||||
}
|
||||
|
||||
/*Reset WILC_CHANGING_VIR_IF register to allow adding futrue keys to CE H/W*/
|
||||
Set_machw_change_vir_if(WILC_FALSE);
|
||||
Set_machw_change_vir_if(false);
|
||||
}
|
||||
|
||||
if (key_index >= 0 && key_index <= 3) {
|
||||
@@ -1702,9 +1702,9 @@ static int WILC_WFI_get_station(struct wiphy *wiphy, struct net_device *dev,
|
||||
|
||||
#ifdef TCP_ENHANCEMENTS
|
||||
if ((strStatistics.u8LinkSpeed > TCP_ACK_FILTER_LINK_SPEED_THRESH) && (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED)) {
|
||||
Enable_TCP_ACK_Filter(WILC_TRUE);
|
||||
Enable_TCP_ACK_Filter(true);
|
||||
} else if (strStatistics.u8LinkSpeed != DEFAULT_LINK_SPEED) {
|
||||
Enable_TCP_ACK_Filter(WILC_FALSE);
|
||||
Enable_TCP_ACK_Filter(false);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2032,7 +2032,7 @@ void WILC_WFI_CfgParseRxAction(u8 *buf, u32 len)
|
||||
#ifdef USE_SUPPLICANT_GO_INTENT
|
||||
u8 intent;
|
||||
u8 tie_breaker;
|
||||
WILC_Bool is_wilc_go = WILC_TRUE;
|
||||
bool is_wilc_go = true;
|
||||
#endif
|
||||
u8 op_channel_attr_index = 0;
|
||||
u8 channel_list_attr_index = 0;
|
||||
@@ -2048,10 +2048,10 @@ void WILC_WFI_CfgParseRxAction(u8 *buf, u32 len)
|
||||
if (intent > SUPPLICANT_GO_INTENT
|
||||
|| (intent == SUPPLICANT_GO_INTENT && tie_breaker == 1)) {
|
||||
PRINT_D(GENERIC_DBG, "WILC will be client (intent %d tie breaker %d)\n", intent, tie_breaker);
|
||||
is_wilc_go = WILC_FALSE;
|
||||
is_wilc_go = false;
|
||||
} else {
|
||||
PRINT_D(GENERIC_DBG, "WILC will be GO (intent %d tie breaker %d)\n", intent, tie_breaker);
|
||||
is_wilc_go = WILC_TRUE;
|
||||
is_wilc_go = true;
|
||||
}
|
||||
|
||||
#else /* USE_SUPPLICANT_GO_INTENT */
|
||||
@@ -2070,7 +2070,7 @@ void WILC_WFI_CfgParseRxAction(u8 *buf, u32 len)
|
||||
PRINT_D(GENERIC_DBG, "Group BSSID: %2x:%2x:%2x\n", buf[index + 3]
|
||||
, buf[index + 4]
|
||||
, buf[index + 5]);
|
||||
is_wilc_go = WILC_FALSE;
|
||||
is_wilc_go = false;
|
||||
}
|
||||
#endif /* USE_SUPPLICANT_GO_INTENT */
|
||||
|
||||
@@ -2119,7 +2119,7 @@ void WILC_WFI_CfgParseRxAction(u8 *buf, u32 len)
|
||||
* @date 12 DEC 2012
|
||||
* @version
|
||||
*/
|
||||
void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, WILC_Bool bOperChan, u8 iftype)
|
||||
void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, bool bOperChan, u8 iftype)
|
||||
{
|
||||
u32 index = 0;
|
||||
u32 i = 0, j = 0;
|
||||
@@ -2127,7 +2127,7 @@ void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, WILC_Bool bOperChan, u8 iftype)
|
||||
u8 op_channel_attr_index = 0;
|
||||
u8 channel_list_attr_index = 0;
|
||||
#ifdef USE_SUPPLICANT_GO_INTENT
|
||||
WILC_Bool is_wilc_go = WILC_FALSE;
|
||||
bool is_wilc_go = false;
|
||||
|
||||
/*BugID_5460*/
|
||||
/*Case 1: If we are already p2p client, no need to modify channels attributes*/
|
||||
@@ -2145,7 +2145,7 @@ void WILC_WFI_CfgParseTxAction(u8 *buf, u32 len, WILC_Bool bOperChan, u8 iftype)
|
||||
PRINT_D(GENERIC_DBG, "Group BSSID: %2x:%2x:%2x\n", buf[index + 3]
|
||||
, buf[index + 4]
|
||||
, buf[index + 5]);
|
||||
is_wilc_go = WILC_TRUE;
|
||||
is_wilc_go = true;
|
||||
}
|
||||
|
||||
#else /* USE_SUPPLICANT_GO_INTENT */
|
||||
@@ -2252,7 +2252,7 @@ void WILC_WFI_p2p_rx (struct net_device *dev, uint8_t *buff, uint32_t size)
|
||||
if (ieee80211_is_action(buff[FRAME_TYPE_ID])) {
|
||||
PRINT_D(GENERIC_DBG, "Rx Action Frame Type: %x %x\n", buff[ACTION_SUBTYPE_ID], buff[P2P_PUB_ACTION_SUBTYPE]);
|
||||
|
||||
if (priv->bCfgScanning == WILC_TRUE && time_after_eq(jiffies, (unsigned long)pstrWFIDrv->u64P2p_MgmtTimeout)) {
|
||||
if (priv->bCfgScanning == true && time_after_eq(jiffies, (unsigned long)pstrWFIDrv->u64P2p_MgmtTimeout)) {
|
||||
PRINT_D(GENERIC_DBG, "Receiving action frames from wrong channels\n");
|
||||
return;
|
||||
}
|
||||
@@ -2276,7 +2276,7 @@ void WILC_WFI_p2p_rx (struct net_device *dev, uint8_t *buff, uint32_t size)
|
||||
for (i = P2P_PUB_ACTION_SUBTYPE; i < size; i++) {
|
||||
if (!WILC_memcmp(u8P2P_vendorspec, &buff[i], 6)) {
|
||||
u8P2Precvrandom = buff[i + 6];
|
||||
bWilc_ie = WILC_TRUE;
|
||||
bWilc_ie = true;
|
||||
PRINT_D(GENERIC_DBG, "WILC Vendor specific IE:%02x\n", u8P2Precvrandom);
|
||||
break;
|
||||
}
|
||||
@@ -2353,7 +2353,7 @@ static void WILC_WFI_RemainOnChannelReady(void *pUserVoid)
|
||||
|
||||
PRINT_D(HOSTINF_DBG, "Remain on channel ready \n");
|
||||
|
||||
priv->bInP2PlistenState = WILC_TRUE;
|
||||
priv->bInP2PlistenState = true;
|
||||
|
||||
cfg80211_ready_on_channel(priv->wdev,
|
||||
priv->strRemainOnChanParams.u64ListenCookie,
|
||||
@@ -2381,7 +2381,7 @@ static void WILC_WFI_RemainOnChannelExpired(void *pUserVoid, u32 u32SessionID)
|
||||
if (u32SessionID == priv->strRemainOnChanParams.u32ListenSessionID) {
|
||||
PRINT_D(GENERIC_DBG, "Remain on channel expired \n");
|
||||
|
||||
priv->bInP2PlistenState = WILC_FALSE;
|
||||
priv->bInP2PlistenState = false;
|
||||
|
||||
/*Inform wpas of remain-on-channel expiration*/
|
||||
cfg80211_remain_on_channel_expired(priv->wdev,
|
||||
@@ -2498,7 +2498,7 @@ void WILC_WFI_add_wilcvendorspec(u8 *buff)
|
||||
* @version
|
||||
*/
|
||||
extern linux_wlan_t *g_linux_wlan;
|
||||
extern WILC_Bool bEnablePS;
|
||||
extern bool bEnablePS;
|
||||
int WILC_WFI_mgmt_tx(struct wiphy *wiphy,
|
||||
struct wireless_dev *wdev,
|
||||
struct cfg80211_mgmt_tx_params *params,
|
||||
@@ -2602,14 +2602,14 @@ int WILC_WFI_mgmt_tx(struct wiphy *wiphy,
|
||||
for (i = P2P_PUB_ACTION_SUBTYPE + 2; i < len; i++) {
|
||||
if (buf[i] == P2PELEM_ATTR_ID && !(WILC_memcmp(u8P2P_oui, &buf[i + 2], 4))) {
|
||||
if (buf[P2P_PUB_ACTION_SUBTYPE] == P2P_INV_REQ || buf[P2P_PUB_ACTION_SUBTYPE] == P2P_INV_RSP)
|
||||
WILC_WFI_CfgParseTxAction(&mgmt_tx->buff[i + 6], len - (i + 6), WILC_TRUE, nic->iftype);
|
||||
WILC_WFI_CfgParseTxAction(&mgmt_tx->buff[i + 6], len - (i + 6), true, nic->iftype);
|
||||
|
||||
/*BugID_5460*/
|
||||
/*If using supplicant go intent, no need at all*/
|
||||
/*to parse transmitted negotiation frames*/
|
||||
#ifndef USE_SUPPLICANT_GO_INTENT
|
||||
else
|
||||
WILC_WFI_CfgParseTxAction(&mgmt_tx->buff[i + 6], len - (i + 6), WILC_FALSE, nic->iftype);
|
||||
WILC_WFI_CfgParseTxAction(&mgmt_tx->buff[i + 6], len - (i + 6), false, nic->iftype);
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
@@ -2667,7 +2667,7 @@ int WILC_WFI_mgmt_tx_cancel_wait(struct wiphy *wiphy,
|
||||
PRINT_D(GENERIC_DBG, "Tx Cancel wait :%lu\n", jiffies);
|
||||
pstrWFIDrv->u64P2p_MgmtTimeout = jiffies;
|
||||
|
||||
if (priv->bInP2PlistenState == WILC_FALSE) {
|
||||
if (priv->bInP2PlistenState == false) {
|
||||
/* Bug 5504: This is just to avoid connection failure when getting stuck when the supplicant
|
||||
* considers the driver falsely that it is in Listen state */
|
||||
cfg80211_remain_on_channel_expired(priv->wdev,
|
||||
@@ -2817,7 +2817,7 @@ int WILC_WFI_set_power_mgmt(struct wiphy *wiphy, struct net_device *dev,
|
||||
return -EIO;
|
||||
}
|
||||
|
||||
if (bEnablePS == WILC_TRUE)
|
||||
if (bEnablePS == true)
|
||||
host_int_set_power_mgmt(priv->hWILCWFIDrv, enabled, timeout);
|
||||
|
||||
|
||||
@@ -2858,17 +2858,17 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
u8P2Plocalrandom = 0x01;
|
||||
u8P2Precvrandom = 0x00;
|
||||
|
||||
bWilc_ie = WILC_FALSE;
|
||||
bWilc_ie = false;
|
||||
|
||||
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
|
||||
g_obtainingIP = WILC_FALSE;
|
||||
g_obtainingIP = false;
|
||||
WILC_TimerStop(&hDuringIpTimer, NULL);
|
||||
PRINT_D(GENERIC_DBG, "Changing virtual interface, enable scan\n");
|
||||
#endif
|
||||
/*BugID_5137*/
|
||||
/*Set WILC_CHANGING_VIR_IF register to disallow adding futrue keys to CE H/W*/
|
||||
if (g_ptk_keys_saved && g_gtk_keys_saved) {
|
||||
Set_machw_change_vir_if(WILC_TRUE);
|
||||
Set_machw_change_vir_if(true);
|
||||
}
|
||||
|
||||
switch (type) {
|
||||
@@ -2960,7 +2960,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
}
|
||||
}
|
||||
|
||||
bEnablePS = WILC_TRUE;
|
||||
bEnablePS = true;
|
||||
host_int_set_power_mgmt(priv->hWILCWFIDrv, 1, 0);
|
||||
}
|
||||
#endif
|
||||
@@ -2968,7 +2968,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
break;
|
||||
|
||||
case NL80211_IFTYPE_P2P_CLIENT:
|
||||
bEnablePS = WILC_FALSE;
|
||||
bEnablePS = false;
|
||||
host_int_set_power_mgmt(priv->hWILCWFIDrv, 0, 0);
|
||||
connecting = 0;
|
||||
PRINT_D(HOSTAPD_DBG, "Interface type = NL80211_IFTYPE_P2P_CLIENT\n");
|
||||
@@ -3037,8 +3037,8 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
}
|
||||
|
||||
/*Refresh scan, to refresh the scan results to the wpa_supplicant. Set MachHw to false to enable further key installments*/
|
||||
refresh_scan(priv, 1, WILC_TRUE);
|
||||
Set_machw_change_vir_if(WILC_FALSE);
|
||||
refresh_scan(priv, 1, true);
|
||||
Set_machw_change_vir_if(false);
|
||||
|
||||
/*BugID_4847: registered frames in firmware are now lost
|
||||
* due to mac close. So re-register those frames */
|
||||
@@ -3057,7 +3057,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
break;
|
||||
|
||||
case NL80211_IFTYPE_AP:
|
||||
bEnablePS = WILC_FALSE;
|
||||
bEnablePS = false;
|
||||
PRINT_D(HOSTAPD_DBG, "Interface type = NL80211_IFTYPE_AP %d\n", type);
|
||||
dev->ieee80211_ptr->iftype = type;
|
||||
priv->wdev->iftype = type;
|
||||
@@ -3093,7 +3093,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
PRINT_D(GENERIC_DBG, "start duringIP timer\n");
|
||||
|
||||
#ifdef DISABLE_PWRSAVE_AND_SCAN_DURING_IP
|
||||
g_obtainingIP = WILC_TRUE;
|
||||
g_obtainingIP = true;
|
||||
WILC_TimerStart(&hDuringIpTimer, duringIP_TIME, NULL, NULL);
|
||||
#endif
|
||||
host_int_set_power_mgmt(priv->hWILCWFIDrv, 0, 0);
|
||||
@@ -3103,7 +3103,7 @@ static int WILC_WFI_change_virt_intf(struct wiphy *wiphy, struct net_device *dev
|
||||
/*hWaitResponse semaphore, which allows previous config*/
|
||||
/*packets to actually take action on old FW*/
|
||||
host_int_del_All_Rx_BASession(priv->hWILCWFIDrv, g_linux_wlan->strInterfaceInfo[0].aBSSID, TID);
|
||||
bEnablePS = WILC_FALSE;
|
||||
bEnablePS = false;
|
||||
PRINT_D(HOSTAPD_DBG, "Interface type = NL80211_IFTYPE_GO\n");
|
||||
dev->ieee80211_ptr->iftype = type;
|
||||
priv->wdev->iftype = type;
|
||||
@@ -3379,9 +3379,9 @@ static int WILC_WFI_add_station(struct wiphy *wiphy, struct net_device *dev,
|
||||
PRINT_D(HOSTAPD_DBG, "Number of supported rates = %d\n", strStaParams.u8NumRates);
|
||||
|
||||
if (params->ht_capa == NULL) {
|
||||
strStaParams.bIsHTSupported = WILC_FALSE;
|
||||
strStaParams.bIsHTSupported = false;
|
||||
} else {
|
||||
strStaParams.bIsHTSupported = WILC_TRUE;
|
||||
strStaParams.bIsHTSupported = true;
|
||||
strStaParams.u16HTCapInfo = params->ht_capa->cap_info;
|
||||
strStaParams.u8AmpduParams = params->ht_capa->ampdu_params_info;
|
||||
WILC_memcpy(strStaParams.au8SuppMCsSet, ¶ms->ht_capa->mcs, WILC_SUPP_MCS_SET_SIZE);
|
||||
@@ -3509,9 +3509,9 @@ static int WILC_WFI_change_station(struct wiphy *wiphy, struct net_device *dev,
|
||||
PRINT_D(HOSTAPD_DBG, "Number of supported rates = %d\n", strStaParams.u8NumRates);
|
||||
|
||||
if (params->ht_capa == NULL) {
|
||||
strStaParams.bIsHTSupported = WILC_FALSE;
|
||||
strStaParams.bIsHTSupported = false;
|
||||
} else {
|
||||
strStaParams.bIsHTSupported = WILC_TRUE;
|
||||
strStaParams.bIsHTSupported = true;
|
||||
strStaParams.u16HTCapInfo = params->ht_capa->cap_info;
|
||||
strStaParams.u8AmpduParams = params->ht_capa->ampdu_params_info;
|
||||
WILC_memcpy(strStaParams.au8SuppMCsSet, ¶ms->ht_capa->mcs, WILC_SUPP_MCS_SET_SIZE);
|
||||
@@ -3867,9 +3867,9 @@ int WILC_WFI_InitHostInt(struct net_device *net)
|
||||
return s32Error;
|
||||
}
|
||||
|
||||
priv->gbAutoRateAdjusted = WILC_FALSE;
|
||||
priv->gbAutoRateAdjusted = false;
|
||||
|
||||
priv->bInP2PlistenState = WILC_FALSE;
|
||||
priv->bInP2PlistenState = false;
|
||||
|
||||
sema_init(&(priv->hSemScanReq), 1);
|
||||
s32Error = host_int_init(&priv->hWILCWFIDrv);
|
||||
@@ -3895,9 +3895,9 @@ int WILC_WFI_DeInitHostInt(struct net_device *net)
|
||||
struct WILC_WFI_priv *priv;
|
||||
priv = wdev_priv(net->ieee80211_ptr);
|
||||
|
||||
priv->gbAutoRateAdjusted = WILC_FALSE;
|
||||
priv->gbAutoRateAdjusted = false;
|
||||
|
||||
priv->bInP2PlistenState = WILC_FALSE;
|
||||
priv->bInP2PlistenState = false;
|
||||
|
||||
op_ifcs--;
|
||||
|
||||
|
||||
@@ -123,7 +123,7 @@ struct net_device *WILC_WFI_init_mon_interface(const char *name, struct net_devi
|
||||
#ifdef TCP_ENHANCEMENTS
|
||||
#define TCP_ACK_FILTER_LINK_SPEED_THRESH 54
|
||||
#define DEFAULT_LINK_SPEED 72
|
||||
extern void Enable_TCP_ACK_Filter(WILC_Bool value);
|
||||
extern void Enable_TCP_ACK_Filter(bool value);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
@@ -931,7 +931,7 @@ int WILC_WFI_InitModule(void)
|
||||
/* priv[1]->monitor_flag = 1; */
|
||||
|
||||
}
|
||||
priv[0]->bCfgScanning = WILC_FALSE;
|
||||
priv[0]->bCfgScanning = false;
|
||||
priv[0]->u32RcvdChCount = 0;
|
||||
|
||||
WILC_memset(priv[0]->au8AssociatedBss, 0xFF, ETH_ALEN);
|
||||
|
||||
@@ -134,7 +134,7 @@ struct WILC_WFI_priv {
|
||||
|
||||
#endif
|
||||
|
||||
WILC_Bool bCfgScanning;
|
||||
bool bCfgScanning;
|
||||
u32 u32RcvdChCount;
|
||||
|
||||
|
||||
@@ -168,15 +168,15 @@ struct WILC_WFI_priv {
|
||||
struct semaphore SemHandleUpdateStats;
|
||||
struct semaphore hSemScanReq;
|
||||
/* */
|
||||
WILC_Bool gbAutoRateAdjusted;
|
||||
bool gbAutoRateAdjusted;
|
||||
|
||||
WILC_Bool bInP2PlistenState;
|
||||
bool bInP2PlistenState;
|
||||
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
u16 frame_type;
|
||||
WILC_Bool reg;
|
||||
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);
|
||||
u16 Set_machw_change_vir_if(WILC_Bool bValue);
|
||||
u16 Set_machw_change_vir_if(bool bValue);
|
||||
|
||||
|
||||
|
||||
@@ -487,14 +487,14 @@ static int wilc_wlan_txq_filter_dup_tcp_ack(void)
|
||||
#endif
|
||||
|
||||
#ifdef TCP_ENHANCEMENTS
|
||||
WILC_Bool EnableTCPAckFilter = WILC_FALSE;
|
||||
bool EnableTCPAckFilter = false;
|
||||
|
||||
void Enable_TCP_ACK_Filter(WILC_Bool value)
|
||||
void Enable_TCP_ACK_Filter(bool value)
|
||||
{
|
||||
EnableTCPAckFilter = value;
|
||||
}
|
||||
|
||||
WILC_Bool is_TCP_ACK_Filter_Enabled(void)
|
||||
bool is_TCP_ACK_Filter_Enabled(void)
|
||||
{
|
||||
return EnableTCPAckFilter;
|
||||
}
|
||||
@@ -559,7 +559,7 @@ static int wilc_wlan_txq_add_net_pkt(void *priv, uint8_t *buffer, uint32_t buffe
|
||||
#ifdef TCP_ACK_FILTER
|
||||
tqe->tcp_PendingAck_index = NOT_TCP_ACK;
|
||||
#ifdef TCP_ENHANCEMENTS
|
||||
if (is_TCP_ACK_Filter_Enabled() == WILC_TRUE)
|
||||
if (is_TCP_ACK_Filter_Enabled() == true)
|
||||
#endif
|
||||
tcp_process(tqe);
|
||||
#endif
|
||||
@@ -738,12 +738,12 @@ INLINE void chip_wakeup(void)
|
||||
WILC_Sleep(2);
|
||||
/* Make sure chip is awake. This is an extra step that can be removed */
|
||||
/* later to avoid the bus access overhead */
|
||||
if ((wilc_get_chipid(WILC_TRUE) == 0)) {
|
||||
if ((wilc_get_chipid(true) == 0)) {
|
||||
wilc_debug(N_ERR, "Couldn't read chip id. Wake up failed\n");
|
||||
}
|
||||
} while ((wilc_get_chipid(WILC_TRUE) == 0) && ((++trials % 3) == 0));
|
||||
} while ((wilc_get_chipid(true) == 0) && ((++trials % 3) == 0));
|
||||
|
||||
} while (wilc_get_chipid(WILC_TRUE) == 0);
|
||||
} while (wilc_get_chipid(true) == 0);
|
||||
} else if ((g_wlan.io_func.io_type & 0x1) == HIF_SDIO) {
|
||||
g_wlan.hif_func.hif_read_reg(0xf0, ®);
|
||||
do {
|
||||
@@ -782,7 +782,7 @@ INLINE void chip_wakeup(void)
|
||||
reg &= ~(1 << 0);
|
||||
g_wlan.hif_func.hif_write_reg(0x1C0C, reg);
|
||||
|
||||
if (wilc_get_chipid(WILC_FALSE) >= 0x1002b0) {
|
||||
if (wilc_get_chipid(false) >= 0x1002b0) {
|
||||
/* Enable PALDO back right after wakeup */
|
||||
uint32_t val32;
|
||||
g_wlan.hif_func.hif_read_reg(0x1e1c, &val32);
|
||||
@@ -825,19 +825,19 @@ INLINE void chip_wakeup(void)
|
||||
|
||||
/* Make sure chip is awake. This is an extra step that can be removed */
|
||||
/* later to avoid the bus access overhead */
|
||||
if ((wilc_get_chipid(WILC_TRUE) == 0)) {
|
||||
if ((wilc_get_chipid(true) == 0)) {
|
||||
wilc_debug(N_ERR, "Couldn't read chip id. Wake up failed\n");
|
||||
}
|
||||
} while ((wilc_get_chipid(WILC_TRUE) == 0) && ((++trials % 3) == 0));
|
||||
} while ((wilc_get_chipid(true) == 0) && ((++trials % 3) == 0));
|
||||
|
||||
} while (wilc_get_chipid(WILC_TRUE) == 0);
|
||||
} while (wilc_get_chipid(true) == 0);
|
||||
|
||||
if (genuChipPSstate == CHIP_SLEEPING_MANUAL) {
|
||||
g_wlan.hif_func.hif_read_reg(0x1C0C, ®);
|
||||
reg &= ~(1 << 0);
|
||||
g_wlan.hif_func.hif_write_reg(0x1C0C, reg);
|
||||
|
||||
if (wilc_get_chipid(WILC_FALSE) >= 0x1002b0) {
|
||||
if (wilc_get_chipid(false) >= 0x1002b0) {
|
||||
/* Enable PALDO back right after wakeup */
|
||||
uint32_t val32;
|
||||
g_wlan.hif_func.hif_read_reg(0x1e1c, &val32);
|
||||
@@ -1354,7 +1354,7 @@ static void wilc_pllupdate_isr_ext(uint32_t int_stats)
|
||||
g_wlan.os_func.os_atomic_sleep(WILC_PLL_TO);
|
||||
|
||||
/* poll till read a valid data */
|
||||
while (!(ISWILC1000(wilc_get_chipid(WILC_TRUE)) && --trials)) {
|
||||
while (!(ISWILC1000(wilc_get_chipid(true)) && --trials)) {
|
||||
PRINT_D(TX_DBG, "PLL update retrying\n");
|
||||
g_wlan.os_func.os_atomic_sleep(1);
|
||||
}
|
||||
@@ -2012,7 +2012,7 @@ uint32_t init_chip(void)
|
||||
acquire_bus(ACQUIRE_ONLY);
|
||||
#endif
|
||||
|
||||
chipid = wilc_get_chipid(WILC_TRUE);
|
||||
chipid = wilc_get_chipid(true);
|
||||
|
||||
|
||||
|
||||
@@ -2325,7 +2325,7 @@ _fail_:
|
||||
}
|
||||
|
||||
#define BIT31 (1 << 31)
|
||||
u16 Set_machw_change_vir_if(WILC_Bool bValue)
|
||||
u16 Set_machw_change_vir_if(bool bValue)
|
||||
{
|
||||
u16 ret;
|
||||
u32 reg;
|
||||
@@ -2337,7 +2337,7 @@ u16 Set_machw_change_vir_if(WILC_Bool bValue)
|
||||
PRINT_ER("Error while Reading reg WILC_CHANGING_VIR_IF\n");
|
||||
}
|
||||
|
||||
if (bValue == WILC_TRUE) {
|
||||
if (bValue == true) {
|
||||
reg |= (BIT31);
|
||||
} else {
|
||||
reg &= ~(BIT31);
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
#ifdef WILC_FULLY_HOSTING_AP
|
||||
#include "wilc_host_ap.h"
|
||||
void WILC_mgm_HOSTAPD_ACK(void *priv, WILC_Bool bStatus);
|
||||
void WILC_mgm_HOSTAPD_ACK(void *priv, bool bStatus);
|
||||
#endif
|
||||
|
||||
/********************************************
|
||||
@@ -542,7 +542,7 @@ static int wilc_wlan_cfg_indicate_rx(uint8_t *frame, int size, wilc_cfg_rsp_t *r
|
||||
uint16_t msg_len;
|
||||
#ifdef WILC_FULLY_HOSTING_AP
|
||||
u32 *ptru32Frame;
|
||||
WILC_Bool bStatus = frame[2];
|
||||
bool bStatus = frame[2];
|
||||
|
||||
#ifdef BIG_ENDIAN
|
||||
ptru32Frame = (frame[4] << 24) | (frame[5] << 16) | (frame[6] << 8) | frame[7];
|
||||
|
||||
Reference in New Issue
Block a user