Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
csr_wifi_sme_converter_init.c
Go to the documentation of this file.
1 /*****************************************************************************
2 
3  (c) Cambridge Silicon Radio Limited 2012
4  All rights reserved and confidential information of CSR
5 
6  Refer to LICENSE.txt included with this source for details
7  on the license terms.
8 
9 *****************************************************************************/
10 
11 /* Note: this is an auto-generated file. */
12 
13 #include "csr_msgconv.h"
14 #include "csr_macro.h"
15 
16 
17 #ifdef CSR_LOG_ENABLE
18 #include "csr_log.h"
19 #endif
20 
21 #ifndef EXCLUDE_CSR_WIFI_SME_MODULE
22 #include "csr_wifi_sme_serialize.h"
23 #include "csr_wifi_sme_prim.h"
24 
25 static CsrMsgConvMsgEntry csrwifisme_conv_lut[] = {
154 
155  { 0, NULL, NULL, NULL, NULL },
156 };
157 
159 {
160  if (msgType & CSR_PRIM_UPSTREAM)
161  {
162  u16 idx = (msgType & ~CSR_PRIM_UPSTREAM) + CSR_WIFI_SME_PRIM_DOWNSTREAM_COUNT;
164  csrwifisme_conv_lut[idx].msgType == msgType)
165  {
166  return &csrwifisme_conv_lut[idx];
167  }
168  }
169  else
170  {
171  if (msgType < CSR_WIFI_SME_PRIM_DOWNSTREAM_COUNT &&
172  csrwifisme_conv_lut[msgType].msgType == msgType)
173  {
174  return &csrwifisme_conv_lut[msgType];
175  }
176  }
177  return NULL;
178 }
179 
180 
182 {
183  CsrMsgConvInsert(CSR_WIFI_SME_PRIM, csrwifisme_conv_lut);
185 }
186 
187 
188 #ifdef CSR_LOG_ENABLE
189 static const CsrLogPrimitiveInformation csrwifisme_conv_info = {
191  (char *)"CSR_WIFI_SME_PRIM",
192  csrwifisme_conv_lut
193 };
194 const CsrLogPrimitiveInformation* CsrWifiSmeTechInfoGet(void)
195 {
196  return &csrwifisme_conv_info;
197 }
198 
199 
200 #endif /* CSR_LOG_ENABLE */
201 #endif /* EXCLUDE_CSR_WIFI_SME_MODULE */