Use the in-kernel s8 type instead.
Cc: Mikko Virkkilä <mikko.virkkila@bluegiga.com>
Cc: Lauri Hintsala <Lauri.Hintsala@bluegiga.com>
Cc: Riku Mettälä <riku.mettala@bluegiga.com>
Cc: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
typedef uint32_t CsrUint32;
/* Signed fixed width types */
-typedef int8_t CsrInt8;
typedef int16_t CsrInt16;
typedef int32_t CsrInt32;
* F1-F3 80-BF 80-BF 80-BF
* F4 80-8F 80-BF 80-BF
*/
-static const CsrInt8 trailingBytesForUtf8[256] =
+static const s8 trailingBytesForUtf8[256] =
{
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x00 - 0x1F */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* 0x20 - 0x3F */
CsrSize sourceLength;
CsrUtf16String *dest = NULL;
CsrUtf16String *destStart = NULL;
- CsrInt8 extraBytes2Read;
+ s8 extraBytes2Read;
if (!utf8String)
{
CsrResult unifi_dl_firmware(card_t *card, void *arg);
CsrResult unifi_dl_patch(card_t *card, void *arg, CsrUint32 boot_ctrl);
CsrResult unifi_do_loader_op(card_t *card, CsrUint32 op_addr, u8 opcode);
-void* unifi_dl_fw_read_start(card_t *card, CsrInt8 is_fw);
+void* unifi_dl_fw_read_start(card_t *card, s8 is_fw);
CsrResult unifi_coredump_handle_request(card_t *card);
* even address is read.
* ---------------------------------------------------------------------------
*/
-static CsrResult unifi_read_directn_match(card_t *card, CsrUint32 addr, void *pdata, CsrUint16 len, CsrInt8 m, CsrUint32 *num)
+static CsrResult unifi_read_directn_match(card_t *card, CsrUint32 addr, void *pdata, CsrUint16 len, s8 m, CsrUint32 *num)
{
CsrResult r;
CsrUint32 i;
}
*cptr++ = ((u8)w & 0xFF);
- if ((m >= 0) && (((CsrInt8)w & 0xFF) == m))
+ if ((m >= 0) && (((s8)w & 0xFF) == m))
{
break;
}
}
*cptr++ = ((u8)(w >> 8) & 0xFF);
- if ((m >= 0) && (((CsrInt8)(w >> 8) & 0xFF) == m))
+ if ((m >= 0) && (((s8)(w >> 8) & 0xFF) == m))
{
break;
}
* CSR_WIFI_HIP_RESULT_INVALID_VALUE a bad generic pointer was specified
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_readn_match(card_t *card, CsrUint32 unifi_addr, void *pdata, CsrUint16 len, CsrInt8 match)
+CsrResult unifi_readn_match(card_t *card, CsrUint32 unifi_addr, void *pdata, CsrUint16 len, s8 match)
{
CsrUint32 sdio_addr;
CsrResult r;
} /* unifi_dl_patch() */
-void* unifi_dl_fw_read_start(card_t *card, CsrInt8 is_fw)
+void* unifi_dl_fw_read_start(card_t *card, s8 is_fw)
{
card_info_t card_info;
* immediately after that, the mini-coredump can be captured.
* ---------------------------------------------------------------------------
*/
-CsrResult unifi_coredump_request_at_next_reset(card_t *card, CsrInt8 enable)
+CsrResult unifi_coredump_request_at_next_reset(card_t *card, s8 enable)
{
CsrResult r;
*
* @ingroup upperedge
*/
-void* unifi_fw_read_start(void *ospriv, CsrInt8 is_fw, const card_info_t *info);
+void* unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info);
/**
*
/* Mini-coredump utility functions */
CsrResult unifi_coredump_get_value(card_t *card, struct unifi_coredump_req *req);
CsrResult unifi_coredump_capture(card_t *card, struct unifi_coredump_req *req);
-CsrResult unifi_coredump_request_at_next_reset(card_t *card, CsrInt8 enable);
+CsrResult unifi_coredump_request_at_next_reset(card_t *card, s8 enable);
CsrResult unifi_coredump_init(card_t *card, CsrUint16 num_dump_buffers);
void unifi_coredump_free(card_t *card);
CsrWifiSmeScanConfigData scanCfg[4];
CsrBool disableAutonomousScans;
CsrUint16 maxResults;
- CsrInt8 highRssiThreshold;
- CsrInt8 lowRssiThreshold;
- CsrInt8 deltaRssiThreshold;
- CsrInt8 highSnrThreshold;
- CsrInt8 lowSnrThreshold;
- CsrInt8 deltaSnrThreshold;
+ s8 highRssiThreshold;
+ s8 lowRssiThreshold;
+ s8 deltaRssiThreshold;
+ s8 highSnrThreshold;
+ s8 lowSnrThreshold;
+ s8 deltaSnrThreshold;
CsrUint16 passiveChannelListCount;
u8 *passiveChannelList;
} CsrWifiSmeScanConfig;
}
bufferSize += 1; /* CsrBool primitive->scanConfig.disableAutonomousScans */
bufferSize += 2; /* CsrUint16 primitive->scanConfig.maxResults */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.highRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.lowRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.deltaRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.highSnrThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.lowSnrThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.deltaSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.highRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.lowRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.deltaRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.highSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.lowSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.deltaSnrThreshold */
bufferSize += 2; /* CsrUint16 primitive->scanConfig.passiveChannelListCount */
bufferSize += primitive->scanConfig.passiveChannelListCount; /* u8 primitive->scanConfig.passiveChannelList */
return bufferSize;
}
bufferSize += 1; /* CsrBool primitive->scanConfig.disableAutonomousScans */
bufferSize += 2; /* CsrUint16 primitive->scanConfig.maxResults */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.highRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.lowRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.deltaRssiThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.highSnrThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.lowSnrThreshold */
- bufferSize += 1; /* CsrInt8 primitive->scanConfig.deltaSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.highRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.lowRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.deltaRssiThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.highSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.lowSnrThreshold */
+ bufferSize += 1; /* s8 primitive->scanConfig.deltaSnrThreshold */
bufferSize += 2; /* CsrUint16 primitive->scanConfig.passiveChannelListCount */
bufferSize += primitive->scanConfig.passiveChannelListCount; /* u8 primitive->scanConfig.passiveChannelList */
return bufferSize;
* ---------------------------------------------------------------------------
*/
void*
-unifi_fw_read_start(void *ospriv, CsrInt8 is_fw, const card_info_t *info)
+unifi_fw_read_start(void *ospriv, s8 is_fw, const card_info_t *info)
{
unifi_priv_t *priv = (unifi_priv_t*)ospriv;
CSR_UNUSED(info);
#ifdef CSR_SUPPORT_SME
static int
_identify_sme_ma_pkt_ind(unifi_priv_t *priv,
- const CsrInt8 *oui, CsrUint16 protocol,
+ const s8 *oui, CsrUint16 protocol,
const CSR_SIGNAL *signal,
bulk_data_param_t *bulkdata,
const unsigned char *daddr,
CsrUint16 interfaceTag;
CsrWifiMacAddress peerAddress;
CSR_TRANSMISSION_CONTROL transmissionControl = CSR_NO_CONFIRM_REQUIRED;
- CsrInt8 protection;
+ s8 protection;
netInterface_priv_t *interfacePriv = NULL;
CSR_RATE TransmitRate = (CSR_RATE)0;
bulk_data_param_t bulkdata;
CsrResult csrResult;
struct sk_buff *skb, *newSkb = NULL;
- CsrInt8 protection;
+ s8 protection;
int r;
static const u8 arp_req[36] = {0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00,
0x08, 0x06, 0x00, 0x01, 0x08, 0x00, 0x06, 0x04, 0x00, 0x01,
CsrResult csrResult;
CsrUint16 interfaceTag = req.VirtualInterfaceIdentifier & 0xff;
CsrBool eapolStore = FALSE;
- CsrInt8 protection = 0;
+ s8 protection = 0;
netInterface_priv_t *interfacePriv;
unsigned long flags;
}
#ifdef CSR_SUPPORT_SME
-CsrInt8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, CsrUint16 interfaceTag, const u8 *daddr)
+s8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, CsrUint16 interfaceTag, const u8 *daddr)
{
- CsrInt8 protection = 0;
+ s8 protection = 0;
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
switch(interfacePriv->interfaceMode)
static CsrBool uf_is_more_data_for_delivery_ac(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord)
{
- CsrInt8 i;
+ s8 i;
for(i=UNIFI_TRAFFIC_Q_VO; i >= UNIFI_TRAFFIC_Q_BK; i--)
{
static CsrBool uf_is_more_data_for_usp_delivery(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord, unifi_TrafficQueue queue)
{
- CsrInt8 i;
+ s8 i;
for(i = queue; i >= UNIFI_TRAFFIC_Q_BK; i--)
{
tx_buffered_packets_t * buffered_pkt = NULL;
unsigned long lock_flags;
CsrBool eosp=FALSE;
- CsrInt8 r =0;
+ s8 r =0;
CsrBool moreData = FALSE;
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
unsigned long lock_flags;
CsrBool eosp=FALSE;
CsrBool moreData = FALSE;
- CsrInt8 r =0;
+ s8 r =0;
func_enter();
static void uf_handle_uspframes_delivery(unifi_priv_t * priv, CsrWifiRouterCtrlStaInfo_t *staInfo, CsrUint16 interfaceTag)
{
- CsrInt8 i;
+ s8 i;
u8 allDeliveryEnabled = 0, dataAvailable = 0;
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
unsigned long lock_flags;
tx_buffered_packets_t * buffered_pkt = NULL;
CsrWifiMacAddress peerMacAddress;
unsigned long lock_flags;
- CsrInt8 r =0;
+ s8 r =0;
CsrBool moreData = FALSE;
netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
}
} else {
- CsrInt8 i;
+ s8 i;
/* We dont have buffered packet in mangement frame queue (1 failed), So proceed with condition 2
* UNIFI_TRAFFIC_Q_VO -> VI -> BE -> BK
*/
CsrWifiMacAddress macAddress);
#ifdef CSR_SUPPORT_SME
/* Fetch the protection information from interface Mode */
-CsrInt8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, CsrUint16 interfaceTag, const u8 *daddr);
+s8 uf_get_protection_bit_from_interfacemode(unifi_priv_t *priv, CsrUint16 interfaceTag, const u8 *daddr);
#endif
/* Fetch the station record handler from data base for matching Mac address */