Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: csr: remove __cplusplus nonsense from the .h files

In the kernel, we use C.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-611
-8
drivers/staging/csr/csr_framework_ext.h
··· 13 13 #include "csr_result.h" 14 14 #include "csr_framework_ext_types.h" 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 /* Result codes */ 21 17 #define CSR_FE_RESULT_NO_MORE_EVENTS ((CsrResult) 0x0001) 22 18 #define CSR_FE_RESULT_INVALID_POINTER ((CsrResult) 0x0002) ··· 31 35 #define CSR_EVENT_WAIT_INFINITE ((u16) 0xFFFF) 32 36 33 37 void CsrThreadSleep(u16 sleepTimeInMs); 34 - 35 - #ifdef __cplusplus 36 - } 37 - #endif 38 38 39 39 #endif
-9
drivers/staging/csr/csr_framework_ext_types.h
··· 17 17 #include <pthread.h> 18 18 #endif 19 19 20 - #ifdef __cplusplus 21 - extern "C" { 22 - #endif 23 - 24 - 25 20 #ifdef __KERNEL__ 26 21 27 22 struct CsrEvent { ··· 40 45 typedef pthread_mutex_t CsrMutexHandle; 41 46 42 47 #endif /* __KERNEL__ */ 43 - 44 - #ifdef __cplusplus 45 - } 46 - #endif 47 48 48 49 #endif
-8
drivers/staging/csr/csr_lib.h
··· 12 12 13 13 #include "csr_prim_defs.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 typedef struct 20 16 { 21 17 CsrPrim type; ··· 176 180 * 177 181 *----------------------------------------------------------------------------*/ 178 182 CsrEventCsrUint32CsrCharString *CsrEventCsrUint32CsrCharString_struct(u16 primtype, u16 msgtype, u32 value1, char *value2); 179 - 180 - #ifdef __cplusplus 181 - } 182 - #endif 183 183 184 184 #endif /* CSR_LIB_H__ */
-8
drivers/staging/csr/csr_log.h
··· 14 14 #include "csr_prim_defs.h" 15 15 #include "csr_msgconv.h" 16 16 17 - #ifdef __cplusplus 18 - extern "C" { 19 - #endif 20 - 21 17 /* 22 18 * Log filtering 23 19 */ ··· 219 223 const char *text, 220 224 u32 line, 221 225 const char *file); 222 - 223 - #ifdef __cplusplus 224 - } 225 - #endif 226 226 227 227 #endif
-8
drivers/staging/csr/csr_log_configure.h
··· 12 12 13 13 #include "csr_log.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 /*---------------------------------*/ 20 16 /* Log init/deinit */ 21 17 /*---------------------------------*/ ··· 122 126 void CsrLogLevelTextSet(const char *originName, 123 127 const char *subOriginName, 124 128 CsrLogLevelText warningLevelMask); 125 - 126 - #ifdef __cplusplus 127 - } 128 - #endif 129 129 130 130 #endif
-8
drivers/staging/csr/csr_log_text.h
··· 12 12 13 13 #include "csr_log_configure.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 typedef struct CsrLogSubOrigin 20 16 { 21 17 u16 subOriginNumber; /* Id of the given SubOrigin */ ··· 119 123 CSR_LOG_TEXT_CRITICAL((origin, suborigin, "Unhandled primitive 0x%04X:0x%04X at %s:%u", primClass, primType, __FILE__, __LINE__)) 120 124 #else 121 125 #define CSR_LOG_TEXT_UNHANDLED_PRIMITIVE(origin, suborigin, primClass, primType) 122 - #endif 123 - 124 - #ifdef __cplusplus 125 - } 126 126 #endif 127 127 128 128 #endif
-8
drivers/staging/csr/csr_macro.h
··· 12 12 13 13 #include <linux/types.h> 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 #define FALSE (0) 20 16 #define TRUE (1) 21 17 ··· 102 106 #define CSR_TOUPPER(character) (((character) >= 'a') && ((character) <= 'z') ? ((character) - 0x20) : (character)) 103 107 #define CSR_TOLOWER(character) (((character) >= 'A') && ((character) <= 'Z') ? ((character) + 0x20) : (character)) 104 108 #define CSR_ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) 105 - 106 - #ifdef __cplusplus 107 - } 108 - #endif 109 109 110 110 #endif
-8
drivers/staging/csr/csr_msg_transport.h
··· 10 10 11 11 *****************************************************************************/ 12 12 13 - #ifdef __cplusplus 14 - extern "C" { 15 - #endif 16 - 17 13 #ifndef CsrMsgTransport 18 14 #define CsrMsgTransport CsrSchedMessagePut 19 - #endif 20 - 21 - #ifdef __cplusplus 22 - } 23 15 #endif 24 16 25 17 #endif /* CSR_MSG_TRANSPORT */
-9
drivers/staging/csr/csr_msgconv.h
··· 15 15 #include "csr_prim_defs.h" 16 16 #include "csr_sched.h" 17 17 18 - #ifdef __cplusplus 19 - extern "C" { 20 - #endif 21 - 22 18 typedef size_t (CsrMsgSizeofFunc)(void *msg); 23 19 typedef u8 *(CsrMsgSerializeFunc)(u8 *buffer, size_t *length, void *msg); 24 20 typedef void (CsrMsgFreeFunc)(void *msg); ··· 74 78 void CsrUint32Des(u32 *value, u8 *buffer, size_t *offset); 75 79 void CsrMemCpyDes(void *value, u8 *buffer, size_t *offset, size_t length); 76 80 void CsrCharStringDes(char **value, u8 *buffer, size_t *offset); 77 - 78 - 79 - #ifdef __cplusplus 80 - } 81 - #endif 82 81 83 82 #endif
-7
drivers/staging/csr/csr_prim_defs.h
··· 9 9 on the license terms. 10 10 11 11 *****************************************************************************/ 12 - #ifdef __cplusplus 13 - extern "C" { 14 - #endif 15 12 16 13 /************************************************************************************ 17 14 * Segmentation of primitives in upstream and downstream segment ··· 51 54 #define NUMBER_OF_CSR_FW_MISC_EVENTS (CSR_SDIO_PROBE_PRIM - CSR_SYNERGY_EVENT_CLASS_MISC_BASE + 1) 52 55 53 56 #define CSR_ENV_PRIM ((u16) (0x00FF | CSR_SYNERGY_EVENT_CLASS_MISC_BASE)) 54 - 55 - #ifdef __cplusplus 56 - } 57 - #endif 58 57 59 58 #endif /* CSR_PRIM_DEFS_H__ */
-8
drivers/staging/csr/csr_result.h
··· 10 10 11 11 *****************************************************************************/ 12 12 13 - #ifdef __cplusplus 14 - extern "C" { 15 - #endif 16 - 17 13 typedef u16 CsrResult; 18 14 #define CSR_RESULT_SUCCESS ((CsrResult) 0x0000) 19 15 #define CSR_RESULT_FAILURE ((CsrResult) 0xFFFF) 20 - 21 - #ifdef __cplusplus 22 - } 23 - #endif 24 16 25 17 #endif
-8
drivers/staging/csr/csr_sched.h
··· 12 12 #include <linux/types.h> 13 13 #include "csr_time.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 /* An identifier issued by the scheduler. */ 20 16 typedef u32 CsrSchedIdentifier; 21 17 ··· 80 84 void CsrSchedMessagePut(CsrSchedQid q, 81 85 u16 mi, 82 86 void *mv); 83 - #endif 84 - 85 - #ifdef __cplusplus 86 - } 87 87 #endif 88 88 89 89 #endif
-8
drivers/staging/csr/csr_sdio.h
··· 12 12 13 13 #include "csr_result.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 /* Result Codes */ 20 16 #define CSR_SDIO_RESULT_INVALID_VALUE ((CsrResult) 1) /* Invalid argument value */ 21 17 #define CSR_SDIO_RESULT_NO_DEVICE ((CsrResult) 2) /* The specified device is no longer present */ ··· 719 723 *----------------------------------------------------------------------------*/ 720 724 void CsrSdioFunctionActive(CsrSdioFunction *function); 721 725 void CsrSdioFunctionIdle(CsrSdioFunction *function); 722 - 723 - #ifdef __cplusplus 724 - } 725 - #endif 726 726 727 727 #endif
-8
drivers/staging/csr/csr_time.h
··· 12 12 13 13 #include <linux/types.h> 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 /******************************************************************************* 20 16 21 17 NAME ··· 72 76 * 73 77 *----------------------------------------------------------------------------*/ 74 78 #define CsrTimeSub(t1, t2) ((s32) (t1) - (s32) (t2)) 75 - 76 - #ifdef __cplusplus 77 - } 78 - #endif 79 79 80 80 #endif
-8
drivers/staging/csr/csr_wifi_common.h
··· 14 14 #include <linux/types.h> 15 15 #include "csr_result.h" 16 16 17 - #ifdef __cplusplus 18 - extern "C" { 19 - #endif 20 - 21 17 /* MAC address */ 22 18 typedef struct 23 19 { ··· 96 100 #define CSR_WIFI_RESULT_P2P_NOA_CONFIG_CONFLICT ((CsrResult) 0x000C) 97 101 98 102 #define CSR_WIFI_VERSION "5.1.0.0" 99 - 100 - #ifdef __cplusplus 101 - } 102 - #endif 103 103 104 104 #endif 105 105
-8
drivers/staging/csr/csr_wifi_fsm.h
··· 11 11 #ifndef CSR_WIFI_FSM_H 12 12 #define CSR_WIFI_FSM_H 13 13 14 - #ifdef __cplusplus 15 - extern "C" { 16 - #endif 17 - 18 14 #include "csr_prim_defs.h" 19 15 #include "csr_log_text.h" 20 16 #include "csr_wifi_fsm_event.h" ··· 235 239 * void 236 240 */ 237 241 extern void CsrWifiFsmInstallWakeupCallback(CsrWifiFsmContext *context, CsrWifiFsmExternalWakupCallbackPtr callback); 238 - 239 - #ifdef __cplusplus 240 - } 241 - #endif 242 242 243 243 #endif /* CSR_WIFI_FSM_H */ 244 244
-8
drivers/staging/csr/csr_wifi_fsm_event.h
··· 11 11 #ifndef CSR_WIFI_FSM_EVENT_H 12 12 #define CSR_WIFI_FSM_EVENT_H 13 13 14 - #ifdef __cplusplus 15 - extern "C" { 16 - #endif 17 - 18 14 #include "csr_prim_defs.h" 19 15 #include "csr_sched.h" 20 16 ··· 37 41 */ 38 42 struct CsrWifiFsmEvent *next; 39 43 } CsrWifiFsmEvent; 40 - 41 - #ifdef __cplusplus 42 - } 43 - #endif 44 44 45 45 #endif /* CSR_WIFI_FSM_EVENT_H */ 46 46
-9
drivers/staging/csr/csr_wifi_fsm_types.h
··· 11 11 #ifndef CSR_WIFI_FSM_TYPES_H 12 12 #define CSR_WIFI_FSM_TYPES_H 13 13 14 - #ifdef __cplusplus 15 - extern "C" { 16 - #endif 17 - 18 14 #include <linux/types.h> 19 15 #include "csr_macro.h" 20 16 #include "csr_sched.h" ··· 426 430 u16 masterTransitionNumber; /* Increments on every transition */ 427 431 #endif 428 432 }; 429 - 430 - 431 - #ifdef __cplusplus 432 - } 433 - #endif 434 433 435 434 #endif /* CSR_WIFI_FSM_TYPES_H */
-9
drivers/staging/csr/csr_wifi_hip_card.h
··· 21 21 #ifndef __CARD_H__ 22 22 #define __CARD_H__ 23 23 24 - #ifdef __cplusplus 25 - extern "C" { 26 - #endif 27 - 28 24 #include "csr_wifi_hip_card_sdio.h" 29 25 #include "csr_wifi_hip_signals.h" 30 26 #include "csr_wifi_hip_unifi_udi.h" ··· 109 113 void unifi_debug_log_to_buf(const char *fmt, ...); 110 114 void unifi_debug_string_to_buf(const char *str); 111 115 void unifi_debug_hex_to_buf(const char *buff, u16 length); 112 - #endif 113 - 114 - 115 - #ifdef __cplusplus 116 - } 117 116 #endif 118 117 119 118 #endif /* __CARD_H__ */
-8
drivers/staging/csr/csr_wifi_hip_card_sdio.h
··· 20 20 #ifndef __CARD_SDIO_H__ 21 21 #define __CARD_SDIO_H__ 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #include "csr_wifi_hip_unifi.h" 28 24 #include "csr_wifi_hip_unifi_udi.h" 29 25 #include "csr_wifi_hip_unifihw.h" ··· 690 694 /* For diagnostic use */ 691 695 void dump(void *mem, u16 len); 692 696 void dump16(void *mem, u16 len); 693 - 694 - #ifdef __cplusplus 695 - } 696 - #endif 697 697 698 698 #endif /* __CARD_SDIO_H__ */
-64
drivers/staging/csr/csr_wifi_hip_chiphelper.h
··· 14 14 15 15 #include <linux/types.h> 16 16 17 - #ifdef __cplusplus 18 - extern "C" { 19 - #endif 20 - 21 17 /* The age of the BlueCore chip. This is probably not useful, if 22 18 you know the age then you can probably work out the version directly. */ 23 19 enum chip_helper_bluecore_age ··· 403 407 enum chip_helper_window_type type, 404 408 u32 offset, 405 409 u16 *page, u16 *addr, u32 *len); 406 - 407 - #ifdef __cplusplus 408 - /* Close the extern "C" */ 409 - } 410 - 411 - /* 412 - * This is the C++ API. 413 - */ 414 - 415 - class ChipHelper 416 - { 417 - public: 418 - /* If this constructor is used then a GetVersionXXX function 419 - should be called next. */ 420 - ChipHelper(); 421 - 422 - /* copy constructor */ 423 - ChipHelper(ChipDescript * desc); 424 - 425 - /* The default constructor assume a BC7 / UF105x series chip 426 - and that the number given is the value of UNIFI_GBL_CHIP_VERSION 427 - (0xFE81) */ 428 - ChipHelper(u16 version); 429 - 430 - /* This returns the C interface magic token from a C++ instance. */ 431 - ChipDescript* GetDescript() const 432 - { 433 - return m_desc; 434 - } 435 - 436 - 437 - /* Clear out theis class (set it to the null token). */ 438 - void ClearVersion(); 439 - 440 - /* Load this class with data for a specific chip. */ 441 - void GetVersionAny(u16 from_FF9A, u16 from_FE81); 442 - void GetVersionUniFi(u16 version); 443 - void GetVersionBlueCore(chip_helper_bluecore_age age, u16 version); 444 - void GetVersionSdio(u8 sdio_version); 445 - 446 - /* Helpers to build the definitions of the member functions. */ 447 - #define CHIP_HELPER_DEF0_CPP_DEC(ret_type, name, info) \ 448 - ret_type name() const; 449 - #define CHIP_HELPER_DEF1_CPP_DEC(ret_type, name, type1, name1) \ 450 - ret_type name(type1 name1) const; 451 - 452 - CHIP_HELPER_LIST(CPP_DEC) 453 - 454 - 455 - /* The DecodeWindow function, see the description of the C version. */ 456 - s32 DecodeWindow(chip_helper_window_index window, 457 - chip_helper_window_type type, 458 - u32 offset, 459 - u16 &page, u16 &addr, u32 &len) const; 460 - 461 - private: 462 - ChipDescript *m_desc; 463 - }; 464 - 465 - #endif /* __cplusplus */ 466 410 467 411 #endif
-8
drivers/staging/csr/csr_wifi_hip_chiphelper_private.h
··· 14 14 15 15 #include "csr_wifi_hip_chiphelper.h" 16 16 17 - #ifdef __cplusplus 18 - extern "C" { 19 - #endif /* __cplusplus */ 20 - 21 17 /* This GP stuff should be somewhere else? */ 22 18 23 19 /* Memory spaces encoded in top byte of Generic Pointer type */ ··· 196 200 /* Information on the different windows */ 197 201 const struct window_info_t *windows[CHIP_HELPER_WINDOW_COUNT]; 198 202 }; 199 - 200 - #ifdef __cplusplus 201 - } 202 - #endif /* __cplusplus */ 203 203 204 204 #endif /* CSR_WIFI_HIP_CHIPHELPER_PRIVATE_H__ */
-8
drivers/staging/csr/csr_wifi_hip_conversions.h
··· 23 23 #ifndef __CSR_WIFI_HIP_CONVERSIONS_H__ 24 24 #define __CSR_WIFI_HIP_CONVERSIONS_H__ 25 25 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 26 #define SIZEOF_UINT16 2 31 27 #define SIZEOF_UINT32 4 32 28 #define SIZEOF_UINT64 8 ··· 68 72 s32 get_packed_struct_size(const u8 *buf); 69 73 CsrResult read_unpack_signal(const u8 *ptr, CSR_SIGNAL *sig); 70 74 CsrResult write_pack(const CSR_SIGNAL *sig, u8 *ptr, u16 *sig_len); 71 - 72 - #ifdef __cplusplus 73 - } 74 - #endif 75 75 76 76 #endif /* __CSR_WIFI_HIP_CONVERSIONS_H__ */ 77 77
-9
drivers/staging/csr/csr_wifi_hip_signals.h
··· 101 101 /* FUNCTION DECLARATIONS */ 102 102 /******************************************************************************/ 103 103 104 - #ifdef __cplusplus 105 - extern "C" { 106 - #endif /* __cplusplus */ 107 - 108 104 /****************************************************************************** 109 105 * SigGetNumDataRefs - Retrieve pointers to data-refs from a signal. 110 106 * ··· 124 128 * The size (in bytes) of the given signal. 125 129 */ 126 130 s32 SigGetSize(const CSR_SIGNAL *aSignal); 127 - 128 - #ifdef __cplusplus 129 - } 130 - #endif /* __cplusplus */ 131 - 132 131 133 132 #endif /* __CSR_WIFI_HIP_SIGNALS_H__ */
-8
drivers/staging/csr/csr_wifi_hip_sigs.h
··· 16 16 #ifndef CSR_WIFI_HIP_SIGS_H 17 17 #define CSR_WIFI_HIP_SIGS_H 18 18 19 - #ifdef __cplusplus 20 - extern "C" { 21 - #endif 22 - 23 19 typedef s16 csr_place_holding_type; 24 20 25 21 typedef u16 CSR_ASSOCIATION_ID; ··· 1413 1417 #define SIG_FILTER_SIZE 6 1414 1418 1415 1419 u32 SigGetFilterPos(u16 aSigID); 1416 - 1417 - #ifdef __cplusplus 1418 - } 1419 - #endif 1420 1420 1421 1421 #endif
-9
drivers/staging/csr/csr_wifi_hip_ta_sampling.h
··· 21 21 #ifndef __TA_SAMPLING_H__ 22 22 #define __TA_SAMPLING_H__ 23 23 24 - #ifdef __cplusplus 25 - extern "C" { 26 - #endif 27 - 28 24 #include "csr_wifi_hip_unifi.h" 29 25 30 26 typedef struct ta_l4stats ··· 62 66 63 67 64 68 void unifi_ta_sampling_init(card_t *card); 65 - 66 - 67 - #ifdef __cplusplus 68 - } 69 - #endif 70 69 71 70 #endif /* __TA_SAMPLING_H__ */
-8
drivers/staging/csr/csr_wifi_hip_unifi.h
··· 20 20 #ifndef __CSR_WIFI_HIP_UNIFI_H__ 21 21 #define __CSR_WIFI_HIP_UNIFI_H__ 1 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #ifndef CSR_WIFI_HIP_TA_DISABLE 28 24 #include "csr_wifi_router_ctrl_prim.h" 29 25 #include "csr_wifi_router_prim.h" ··· 867 871 CsrResult unifi_coredump_request_at_next_reset(card_t *card, s8 enable); 868 872 CsrResult unifi_coredump_init(card_t *card, u16 num_dump_buffers); 869 873 void unifi_coredump_free(card_t *card); 870 - 871 - #ifdef __cplusplus 872 - } 873 - #endif 874 874 875 875 #endif /* __CSR_WIFI_HIP_UNIFI_H__ */
-9
drivers/staging/csr/csr_wifi_hip_unifi_udi.h
··· 20 20 #ifndef __CSR_WIFI_HIP_UNIFI_UDI_H__ 21 21 #define __CSR_WIFI_HIP_UNIFI_UDI_H__ 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #include "csr_wifi_hip_unifi.h" 28 24 #include "csr_wifi_hip_signals.h" 29 25 ··· 63 67 remain -= written; \ 64 68 } \ 65 69 } while (0) 66 - 67 - 68 - #ifdef __cplusplus 69 - } 70 - #endif 71 70 72 71 #endif /* __CSR_WIFI_HIP_UNIFI_UDI_H__ */
-8
drivers/staging/csr/csr_wifi_hip_unifihw.h
··· 20 20 #ifndef __UNIFIHW_H__ 21 21 #define __UNIFIHW_H__ 1 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 /* Symbol Look Up Table fingerprint. IDs are in sigs.h */ 28 24 #define SLUT_FINGERPRINT 0xD397 29 25 ··· 55 59 #define UNIFI_MAKE_GP(R, O) (((UNIFI_ ## R) << 24) | (O)) 56 60 #define UNIFI_GP_OFFSET(GP) ((GP) & 0xFFFFFF) 57 61 #define UNIFI_GP_SPACE(GP) (((GP) >> 24) & 0xFF) 58 - 59 - #ifdef __cplusplus 60 - } 61 - #endif 62 62 63 63 #endif /* __UNIFIHW_H__ */
-8
drivers/staging/csr/csr_wifi_hip_unifiversion.h
··· 21 21 #ifndef __UNIFIVERSION_H__ 22 22 #define __UNIFIVERSION_H__ 23 23 24 - #ifdef __cplusplus 25 - extern "C" { 26 - #endif 27 - 28 24 /* 29 25 * The minimum version of Host Interface Protocol required by the driver. 30 26 */ 31 27 #define UNIFI_HIP_MAJOR_VERSION 9 32 28 #define UNIFI_HIP_MINOR_VERSION 1 33 - 34 - #ifdef __cplusplus 35 - } 36 - #endif 37 29 38 30 #endif /* __UNIFIVERSION_H__ */
-8
drivers/staging/csr/csr_wifi_hip_xbv.h
··· 21 21 #ifndef __XBV_H__ 22 22 #define __XBV_H__ 23 23 24 - #ifdef __cplusplus 25 - extern "C" { 26 - #endif 27 - 28 24 #ifndef CSR_WIFI_XBV_TEST 29 25 /* Driver includes */ 30 26 #include "csr_wifi_hip_unifi.h" ··· 115 119 symbol_t *slut, u32 slut_len); 116 120 void* xbv_to_patch(card_t *card, fwreadfn_t readfn, const void *fw_buf, const xbv1_t *fwinfo, 117 121 u32 *size); 118 - 119 - #ifdef __cplusplus 120 - } 121 - #endif 122 122 123 123 #endif /* __XBV_H__ */
-9
drivers/staging/csr/csr_wifi_hostio_prim.h
··· 12 12 #ifndef CSR_WIFI_HOSTIO_H 13 13 #define CSR_WIFI_HOSTIO_H 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 - 20 15 #define CSR_WIFI_HOSTIO_PRIM 0x0453 21 - 22 - #ifdef __cplusplus 23 - } 24 - #endif 25 16 26 17 #endif /* CSR_WIFI_HOSTIO_H */ 27 18
-9
drivers/staging/csr/csr_wifi_lib.h
··· 12 12 13 13 #include "csr_wifi_fsm_event.h" 14 14 15 - 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 15 /*----------------------------------------------------------------------------* 21 16 * CsrWifiFsmEventInit 22 17 * ··· 99 104 * 100 105 *----------------------------------------------------------------------------*/ 101 106 CsrWifiEventCsrUint16CsrUint8* CsrWifiEventCsrUint16CsrUint8_struct(u16 primtype, u16 msgtype, CsrSchedQid dst, CsrSchedQid src, u16 value16, u8 value8); 102 - 103 - #ifdef __cplusplus 104 - } 105 - #endif 106 107 107 108 #endif /* CSR_WIFI_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_msgconv.h
··· 14 14 #include "csr_prim_defs.h" 15 15 #include "csr_sched.h" 16 16 17 - #ifdef __cplusplus 18 - extern "C" { 19 - #endif 20 - 21 - 22 17 void CsrUint16SerBigEndian(u8 *ptr, size_t *len, u16 v); 23 18 void CsrUint24SerBigEndian(u8 *ptr, size_t *len, u32 v); 24 19 void CsrUint32SerBigEndian(u8 *ptr, size_t *len, u32 v); ··· 45 50 size_t CsrWifiEventCsrUint16CsrUint8Sizeof(void *msg); 46 51 u8* CsrWifiEventCsrUint16CsrUint8Ser(u8 *ptr, size_t *len, void *msg); 47 52 void* CsrWifiEventCsrUint16CsrUint8Des(u8 *buffer, size_t length); 48 - 49 - #ifdef __cplusplus 50 - } 51 - #endif 52 53 53 54 #endif /* CSR_WIFI_MSGCONV_H__ */
-8
drivers/staging/csr/csr_wifi_nme_ap_converter_init.h
··· 13 13 #ifndef CSR_WIFI_NME_AP_CONVERTER_INIT_H__ 14 14 #define CSR_WIFI_NME_AP_CONVERTER_INIT_H__ 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 #ifndef CSR_WIFI_NME_ENABLE 21 17 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_converter_init.h 22 18 #endif ··· 37 41 #define CsrWifiNmeApConverterInit() 38 42 39 43 #endif /* EXCLUDE_CSR_WIFI_NME_AP_MODULE */ 40 - 41 - #ifdef __cplusplus 42 - } 43 - #endif 44 44 45 45 #endif /* CSR_WIFI_NME_AP_CONVERTER_INIT_H__ */
-10
drivers/staging/csr/csr_wifi_nme_ap_lib.h
··· 22 22 #include "csr_wifi_nme_ap_prim.h" 23 23 #include "csr_wifi_nme_task.h" 24 24 25 - 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 25 #ifndef CSR_WIFI_NME_ENABLE 31 26 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_lib.h 32 27 #endif ··· 509 514 510 515 #define CsrWifiNmeApWpsRegisterCfmSend(dst__, interfaceTag__, status__) \ 511 516 CsrWifiNmeApWpsRegisterCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__) 512 - 513 - 514 - #ifdef __cplusplus 515 - } 516 - #endif 517 517 518 518 #endif /* CSR_WIFI_NME_AP_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_nme_ap_prim.h
··· 22 22 #include "csr_wifi_sme_ap_prim.h" 23 23 #include "csr_wifi_nme_prim.h" 24 24 25 - #ifdef __cplusplus 26 - extern "C" { 27 - #endif 28 - 29 25 #ifndef CSR_WIFI_NME_ENABLE 30 26 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_prim.h 31 27 #endif ··· 489 493 CsrWifiMacAddress peerMacAddress; 490 494 CsrWifiMacAddress peerDeviceAddress; 491 495 } CsrWifiNmeApStationInd; 492 - 493 - 494 - #ifdef __cplusplus 495 - } 496 - #endif 497 496 498 497 #endif /* CSR_WIFI_NME_AP_PRIM_H__ */ 499 498
-10
drivers/staging/csr/csr_wifi_nme_ap_sef.h
··· 11 11 12 12 #include "csr_wifi_nme_prim.h" 13 13 14 - 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 14 void CsrWifiNmeApUpstreamStateHandlers(void* drvpriv, CsrWifiFsmEvent* msg); 20 15 21 16 22 17 extern void CsrWifiNmeApConfigSetCfmHandler(void* drvpriv, CsrWifiFsmEvent* msg); 23 18 extern void CsrWifiNmeApStartCfmHandler(void* drvpriv, CsrWifiFsmEvent* msg); 24 19 extern void CsrWifiNmeApStopCfmHandler(void* drvpriv, CsrWifiFsmEvent* msg); 25 - 26 - 27 - #ifdef __cplusplus 28 - } 29 - #endif 30 20 31 21 #endif /* CSR_WIFI_ROUTER_SEF_CSR_WIFI_NME_H__ */
-9
drivers/staging/csr/csr_wifi_nme_ap_serialize.h
··· 17 17 18 18 #include "csr_wifi_nme_ap_prim.h" 19 19 20 - #ifdef __cplusplus 21 - extern "C" { 22 - #endif 23 - 24 20 #ifndef CSR_WIFI_NME_ENABLE 25 21 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_ap_serialize.h 26 22 #endif ··· 91 95 extern size_t CsrWifiNmeApStationIndSizeof(void *msg); 92 96 #define CsrWifiNmeApStationIndSerFree CsrWifiNmeApPfree 93 97 94 - 95 - #ifdef __cplusplus 96 - } 97 - #endif 98 98 #endif /* CSR_WIFI_NME_AP_SERIALIZE_H__ */ 99 -
-8
drivers/staging/csr/csr_wifi_nme_converter_init.h
··· 13 13 #ifndef CSR_WIFI_NME_CONVERTER_INIT_H__ 14 14 #define CSR_WIFI_NME_CONVERTER_INIT_H__ 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 #ifndef CSR_WIFI_NME_ENABLE 21 17 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_converter_init.h 22 18 #endif ··· 34 38 #define CsrWifiNmeConverterInit() 35 39 36 40 #endif /* EXCLUDE_CSR_WIFI_NME_MODULE */ 37 - 38 - #ifdef __cplusplus 39 - } 40 - #endif 41 41 42 42 #endif /* CSR_WIFI_NME_CONVERTER_INIT_H__ */
-9
drivers/staging/csr/csr_wifi_nme_lib.h
··· 23 23 #include "csr_wifi_nme_task.h" 24 24 25 25 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 26 #ifndef CSR_WIFI_NME_ENABLE 31 27 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_lib.h 32 28 #endif ··· 1041 1045 1042 1046 #define CsrWifiNmeWpsReqSend(src__, interfaceTag__, pin__, ssid__, bssid__) \ 1043 1047 CsrWifiNmeWpsReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__, pin__, ssid__, bssid__) 1044 - 1045 - 1046 - #ifdef __cplusplus 1047 - } 1048 - #endif 1049 1048 1050 1049 #endif /* CSR_WIFI_NME_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_nme_prim.h
··· 21 21 #include "csr_wifi_fsm_event.h" 22 22 #include "csr_wifi_sme_prim.h" 23 23 24 - #ifdef __cplusplus 25 - extern "C" { 26 - #endif 27 - 28 24 #ifndef CSR_WIFI_NME_ENABLE 29 25 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_prim.h 30 26 #endif ··· 1652 1656 CsrWifiFsmEvent common; 1653 1657 CsrResult status; 1654 1658 } CsrWifiNmeEventMaskSetCfm; 1655 - 1656 - 1657 - #ifdef __cplusplus 1658 - } 1659 - #endif 1660 1659 1661 1660 #endif /* CSR_WIFI_NME_PRIM_H__ */ 1662 1661
-8
drivers/staging/csr/csr_wifi_nme_serialize.h
··· 16 16 #include "csr_wifi_msgconv.h" 17 17 #include "csr_wifi_nme_prim.h" 18 18 19 - #ifdef __cplusplus 20 - extern "C" { 21 - #endif 22 - 23 19 #ifndef CSR_WIFI_NME_ENABLE 24 20 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_serialize.h 25 21 #endif ··· 162 166 #define CsrWifiNmeEventMaskSetCfmSizeof CsrWifiEventCsrUint16Sizeof 163 167 #define CsrWifiNmeEventMaskSetCfmSerFree CsrWifiNmePfree 164 168 165 - 166 - #ifdef __cplusplus 167 - } 168 - #endif 169 169 #endif /* CSR_WIFI_NME_SERIALIZE_H__ */ 170 170
-8
drivers/staging/csr/csr_wifi_nme_task.h
··· 16 16 #include <linux/types.h> 17 17 #include "csr_sched.h" 18 18 19 - #ifdef __cplusplus 20 - extern "C" { 21 - #endif 22 - 23 19 #ifndef CSR_WIFI_NME_ENABLE 24 20 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_task.h 25 21 #endif ··· 25 29 void CsrWifiNmeInit(void **gash); 26 30 void CsrWifiNmeDeinit(void **gash); 27 31 void CsrWifiNmeHandler(void **gash); 28 - 29 - #ifdef __cplusplus 30 - } 31 - #endif 32 32 33 33 #endif /* CSR_WIFI_NME_TASK_H__ */ 34 34
-8
drivers/staging/csr/csr_wifi_private_common.h
··· 11 11 #ifndef CSR_WIFI_PRIVATE_COMMON_H__ 12 12 #define CSR_WIFI_PRIVATE_COMMON_H__ 13 13 14 - #ifdef __cplusplus 15 - extern "C" { 16 - #endif 17 - 18 14 /** 19 15 * @brief maximum number of STAs allowed to be connected 20 16 * ··· 76 80 #define CSR_WIFI_MODE_AMP ((CsrWifiInterfaceMode) 0x05) 77 81 #define CSR_WIFI_MODE_WPS_ENROLLEE ((CsrWifiInterfaceMode) 0x06) 78 82 #define CSR_WIFI_MODE_IBSS ((CsrWifiInterfaceMode) 0x07) 79 - 80 - #ifdef __cplusplus 81 - } 82 - #endif 83 83 84 84 #endif 85 85
-8
drivers/staging/csr/csr_wifi_result.h
··· 13 13 14 14 #include "csr_result.h" 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 /* THIS FILE SHOULD CONTAIN ONLY RESULT CODES */ 21 17 22 18 /* Result Codes */ ··· 22 26 #define CSR_WIFI_HIP_RESULT_NO_MEMORY ((CsrResult) 4) /* Fatal error, no memory */ 23 27 #define CSR_WIFI_HIP_RESULT_RANGE ((CsrResult) 5) /* Request exceeds the range of a file or a buffer */ 24 28 #define CSR_WIFI_HIP_RESULT_NOT_FOUND ((CsrResult) 6) /* A file (typically a f/w patch) is not found */ 25 - 26 - #ifdef __cplusplus 27 - } 28 - #endif 29 29 30 30 #endif /* CSR_WIFI_RESULT_H__ */ 31 31
-8
drivers/staging/csr/csr_wifi_router_converter_init.h
··· 13 13 #ifndef CSR_WIFI_ROUTER_CONVERTER_INIT_H__ 14 14 #define CSR_WIFI_ROUTER_CONVERTER_INIT_H__ 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 #ifndef EXCLUDE_CSR_WIFI_ROUTER_MODULE 21 17 22 18 #include "csr_msgconv.h" ··· 30 34 #define CsrWifiRouterConverterInit() 31 35 32 36 #endif /* EXCLUDE_CSR_WIFI_ROUTER_MODULE */ 33 - 34 - #ifdef __cplusplus 35 - } 36 - #endif 37 37 38 38 #endif /* CSR_WIFI_ROUTER_CONVERTER_INIT_H__ */
-8
drivers/staging/csr/csr_wifi_router_ctrl_converter_init.h
··· 13 13 #ifndef CSR_WIFI_ROUTER_CTRL_CONVERTER_INIT_H__ 14 14 #define CSR_WIFI_ROUTER_CTRL_CONVERTER_INIT_H__ 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 #ifndef EXCLUDE_CSR_WIFI_ROUTER_CTRL_MODULE 21 17 22 18 #include "csr_msgconv.h" ··· 30 34 #define CsrWifiRouterCtrlConverterInit() 31 35 32 36 #endif /* EXCLUDE_CSR_WIFI_ROUTER_CTRL_MODULE */ 33 - 34 - #ifdef __cplusplus 35 - } 36 - #endif 37 37 38 38 #endif /* CSR_WIFI_ROUTER_CTRL_CONVERTER_INIT_H__ */
-10
drivers/staging/csr/csr_wifi_router_ctrl_lib.h
··· 22 22 #include "csr_wifi_router_ctrl_prim.h" 23 23 #include "csr_wifi_router_task.h" 24 24 25 - 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 25 /*----------------------------------------------------------------------------* 31 26 * CsrWifiRouterCtrlFreeUpstreamMessageContents 32 27 * ··· 2078 2083 2079 2084 #define CsrWifiRouterCtrlWifiOnCfmSend(dst__, clientData__, status__) \ 2080 2085 CsrWifiRouterCtrlWifiOnCfmSendTo(dst__, CSR_WIFI_ROUTER_IFACEQUEUE, clientData__, status__) 2081 - 2082 - 2083 - #ifdef __cplusplus 2084 - } 2085 - #endif 2086 2086 2087 2087 #endif /* CSR_WIFI_ROUTER_CTRL_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_router_ctrl_prim.h
··· 20 20 #include "csr_result.h" 21 21 #include "csr_wifi_fsm_event.h" 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #define CSR_WIFI_ROUTER_CTRL_PRIM (0x0401) 28 24 29 25 typedef CsrPrim CsrWifiRouterCtrlPrim; ··· 2108 2112 u16 dataLength; 2109 2113 u8 *data; 2110 2114 } CsrWifiRouterCtrlWapiUnicastTxEncryptInd; 2111 - 2112 - 2113 - #ifdef __cplusplus 2114 - } 2115 - #endif 2116 2115 2117 2116 #endif /* CSR_WIFI_ROUTER_CTRL_PRIM_H__ */ 2118 2117
-7
drivers/staging/csr/csr_wifi_router_ctrl_sef.h
··· 12 12 13 13 #include "csr_wifi_router_ctrl_prim.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 typedef void (*CsrWifiRouterCtrlStateHandlerType)(void* drvpriv, CsrWifiFsmEvent* msg); 20 16 21 17 extern const CsrWifiRouterCtrlStateHandlerType CsrWifiRouterCtrlDownstreamStateHandlers[CSR_WIFI_ROUTER_CTRL_PRIM_DOWNSTREAM_COUNT]; ··· 47 51 extern void CsrWifiRouterCtrlWapiUnicastTxPktReqHandler(void* drvpriv, CsrWifiFsmEvent* msg); 48 52 extern void CsrWifiRouterCtrlWapiUnicastFilterReqHandler(void* drvpriv, CsrWifiFsmEvent* msg); 49 53 extern void CsrWifiRouterCtrlWapiFilterReqHandler(void* drvpriv, CsrWifiFsmEvent* msg); 50 - #ifdef __cplusplus 51 - } 52 - #endif 53 54 54 55 #endif /* CSR_WIFI_ROUTER_SEF_CSR_WIFI_ROUTER_CTRL_H__ */
-8
drivers/staging/csr/csr_wifi_router_ctrl_serialize.h
··· 17 17 18 18 #include "csr_wifi_router_ctrl_prim.h" 19 19 20 - #ifdef __cplusplus 21 - extern "C" { 22 - #endif 23 - 24 20 extern void CsrWifiRouterCtrlPfree(void *ptr); 25 21 26 22 extern u8* CsrWifiRouterCtrlConfigurePowerModeReqSer(u8 *ptr, size_t *len, void *msg); ··· 329 333 extern size_t CsrWifiRouterCtrlWapiUnicastTxEncryptIndSizeof(void *msg); 330 334 extern void CsrWifiRouterCtrlWapiUnicastTxEncryptIndSerFree(void *msg); 331 335 332 - 333 - #ifdef __cplusplus 334 - } 335 - #endif 336 336 #endif /* CSR_WIFI_ROUTER_CTRL_SERIALIZE_H__ */ 337 337
-10
drivers/staging/csr/csr_wifi_router_lib.h
··· 22 22 #include "csr_wifi_router_prim.h" 23 23 #include "csr_wifi_router_task.h" 24 24 25 - 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 25 /*----------------------------------------------------------------------------* 31 26 * CsrWifiRouterFreeUpstreamMessageContents 32 27 * ··· 413 418 414 419 #define CsrWifiRouterMaPacketUnsubscribeCfmSend(dst__, interfaceTag__, status__) \ 415 420 CsrWifiRouterMaPacketUnsubscribeCfmSendTo(dst__, CSR_WIFI_ROUTER_IFACEQUEUE, interfaceTag__, status__) 416 - 417 - 418 - #ifdef __cplusplus 419 - } 420 - #endif 421 421 422 422 #endif /* CSR_WIFI_ROUTER_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_router_prim.h
··· 20 20 #include "csr_result.h" 21 21 #include "csr_wifi_fsm_event.h" 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #define CSR_WIFI_ROUTER_PRIM (0x0400) 28 24 29 25 typedef CsrPrim CsrWifiRouterPrim; ··· 416 420 s16 snr; 417 421 u16 rate; 418 422 } CsrWifiRouterMaPacketInd; 419 - 420 - 421 - #ifdef __cplusplus 422 - } 423 - #endif 424 423 425 424 #endif /* CSR_WIFI_ROUTER_PRIM_H__ */ 426 425
-8
drivers/staging/csr/csr_wifi_router_sef.h
··· 12 12 13 13 #include "csr_wifi_router_prim.h" 14 14 15 - #ifdef __cplusplus 16 - extern "C" { 17 - #endif 18 - 19 15 typedef void (*CsrWifiRouterStateHandlerType)(void* drvpriv, CsrWifiFsmEvent* msg); 20 16 21 17 extern const CsrWifiRouterStateHandlerType CsrWifiRouterDownstreamStateHandlers[CSR_WIFI_ROUTER_PRIM_DOWNSTREAM_COUNT]; ··· 21 25 extern void CsrWifiRouterMaPacketReqHandler(void* drvpriv, CsrWifiFsmEvent* msg); 22 26 extern void CsrWifiRouterMaPacketResHandler(void* drvpriv, CsrWifiFsmEvent* msg); 23 27 extern void CsrWifiRouterMaPacketCancelReqHandler(void* drvpriv, CsrWifiFsmEvent* msg); 24 - 25 - #ifdef __cplusplus 26 - } 27 - #endif 28 28 29 29 #endif /* CSR_WIFI_ROUTER_SEF_CSR_WIFI_ROUTER_H__ */
-8
drivers/staging/csr/csr_wifi_router_serialize.h
··· 16 16 #include "csr_wifi_msgconv.h" 17 17 #include "csr_wifi_router_prim.h" 18 18 19 - #ifdef __cplusplus 20 - extern "C" { 21 - #endif 22 - 23 19 extern void CsrWifiRouterPfree(void *ptr); 24 20 25 21 extern u8* CsrWifiRouterMaPacketSubscribeReqSer(u8 *ptr, size_t *len, void *msg); ··· 63 67 extern size_t CsrWifiRouterMaPacketIndSizeof(void *msg); 64 68 extern void CsrWifiRouterMaPacketIndSerFree(void *msg); 65 69 66 - 67 - #ifdef __cplusplus 68 - } 69 - #endif 70 70 #endif /* CSR_WIFI_ROUTER_SERIALIZE_H__ */ 71 71
-8
drivers/staging/csr/csr_wifi_router_task.h
··· 15 15 16 16 #include "csr_sched.h" 17 17 18 - #ifdef __cplusplus 19 - extern "C" { 20 - #endif 21 - 22 18 #define CSR_WIFI_ROUTER_LOG_ID 0x1201FFFF 23 19 extern CsrSchedQid CSR_WIFI_ROUTER_IFACEQUEUE; 24 20 void CsrWifiRouterInit(void **gash); 25 21 void CsrWifiRouterDeinit(void **gash); 26 22 void CsrWifiRouterHandler(void **gash); 27 - 28 - #ifdef __cplusplus 29 - } 30 - #endif 31 23 32 24 #endif /* CSR_WIFI_ROUTER_TASK_H__ */ 33 25
-9
drivers/staging/csr/csr_wifi_sme_ap_lib.h
··· 22 22 #include "csr_wifi_sme_ap_prim.h" 23 23 #include "csr_wifi_sme_task.h" 24 24 25 - 26 - #ifdef __cplusplus 27 - extern "C" { 28 - #endif 29 - 30 25 #ifndef CSR_WIFI_AP_ENABLE 31 26 #error CSR_WIFI_AP_ENABLE MUST be defined inorder to use csr_wifi_sme_ap_lib.h 32 27 #endif ··· 770 775 #define CsrWifiSmeApWpsRegistrationStartedCfmSend(dst__, interfaceTag__, status__) \ 771 776 CsrWifiSmeApWpsRegistrationStartedCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__) 772 777 773 - 774 - #ifdef __cplusplus 775 - } 776 - #endif 777 778 778 779 #endif /* CSR_WIFI_SME_AP_LIB_H__ */
-8
drivers/staging/csr/csr_wifi_sme_ap_prim.h
··· 20 20 #include "csr_wifi_fsm_event.h" 21 21 #include "csr_wifi_sme_prim.h" 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #ifndef CSR_WIFI_AP_ENABLE 28 24 #error CSR_WIFI_AP_ENABLE MUST be defined inorder to use csr_wifi_sme_ap_prim.h 29 25 #endif ··· 1025 1029 CsrWifiSmeApBaSession baSession; 1026 1030 } CsrWifiSmeApBaDeleteCfm; 1027 1031 1028 - 1029 - #ifdef __cplusplus 1030 - } 1031 - #endif 1032 1032 1033 1033 #endif /* CSR_WIFI_SME_AP_PRIM_H__ */ 1034 1034
-8
drivers/staging/csr/csr_wifi_sme_converter_init.h
··· 13 13 #ifndef CSR_WIFI_SME_CONVERTER_INIT_H__ 14 14 #define CSR_WIFI_SME_CONVERTER_INIT_H__ 15 15 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 16 #ifndef EXCLUDE_CSR_WIFI_SME_MODULE 21 17 22 18 #include "csr_msgconv.h" ··· 30 34 #define CsrWifiSmeConverterInit() 31 35 32 36 #endif /* EXCLUDE_CSR_WIFI_SME_MODULE */ 33 - 34 - #ifdef __cplusplus 35 - } 36 - #endif 37 37 38 38 #endif /* CSR_WIFI_SME_CONVERTER_INIT_H__ */
-10
drivers/staging/csr/csr_wifi_sme_lib.h
··· 32 32 # endif 33 33 #endif 34 34 35 - 36 - #ifdef __cplusplus 37 - extern "C" { 38 - #endif 39 - 40 35 /*----------------------------------------------------------------------------* 41 36 * CsrWifiSmeFreeUpstreamMessageContents 42 37 * ··· 4299 4304 4300 4305 #define CsrWifiSmeWpsConfigurationCfmSend(dst__, status__) \ 4301 4306 CsrWifiSmeWpsConfigurationCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__) 4302 - 4303 - 4304 - #ifdef __cplusplus 4305 - } 4306 - #endif 4307 4307 4308 4308 #endif /* CSR_WIFI_SME_LIB_H__ */
-9
drivers/staging/csr/csr_wifi_sme_prim.h
··· 20 20 #include "csr_result.h" 21 21 #include "csr_wifi_fsm_event.h" 22 22 23 - #ifdef __cplusplus 24 - extern "C" { 25 - #endif 26 - 27 23 #define CSR_WIFI_SME_PRIM (0x0404) 28 24 29 25 typedef CsrPrim CsrWifiSmePrim; ··· 6505 6509 CsrWifiFsmEvent common; 6506 6510 CsrResult status; 6507 6511 } CsrWifiSmeWpsConfigurationCfm; 6508 - 6509 - 6510 - #ifdef __cplusplus 6511 - } 6512 - #endif 6513 6512 6514 6513 #endif /* CSR_WIFI_SME_PRIM_H__ */ 6515 6514
-9
drivers/staging/csr/csr_wifi_sme_sef.h
··· 12 12 13 13 #include "csr_wifi_sme_prim.h" 14 14 15 - 16 - #ifdef __cplusplus 17 - extern "C" { 18 - #endif 19 - 20 15 typedef void (*CsrWifiSmeStateHandlerType)(void *drvpriv, CsrWifiFsmEvent *msg); 21 16 22 17 extern const CsrWifiSmeStateHandlerType ··· 138 143 extern void CsrWifiSmeCoreDumpIndHandler(void *drvpriv, CsrWifiFsmEvent *msg); 139 144 extern void CsrWifiSmeAmpStatusChangeIndHandler(void *drvpriv, 140 145 CsrWifiFsmEvent *msg); 141 - 142 - #ifdef __cplusplus 143 - } 144 - #endif 145 146 146 147 #endif /* CSR_WIFI_ROUTER_SEF_CSR_WIFI_SME_H__ */
-8
drivers/staging/csr/csr_wifi_sme_serialize.h
··· 16 16 #include "csr_wifi_msgconv.h" 17 17 #include "csr_wifi_sme_prim.h" 18 18 19 - #ifdef __cplusplus 20 - extern "C" { 21 - #endif 22 - 23 19 extern void CsrWifiSmePfree(void *ptr); 24 20 25 21 #define CsrWifiSmeActivateReqSer CsrWifiEventSer ··· 662 666 #define CsrWifiSmeWpsConfigurationCfmSizeof CsrWifiEventCsrUint16Sizeof 663 667 #define CsrWifiSmeWpsConfigurationCfmSerFree CsrWifiSmePfree 664 668 665 - 666 - #ifdef __cplusplus 667 - } 668 - #endif 669 669 #endif /* CSR_WIFI_SME_SERIALIZE_H__ */ 670 670
-8
drivers/staging/csr/csr_wifi_sme_task.h
··· 15 15 16 16 #include "csr_sched.h" 17 17 18 - #ifdef __cplusplus 19 - extern "C" { 20 - #endif 21 - 22 18 #define CSR_WIFI_SME_LOG_ID 0x1202FFFF 23 19 extern CsrSchedQid CSR_WIFI_SME_IFACEQUEUE; 24 20 void CsrWifiSmeInit(void **gash); 25 21 void CsrWifiSmeDeinit(void **gash); 26 22 void CsrWifiSmeHandler(void **gash); 27 - 28 - #ifdef __cplusplus 29 - } 30 - #endif 31 23 32 24 #endif /* CSR_WIFI_SME_TASK_H__ */ 33 25
-8
drivers/staging/csr/csr_wifi_vif_utils.h
··· 11 11 #ifndef CSR_WIFI_VIF_UTILS_H 12 12 #define CSR_WIFI_VIF_UTILS_H 13 13 14 - #ifdef __cplusplus 15 - extern "C" { 16 - #endif 17 - 18 14 /* STANDARD INCLUDES ********************************************************/ 19 15 20 16 /* PROJECT INCLUDES *********************************************************/ ··· 22 26 /* Common macros for NME and SME to be used temporarily until SoftMAC changes are made */ 23 27 #define CSR_WIFI_NUM_INTERFACES (u8)0x1 24 28 #define CSR_WIFI_INTERFACE_IN_USE (u16)0x0 25 - 26 - #ifdef __cplusplus 27 - } 28 - #endif 29 29 30 30 #endif /* CSR_WIFI_VIF_UTILS_H */ 31 31