staging: csr: remove CsrBool typedef
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 19:25:15 +0000 (12:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jul 2012 19:25:15 +0000 (12:25 -0700)
Use u8 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>
38 files changed:
drivers/staging/csr/csr_log.h
drivers/staging/csr/csr_macro.h
drivers/staging/csr/csr_msgconv.c
drivers/staging/csr/csr_msgconv.h
drivers/staging/csr/csr_sched.h
drivers/staging/csr/csr_types.h
drivers/staging/csr/csr_utf16.c
drivers/staging/csr/csr_util.c
drivers/staging/csr/csr_util.h
drivers/staging/csr/csr_wifi_fsm.h
drivers/staging/csr/csr_wifi_fsm_types.h
drivers/staging/csr/csr_wifi_hip_card.h
drivers/staging/csr/csr_wifi_hip_card_sdio.c
drivers/staging/csr/csr_wifi_hip_card_sdio.h
drivers/staging/csr/csr_wifi_hip_card_sdio_intr.c
drivers/staging/csr/csr_wifi_nme_ap_prim.h
drivers/staging/csr/csr_wifi_nme_ap_serialize.c
drivers/staging/csr/csr_wifi_nme_prim.h
drivers/staging/csr/csr_wifi_router_ctrl_prim.h
drivers/staging/csr/csr_wifi_router_ctrl_serialize.c
drivers/staging/csr/csr_wifi_router_prim.h
drivers/staging/csr/csr_wifi_router_serialize.c
drivers/staging/csr/csr_wifi_sme_ap_prim.h
drivers/staging/csr/csr_wifi_sme_prim.h
drivers/staging/csr/csr_wifi_sme_serialize.c
drivers/staging/csr/csr_wifi_vif_utils.h
drivers/staging/csr/firmware.c
drivers/staging/csr/netdev.c
drivers/staging/csr/sme_blocking.c
drivers/staging/csr/sme_sys.c
drivers/staging/csr/unifi_event.c
drivers/staging/csr/unifi_pdu_processing.c
drivers/staging/csr/unifi_priv.h
drivers/staging/csr/unifi_sme.c
drivers/staging/csr/unifi_sme.h
drivers/staging/csr/unifi_wext.h
drivers/staging/csr/unifiio.h
drivers/staging/csr/wext_events.c

index 6f8429d644068cdef8230a73f7d6b00360c37a87..2619d2229ec06f92c4e83e893985625d083607f1 100644 (file)
@@ -71,9 +71,9 @@ typedef u32 CsrLogLevelTask;
 /* The bit masks between here are reserved for future usage */
 #define CSR_LOG_LEVEL_TASK_ALL                 ((CsrLogLevelTask) 0xFFFFFFFF & ~(CSR_LOG_LEVEL_TASK_PRIM_ONLY_TYPE | CSR_LOG_LEVEL_TASK_PRIM_APPLY_LIMIT)) /* All info possible to log for a task are logged. WARNING: By using this define the application also accepts future possible task data/events in the logs */
 
-CsrBool CsrLogEnvironmentIsFiltered(CsrLogLevelEnvironment level);
+u8 CsrLogEnvironmentIsFiltered(CsrLogLevelEnvironment level);
 CsrLogLevelTask CsrLogTaskFilterGet(CsrSchedQid taskId);
-CsrBool CsrLogTaskIsFiltered(CsrSchedQid taskId, CsrLogLevelTask level);
+u8 CsrLogTaskIsFiltered(CsrSchedQid taskId, CsrLogLevelTask level);
 
 /*
  * Logging stuff
@@ -193,7 +193,7 @@ void CsrLogMessagePut(u32 line,
 
 void CsrLogMessageGet(CsrSchedQid src_task_id,
     CsrSchedQid dst_taskid,
-    CsrBool get_res,
+    u8 get_res,
     CsrSchedMsgId msg_id,
     u16 prim_type,
     const void *msg);
@@ -216,7 +216,7 @@ void CsrLogTimedEventCancel(u32 line,
     const char *file,
     CsrSchedQid task_id,
     CsrSchedTid tid,
-    CsrBool cancel_res);
+    u8 cancel_res);
 
 void CsrLogBgintRegister(u8 thread_id,
     CsrSchedBgint irq,
index 214d6a3075e396d2fcf9cba6ef68c14062143493..22405cfcf1449b68615824462bdebd6eecefb487 100644 (file)
@@ -23,7 +23,7 @@ extern "C" {
 #define CSR_MASK_IS_UNSET(val, mask) ((((val) & (mask)) ^ mask) == (mask))
 #define CSR_MASK_SET(val, mask)    ((val) |= (mask))
 #define CSR_MASK_UNSET(val, mask)  ((val) = ((val) ^ (mask)) & (val)) /* Unsets the bits in val that are set in mask */
-#define CSR_BIT_IS_SET(val, bit)   ((CsrBool) ((((val) & (1UL << (bit))) != 0)))
+#define CSR_BIT_IS_SET(val, bit)   ((u8) ((((val) & (1UL << (bit))) != 0)))
 #define CSR_BIT_SET(val, bit)      ((val) |= (1UL << (bit)))
 #define CSR_BIT_UNSET(val, bit)    ((val) &= ~(1UL << (bit)))
 #define CSR_BIT_TOGGLE(val, bit)   ((val) ^= (1UL << (bit)))
index b2aeb7a184c28c2a5c56bc2cc91a8ed17356a757..0d61caf4f785408dcd35dc8d3d1d8f4873d45ac8 100644 (file)
@@ -133,10 +133,10 @@ static CsrSize sizeof_message(u16 primType, void *msg)
     return ret;
 }
 
-static CsrBool free_message(u16 primType, u8 *data)
+static u8 free_message(u16 primType, u8 *data)
 {
     CsrMsgConvPrimEntry *ptr;
-    CsrBool ret;
+    u8 ret;
 
     ptr = CsrMsgConvFind(primType);
 
index b195b795005db8a3764253bd127451b7070eda07..8df292d04919a62a346e4a4890c46b1c061eb449 100644 (file)
@@ -51,7 +51,7 @@ typedef struct
 {
     CsrMsgConvPrimEntry *profile_converters;
     void *(*deserialize_data)(u16 primType, CsrSize length, u8 * data);
-    CsrBool (*free_message)(u16 primType, u8 *data);
+    u8 (*free_message)(u16 primType, u8 *data);
     CsrSize (*sizeof_message)(u16 primType, void *msg);
     u8 *(*serialize_message)(u16 primType, void *msg,
                                    CsrSize * length,
index 2413463b8180050d6465a579ce8446e8209d31d9..663fe5926e74b802dd22c1ee4265b32fab74551c 100644 (file)
@@ -185,7 +185,7 @@ void CsrSchedMessageBroadcast(u16 mi,
  *      The message consists of one or both of a u16 and a void *.
  *
  *  RETURNS
- *      CsrBool - TRUE if a message has been obtained from the queue, else FALSE.
+ *      u8 - TRUE if a message has been obtained from the queue, else FALSE.
  *      If a message is taken from the queue, then "*pmi" and "*pmv" are set to
  *      the "mi" and "mv" passed to CsrSchedMessagePut() respectively.
  *
@@ -193,7 +193,7 @@ void CsrSchedMessageBroadcast(u16 mi,
  *      them message is discarded.
  *
  *----------------------------------------------------------------------------*/
-CsrBool CsrSchedMessageGet(u16 *pmi, void **pmv);
+u8 CsrSchedMessageGet(u16 *pmi, void **pmv);
 
 /*----------------------------------------------------------------------------*
  *  NAME
@@ -241,18 +241,18 @@ CsrSchedTid CsrSchedTimerSet(CsrTime delay,
  *      occurring.
  *
  *  RETURNS
- *      CsrBool - TRUE if cancelled, FALSE if the event has already occurred.
+ *      u8 - TRUE if cancelled, FALSE if the event has already occurred.
  *
  *----------------------------------------------------------------------------*/
 #if defined(CSR_LOG_ENABLE) && defined(CSR_LOG_INCLUDE_FILE_NAME_AND_LINE_NUMBER)
-CsrBool CsrSchedTimerCancelStringLog(CsrSchedTid eventid,
+u8 CsrSchedTimerCancelStringLog(CsrSchedTid eventid,
     u16 *pmi,
     void **pmv,
     u32 line,
     const char *file);
 #define CsrSchedTimerCancel(e, pmi, pmv) CsrSchedTimerCancelStringLog((e), (pmi), (pmv), __LINE__, __FILE__)
 #else
-CsrBool CsrSchedTimerCancel(CsrSchedTid eventid,
+u8 CsrSchedTimerCancel(CsrSchedTid eventid,
     u16 *pmi,
     void **pmv);
 #endif
index 0b5a23104fd5551f5a22da3f7f6bccab073936cc..40bc644b55abfae5d249d542d5789648611354fd 100644 (file)
@@ -32,9 +32,6 @@ typedef ptrdiff_t CsrPtrdiff;   /* Type of the result of subtracting two pointer
 typedef uintptr_t CsrUintptr;   /* Unsigned integer large enough to hold any pointer (ISO/IEC 9899:1999 7.18.1.4) */
 typedef ptrdiff_t CsrIntptr;    /* intptr_t is not defined in kernel. Use the equivalent ptrdiff_t. */
 
-/* Boolean */
-typedef u8 CsrBool;
-
 /*
  * 64-bit integers
  *
index 3064536b58d7a49be7649eb496c8a9424c669d72..579cd4b07ba502ac990f2aac0934c18d29afff55 100644 (file)
@@ -261,7 +261,7 @@ u8 *CsrUtf16String2Utf8(const u16 *source)
     u32 length;
     u32 sourceLength;
     u8 bytes;
-    CsrBool appendNull = FALSE;
+    u8 appendNull = FALSE;
 
     u8 firstByteMark[5] = {0x00, 0x00, 0xC0, 0xE0, 0xF0};
 
@@ -463,7 +463,7 @@ u8 *CsrUtf16String2Utf8(const u16 *source)
         TRUE if the given code unit is legal.
 
 *****************************************************************************/
-static CsrBool isLegalUtf8(const u8 *codeUnit, u32 length)
+static u8 isLegalUtf8(const u8 *codeUnit, u32 length)
 {
     const u8 *srcPtr = codeUnit + length;
     u8 byte;
@@ -815,7 +815,7 @@ u16 *CsrUtf16String2XML(u16 *str)
     u16 *outputString = NULL;
     u16 *resultString = str;
     u32 stringLength = 0;
-    CsrBool encodeChars = FALSE;
+    u8 encodeChars = FALSE;
 
     scanString = str;
     if (scanString)
@@ -908,7 +908,7 @@ u16 *CsrXML2Utf16String(u16 *str)
     u16 *outputString = NULL;
     u16 *resultString = str;
     u32 stringLength = 0;
-    CsrBool encodeChars = FALSE;
+    u8 encodeChars = FALSE;
 
     scanString = str;
     if (scanString)
index e381f258523b3b17a18b355ce2a875efcdcfb95c..afb57835f848396b00ad16dba20548bb14086227 100644 (file)
@@ -53,7 +53,7 @@ u8 CsrBitCountDense(u32 n)
 /*------------------------------------------------------------------*/
 /* Base conversion */
 /*------------------------------------------------------------------*/
-CsrBool CsrHexStrToUint8(const char *string, u8 *returnValue)
+u8 CsrHexStrToUint8(const char *string, u8 *returnValue)
 {
     u16 currentIndex = 0;
     *returnValue = 0;
@@ -77,7 +77,7 @@ CsrBool CsrHexStrToUint8(const char *string, u8 *returnValue)
     return FALSE;
 }
 
-CsrBool CsrHexStrToUint16(const char *string, u16 *returnValue)
+u8 CsrHexStrToUint16(const char *string, u16 *returnValue)
 {
     u16 currentIndex = 0;
     *returnValue = 0;
@@ -101,7 +101,7 @@ CsrBool CsrHexStrToUint16(const char *string, u16 *returnValue)
     return FALSE;
 }
 
-CsrBool CsrHexStrToUint32(const char *string, u32 *returnValue)
+u8 CsrHexStrToUint32(const char *string, u32 *returnValue)
 {
     u16 currentIndex = 0;
     *returnValue = 0;
@@ -150,7 +150,7 @@ void CsrIntToBase10(s32 number, char *str)
     s32 digit;
     u8 index;
     char res[I2B10_MAX];
-    CsrBool foundDigit = FALSE;
+    u8 foundDigit = FALSE;
 
     for (digit = 0; digit < I2B10_MAX; digit++)
     {
@@ -423,7 +423,7 @@ const char *CsrGetBaseName(const char *file)
 /*------------------------------------------------------------------*/
 /* Misc */
 /*------------------------------------------------------------------*/
-CsrBool CsrIsSpace(u8 c)
+u8 CsrIsSpace(u8 c)
 {
     switch (c)
     {
index e0bcca2584d05f061435fdb4af891d1e440bb11e..0324fb44754fde0175dd15f17062c6e2a42c26c4 100644 (file)
@@ -26,9 +26,9 @@ u8 CsrBitCountDense(u32 n);
 /*------------------------------------------------------------------*/
 /* Base conversion */
 /*------------------------------------------------------------------*/
-CsrBool CsrHexStrToUint8(const char *string, u8 *returnValue);
-CsrBool CsrHexStrToUint16(const char *string, u16 *returnValue);
-CsrBool CsrHexStrToUint32(const char *string, u32 *returnValue);
+u8 CsrHexStrToUint8(const char *string, u8 *returnValue);
+u8 CsrHexStrToUint16(const char *string, u16 *returnValue);
+u8 CsrHexStrToUint32(const char *string, u32 *returnValue);
 u32 CsrPow(u32 base, u32 exponent);
 void CsrIntToBase10(s32 number, char *str);
 void CsrUInt16ToHex(u16 number, char *str);
@@ -85,7 +85,7 @@ const char *CsrGetBaseName(const char *file);
 /*------------------------------------------------------------------*/
 /* Misc */
 /*------------------------------------------------------------------*/
-CsrBool CsrIsSpace(u8 c);
+u8 CsrIsSpace(u8 c);
 #define CsrOffsetOf(st, m)  ((CsrSize) & ((st *) 0)->m)
 
 #ifdef __cplusplus
index 0f9cd8f3cf6001b9b7189135b13d5fab11984d83..d078deefe44596c925dcb90e22b24cd3a83d0a8b 100644 (file)
@@ -226,9 +226,9 @@ extern void CsrWifiFsmTestAdvanceTime(CsrWifiFsmContext *context, u32 ms);
  * @param[in]    context    : FSM context
  *
  * @return
- *   CsrBool returns TRUE if there are events for the FSM to process
+ *   u8 returns TRUE if there are events for the FSM to process
  */
-extern CsrBool CsrWifiFsmHasEvents(CsrWifiFsmContext *context);
+extern u8 CsrWifiFsmHasEvents(CsrWifiFsmContext *context);
 
 /**
  * @brief
index 558fd2db03d13529d289e3da5e33059bcf0bd9e9..f3837c6794d3c5457dcf8ff50931a5e6b0618acc 100644 (file)
@@ -220,7 +220,7 @@ typedef struct
 typedef struct
 {
     const u8              numEntries;
-    const CsrBool               saveAll;
+    const u8               saveAll;
     const CsrWifiFsmEventEntry *eventEntryArray; /* array of transition function pointers for state */
 #ifdef CSR_LOG_ENABLE
     u16            stateNumber;
@@ -391,7 +391,7 @@ struct CsrWifiFsmContext
 #endif
     u32                          timeOffset;            /* Amount to adjust the TimeOfDayMs by          */
     CsrWifiFsmTimerList                timerQueue;            /* The internal timer queue                     */
-    CsrBool                            useTempSaveList;       /* Should the temp save list be used            */
+    u8                            useTempSaveList;       /* Should the temp save list be used            */
     CsrWifiFsmEventList                tempSaveList;          /* The temp save event queue                    */
     CsrWifiFsmEvent                   *eventForwardedOrSaved; /* The event that was forwarded or Saved        */
     u16                          maxProcesses;          /* Size of instanceArray                        */
index 348572f199679c520fbdfdf1525bb1fe45a6cd93..9caf88c7887dad3fb05af57438672299ab03d087 100644 (file)
@@ -43,7 +43,7 @@ CsrResult CardGenInt(card_t *card);
 /*****************************************************************************
  * CardPendingInt -
  */
-CsrResult CardPendingInt(card_t *card, CsrBool *pintr);
+CsrResult CardPendingInt(card_t *card, u8 *pintr);
 
 /*****************************************************************************
  * CardDisableInt -
@@ -63,7 +63,7 @@ void CardDisable(card_t *card);
 /*****************************************************************************
  * CardIntEnabled -
  */
-CsrResult CardIntEnabled(card_t *card, CsrBool *enabled);
+CsrResult CardIntEnabled(card_t *card, u8 *enabled);
 
 /*****************************************************************************
  * CardGetDataSlotSize
index 07b3ac8e0521ec477ae3f067f0126ba0acf79ed9..22778de081dd6e3a2b5ff6feb1a72ae6915fa5d9 100644 (file)
@@ -3261,7 +3261,7 @@ CsrResult CardDisableInt(card_t *card)
  *      CSR_RESULT_FAILURE            if an SDIO error occurred,
  * ---------------------------------------------------------------------------
  */
-CsrResult CardPendingInt(card_t *card, CsrBool *pintr)
+CsrResult CardPendingInt(card_t *card, u8 *pintr)
 {
     CsrResult r;
     u8 pending;
@@ -3303,7 +3303,7 @@ CsrResult CardPendingInt(card_t *card, CsrBool *pintr)
 CsrResult CardClearInt(card_t *card)
 {
     CsrResult r;
-    CsrBool intr;
+    u8 intr;
 
     if (card->chip_id > SDIO_CARD_ID_UNIFI_2)
     {
@@ -3361,7 +3361,7 @@ CsrResult CardClearInt(card_t *card)
  *      CSR_RESULT_FAILURE            if an SDIO error occurred,
  * ---------------------------------------------------------------------------
  */
-CsrResult CardIntEnabled(card_t *card, CsrBool *enabled)
+CsrResult CardIntEnabled(card_t *card, u8 *enabled)
 {
     CsrResult r;
     u8 int_enable;
@@ -4036,7 +4036,7 @@ CsrResult unifi_check_io_status(card_t *card, s32 *status)
 {
     u8 io_en;
     CsrResult r;
-    CsrBool pending;
+    u8 pending;
 
     *status = 0;
 
index ad5f131061024c640a76af7ef556d9aef9f4e49b..dc2ed70f7eddd2a5a2581c5c410724aa74983691 100644 (file)
@@ -300,7 +300,7 @@ typedef struct
     u16 packets_interval;
 
     /* Once a queue reaches a stable state, avoid processing */
-    CsrBool queue_stable[UNIFI_NO_OF_TX_QS];
+    u8 queue_stable[UNIFI_NO_OF_TX_QS];
 } card_dynamic_slot_t;
 
 
@@ -566,7 +566,7 @@ struct card
     u16 sdio_io_block_size;
 
     /* Pad transfer sizes to SDIO block boundaries */
-    CsrBool sdio_io_block_pad;
+    u8 sdio_io_block_pad;
 
     /* Read from the XBV */
     struct FWOV fwov;
index 1bc97acfdeb5c8dd89f4b13a66c648f359b1705d..8aba82818868cbbd5965162d63e6d3a846ad8c9b 100644 (file)
@@ -43,7 +43,7 @@
 
 
 static CsrResult process_bh(card_t *card);
-static CsrResult handle_host_protocol(card_t *card, CsrBool *processed_something);
+static CsrResult handle_host_protocol(card_t *card, u8 *processed_something);
 
 static CsrResult flush_fh_buffer(card_t *card);
 
@@ -358,7 +358,7 @@ CsrResult unifi_bh(card_t *card, u32 *remaining)
 {
     CsrResult r;
     CsrResult csrResult;
-    CsrBool pending;
+    u8 pending;
     s32 iostate, j;
     const enum unifi_low_power_mode low_power_mode = card->low_power_mode;
     u16 data_slots_used = 0;
@@ -700,7 +700,7 @@ static CsrResult process_clock_request(card_t *card)
 static CsrResult process_bh(card_t *card)
 {
     CsrResult r;
-    CsrBool more;
+    u8 more;
     more = FALSE;
 
     /* Process the reasons (interrupt, signals) */
@@ -842,7 +842,7 @@ static CsrResult process_bh(card_t *card)
  *      CSR_RESULT_SUCCESS on success or CSR error code.
  * ---------------------------------------------------------------------------
  */
-static CsrResult handle_host_protocol(card_t *card, CsrBool *processed_something)
+static CsrResult handle_host_protocol(card_t *card, u8 *processed_something)
 {
     CsrResult r;
     s32 done;
index 616a899b8ebb7716be47b23978ccfcb0e2bade5e..1ca0ec95917ce967a13cf510f5afede2bee76cd6 100644 (file)
@@ -78,7 +78,7 @@ typedef u8 CsrWifiNmeApPersCredentialType;
 typedef struct
 {
     u16 apGroupkeyTimeout;
-    CsrBool   apStrictGtkRekey;
+    u8   apStrictGtkRekey;
     u16 apGmkTimeout;
     u16 apResponseTimeout;
     u8  apRetransLimit;
@@ -256,14 +256,14 @@ typedef struct
     CsrWifiFsmEvent         common;
     u16               interfaceTag;
     CsrWifiSmeApType        apType;
-    CsrBool                 cloakSsid;
+    u8                 cloakSsid;
     CsrWifiSsid             ssid;
     CsrWifiSmeRadioIF       ifIndex;
     u8                channel;
     CsrWifiNmeApCredentials apCredentials;
     u8                maxConnections;
     CsrWifiSmeApP2pGoConfig p2pGoParam;
-    CsrBool                 wpsEnabled;
+    u8                 wpsEnabled;
 } CsrWifiNmeApStartReq;
 
 /*******************************************************************************
@@ -334,7 +334,7 @@ typedef struct
     CsrWifiFsmEvent   common;
     u16         interfaceTag;
     CsrWifiMacAddress staMacAddress;
-    CsrBool           keepBlocking;
+    u8           keepBlocking;
 } CsrWifiNmeApStaRemoveReq;
 
 /*******************************************************************************
index 3fecb6f135b099d8c84d415f83dd6f4754b6b530..c9a36e92934ece9cc08c1f57d0d6096c07b9b479 100644 (file)
@@ -33,7 +33,7 @@ CsrSize CsrWifiNmeApConfigSetReqSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 104) */
     bufferSize += 2;  /* u16 primitive->apConfig.apGroupkeyTimeout */
-    bufferSize += 1;  /* CsrBool primitive->apConfig.apStrictGtkRekey */
+    bufferSize += 1;  /* u8 primitive->apConfig.apStrictGtkRekey */
     bufferSize += 2;  /* u16 primitive->apConfig.apGmkTimeout */
     bufferSize += 2;  /* u16 primitive->apConfig.apResponseTimeout */
     bufferSize += 1;  /* u8 primitive->apConfig.apRetransLimit */
@@ -44,9 +44,9 @@ CsrSize CsrWifiNmeApConfigSetReqSizeof(void *msg)
     bufferSize += 1;  /* u8 primitive->apMacConfig.supportedRatesCount */
     bufferSize += 20; /* u8 primitive->apMacConfig.supportedRates[20] */
     bufferSize += 1;  /* CsrWifiSmePreambleType primitive->apMacConfig.preamble */
-    bufferSize += 1;  /* CsrBool primitive->apMacConfig.shortSlotTimeEnabled */
+    bufferSize += 1;  /* u8 primitive->apMacConfig.shortSlotTimeEnabled */
     bufferSize += 1;  /* CsrWifiSmeCtsProtectionType primitive->apMacConfig.ctsProtectionType */
-    bufferSize += 1;  /* CsrBool primitive->apMacConfig.wmmEnabled */
+    bufferSize += 1;  /* u8 primitive->apMacConfig.wmmEnabled */
     {
         u16 i2;
         for (i2 = 0; i2 < 4; i2++)
@@ -55,7 +55,7 @@ CsrSize CsrWifiNmeApConfigSetReqSizeof(void *msg)
             bufferSize += 1; /* u8 primitive->apMacConfig.wmmApParams[i2].cwMax */
             bufferSize += 1; /* u8 primitive->apMacConfig.wmmApParams[i2].aifs */
             bufferSize += 2; /* u16 primitive->apMacConfig.wmmApParams[i2].txopLimit */
-            bufferSize += 1; /* CsrBool primitive->apMacConfig.wmmApParams[i2].admissionControlMandatory */
+            bufferSize += 1; /* u8 primitive->apMacConfig.wmmApParams[i2].admissionControlMandatory */
         }
     }
     {
@@ -66,7 +66,7 @@ CsrSize CsrWifiNmeApConfigSetReqSizeof(void *msg)
             bufferSize += 1; /* u8 primitive->apMacConfig.wmmApBcParams[i2].cwMax */
             bufferSize += 1; /* u8 primitive->apMacConfig.wmmApBcParams[i2].aifs */
             bufferSize += 2; /* u16 primitive->apMacConfig.wmmApBcParams[i2].txopLimit */
-            bufferSize += 1; /* CsrBool primitive->apMacConfig.wmmApBcParams[i2].admissionControlMandatory */
+            bufferSize += 1; /* u8 primitive->apMacConfig.wmmApBcParams[i2].admissionControlMandatory */
         }
     }
     bufferSize += 1;         /* CsrWifiSmeApAccessType primitive->apMacConfig.accessType */
@@ -78,12 +78,12 @@ CsrSize CsrWifiNmeApConfigSetReqSizeof(void *msg)
             bufferSize += 6; /* u8 primitive->apMacConfig.macAddressList[i2].a[6] */
         }
     }
-    bufferSize += 1;         /* CsrBool primitive->apMacConfig.apHtParams.greenfieldSupported */
-    bufferSize += 1;         /* CsrBool primitive->apMacConfig.apHtParams.shortGi20MHz */
+    bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.greenfieldSupported */
+    bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.shortGi20MHz */
     bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.rxStbc */
-    bufferSize += 1;         /* CsrBool primitive->apMacConfig.apHtParams.rifsModeAllowed */
+    bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.rifsModeAllowed */
     bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.htProtection */
-    bufferSize += 1;         /* CsrBool primitive->apMacConfig.apHtParams.dualCtsProtection */
+    bufferSize += 1;         /* u8 primitive->apMacConfig.apHtParams.dualCtsProtection */
     return bufferSize;
 }
 
@@ -276,7 +276,7 @@ CsrSize CsrWifiNmeApStartReqSizeof(void *msg)
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 112) */
     bufferSize += 2;  /* u16 primitive->interfaceTag */
     bufferSize += 1;  /* CsrWifiSmeApType primitive->apType */
-    bufferSize += 1;  /* CsrBool primitive->cloakSsid */
+    bufferSize += 1;  /* u8 primitive->cloakSsid */
     bufferSize += 32; /* u8 primitive->ssid.ssid[32] */
     bufferSize += 1;  /* u8 primitive->ssid.length */
     bufferSize += 1;  /* CsrWifiSmeRadioIF primitive->ifIndex */
@@ -346,11 +346,11 @@ CsrSize CsrWifiNmeApStartReqSizeof(void *msg)
             bufferSize += primitive->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannelCount; /* u8 primitive->p2pGoParam.operatingChanList.channelEntryList[i3].operatingChannel */
         }
     }
-    bufferSize += 1;                                                                                          /* CsrBool primitive->p2pGoParam.opPsEnabled */
+    bufferSize += 1;                                                                                          /* u8 primitive->p2pGoParam.opPsEnabled */
     bufferSize += 1;                                                                                          /* u8 primitive->p2pGoParam.ctWindow */
     bufferSize += 1;                                                                                          /* CsrWifiSmeP2pNoaConfigMethod primitive->p2pGoParam.noaConfigMethod */
-    bufferSize += 1;                                                                                          /* CsrBool primitive->p2pGoParam.allowNoaWithNonP2pDevices */
-    bufferSize += 1;                                                                                          /* CsrBool primitive->wpsEnabled */
+    bufferSize += 1;                                                                                          /* u8 primitive->p2pGoParam.allowNoaWithNonP2pDevices */
+    bufferSize += 1;                                                                                          /* u8 primitive->wpsEnabled */
     return bufferSize;
 }
 
@@ -589,7 +589,7 @@ CsrSize CsrWifiNmeApWmmParamUpdateReqSizeof(void *msg)
             bufferSize += 1; /* u8 primitive->wmmApParams[i1].cwMax */
             bufferSize += 1; /* u8 primitive->wmmApParams[i1].aifs */
             bufferSize += 2; /* u16 primitive->wmmApParams[i1].txopLimit */
-            bufferSize += 1; /* CsrBool primitive->wmmApParams[i1].admissionControlMandatory */
+            bufferSize += 1; /* u8 primitive->wmmApParams[i1].admissionControlMandatory */
         }
     }
     {
@@ -600,7 +600,7 @@ CsrSize CsrWifiNmeApWmmParamUpdateReqSizeof(void *msg)
             bufferSize += 1; /* u8 primitive->wmmApBcParams[i1].cwMax */
             bufferSize += 1; /* u8 primitive->wmmApBcParams[i1].aifs */
             bufferSize += 2; /* u16 primitive->wmmApBcParams[i1].txopLimit */
-            bufferSize += 1; /* CsrBool primitive->wmmApBcParams[i1].admissionControlMandatory */
+            bufferSize += 1; /* u8 primitive->wmmApBcParams[i1].admissionControlMandatory */
         }
     }
     return bufferSize;
@@ -679,7 +679,7 @@ CsrSize CsrWifiNmeApStaRemoveReqSizeof(void *msg)
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 12) */
     bufferSize += 2; /* u16 primitive->interfaceTag */
     bufferSize += 6; /* u8 primitive->staMacAddress.a[6] */
-    bufferSize += 1; /* CsrBool primitive->keepBlocking */
+    bufferSize += 1; /* u8 primitive->keepBlocking */
     return bufferSize;
 }
 
index 07ed8842b411a4bde7e6d8e1eba3ca53a4f74819..4676b42771a6715acc1a3471012860e94572dd50 100644 (file)
@@ -720,7 +720,7 @@ typedef struct
     char           *privateKeyPassword;
     u32                sessionLength;
     u8                *session;
-    CsrBool                  allowPacProvisioning;
+    u8                  allowPacProvisioning;
     u32                pacLength;
     u8                *pac;
     char           *pacPassword;
@@ -896,7 +896,7 @@ typedef struct
     CsrWifiNmeBssType         bssType;
     u8                  channelNo;
     u8                  ccxOptionsMask;
-    CsrBool                   cloakedSsid;
+    u8                   cloakedSsid;
     CsrWifiNmeCredentials     credentials;
 } CsrWifiNmeProfile;
 
index 076ef5317d0908132e62117f120d76a9efac7a02..f5ad3b312b352aabf69426f617aaf71a178b068e 100644 (file)
@@ -32,7 +32,7 @@ typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteWrite)(u8 func, u32 address, u8
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteRead)(u8 func, u32 address, u8 *pdata);
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioFirmwareDownload)(u32 length, const u8 *pdata);
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioReset)(void);
-typedef CsrResult (*CsrWifiRouterCtrlRawSdioCoreDumpPrepare)(CsrBool suspendSme);
+typedef CsrResult (*CsrWifiRouterCtrlRawSdioCoreDumpPrepare)(u8 suspendSme);
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioByteBlockRead)(u8 func, u32 address, u8 *pdata, u32 length);
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpRead16)(u8 func, u32 address, u16 *pdata);
 typedef CsrResult (*CsrWifiRouterCtrlRawSdioGpWrite16)(u8 func, u32 address, u16 data);
@@ -488,7 +488,7 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool                            wmmOrQosEnabled;
+    u8                            wmmOrQosEnabled;
     CsrWifiRouterCtrlPowersaveTypeMask powersaveMode;
     u8                           maxSpLength;
     u16                          listenIntervalInTus;
@@ -684,7 +684,7 @@ typedef struct
     CsrWifiFsmEvent                common;
     CsrWifiRouterCtrlRequestorInfo clientData;
     CsrWifiRouterCtrlLowPowerMode  mode;
-    CsrBool                        wakeHost;
+    u8                        wakeHost;
 } CsrWifiRouterCtrlConfigurePowerModeReq;
 
 /*******************************************************************************
@@ -791,7 +791,7 @@ typedef struct
     CsrWifiRouterCtrlPortAction    uncontrolledPortAction;
     CsrWifiRouterCtrlPortAction    controlledPortAction;
     CsrWifiMacAddress              macAddress;
-    CsrBool                        setProtection;
+    u8                        setProtection;
 } CsrWifiRouterCtrlPortConfigureReq;
 
 /*******************************************************************************
@@ -1073,7 +1073,7 @@ typedef struct
     u16                      numInterfaceAddress;
     CsrWifiMacAddress              stationMacAddress[2];
     CsrWifiRouterCtrlSmeVersions   smeVersions;
-    CsrBool                        scheduledInterrupt;
+    u8                        scheduledInterrupt;
 } CsrWifiRouterCtrlWifiOnRes;
 
 /*******************************************************************************
@@ -1126,8 +1126,8 @@ typedef struct
     CsrWifiRouterCtrlRequestorInfo clientData;
     CsrWifiRouterCtrlMode          mode;
     CsrWifiMacAddress              bssid;
-    CsrBool                        protection;
-    CsrBool                        intraBssDistEnabled;
+    u8                        protection;
+    u8                        intraBssDistEnabled;
 } CsrWifiRouterCtrlModeSetReq;
 
 /*******************************************************************************
@@ -1383,7 +1383,7 @@ typedef struct
 {
     CsrWifiFsmEvent common;
     u16       interfaceTag;
-    CsrBool         isWapiConnected;
+    u8         isWapiConnected;
 } CsrWifiRouterCtrlWapiFilterReq;
 
 /*******************************************************************************
@@ -1482,7 +1482,7 @@ typedef struct
 {
     CsrWifiFsmEvent                common;
     CsrWifiRouterCtrlRequestorInfo clientData;
-    CsrBool                        powerMaintained;
+    u8                        powerMaintained;
 } CsrWifiRouterCtrlResumeInd;
 
 /*******************************************************************************
@@ -1503,8 +1503,8 @@ typedef struct
 {
     CsrWifiFsmEvent                common;
     CsrWifiRouterCtrlRequestorInfo clientData;
-    CsrBool                        hardSuspend;
-    CsrBool                        d3Suspend;
+    u8                        hardSuspend;
+    u8                        d3Suspend;
 } CsrWifiRouterCtrlSuspendInd;
 
 /*******************************************************************************
@@ -1802,7 +1802,7 @@ typedef struct
     CsrWifiRouterCtrlRequestorInfo clientData;
     u16                      interfaceTag;
     CsrWifiMacAddress              peerMacAddress;
-    CsrBool                        unicastPdu;
+    u8                        unicastPdu;
 } CsrWifiRouterCtrlMicFailureInd;
 
 /*******************************************************************************
index 2dca1ea9ebc7bfc2a4179b8735f0cf0934ee065b..8cad0a4f875411462ed25501d35c51e1b6e4df4b 100644 (file)
@@ -31,7 +31,7 @@ CsrSize CsrWifiRouterCtrlConfigurePowerModeReqSizeof(void *msg)
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 8) */
     bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
     bufferSize += 2; /* CsrWifiRouterCtrlLowPowerMode primitive->mode */
-    bufferSize += 1; /* CsrBool primitive->wakeHost */
+    bufferSize += 1; /* u8 primitive->wakeHost */
     return bufferSize;
 }
 
@@ -284,7 +284,7 @@ CsrSize CsrWifiRouterCtrlPortConfigureReqSizeof(void *msg)
     bufferSize += 2; /* CsrWifiRouterCtrlPortAction primitive->uncontrolledPortAction */
     bufferSize += 2; /* CsrWifiRouterCtrlPortAction primitive->controlledPortAction */
     bufferSize += 6; /* u8 primitive->macAddress.a[6] */
-    bufferSize += 1; /* CsrBool primitive->setProtection */
+    bufferSize += 1; /* u8 primitive->setProtection */
     return bufferSize;
 }
 
@@ -734,7 +734,7 @@ CsrSize CsrWifiRouterCtrlWifiOnResSizeof(void *msg)
     bufferSize += 4;                                                                                    /* u32 primitive->smeVersions.firmwarePatch */
     bufferSize += (primitive->smeVersions.smeBuild?CsrStrLen(primitive->smeVersions.smeBuild) : 0) + 1; /* char* primitive->smeVersions.smeBuild (0 byte len + 1 for NULL Term) */
     bufferSize += 4;                                                                                    /* u32 primitive->smeVersions.smeHip */
-    bufferSize += 1;                                                                                    /* CsrBool primitive->scheduledInterrupt */
+    bufferSize += 1;                                                                                    /* u8 primitive->scheduledInterrupt */
     return bufferSize;
 }
 
@@ -841,8 +841,8 @@ CsrSize CsrWifiRouterCtrlModeSetReqSizeof(void *msg)
     bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
     bufferSize += 1; /* CsrWifiRouterCtrlMode primitive->mode */
     bufferSize += 6; /* u8 primitive->bssid.a[6] */
-    bufferSize += 1; /* CsrBool primitive->protection */
-    bufferSize += 1; /* CsrBool primitive->intraBssDistEnabled */
+    bufferSize += 1; /* u8 primitive->protection */
+    bufferSize += 1; /* u8 primitive->intraBssDistEnabled */
     return bufferSize;
 }
 
@@ -889,7 +889,7 @@ CsrSize CsrWifiRouterCtrlPeerAddReqSizeof(void *msg)
     bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
     bufferSize += 6; /* u8 primitive->peerMacAddress.a[6] */
     bufferSize += 2; /* u16 primitive->associationId */
-    bufferSize += 1; /* CsrBool primitive->staInfo.wmmOrQosEnabled */
+    bufferSize += 1; /* u8 primitive->staInfo.wmmOrQosEnabled */
     bufferSize += 2; /* CsrWifiRouterCtrlPowersaveTypeMask primitive->staInfo.powersaveMode */
     bufferSize += 1; /* u8 primitive->staInfo.maxSpLength */
     bufferSize += 2; /* u16 primitive->staInfo.listenIntervalInTus */
@@ -1467,8 +1467,8 @@ CsrSize CsrWifiRouterCtrlSuspendIndSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 7) */
     bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
-    bufferSize += 1; /* CsrBool primitive->hardSuspend */
-    bufferSize += 1; /* CsrBool primitive->d3Suspend */
+    bufferSize += 1; /* u8 primitive->hardSuspend */
+    bufferSize += 1; /* u8 primitive->d3Suspend */
     return bufferSize;
 }
 
@@ -1969,7 +1969,7 @@ CsrSize CsrWifiRouterCtrlMicFailureIndSizeof(void *msg)
     bufferSize += 2; /* CsrWifiRouterCtrlRequestorInfo primitive->clientData */
     bufferSize += 2; /* u16 primitive->interfaceTag */
     bufferSize += 6; /* u8 primitive->peerMacAddress.a[6] */
-    bufferSize += 1; /* CsrBool primitive->unicastPdu */
+    bufferSize += 1; /* u8 primitive->unicastPdu */
     return bufferSize;
 }
 
index 3b9ce1a39fa90f59aae8e8625c51f77337bcf81b..64b1f4fd7cd629999c488053418dca682cdaabf3 100644 (file)
@@ -249,7 +249,7 @@ typedef struct
     CsrWifiRouterFrameFreeFunction freeFunction;
     CsrWifiRouterPriority          priority;
     u32                      hostTag;
-    CsrBool                        cfmRequested;
+    u8                        cfmRequested;
 } CsrWifiRouterMaPacketReq;
 
 /*******************************************************************************
index c90bf7db1a711bad1dc7368106cfafefdb64585d..913c291326affc2f5319e8e94e68b808d38e84a2 100644 (file)
@@ -79,7 +79,7 @@ CsrSize CsrWifiRouterMaPacketReqSizeof(void *msg)
     bufferSize += 4;                      /* CsrWifiRouterFrameFreeFunction primitive->freeFunction */
     bufferSize += 2;                      /* CsrWifiRouterPriority primitive->priority */
     bufferSize += 4;                      /* u32 primitive->hostTag */
-    bufferSize += 1;                      /* CsrBool primitive->cfmRequested */
+    bufferSize += 1;                      /* u8 primitive->cfmRequested */
     return bufferSize;
 }
 
index 363c10bdaf6069db81c83a1aa3b099ea6dd85e2c..01df2a54966cb3c463a37f7a1d004474508bd70b 100644 (file)
@@ -248,12 +248,12 @@ typedef u16 CsrWifiSmeApWapiCapabilitiesMask;
 *******************************************************************************/
 typedef struct
 {
-    CsrBool  greenfieldSupported;
-    CsrBool  shortGi20MHz;
+    u8  greenfieldSupported;
+    u8  shortGi20MHz;
     u8 rxStbc;
-    CsrBool  rifsModeAllowed;
+    u8  rifsModeAllowed;
     u8 htProtection;
-    CsrBool  dualCtsProtection;
+    u8  dualCtsProtection;
 } CsrWifiSmeApHtParams;
 
 /*******************************************************************************
@@ -389,9 +389,9 @@ typedef struct
     u8                    supportedRatesCount;
     u8                    supportedRates[20];
     CsrWifiSmePreambleType      preamble;
-    CsrBool                     shortSlotTimeEnabled;
+    u8                     shortSlotTimeEnabled;
     CsrWifiSmeCtsProtectionType ctsProtectionType;
-    CsrBool                     wmmEnabled;
+    u8                     wmmEnabled;
     CsrWifiSmeWmmAcParams       wmmApParams[4];
     CsrWifiSmeWmmAcParams       wmmApBcParams[4];
     CsrWifiSmeApAccessType      accessType;
@@ -435,10 +435,10 @@ typedef struct
 {
     CsrWifiSmeP2pGroupCapabilityMask groupCapability;
     CsrWifiSmeApP2pOperatingChanList operatingChanList;
-    CsrBool                          opPsEnabled;
+    u8                          opPsEnabled;
     u8                         ctWindow;
     CsrWifiSmeP2pNoaConfigMethod     noaConfigMethod;
-    CsrBool                          allowNoaWithNonP2pDevices;
+    u8                          allowNoaWithNonP2pDevices;
 } CsrWifiSmeApP2pGoConfig;
 
 /*******************************************************************************
@@ -481,7 +481,7 @@ typedef struct
 typedef struct
 {
     CsrWifiSmeApCredentials apCredentials;
-    CsrBool                 wpsEnabled;
+    u8                 wpsEnabled;
 } CsrWifiSmeApSecConfig;
 
 
@@ -553,7 +553,7 @@ typedef struct
     u16               interfaceTag;
     u8                initialPresence;
     CsrWifiSmeApType        apType;
-    CsrBool                 cloakSsid;
+    u8                 cloakSsid;
     CsrWifiSsid             ssid;
     CsrWifiSmeRadioIF       ifIndex;
     u8                channel;
@@ -675,7 +675,7 @@ typedef struct
     CsrWifiSmeIEEE80211Reason deauthReason;
     CsrWifiSmeIEEE80211Reason disassocReason;
     CsrWifiMacAddress         peerMacaddress;
-    CsrBool                   keepBlocking;
+    u8                   keepBlocking;
 } CsrWifiSmeApStaDisconnectReq;
 
 /*******************************************************************************
index 3131dd712970fb70d000be69e4281bd4c58a8350..84eb6e9f0c267b7bef62c87bc474c5db37c1d946 100644 (file)
@@ -1988,9 +1988,9 @@ typedef struct
 typedef struct
 {
     u8 keepAliveTimeMs;
-    CsrBool  apRoamingEnabled;
+    u8  apRoamingEnabled;
     u8 measurementsMask;
-    CsrBool  ccxRadioMgtEnabled;
+    u8  ccxRadioMgtEnabled;
 } CsrWifiSmeCcxConfig;
 
 /*******************************************************************************
@@ -2037,8 +2037,8 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool   coexEnableSchemeManagement;
-    CsrBool   coexPeriodicWakeHost;
+    u8   coexEnableSchemeManagement;
+    u8   coexPeriodicWakeHost;
     u16 coexTrafficBurstyLatencyMs;
     u16 coexTrafficContinuousLatencyMs;
     u16 coexObexBlackoutDurationMs;
@@ -2231,7 +2231,7 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool   unifiFixMaxTxDataRate;
+    u8   unifiFixMaxTxDataRate;
     u8  unifiFixTxDataRate;
     u16 dot11RtsThreshold;
     u16 dot11FragmentationThreshold;
@@ -2294,7 +2294,7 @@ typedef struct
 typedef struct
 {
     CsrWifiMacAddress bssid;
-    CsrBool           preAuthAllowed;
+    u8           preAuthAllowed;
 } CsrWifiSmePmkidCandidate;
 
 /*******************************************************************************
@@ -2339,8 +2339,8 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool                    dot11MultiDomainCapabilityImplemented;
-    CsrBool                    dot11MultiDomainCapabilityEnabled;
+    u8                    dot11MultiDomainCapabilityImplemented;
+    u8                    dot11MultiDomainCapabilityEnabled;
     CsrWifiSmeRegulatoryDomain currentRegulatoryDomain;
     u8                   currentCountryCode[2];
 } CsrWifiSmeRegulatoryDomainInfo;
@@ -2489,7 +2489,7 @@ typedef struct
     u8  cwMax;
     u8  aifs;
     u16 txopLimit;
-    CsrBool   admissionControlMandatory;
+    u8   admissionControlMandatory;
 } CsrWifiSmeWmmAcParams;
 
 /*******************************************************************************
@@ -2523,7 +2523,7 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool  spportWps;
+    u8  spportWps;
     u8 deviceType;
 } CsrWifiSmeWpsDeviceTypeCommon;
 
@@ -2596,13 +2596,13 @@ typedef struct
 *******************************************************************************/
 typedef struct
 {
-    CsrBool                  hasTrafficData;
+    u8                  hasTrafficData;
     CsrWifiSmeTrafficType    currentTrafficType;
     u16                currentPeriodMs;
     CsrWifiSmePowerSaveLevel currentPowerSave;
     u16                currentCoexPeriodMs;
     u16                currentCoexLatencyMs;
-    CsrBool                  hasBtDevice;
+    u8                  hasBtDevice;
     u32                currentBlackoutDurationUs;
     u32                currentBlackoutPeriodUs;
     CsrWifiSmeCoexScheme     currentCoexScheme;
@@ -2677,7 +2677,7 @@ typedef struct
     u16                  mlmeAssociateReqInformationElementsLength;
     u8                  *mlmeAssociateReqInformationElements;
     CsrWifiSmeWmmQosInfoMask   wmmQosInfo;
-    CsrBool                    adhocJoinOnly;
+    u8                    adhocJoinOnly;
     u8                   adhocChannel;
 } CsrWifiSmeConnectionConfig;
 
@@ -2756,7 +2756,7 @@ typedef struct
     CsrWifiSmeRadioIF          ifIndex;
     u16                  atimWindowTu;
     u16                  beaconPeriodTu;
-    CsrBool                    reassociation;
+    u8                    reassociation;
     u16                  beaconFrameLength;
     u8                  *beaconFrame;
     u16                  associationReqFrameLength;
@@ -2800,7 +2800,7 @@ typedef struct
     CsrWifiSme80211dTrustLevel        trustLevel;
     u8                          countryCode[2];
     CsrWifiSmeFirmwareDriverInterface firmwareDriverInterface;
-    CsrBool                           enableStrictDraftN;
+    u8                           enableStrictDraftN;
 } CsrWifiSmeDeviceConfig;
 
 /*******************************************************************************
@@ -2925,9 +2925,9 @@ typedef struct
 {
     CsrWifiSmeKeyType keyType;
     u8          keyIndex;
-    CsrBool           wepTxKey;
+    u8           wepTxKey;
     u16         keyRsc[8];
-    CsrBool           authenticator;
+    u8           authenticator;
     CsrWifiMacAddress address;
     u8          keyLength;
     u8          key[32];
@@ -3001,11 +3001,11 @@ typedef struct
 {
     CsrWifiSmePowerSaveLevel powerSaveLevel;
     u16                listenIntervalTu;
-    CsrBool                  rxDtims;
+    u8                  rxDtims;
     CsrWifiSmeD3AutoScanMode d3AutoScanMode;
     u8                 clientTrafficWindow;
-    CsrBool                  opportunisticPowerSave;
-    CsrBool                  noticeOfAbsence;
+    u8                  opportunisticPowerSave;
+    u8                  noticeOfAbsence;
 } CsrWifiSmePowerConfig;
 
 /*******************************************************************************
@@ -3039,8 +3039,8 @@ typedef struct
 typedef struct
 {
     CsrWifiSmeRoamingBandData roamingBands[3];
-    CsrBool                   disableSmoothRoaming;
-    CsrBool                   disableRoamScans;
+    u8                   disableSmoothRoaming;
+    u8                   disableRoamScans;
     u8                  reconnectLimit;
     u16                 reconnectLimitIntervalMs;
     CsrWifiSmeScanConfigData  roamScanCfg[3];
@@ -3085,7 +3085,7 @@ typedef struct
 typedef struct
 {
     CsrWifiSmeScanConfigData scanCfg[4];
-    CsrBool                  disableAutonomousScans;
+    u8                  disableAutonomousScans;
     u16                maxResults;
     s8                  highRssiThreshold;
     s8                  lowRssiThreshold;
@@ -3193,8 +3193,8 @@ typedef struct
     u8              connectionQualitySnrChangeTrigger;
     CsrWifiSmeWmmModeMask wmmModeMask;
     CsrWifiSmeRadioIF     ifIndex;
-    CsrBool               allowUnicastUseGroupCipher;
-    CsrBool               enableOpportunisticKeyCaching;
+    u8               allowUnicastUseGroupCipher;
+    u8               enableOpportunisticKeyCaching;
 } CsrWifiSmeStaConfig;
 
 /*******************************************************************************
@@ -4401,7 +4401,7 @@ typedef struct
     u8           ssidCount;
     CsrWifiSsid       *ssid;
     CsrWifiMacAddress  bssid;
-    CsrBool            forceScan;
+    u8            forceScan;
     CsrWifiSmeBssType  bssType;
     CsrWifiSmeScanType scanType;
     u16          channelListCount;
@@ -4561,7 +4561,7 @@ typedef struct
     u16               interfaceTag;
     CsrWifiSmeListAction    action;
     u32               transactionId;
-    CsrBool                 strict;
+    u8                 strict;
     CsrWifiSmeTspecCtrlMask ctrlMask;
     u16               tspecLength;
     u8               *tspec;
@@ -5383,7 +5383,7 @@ typedef struct
 {
     CsrWifiFsmEvent   common;
     CsrWifiMacAddress address;
-    CsrBool           isconnected;
+    u8           isconnected;
 } CsrWifiSmeIbssStationInd;
 
 /*******************************************************************************
@@ -5608,7 +5608,7 @@ typedef struct
 {
     CsrWifiFsmEvent   common;
     u16         interfaceTag;
-    CsrBool           secondFailure;
+    u8           secondFailure;
     u16         count;
     CsrWifiMacAddress address;
     CsrWifiSmeKeyType keyType;
index c9070ca40831444071079e0abb1f72b1bc499de4..472f9c0d8aa1dc204cacdacfe6c41ec6cf3d1f42 100644 (file)
@@ -203,9 +203,9 @@ CsrSize CsrWifiSmeCcxConfigSetReqSizeof(void *msg)
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 9) */
     bufferSize += 2; /* u16 primitive->interfaceTag */
     bufferSize += 1; /* u8 primitive->ccxConfig.keepAliveTimeMs */
-    bufferSize += 1; /* CsrBool primitive->ccxConfig.apRoamingEnabled */
+    bufferSize += 1; /* u8 primitive->ccxConfig.apRoamingEnabled */
     bufferSize += 1; /* u8 primitive->ccxConfig.measurementsMask */
-    bufferSize += 1; /* CsrBool primitive->ccxConfig.ccxRadioMgtEnabled */
+    bufferSize += 1; /* u8 primitive->ccxConfig.ccxRadioMgtEnabled */
     return bufferSize;
 }
 
@@ -246,8 +246,8 @@ CsrSize CsrWifiSmeCoexConfigSetReqSizeof(void *msg)
     CsrSize bufferSize = 2;
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 29) */
-    bufferSize += 1; /* CsrBool primitive->coexConfig.coexEnableSchemeManagement */
-    bufferSize += 1; /* CsrBool primitive->coexConfig.coexPeriodicWakeHost */
+    bufferSize += 1; /* u8 primitive->coexConfig.coexEnableSchemeManagement */
+    bufferSize += 1; /* u8 primitive->coexConfig.coexPeriodicWakeHost */
     bufferSize += 2; /* u16 primitive->coexConfig.coexTrafficBurstyLatencyMs */
     bufferSize += 2; /* u16 primitive->coexConfig.coexTrafficContinuousLatencyMs */
     bufferSize += 2; /* u16 primitive->coexConfig.coexObexBlackoutDurationMs */
@@ -331,7 +331,7 @@ CsrSize CsrWifiSmeConnectReqSizeof(void *msg)
     bufferSize += 2;                                                                     /* u16 primitive->connectionConfig.mlmeAssociateReqInformationElementsLength */
     bufferSize += primitive->connectionConfig.mlmeAssociateReqInformationElementsLength; /* u8 primitive->connectionConfig.mlmeAssociateReqInformationElements */
     bufferSize += 1;                                                                     /* CsrWifiSmeWmmQosInfoMask primitive->connectionConfig.wmmQosInfo */
-    bufferSize += 1;                                                                     /* CsrBool primitive->connectionConfig.adhocJoinOnly */
+    bufferSize += 1;                                                                     /* u8 primitive->connectionConfig.adhocJoinOnly */
     bufferSize += 1;                                                                     /* u8 primitive->connectionConfig.adhocChannel */
     return bufferSize;
 }
@@ -453,7 +453,7 @@ CsrSize CsrWifiSmeKeyReqSizeof(void *msg)
     bufferSize += 1; /* CsrWifiSmeListAction primitive->action */
     bufferSize += 1; /* CsrWifiSmeKeyType primitive->key.keyType */
     bufferSize += 1; /* u8 primitive->key.keyIndex */
-    bufferSize += 1; /* CsrBool primitive->key.wepTxKey */
+    bufferSize += 1; /* u8 primitive->key.wepTxKey */
     {
         u16 i2;
         for (i2 = 0; i2 < 8; i2++)
@@ -461,7 +461,7 @@ CsrSize CsrWifiSmeKeyReqSizeof(void *msg)
             bufferSize += 2; /* u16 primitive->key.keyRsc[8] */
         }
     }
-    bufferSize += 1;         /* CsrBool primitive->key.authenticator */
+    bufferSize += 1;         /* u8 primitive->key.authenticator */
     bufferSize += 6;         /* u8 primitive->key.address.a[6] */
     bufferSize += 1;         /* u8 primitive->key.keyLength */
     bufferSize += 32;        /* u8 primitive->key.key[32] */
@@ -527,7 +527,7 @@ CsrSize CsrWifiSmeMibConfigSetReqSizeof(void *msg)
     CsrSize bufferSize = 2;
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 11) */
-    bufferSize += 1; /* CsrBool primitive->mibConfig.unifiFixMaxTxDataRate */
+    bufferSize += 1; /* u8 primitive->mibConfig.unifiFixMaxTxDataRate */
     bufferSize += 1; /* u8 primitive->mibConfig.unifiFixTxDataRate */
     bufferSize += 2; /* u16 primitive->mibConfig.dot11RtsThreshold */
     bufferSize += 2; /* u16 primitive->mibConfig.dot11FragmentationThreshold */
@@ -958,11 +958,11 @@ CsrSize CsrWifiSmePowerConfigSetReqSizeof(void *msg)
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 11) */
     bufferSize += 1; /* CsrWifiSmePowerSaveLevel primitive->powerConfig.powerSaveLevel */
     bufferSize += 2; /* u16 primitive->powerConfig.listenIntervalTu */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.rxDtims */
+    bufferSize += 1; /* u8 primitive->powerConfig.rxDtims */
     bufferSize += 1; /* CsrWifiSmeD3AutoScanMode primitive->powerConfig.d3AutoScanMode */
     bufferSize += 1; /* u8 primitive->powerConfig.clientTrafficWindow */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.opportunisticPowerSave */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.noticeOfAbsence */
+    bufferSize += 1; /* u8 primitive->powerConfig.opportunisticPowerSave */
+    bufferSize += 1; /* u8 primitive->powerConfig.noticeOfAbsence */
     return bufferSize;
 }
 
@@ -1018,8 +1018,8 @@ CsrSize CsrWifiSmeRoamingConfigSetReqSizeof(void *msg)
             bufferSize += 2; /* s16 primitive->roamingConfig.roamingBands[i2].snrLowThreshold */
         }
     }
-    bufferSize += 1;         /* CsrBool primitive->roamingConfig.disableSmoothRoaming */
-    bufferSize += 1;         /* CsrBool primitive->roamingConfig.disableRoamScans */
+    bufferSize += 1;         /* u8 primitive->roamingConfig.disableSmoothRoaming */
+    bufferSize += 1;         /* u8 primitive->roamingConfig.disableRoamScans */
     bufferSize += 1;         /* u8 primitive->roamingConfig.reconnectLimit */
     bufferSize += 2;         /* u16 primitive->roamingConfig.reconnectLimitIntervalMs */
     {
@@ -1131,7 +1131,7 @@ CsrSize CsrWifiSmeScanConfigSetReqSizeof(void *msg)
             bufferSize += 2;                                     /* u16 primitive->scanConfig.scanCfg[i2].maxPassiveChannelTimeTu */
         }
     }
-    bufferSize += 1;                                             /* CsrBool primitive->scanConfig.disableAutonomousScans */
+    bufferSize += 1;                                             /* u8 primitive->scanConfig.disableAutonomousScans */
     bufferSize += 2;                                             /* u16 primitive->scanConfig.maxResults */
     bufferSize += 1;                                             /* s8 primitive->scanConfig.highRssiThreshold */
     bufferSize += 1;                                             /* s8 primitive->scanConfig.lowRssiThreshold */
@@ -1245,7 +1245,7 @@ CsrSize CsrWifiSmeScanFullReqSizeof(void *msg)
         }
     }
     bufferSize += 6;                           /* u8 primitive->bssid.a[6] */
-    bufferSize += 1;                           /* CsrBool primitive->forceScan */
+    bufferSize += 1;                           /* u8 primitive->forceScan */
     bufferSize += 1;                           /* CsrWifiSmeBssType primitive->bssType */
     bufferSize += 1;                           /* CsrWifiSmeScanType primitive->scanType */
     bufferSize += 2;                           /* u16 primitive->channelListCount */
@@ -1358,8 +1358,8 @@ CsrSize CsrWifiSmeSmeStaConfigSetReqSizeof(void *msg)
     bufferSize += 1; /* u8 primitive->smeConfig.connectionQualitySnrChangeTrigger */
     bufferSize += 1; /* CsrWifiSmeWmmModeMask primitive->smeConfig.wmmModeMask */
     bufferSize += 1; /* CsrWifiSmeRadioIF primitive->smeConfig.ifIndex */
-    bufferSize += 1; /* CsrBool primitive->smeConfig.allowUnicastUseGroupCipher */
-    bufferSize += 1; /* CsrBool primitive->smeConfig.enableOpportunisticKeyCaching */
+    bufferSize += 1; /* u8 primitive->smeConfig.allowUnicastUseGroupCipher */
+    bufferSize += 1; /* u8 primitive->smeConfig.enableOpportunisticKeyCaching */
     return bufferSize;
 }
 
@@ -1408,7 +1408,7 @@ CsrSize CsrWifiSmeTspecReqSizeof(void *msg)
     bufferSize += 2;                      /* u16 primitive->interfaceTag */
     bufferSize += 1;                      /* CsrWifiSmeListAction primitive->action */
     bufferSize += 4;                      /* u32 primitive->transactionId */
-    bufferSize += 1;                      /* CsrBool primitive->strict */
+    bufferSize += 1;                      /* u8 primitive->strict */
     bufferSize += 1;                      /* CsrWifiSmeTspecCtrlMask primitive->ctrlMask */
     bufferSize += 2;                      /* u16 primitive->tspecLength */
     bufferSize += primitive->tspecLength; /* u8 primitive->tspec */
@@ -1751,7 +1751,7 @@ CsrSize CsrWifiSmeSmeCommonConfigSetReqSizeof(void *msg)
     bufferSize += 1; /* CsrWifiSme80211dTrustLevel primitive->deviceConfig.trustLevel */
     bufferSize += 2; /* u8 primitive->deviceConfig.countryCode[2] */
     bufferSize += 1; /* CsrWifiSmeFirmwareDriverInterface primitive->deviceConfig.firmwareDriverInterface */
-    bufferSize += 1; /* CsrBool primitive->deviceConfig.enableStrictDraftN */
+    bufferSize += 1; /* u8 primitive->deviceConfig.enableStrictDraftN */
     return bufferSize;
 }
 
@@ -2019,7 +2019,7 @@ CsrSize CsrWifiSmeAssociationCompleteIndSizeof(void *msg)
     bufferSize += 1;                                                     /* CsrWifiSmeRadioIF primitive->connectionInfo.ifIndex */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.atimWindowTu */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconPeriodTu */
-    bufferSize += 1;                                                     /* CsrBool primitive->connectionInfo.reassociation */
+    bufferSize += 1;                                                     /* u8 primitive->connectionInfo.reassociation */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconFrameLength */
     bufferSize += primitive->connectionInfo.beaconFrameLength;           /* u8 primitive->connectionInfo.beaconFrame */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.associationReqFrameLength */
@@ -2397,9 +2397,9 @@ CsrSize CsrWifiSmeCcxConfigGetCfmSizeof(void *msg)
     bufferSize += 2; /* u16 primitive->interfaceTag */
     bufferSize += 2; /* CsrResult primitive->status */
     bufferSize += 1; /* u8 primitive->ccxConfig.keepAliveTimeMs */
-    bufferSize += 1; /* CsrBool primitive->ccxConfig.apRoamingEnabled */
+    bufferSize += 1; /* u8 primitive->ccxConfig.apRoamingEnabled */
     bufferSize += 1; /* u8 primitive->ccxConfig.measurementsMask */
-    bufferSize += 1; /* CsrBool primitive->ccxConfig.ccxRadioMgtEnabled */
+    bufferSize += 1; /* u8 primitive->ccxConfig.ccxRadioMgtEnabled */
     return bufferSize;
 }
 
@@ -2479,8 +2479,8 @@ CsrSize CsrWifiSmeCoexConfigGetCfmSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 31) */
     bufferSize += 2; /* CsrResult primitive->status */
-    bufferSize += 1; /* CsrBool primitive->coexConfig.coexEnableSchemeManagement */
-    bufferSize += 1; /* CsrBool primitive->coexConfig.coexPeriodicWakeHost */
+    bufferSize += 1; /* u8 primitive->coexConfig.coexEnableSchemeManagement */
+    bufferSize += 1; /* u8 primitive->coexConfig.coexPeriodicWakeHost */
     bufferSize += 2; /* u16 primitive->coexConfig.coexTrafficBurstyLatencyMs */
     bufferSize += 2; /* u16 primitive->coexConfig.coexTrafficContinuousLatencyMs */
     bufferSize += 2; /* u16 primitive->coexConfig.coexObexBlackoutDurationMs */
@@ -2554,13 +2554,13 @@ CsrSize CsrWifiSmeCoexInfoGetCfmSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 24) */
     bufferSize += 2; /* CsrResult primitive->status */
-    bufferSize += 1; /* CsrBool primitive->coexInfo.hasTrafficData */
+    bufferSize += 1; /* u8 primitive->coexInfo.hasTrafficData */
     bufferSize += 1; /* CsrWifiSmeTrafficType primitive->coexInfo.currentTrafficType */
     bufferSize += 2; /* u16 primitive->coexInfo.currentPeriodMs */
     bufferSize += 1; /* CsrWifiSmePowerSaveLevel primitive->coexInfo.currentPowerSave */
     bufferSize += 2; /* u16 primitive->coexInfo.currentCoexPeriodMs */
     bufferSize += 2; /* u16 primitive->coexInfo.currentCoexLatencyMs */
-    bufferSize += 1; /* CsrBool primitive->coexInfo.hasBtDevice */
+    bufferSize += 1; /* u8 primitive->coexInfo.hasBtDevice */
     bufferSize += 4; /* u32 primitive->coexInfo.currentBlackoutDurationUs */
     bufferSize += 4; /* u32 primitive->coexInfo.currentBlackoutPeriodUs */
     bufferSize += 1; /* CsrWifiSmeCoexScheme primitive->coexInfo.currentCoexScheme */
@@ -2666,7 +2666,7 @@ CsrSize CsrWifiSmeConnectionConfigGetCfmSizeof(void *msg)
     bufferSize += 2;                                                                     /* u16 primitive->connectionConfig.mlmeAssociateReqInformationElementsLength */
     bufferSize += primitive->connectionConfig.mlmeAssociateReqInformationElementsLength; /* u8 primitive->connectionConfig.mlmeAssociateReqInformationElements */
     bufferSize += 1;                                                                     /* CsrWifiSmeWmmQosInfoMask primitive->connectionConfig.wmmQosInfo */
-    bufferSize += 1;                                                                     /* CsrBool primitive->connectionConfig.adhocJoinOnly */
+    bufferSize += 1;                                                                     /* u8 primitive->connectionConfig.adhocJoinOnly */
     bufferSize += 1;                                                                     /* u8 primitive->connectionConfig.adhocChannel */
     return bufferSize;
 }
@@ -2762,7 +2762,7 @@ CsrSize CsrWifiSmeConnectionInfoGetCfmSizeof(void *msg)
     bufferSize += 1;                                                     /* CsrWifiSmeRadioIF primitive->connectionInfo.ifIndex */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.atimWindowTu */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconPeriodTu */
-    bufferSize += 1;                                                     /* CsrBool primitive->connectionInfo.reassociation */
+    bufferSize += 1;                                                     /* u8 primitive->connectionInfo.reassociation */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconFrameLength */
     bufferSize += primitive->connectionInfo.beaconFrameLength;           /* u8 primitive->connectionInfo.beaconFrame */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.associationReqFrameLength */
@@ -3221,7 +3221,7 @@ CsrSize CsrWifiSmeIbssStationIndSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 10) */
     bufferSize += 6; /* u8 primitive->address.a[6] */
-    bufferSize += 1; /* CsrBool primitive->isconnected */
+    bufferSize += 1; /* u8 primitive->isconnected */
     return bufferSize;
 }
 
@@ -3358,7 +3358,7 @@ CsrSize CsrWifiSmeMediaStatusIndSizeof(void *msg)
     bufferSize += 1;                                                     /* CsrWifiSmeRadioIF primitive->connectionInfo.ifIndex */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.atimWindowTu */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconPeriodTu */
-    bufferSize += 1;                                                     /* CsrBool primitive->connectionInfo.reassociation */
+    bufferSize += 1;                                                     /* u8 primitive->connectionInfo.reassociation */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.beaconFrameLength */
     bufferSize += primitive->connectionInfo.beaconFrameLength;           /* u8 primitive->connectionInfo.beaconFrame */
     bufferSize += 2;                                                     /* u16 primitive->connectionInfo.associationReqFrameLength */
@@ -3559,7 +3559,7 @@ CsrSize CsrWifiSmeMibConfigGetCfmSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 13) */
     bufferSize += 2; /* CsrResult primitive->status */
-    bufferSize += 1; /* CsrBool primitive->mibConfig.unifiFixMaxTxDataRate */
+    bufferSize += 1; /* u8 primitive->mibConfig.unifiFixMaxTxDataRate */
     bufferSize += 1; /* u8 primitive->mibConfig.unifiFixTxDataRate */
     bufferSize += 2; /* u16 primitive->mibConfig.dot11RtsThreshold */
     bufferSize += 2; /* u16 primitive->mibConfig.dot11FragmentationThreshold */
@@ -3725,7 +3725,7 @@ CsrSize CsrWifiSmeMicFailureIndSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 15) */
     bufferSize += 2; /* u16 primitive->interfaceTag */
-    bufferSize += 1; /* CsrBool primitive->secondFailure */
+    bufferSize += 1; /* u8 primitive->secondFailure */
     bufferSize += 2; /* u16 primitive->count */
     bufferSize += 6; /* u8 primitive->address.a[6] */
     bufferSize += 1; /* CsrWifiSmeKeyType primitive->keyType */
@@ -3926,7 +3926,7 @@ CsrSize CsrWifiSmePmkidCandidateListIndSizeof(void *msg)
         for (i1 = 0; i1 < primitive->pmkidCandidatesCount; i1++)
         {
             bufferSize += 6; /* u8 primitive->pmkidCandidates[i1].bssid.a[6] */
-            bufferSize += 1; /* CsrBool primitive->pmkidCandidates[i1].preAuthAllowed */
+            bufferSize += 1; /* u8 primitive->pmkidCandidates[i1].preAuthAllowed */
         }
     }
     return bufferSize;
@@ -4075,11 +4075,11 @@ CsrSize CsrWifiSmePowerConfigGetCfmSizeof(void *msg)
     bufferSize += 2; /* CsrResult primitive->status */
     bufferSize += 1; /* CsrWifiSmePowerSaveLevel primitive->powerConfig.powerSaveLevel */
     bufferSize += 2; /* u16 primitive->powerConfig.listenIntervalTu */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.rxDtims */
+    bufferSize += 1; /* u8 primitive->powerConfig.rxDtims */
     bufferSize += 1; /* CsrWifiSmeD3AutoScanMode primitive->powerConfig.d3AutoScanMode */
     bufferSize += 1; /* u8 primitive->powerConfig.clientTrafficWindow */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.opportunisticPowerSave */
-    bufferSize += 1; /* CsrBool primitive->powerConfig.noticeOfAbsence */
+    bufferSize += 1; /* u8 primitive->powerConfig.opportunisticPowerSave */
+    bufferSize += 1; /* u8 primitive->powerConfig.noticeOfAbsence */
     return bufferSize;
 }
 
@@ -4127,8 +4127,8 @@ CsrSize CsrWifiSmeRegulatoryDomainInfoGetCfmSizeof(void *msg)
 
     /* Calculate the Size of the Serialised Data. Could be more efficient (Try 10) */
     bufferSize += 2; /* CsrResult primitive->status */
-    bufferSize += 1; /* CsrBool primitive->regDomInfo.dot11MultiDomainCapabilityImplemented */
-    bufferSize += 1; /* CsrBool primitive->regDomInfo.dot11MultiDomainCapabilityEnabled */
+    bufferSize += 1; /* u8 primitive->regDomInfo.dot11MultiDomainCapabilityImplemented */
+    bufferSize += 1; /* u8 primitive->regDomInfo.dot11MultiDomainCapabilityEnabled */
     bufferSize += 1; /* CsrWifiSmeRegulatoryDomain primitive->regDomInfo.currentRegulatoryDomain */
     bufferSize += 2; /* u8 primitive->regDomInfo.currentCountryCode[2] */
     return bufferSize;
@@ -4258,8 +4258,8 @@ CsrSize CsrWifiSmeRoamingConfigGetCfmSizeof(void *msg)
             bufferSize += 2; /* s16 primitive->roamingConfig.roamingBands[i2].snrLowThreshold */
         }
     }
-    bufferSize += 1;         /* CsrBool primitive->roamingConfig.disableSmoothRoaming */
-    bufferSize += 1;         /* CsrBool primitive->roamingConfig.disableRoamScans */
+    bufferSize += 1;         /* u8 primitive->roamingConfig.disableSmoothRoaming */
+    bufferSize += 1;         /* u8 primitive->roamingConfig.disableRoamScans */
     bufferSize += 1;         /* u8 primitive->roamingConfig.reconnectLimit */
     bufferSize += 2;         /* u16 primitive->roamingConfig.reconnectLimitIntervalMs */
     {
@@ -4410,7 +4410,7 @@ CsrSize CsrWifiSmeScanConfigGetCfmSizeof(void *msg)
             bufferSize += 2;                                     /* u16 primitive->scanConfig.scanCfg[i2].maxPassiveChannelTimeTu */
         }
     }
-    bufferSize += 1;                                             /* CsrBool primitive->scanConfig.disableAutonomousScans */
+    bufferSize += 1;                                             /* u8 primitive->scanConfig.disableAutonomousScans */
     bufferSize += 2;                                             /* u16 primitive->scanConfig.maxResults */
     bufferSize += 1;                                             /* s8 primitive->scanConfig.highRssiThreshold */
     bufferSize += 1;                                             /* s8 primitive->scanConfig.lowRssiThreshold */
@@ -5143,8 +5143,8 @@ CsrSize CsrWifiSmeSmeStaConfigGetCfmSizeof(void *msg)
     bufferSize += 1; /* u8 primitive->smeConfig.connectionQualitySnrChangeTrigger */
     bufferSize += 1; /* CsrWifiSmeWmmModeMask primitive->smeConfig.wmmModeMask */
     bufferSize += 1; /* CsrWifiSmeRadioIF primitive->smeConfig.ifIndex */
-    bufferSize += 1; /* CsrBool primitive->smeConfig.allowUnicastUseGroupCipher */
-    bufferSize += 1; /* CsrBool primitive->smeConfig.enableOpportunisticKeyCaching */
+    bufferSize += 1; /* u8 primitive->smeConfig.allowUnicastUseGroupCipher */
+    bufferSize += 1; /* u8 primitive->smeConfig.enableOpportunisticKeyCaching */
     return bufferSize;
 }
 
@@ -5595,7 +5595,7 @@ CsrSize CsrWifiSmeSmeCommonConfigGetCfmSizeof(void *msg)
     bufferSize += 1; /* CsrWifiSme80211dTrustLevel primitive->deviceConfig.trustLevel */
     bufferSize += 2; /* u8 primitive->deviceConfig.countryCode[2] */
     bufferSize += 1; /* CsrWifiSmeFirmwareDriverInterface primitive->deviceConfig.firmwareDriverInterface */
-    bufferSize += 1; /* CsrBool primitive->deviceConfig.enableStrictDraftN */
+    bufferSize += 1; /* u8 primitive->deviceConfig.enableStrictDraftN */
     return bufferSize;
 }
 
index 4eafbecf630f880efa0ff33a39fcd7444812e200..523172d1ac9233239dac53060e87199b0b9bb13e 100644 (file)
@@ -64,9 +64,9 @@ extern "C" {
  * @param[in] CsrWifiInterfaceMode : mode
  *
  * @return
- *     CsrBool : returns true if the interface is allowed to operate in the mode otherwise false.
+ *     u8 : returns true if the interface is allowed to operate in the mode otherwise false.
  */
-extern CsrBool CsrWifiVifUtilsCheckCompatibility(u8             interfaceCapability,
+extern u8 CsrWifiVifUtilsCheckCompatibility(u8             interfaceCapability,
                                                  u8            *currentInterfaceModes,
                                                  u16            interfaceTag,
                                                  CsrWifiInterfaceMode mode);
@@ -80,9 +80,9 @@ extern CsrBool CsrWifiVifUtilsCheckCompatibility(u8             interfaceCapabil
  * @param[in] u16 : interfaceTag
  *
  * @return
- *     CsrBool : returns true if the interface is supported, otherwise false.
+ *     u8 : returns true if the interface is supported, otherwise false.
  */
-extern CsrBool CsrWifiVifUtilsIsSupported(u16 interfaceTag);
+extern u8 CsrWifiVifUtilsIsSupported(u16 interfaceTag);
 
 #ifdef CSR_LOG_ENABLE
 /**
index b994d1470f858c02dab55813c929bcf86829339b..d14e11839618e92cead591160100aca3dc1e6b4d 100644 (file)
@@ -296,7 +296,7 @@ uf_run_unifihelper(unifi_priv_t *priv)
 } /* uf_run_unifihelper() */
 
 #ifdef CSR_WIFI_SPLIT_PATCH
-static CsrBool is_ap_mode(unifi_priv_t *priv)
+static u8 is_ap_mode(unifi_priv_t *priv)
 {
     if (priv == NULL || priv->interfacePriv[0] == NULL)
     {
index 529bd9d0d479552978b25dd8a53b3a31f5d05662..1e6e111a8e159c38d17e95e80d1834d9bc6143aa 100644 (file)
@@ -552,7 +552,7 @@ uf_alloc_netdevice(CsrSdioFunction *sdio_dev, int bus_id)
  *      and should be freed by freeing the net_device pointer.
  * ---------------------------------------------------------------------------
  */
-CsrBool
+u8
 uf_alloc_netdevice_for_other_interfaces(unifi_priv_t *priv, u16 interfaceTag)
 {
     struct net_device *dev;
@@ -1371,7 +1371,7 @@ int prepare_and_add_macheader(unifi_priv_t *priv, struct sk_buff *skb, struct sk
                               u16 interfaceTag,
                               const u8 *daddr,
                               const u8 *saddr,
-                              CsrBool protection)
+                              u8 protection)
 {
     u16 fc = 0;
     u8 qc = 0;
@@ -1382,7 +1382,7 @@ int prepare_and_add_macheader(unifi_priv_t *priv, struct sk_buff *skb, struct sk
     u8 direction = 0;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
     u8 *addressOne;
-    CsrBool bQosNull = false;
+    u8 bQosNull = false;
 
     if (skb == NULL) {
         unifi_error(priv,"prepare_and_add_macheader: Invalid SKB reference\n");
@@ -1650,7 +1650,7 @@ send_ma_pkt_request(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr
 {
     int r;
     u16 i;
-    CsrBool eapolStore = FALSE;
+    u8 eapolStore = FALSE;
     struct sk_buff *newSkb = NULL;
     bulk_data_param_t bulkdata;
     const int proto = ntohs(ehdr->h_proto);
@@ -2745,7 +2745,7 @@ static void process_ma_packet_ind(unifi_priv_t *priv, CSR_SIGNAL *signal, bulk_d
 
 #ifdef CSR_SUPPORT_SME
     u8 dataFrameType = 0;
-    CsrBool powerSaveChanged = FALSE;
+    u8 powerSaveChanged = FALSE;
     u8 pmBit = 0;
     CsrWifiRouterCtrlStaInfo_t *srcStaInfo = NULL;
     u16 qosControl;
index 921396712a5b1899c0ef8d41d5e4635d09b29fa7..3f0d70d56a261f978512caeb075ac3a5177555b2 100644 (file)
@@ -321,7 +321,7 @@ int sme_mgt_scan_full(unifi_priv_t *priv,
         unsigned char *channel_list)
 {
     CsrWifiMacAddress bcastAddress = {{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }};
-    CsrBool is_active = (num_channels > 0) ? TRUE : FALSE;
+    u8 is_active = (num_channels > 0) ? TRUE : FALSE;
     int r;
 
     if (priv->smepriv == NULL) {
index 7a41c9c5565caf9b8c92744611aa34fb24008233..99de27e678d2e4ead621b00c7b29e849ca77ef81 100644 (file)
@@ -1095,7 +1095,7 @@ void CsrWifiRouterCtrlWifiOnResHandler(void* drvpriv, CsrWifiFsmEvent* msg)
         int i; /* used as a loop counter */
         u32 intmode = CSR_WIFI_INTMODE_DEFAULT;
 #ifdef CSR_WIFI_SPLIT_PATCH
-        CsrBool switching_ap_fw = FALSE;
+        u8 switching_ap_fw = FALSE;
 #endif
         /* Register the UniFi device with the OS network manager */
         unifi_trace(priv, UDBG3, "Card Init Completed Successfully\n");
@@ -1365,7 +1365,7 @@ _sys_packet_req(unifi_priv_t *priv, const CSR_SIGNAL *signal,
     CsrWifiMacAddress peerMacAddress;
     CsrResult csrResult;
     u16 interfaceTag = req.VirtualInterfaceIdentifier & 0xff;
-    CsrBool eapolStore = FALSE;
+    u8 eapolStore = FALSE;
     s8 protection = 0;
     netInterface_priv_t *interfacePriv;
     unsigned long flags;
@@ -2101,7 +2101,7 @@ void CsrWifiRouterCtrlPeerDelReqHandler(void* drvpriv, CsrWifiFsmEvent* msg)
 static int peer_add_new_record(unifi_priv_t *priv,CsrWifiRouterCtrlPeerAddReq *req,u32 *handle)
 {
     u8 i, powerModeTemp = 0;
-    CsrBool freeSlotFound = FALSE;
+    u8 freeSlotFound = FALSE;
     CsrWifiRouterCtrlStaInfo_t *newRecord = NULL;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[req->interfaceTag];
     CsrTime currentTime, currentTimeHi;
@@ -2610,7 +2610,7 @@ static void ba_session_terminate_timer_func(unsigned long data)
 }
 
 
-CsrBool blockack_session_stop(unifi_priv_t *priv,
+u8 blockack_session_stop(unifi_priv_t *priv,
                                      u16 interfaceTag,
                                      CsrWifiRouterCtrlBlockAckRole role,
                                      u16 tID,
@@ -2708,7 +2708,7 @@ CsrBool blockack_session_stop(unifi_priv_t *priv,
 void CsrWifiRouterCtrlBlockAckDisableReqHandler(void* drvpriv, CsrWifiFsmEvent* msg)
 {
     CsrWifiRouterCtrlBlockAckDisableReq* req = (CsrWifiRouterCtrlBlockAckDisableReq*)msg;
-    CsrBool r;
+    u8 r;
     unifi_priv_t *priv = (unifi_priv_t*)drvpriv;
 
     unifi_trace(priv, UDBG6, "%s: in ok\n", __FUNCTION__);
@@ -2730,7 +2730,7 @@ void CsrWifiRouterCtrlBlockAckDisableReqHandler(void* drvpriv, CsrWifiFsmEvent*
 }
 
 
-CsrBool blockack_session_start(unifi_priv_t *priv,
+u8 blockack_session_start(unifi_priv_t *priv,
                                u16 interfaceTag,
                                u16 tID,
                                u16 timeout,
@@ -2946,7 +2946,7 @@ CsrBool blockack_session_start(unifi_priv_t *priv,
 void CsrWifiRouterCtrlBlockAckEnableReqHandler(void* drvpriv, CsrWifiFsmEvent* msg)
 {
     CsrWifiRouterCtrlBlockAckEnableReq* req = (CsrWifiRouterCtrlBlockAckEnableReq*)msg;
-    CsrBool r;
+    u8 r;
     unifi_priv_t *priv = (unifi_priv_t*)drvpriv;
 
     unifi_trace(priv, UDBG6, ">>%s\n", __FUNCTION__);
index f5c2e77ba294fb976c8a0db918fa4c267f4986b9..c27b23daf399d19c9bd72298c01c9bc40ad176b6 100644 (file)
@@ -91,25 +91,25 @@ static void send_to_client(unifi_priv_t *priv, ul_client_t *client,
  *      FALSE if the packet is for the driver or network stack
  * ---------------------------------------------------------------------------
  */
-static CsrBool check_routing_pkt_data_ind(unifi_priv_t *priv,
+static u8 check_routing_pkt_data_ind(unifi_priv_t *priv,
         u8 *sigdata,
         const bulk_data_param_t* bulkdata,
-        CsrBool *freeBulkData,
+        u8 *freeBulkData,
         netInterface_priv_t *interfacePriv)
 {
     u16  frmCtrl, receptionStatus, frmCtrlSubType;
     u8 *macHdrLocation;
     u8 interfaceTag;
-    CsrBool isDataFrame;
-    CsrBool isProtocolVerInvalid = FALSE;
-    CsrBool isDataFrameSubTypeNoData = FALSE;
+    u8 isDataFrame;
+    u8 isProtocolVerInvalid = FALSE;
+    u8 isDataFrameSubTypeNoData = FALSE;
 
 #ifdef CSR_WIFI_SECURITY_WAPI_ENABLE
     static const u8 wapiProtocolIdSNAPHeader[] = {0x88,0xb4};
     static const u8 wapiProtocolIdSNAPHeaderOffset = 6;
     u8 *destAddr;
     u8 *srcAddr;
-    CsrBool isWapiUnicastPkt = FALSE;
+    u8 isWapiUnicastPkt = FALSE;
 
 #ifdef CSR_WIFI_SECURITY_WAPI_QOSCTRL_MIC_WORKAROUND
     u16 qosControl;
@@ -374,7 +374,7 @@ unifi_process_receive_event(void *ospriv,
     int i, receiver_id;
     int client_id;
     s16 signal_id;
-    CsrBool pktIndToSme = FALSE, freeBulkData = FALSE;
+    u8 pktIndToSme = FALSE, freeBulkData = FALSE;
 
     func_enter();
 
@@ -490,7 +490,7 @@ unifi_process_receive_event(void *ospriv,
                        u8 *destAddr;
                        CsrResult res;
                        u16 interfaceTag = 0;
-                       CsrBool isMcastPkt = TRUE;
+                       u8 isMcastPkt = TRUE;
 
                        unifi_trace(priv, UDBG6, "Received a WAPI data packet when the Unicast/Multicast filter is set\n");
                        res = read_unpack_signal(sigdata, &signal);
@@ -578,7 +578,7 @@ unifi_process_receive_event(void *ospriv,
 
 
 #ifdef CSR_WIFI_RX_PATH_SPLIT
-static CsrBool signal_buffer_is_full(unifi_priv_t* priv)
+static u8 signal_buffer_is_full(unifi_priv_t* priv)
 {
     return (((priv->rxSignalBuffer.writePointer + 1)% priv->rxSignalBuffer.size) == (priv->rxSignalBuffer.readPointer));
 }
index d1afa3a076cd9101fe5ba89ab92bc086938fe5cc..7c7e8d49ae4207f82ef6eea6eb9d693fbfb34fe2 100644 (file)
@@ -129,7 +129,7 @@ unifi_frame_ma_packet_req(unifi_priv_t *priv, CSR_PRIORITY priority,
 
 static
 int frame_and_send_queued_pdu(unifi_priv_t* priv,tx_buffered_packets_t* buffered_pkt,
-            CsrWifiRouterCtrlStaInfo_t *staRecord,CsrBool moreData , CsrBool eosp)
+            CsrWifiRouterCtrlStaInfo_t *staRecord,u8 moreData , u8 eosp)
 {
 
     CSR_SIGNAL signal;
@@ -300,7 +300,7 @@ void verify_and_accomodate_tx_packet(unifi_priv_t *priv)
     struct list_head *listHead, *list;
     struct list_head *placeHolder;
     u8 i, j,eospFramedeleted=0;
-    CsrBool thresholdExcedeDueToBroadcast = TRUE;
+    u8 thresholdExcedeDueToBroadcast = TRUE;
     /* it will be made it interface Specific in the future when multi interfaces are supported ,
     right now interface 0 is considered */
     netInterface_priv_t *interfacePriv = priv->interfacePriv[0];
@@ -385,7 +385,7 @@ void verify_and_accomodate_tx_packet(unifi_priv_t *priv)
 static
 CsrResult enque_tx_data_pdu(unifi_priv_t *priv, bulk_data_param_t *bulkdata,
                             struct list_head *list, CSR_SIGNAL *signal,
-                            CsrBool requeueOnSamePos)
+                            u8 requeueOnSamePos)
 {
 
     /* queue the tx data packets on to appropriate queue */
@@ -754,7 +754,7 @@ void uf_handle_tim_cfm(unifi_priv_t *priv, CSR_MLME_SET_TIM_CONFIRM *cfm, u16 re
              * If failure crosses this Limit, we have to take a call to FIX
              */
             if (retryCount > UNIFI_MAX_RETRY_LIMIT) {
-                CsrBool moreData = FALSE;
+                u8 moreData = FALSE;
                 retryCount = 0;
                 /* Because of continuos traffic in fh_cmd_q the tim set request is failing (exceeding retry limit)
                  * but if we didn't synchronize our timSet varible state with firmware then it can cause below issues
@@ -959,7 +959,7 @@ void process_peer_active_transition(unifi_priv_t * priv,
                                     u16 interfaceTag)
 {
     int r,i;
-    CsrBool spaceAvail[4] = {TRUE,TRUE,TRUE,TRUE};
+    u8 spaceAvail[4] = {TRUE,TRUE,TRUE,TRUE};
     tx_buffered_packets_t * buffered_pkt = NULL;
     unsigned long lock_flags;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
@@ -1514,8 +1514,8 @@ uf_ap_process_data_pdu(unifi_priv_t *priv, struct sk_buff *skb,
     struct sk_buff *newSkb = NULL;
     /* pointer to skb or private skb created using skb_copy() */
     struct sk_buff *skbPtr = skb;
-    CsrBool sendToNetdev = FALSE;
-    CsrBool qosDestination = FALSE;
+    u8 sendToNetdev = FALSE;
+    u8 qosDestination = FALSE;
     CSR_PRIORITY priority = CSR_CONTENTION;
     CsrWifiRouterCtrlStaInfo_t *dstStaInfo = NULL;
     netInterface_priv_t *interfacePriv;
@@ -1660,13 +1660,13 @@ CsrResult uf_process_ma_packet_req(unifi_priv_t *priv,
     const u8 *macHdrLocation =  bulkdata->d[0].os_data_ptr;
     CsrWifiPacketType pktType;
     int frameType = 0;
-    CsrBool queuePacketDozing = FALSE;
+    u8 queuePacketDozing = FALSE;
     u32 priority_q;
     u16 frmCtrl;
     struct list_head * list = NULL; /* List to which buffered PDUs are to be enqueued*/
-    CsrBool setBcTim=FALSE;
+    u8 setBcTim=FALSE;
     netInterface_priv_t *interfacePriv;
-    CsrBool requeueOnSamePos = FALSE;
+    u8 requeueOnSamePos = FALSE;
     u32 handle = 0xFFFFFFFF;
     unsigned long lock_flags;
 
@@ -2021,7 +2021,7 @@ u8 send_multicast_frames(unifi_priv_t *priv, u16 interfaceTag)
 {
     int r;
     tx_buffered_packets_t * buffered_pkt = NULL;
-    CsrBool moreData = FALSE;
+    u8 moreData = FALSE;
     u8 pduSent =0;
     unsigned long lock_flags;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
@@ -2203,7 +2203,7 @@ void uf_process_ma_vif_availibility_ind(unifi_priv_t *priv,u8 *sigdata,
 
 #define  GET_ACTIVE_INTERFACE_TAG(priv) 0
 
-static CsrBool uf_is_more_data_for_delivery_ac(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord)
+static u8 uf_is_more_data_for_delivery_ac(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord)
 {
     s8 i;
 
@@ -2221,7 +2221,7 @@ static CsrBool uf_is_more_data_for_delivery_ac(unifi_priv_t *priv, CsrWifiRouter
     return FALSE;
 }
 
-static CsrBool uf_is_more_data_for_usp_delivery(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord, unifi_TrafficQueue queue)
+static u8 uf_is_more_data_for_usp_delivery(unifi_priv_t *priv, CsrWifiRouterCtrlStaInfo_t *staRecord, unifi_TrafficQueue queue)
 {
     s8 i;
 
@@ -2268,9 +2268,9 @@ void uf_send_buffered_data_from_delivery_ac(unifi_priv_t *priv,
     u16 interfaceTag = GET_ACTIVE_INTERFACE_TAG(priv);
     tx_buffered_packets_t * buffered_pkt = NULL;
     unsigned long lock_flags;
-    CsrBool eosp=FALSE;
+    u8 eosp=FALSE;
     s8 r =0;
-    CsrBool moreData = FALSE;
+    u8 moreData = FALSE;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
 
     unifi_trace(priv, UDBG2, "++uf_send_buffered_data_from_delivery_ac, active=%x\n", staInfo->uapsdActive);
@@ -2368,8 +2368,8 @@ void uf_send_buffered_data_from_ac(unifi_priv_t *priv,
 {
     tx_buffered_packets_t * buffered_pkt = NULL;
     unsigned long lock_flags;
-    CsrBool eosp=FALSE;
-    CsrBool moreData = FALSE;
+    u8 eosp=FALSE;
+    u8 moreData = FALSE;
     s8 r =0;
 
     func_enter();
@@ -2412,7 +2412,7 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
     u32 startIndex=0,endIndex=0;
     CsrWifiRouterCtrlStaInfo_t * staInfo = NULL;
     u8 queue;
-    CsrBool moreData = FALSE;
+    u8 moreData = FALSE;
 
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
 
@@ -2549,7 +2549,7 @@ void uf_send_buffered_frames(unifi_priv_t *priv,unifi_TrafficQueue q)
 }
 
 
-CsrBool uf_is_more_data_for_non_delivery_ac(CsrWifiRouterCtrlStaInfo_t *staRecord)
+u8 uf_is_more_data_for_non_delivery_ac(CsrWifiRouterCtrlStaInfo_t *staRecord)
 {
     u8 i;
 
@@ -2916,7 +2916,7 @@ void uf_send_nulldata(unifi_priv_t * priv,u16 interfaceTag, const u8 *da,CSR_PRI
     return;
 }
 
-CsrBool uf_check_broadcast_bssid(unifi_priv_t *priv, const bulk_data_param_t *bulkdata)
+u8 uf_check_broadcast_bssid(unifi_priv_t *priv, const bulk_data_param_t *bulkdata)
 {
     u8 *bssid = NULL;
     static const CsrWifiMacAddress broadcast_address = {{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}};
@@ -2957,11 +2957,11 @@ CsrBool uf_check_broadcast_bssid(unifi_priv_t *priv, const bulk_data_param_t *bu
 }
 
 
-CsrBool uf_process_pm_bit_for_peer(unifi_priv_t * priv, CsrWifiRouterCtrlStaInfo_t * srcStaInfo,
+u8 uf_process_pm_bit_for_peer(unifi_priv_t * priv, CsrWifiRouterCtrlStaInfo_t * srcStaInfo,
                                 u8 pmBit,u16 interfaceTag)
 {
-    CsrBool moreData = FALSE;
-    CsrBool powerSaveChanged = FALSE;
+    u8 moreData = FALSE;
+    u8 powerSaveChanged = FALSE;
     unsigned long lock_flags;
 
     unifi_trace(priv, UDBG3, "entering uf_process_pm_bit_for_peer\n");
@@ -3060,7 +3060,7 @@ void uf_process_ps_poll(unifi_priv_t *priv,u8* sa,u8* da,u8 pmBit,u16 interfaceT
     CsrWifiMacAddress peerMacAddress;
     unsigned long lock_flags;
     s8 r =0;
-    CsrBool moreData = FALSE;
+    u8 moreData = FALSE;
     netInterface_priv_t *interfacePriv = priv->interfacePriv[interfaceTag];
 
     unifi_trace(priv, UDBG3, "entering uf_process_ps_poll\n");
@@ -3594,7 +3594,7 @@ void resume_unicast_buffered_frames(unifi_priv_t *priv, u16 interfaceTag)
    u8 i;
    int j;
    tx_buffered_packets_t * buffered_pkt = NULL;
-   CsrBool hipslotFree[4] = {TRUE,TRUE,TRUE,TRUE};
+   u8 hipslotFree[4] = {TRUE,TRUE,TRUE,TRUE};
    int r;
    unsigned long lock_flags;
 
index 2f8f0311d7237504b9f1edbe7a3dd9d947f3b6a0..6d6b46191a1ae67d624c5fa11cf92e68ec73313e 100644 (file)
@@ -323,10 +323,10 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
     /* Sme sends these parameters */
     CsrWifiMacAddress peerMacAddress;
     u32 assignedHandle;
-    CsrBool wmmOrQosEnabled;
+    u8 wmmOrQosEnabled;
     CsrWifiAcPowersaveMode powersaveMode[MAX_ACCESS_CATOGORY];
     u16 maxSpLength;
-    CsrBool uapsdActive;
+    u8 uapsdActive;
     u16 noOfSpFramesSent;
 
     /* Router/Driver database */
@@ -337,7 +337,7 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
     /* Inactivity feature parameters */
     struct netInterface_priv *interfacePriv;
     struct work_struct send_disconnected_ind_task;
-    CsrBool activity_flag;
+    u8 activity_flag;
     u16 listenIntervalInTus;
     CSR_CLIENT_TAG nullDataHostTag;
 
@@ -345,7 +345,7 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
     CsrTime lastActivity;
 
     /* during m/c transmission sp suspended */
-    CsrBool uspSuspend;
+    u8 uspSuspend;
     CSR_PRIORITY triggerFramePriority;
 #endif
     CsrWifiRouterCtrlPeerStatus currentPeerState;
@@ -354,9 +354,9 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
     u8 spStatus;
     u8 prevFrmType;
     u8 prevFrmAccessCatogory;
-    CsrBool protection;
+    u8 protection;
     u16 aid;
-    CsrBool txSuspend;
+    u8 txSuspend;
     u8 timSet;
     /* Dont change the value of below macro for SET & RESET */
 #define CSR_WIFI_TIM_RESET       0
@@ -364,7 +364,7 @@ typedef struct CsrWifiRouterCtrlStaInfo_t {
 #define CSR_WIFI_TIM_RESETTING   2
 #define CSR_WIFI_TIM_SETTING     3
 
-    CsrBool timRequestPendingFlag;
+    u8 timRequestPendingFlag;
     u8 updateTimReqQueued;
     u16 noOfPktQueued;
 }CsrWifiRouterCtrlStaInfo_t;
@@ -501,7 +501,7 @@ struct unifi_priv {
 #define CSR_WIFI_DRIVER_MAX_PKT_QUEUING_THRESHOLD_PER_PEER 64
 #define CSR_WIFI_DRIVER_MINIMUM_BROADCAST_PKT_THRESHOLD 3
 
-    CsrBool routerBufferEnable[MAX_ACCESS_CATOGORY];
+    u8 routerBufferEnable[MAX_ACCESS_CATOGORY];
     /* lock to protect stainfo members and priv members*/
     spinlock_t staRecord_lock;
 #endif
@@ -616,7 +616,7 @@ struct unifi_priv {
 
     int ptest_mode;     /* Set when in production test mode */
     int coredump_mode;  /* Set when SME has requested a coredump */
-    CsrBool wol_suspend; /* Set when suspending with UniFi powered */
+    u8 wol_suspend; /* Set when suspending with UniFi powered */
 
 #define UF_UNCONTROLLED_PORT_Q      0
 #define UF_CONTROLLED_PORT_Q        1
@@ -660,7 +660,7 @@ struct unifi_priv {
     u8 wapi_unicast_filter;
     u8 wapi_unicast_queued_pkt_filter;
 #ifdef CSR_WIFI_SECURITY_WAPI_QOSCTRL_MIC_WORKAROUND
-    CsrBool  isWapiConnection;
+    u8  isWapiConnection;
 #endif
 #endif
 
@@ -668,7 +668,7 @@ struct unifi_priv {
     CsrWifiRouterCtrlModeSetReq pending_mode_set;
 #endif
 
-    CsrBool cmanrTestMode;
+    u8 cmanrTestMode;
     CSR_RATE cmanrTestModeTransmitRate;
 
 };
@@ -680,7 +680,7 @@ typedef struct {
 
 
 typedef struct {
-    CsrBool active;
+    u8 active;
     bulk_data_param_t bulkdata;
     CSR_SIGNAL signal;
     u16 sn;
@@ -695,7 +695,7 @@ typedef struct {
     u16 timeout;
     u16 expected_sn;
     u16 start_sn;
-    CsrBool   trigger_ba_after_ssn;
+    u8   trigger_ba_after_ssn;
     struct netInterface_priv *interfacePriv;
     u16 tID;
     CsrWifiMacAddress macAddress;
@@ -724,7 +724,7 @@ typedef struct netInterface_priv
 #endif
     struct net_device_stats stats;
     u8 interfaceMode;
-    CsrBool protect;
+    u8 protect;
     CsrWifiMacAddress bssid;
     /*
     * Flag to reflect state of CONNECTED indication signal.
@@ -739,9 +739,9 @@ typedef struct netInterface_priv
     } connected;
 #ifdef CSR_SUPPORT_WEXT
     /* Tracks when we are waiting for a netdevice state change callback */
-    CsrBool wait_netdev_change;
+    u8 wait_netdev_change;
     /* True if we have successfully registered for netdev callbacks */
-    CsrBool netdev_callback_registered;
+    u8 netdev_callback_registered;
 #endif /* CSR_SUPPORT_WEXT */
     unsigned int netdev_registered;
 #define UNIFI_MAX_MULTICAST_ADDRESSES 10
@@ -764,7 +764,7 @@ typedef struct netInterface_priv
 
     /* Timer for detecting station inactivity */
     struct timer_list sta_activity_check_timer;
-    CsrBool sta_activity_check_enabled;
+    u8 sta_activity_check_enabled;
 
     /* Timestamp when the last inactivity check was done */
     CsrTime last_inactivity_check;
@@ -787,15 +787,15 @@ typedef struct netInterface_priv
 #endif
 
     /* This should be removed and m4_hostTag should be used for checking*/
-    CsrBool m4_sent;
+    u8 m4_sent;
     CSR_CLIENT_TAG m4_hostTag;
-    CsrBool dtimActive;
-    CsrBool intraBssEnabled;
+    u8 dtimActive;
+    u8 intraBssEnabled;
     u32 multicastPduHostTag; /* Used to set the tim after getting
        a confirm for it */
-    CsrBool bcTimSet;
-    CsrBool bcTimSetReqPendingFlag;
-    CsrBool bcTimSetReqQueued;
+    u8 bcTimSet;
+    u8 bcTimSetReqPendingFlag;
+    u8 bcTimSetReqQueued;
 } netInterface_priv_t;
 
 #ifndef ALLOW_Q_PAUSE
@@ -895,7 +895,7 @@ unifi_priv_t *uf_alloc_netdevice(CsrSdioFunction *sdio_dev, int bus_id);
 int uf_free_netdevice(unifi_priv_t *priv);
 
 /* Allocating function for other interfaces */
-CsrBool uf_alloc_netdevice_for_other_interfaces(unifi_priv_t *priv, u16 interfaceTag);
+u8 uf_alloc_netdevice_for_other_interfaces(unifi_priv_t *priv, u16 interfaceTag);
 
 /*
  * Firmware download related functions.
@@ -956,15 +956,15 @@ int uf_verify_m4(unifi_priv_t *priv, const unsigned char *packet,
         unsigned int length);
 
 #ifdef CSR_SUPPORT_SME
-CsrBool uf_check_broadcast_bssid(unifi_priv_t *priv, const bulk_data_param_t *bulkdata);
-CsrBool uf_process_pm_bit_for_peer(unifi_priv_t * priv, CsrWifiRouterCtrlStaInfo_t * srcStaInfo,u8 pmBit,u16 interfaceTag);
+u8 uf_check_broadcast_bssid(unifi_priv_t *priv, const bulk_data_param_t *bulkdata);
+u8 uf_process_pm_bit_for_peer(unifi_priv_t * priv, CsrWifiRouterCtrlStaInfo_t * srcStaInfo,u8 pmBit,u16 interfaceTag);
 void uf_process_ps_poll(unifi_priv_t *priv,u8* sa,u8* da,u8 pmBit,u16 interfaceTag);
 int uf_ap_process_data_pdu(unifi_priv_t *priv, struct sk_buff *skb,
                    struct ethhdr *ehdr, CsrWifiRouterCtrlStaInfo_t * srcStaInfo,
                    const CSR_SIGNAL *signal,
                    bulk_data_param_t *bulkdata,
                    u8 macHeaderLengthInBytes);
-CsrBool uf_is_more_data_for_non_delivery_ac(CsrWifiRouterCtrlStaInfo_t *staRecord);
+u8 uf_is_more_data_for_non_delivery_ac(CsrWifiRouterCtrlStaInfo_t *staRecord);
 void uf_process_wmm_deliver_ac_uapsd (  unifi_priv_t * priv,
                                         CsrWifiRouterCtrlStaInfo_t * srcStaInfo,
                                         u16 qosControl,
@@ -1031,7 +1031,7 @@ int prepare_and_add_macheader(unifi_priv_t *priv,
                               u16 interfaceTag,
                               const u8 *daddr,
                               const u8 *saddr,
-                              CsrBool protection);
+                              u8 protection);
 CSR_PRIORITY
 get_packet_priority(unifi_priv_t *priv, struct sk_buff *skb, const struct ethhdr *ehdr, netInterface_priv_t *interfacePriv);
 
@@ -1064,7 +1064,7 @@ void scroll_ba_window(unifi_priv_t *priv,
                       ba_session_rx_struct *ba_session,
                       u16 sn);
 
-CsrBool blockack_session_stop(unifi_priv_t *priv,
+u8 blockack_session_stop(unifi_priv_t *priv,
                               u16 interfaceTag,
                               CsrWifiRouterCtrlBlockAckRole role,
                               u16 tID,
index 85ea812ef9ba3e072ccdd11059ca205ea2111a77..85e0c9e563532b5b86f6764b107ea47263e74c31 100644 (file)
@@ -115,7 +115,7 @@ sme_log_event(ul_client_t *pcli,
         if (unpacked_signal.SignalPrimitiveHeader.SignalId == CSR_MA_PACKET_INDICATION_ID)
         {
             u16 frmCtrl;
-            CsrBool unicastPdu = TRUE;
+            u8 unicastPdu = TRUE;
             u8 *macHdrLocation;
             u8 *raddr = NULL, *taddr = NULL;
             CsrWifiMacAddress peerMacAddress;
@@ -727,7 +727,7 @@ int unifi_cfg_wmm_delts(unifi_priv_t *priv, unsigned char *arg)
 
 int unifi_cfg_strict_draft_n(unifi_priv_t *priv, unsigned char *arg)
 {
-    CsrBool strict_draft_n;
+    u8 strict_draft_n;
     u8 *strict_draft_n_params;
     int rc;
 
@@ -735,7 +735,7 @@ int unifi_cfg_strict_draft_n(unifi_priv_t *priv, unsigned char *arg)
     CsrWifiSmeDeviceConfig  deviceConfig;
 
     strict_draft_n_params = (u8*)(((unifi_cfg_command_t*)arg) + 1);
-    if (get_user(strict_draft_n, (CsrBool*)strict_draft_n_params)) {
+    if (get_user(strict_draft_n, (u8*)strict_draft_n_params)) {
         unifi_error(priv, "unifi_cfg_strict_draft_n: Failed to get the argument\n");
         return -EFAULT;
     }
@@ -763,7 +763,7 @@ int unifi_cfg_strict_draft_n(unifi_priv_t *priv, unsigned char *arg)
 
 int unifi_cfg_enable_okc(unifi_priv_t *priv, unsigned char *arg)
 {
-    CsrBool enable_okc;
+    u8 enable_okc;
     u8 *enable_okc_params;
     int rc;
 
@@ -771,7 +771,7 @@ int unifi_cfg_enable_okc(unifi_priv_t *priv, unsigned char *arg)
     CsrWifiSmeDeviceConfig deviceConfig;
 
     enable_okc_params = (u8*)(((unifi_cfg_command_t*)arg) + 1);
-    if (get_user(enable_okc, (CsrBool*)enable_okc_params)) {
+    if (get_user(enable_okc, (u8*)enable_okc_params)) {
         unifi_error(priv, "unifi_cfg_enable_okc: Failed to get the argument\n");
         return -EFAULT;
     }
@@ -914,7 +914,7 @@ int
  uf_configure_supported_rates(u8 * supportedRates, u8 phySupportedBitmap)
 {
     int i=0;
-    CsrBool b=FALSE, g = FALSE, n = FALSE;
+    u8 b=FALSE, g = FALSE, n = FALSE;
     b = phySupportedBitmap & CSR_WIFI_SME_AP_PHY_SUPPORT_B;
     n = phySupportedBitmap & CSR_WIFI_SME_AP_PHY_SUPPORT_N;
     g = phySupportedBitmap & CSR_WIFI_SME_AP_PHY_SUPPORT_G;
index bdff0f3e915a3b1322277e155a619628b4930ce6..b689cfe2b1000570d1aef6b0725f9135551a6139 100644 (file)
@@ -27,7 +27,7 @@ typedef int unifi_data_port_action;
 typedef struct unifi_port_cfg
 {
     /* TRUE if this port entry is allocated */
-    CsrBool in_use;
+    u8 in_use;
     CsrWifiRouterCtrlPortAction port_action;
     CsrWifiMacAddress mac_address;
 } unifi_port_cfg_t;
index 4ce0011d0ecd3c04dc50f4520d0c6aa665befc9d..6d7a99595083a5b79923562257536c39442e57a1 100644 (file)
@@ -60,7 +60,7 @@ void wext_send_disassoc_event(unifi_priv_t *priv);
 void wext_send_michaelmicfailure_event(unifi_priv_t *priv,
                                        u16 count, CsrWifiMacAddress address,
                                        CsrWifiSmeKeyType keyType, u16 interfaceTag);
-void wext_send_pmkid_candidate_event(unifi_priv_t *priv, CsrWifiMacAddress bssid, CsrBool preauth_allowed, u16 interfaceTag);
+void wext_send_pmkid_candidate_event(unifi_priv_t *priv, CsrWifiMacAddress bssid, u8 preauth_allowed, u16 interfaceTag);
 void wext_send_started_event(unifi_priv_t *priv);
 
 
index 74720fc3a195de1eb708a6e5268be4d3656da876..9acf9ee7a8da82e7855146f3df414baeec5fa42a 100644 (file)
@@ -314,15 +314,15 @@ typedef struct uf_cfg_ap_config
     u8    channel;
     u16   beaconInterval;
     u8    dtimPeriod;
-    CsrBool     wmmEnabled;
+    u8     wmmEnabled;
     u8    shortSlotTimeEnabled;
     u16   groupkeyTimeout;
-    CsrBool     strictGtkRekeyEnabled;
+    u8     strictGtkRekeyEnabled;
     u16   gmkTimeout;
     u16   responseTimeout;
     u8    retransLimit;
     u8    rxStbc;
-    CsrBool     rifsModeAllowed;
+    u8     rifsModeAllowed;
     u8    dualCtsProtection;
     u8    ctsProtectionType;
     u16   maxListenInterval;
index f250ea60da5638a503e18f46f191747227f3a9ac..d356887ac4c603d02cf229a0388f08f5e3b7e1cc 100644 (file)
@@ -238,7 +238,7 @@ wext_send_michaelmicfailure_event(unifi_priv_t *priv,
 } /* wext_send_michaelmicfailure_event() */
 
 void
-wext_send_pmkid_candidate_event(unifi_priv_t *priv, CsrWifiMacAddress bssid, CsrBool preauth_allowed, u16 interfaceTag)
+wext_send_pmkid_candidate_event(unifi_priv_t *priv, CsrWifiMacAddress bssid, u8 preauth_allowed, u16 interfaceTag)
 {
 #if WIRELESS_EXT > 17
     union iwreq_data wrqu;
This page took 0.097897 seconds and 5 git commands to generate.