Go to the documentation of this file.
13 #ifndef CSR_WIFI_NME_LIB_H__
14 #define CSR_WIFI_NME_LIB_H__
30 #ifndef CSR_WIFI_NME_ENABLE
31 #error CSR_WIFI_NME_ENABLE MUST be defined inorder to use csr_wifi_nme_lib.h
101 #define CsrWifiNmeConnectionStatusGetReqCreate(msg__, dst__, src__, interfaceTag__) \
102 msg__ = kmalloc(sizeof(CsrWifiNmeConnectionStatusGetReq), GFP_KERNEL); \
103 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_CONNECTION_STATUS_GET_REQ, dst__, src__); \
104 msg__->interfaceTag = (interfaceTag__);
106 #define CsrWifiNmeConnectionStatusGetReqSendTo(dst__, src__, interfaceTag__) \
108 CsrWifiNmeConnectionStatusGetReq *msg__; \
109 CsrWifiNmeConnectionStatusGetReqCreate(msg__, dst__, src__, interfaceTag__); \
110 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
113 #define CsrWifiNmeConnectionStatusGetReqSend(src__, interfaceTag__) \
114 CsrWifiNmeConnectionStatusGetReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__)
132 #define CsrWifiNmeConnectionStatusGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionStatus__) \
133 msg__ = kmalloc(sizeof(CsrWifiNmeConnectionStatusGetCfm), GFP_KERNEL); \
134 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_CONNECTION_STATUS_GET_CFM, dst__, src__); \
135 msg__->interfaceTag = (interfaceTag__); \
136 msg__->status = (status__); \
137 msg__->connectionStatus = (connectionStatus__);
139 #define CsrWifiNmeConnectionStatusGetCfmSendTo(dst__, src__, interfaceTag__, status__, connectionStatus__) \
141 CsrWifiNmeConnectionStatusGetCfm *msg__; \
142 CsrWifiNmeConnectionStatusGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionStatus__); \
143 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
146 #define CsrWifiNmeConnectionStatusGetCfmSend(dst__, interfaceTag__, status__, connectionStatus__) \
147 CsrWifiNmeConnectionStatusGetCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__, connectionStatus__)
165 #define CsrWifiNmeEventMaskSetReqCreate(msg__, dst__, src__, indMask__) \
166 msg__ = kmalloc(sizeof(CsrWifiNmeEventMaskSetReq), GFP_KERNEL); \
167 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_EVENT_MASK_SET_REQ, dst__, src__); \
168 msg__->indMask = (indMask__);
170 #define CsrWifiNmeEventMaskSetReqSendTo(dst__, src__, indMask__) \
172 CsrWifiNmeEventMaskSetReq *msg__; \
173 CsrWifiNmeEventMaskSetReqCreate(msg__, dst__, src__, indMask__); \
174 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
177 #define CsrWifiNmeEventMaskSetReqSend(src__, indMask__) \
178 CsrWifiNmeEventMaskSetReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, indMask__)
194 #define CsrWifiNmeEventMaskSetCfmCreate(msg__, dst__, src__, status__) \
195 msg__ = kmalloc(sizeof(CsrWifiNmeEventMaskSetCfm), GFP_KERNEL); \
196 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_EVENT_MASK_SET_CFM, dst__, src__); \
197 msg__->status = (status__);
199 #define CsrWifiNmeEventMaskSetCfmSendTo(dst__, src__, status__) \
201 CsrWifiNmeEventMaskSetCfm *msg__; \
202 CsrWifiNmeEventMaskSetCfmCreate(msg__, dst__, src__, status__); \
203 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
206 #define CsrWifiNmeEventMaskSetCfmSend(dst__, status__) \
207 CsrWifiNmeEventMaskSetCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, status__)
225 #define CsrWifiNmeProfileConnectReqCreate(msg__, dst__, src__, interfaceTag__, profileIdentity__) \
226 msg__ = kmalloc(sizeof(CsrWifiNmeProfileConnectReq), GFP_KERNEL); \
227 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_CONNECT_REQ, dst__, src__); \
228 msg__->interfaceTag = (interfaceTag__); \
229 msg__->profileIdentity = (profileIdentity__);
231 #define CsrWifiNmeProfileConnectReqSendTo(dst__, src__, interfaceTag__, profileIdentity__) \
233 CsrWifiNmeProfileConnectReq *msg__; \
234 CsrWifiNmeProfileConnectReqCreate(msg__, dst__, src__, interfaceTag__, profileIdentity__); \
235 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
238 #define CsrWifiNmeProfileConnectReqSend(src__, interfaceTag__, profileIdentity__) \
239 CsrWifiNmeProfileConnectReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__, profileIdentity__)
270 #define CsrWifiNmeProfileConnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectAttemptsCount__, connectAttempts__) \
271 msg__ = kmalloc(sizeof(CsrWifiNmeProfileConnectCfm), GFP_KERNEL); \
272 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_CONNECT_CFM, dst__, src__); \
273 msg__->interfaceTag = (interfaceTag__); \
274 msg__->status = (status__); \
275 msg__->connectAttemptsCount = (connectAttemptsCount__); \
276 msg__->connectAttempts = (connectAttempts__);
278 #define CsrWifiNmeProfileConnectCfmSendTo(dst__, src__, interfaceTag__, status__, connectAttemptsCount__, connectAttempts__) \
280 CsrWifiNmeProfileConnectCfm *msg__; \
281 CsrWifiNmeProfileConnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectAttemptsCount__, connectAttempts__); \
282 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
285 #define CsrWifiNmeProfileConnectCfmSend(dst__, interfaceTag__, status__, connectAttemptsCount__, connectAttempts__) \
286 CsrWifiNmeProfileConnectCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__, connectAttemptsCount__, connectAttempts__)
301 #define CsrWifiNmeProfileDeleteAllReqCreate(msg__, dst__, src__) \
302 msg__ = kmalloc(sizeof(CsrWifiNmeProfileDeleteAllReq), GFP_KERNEL); \
303 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_DELETE_ALL_REQ, dst__, src__);
305 #define CsrWifiNmeProfileDeleteAllReqSendTo(dst__, src__) \
307 CsrWifiNmeProfileDeleteAllReq *msg__; \
308 CsrWifiNmeProfileDeleteAllReqCreate(msg__, dst__, src__); \
309 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
312 #define CsrWifiNmeProfileDeleteAllReqSend(src__) \
313 CsrWifiNmeProfileDeleteAllReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__)
330 #define CsrWifiNmeProfileDeleteAllCfmCreate(msg__, dst__, src__, status__) \
331 msg__ = kmalloc(sizeof(CsrWifiNmeProfileDeleteAllCfm), GFP_KERNEL); \
332 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_DELETE_ALL_CFM, dst__, src__); \
333 msg__->status = (status__);
335 #define CsrWifiNmeProfileDeleteAllCfmSendTo(dst__, src__, status__) \
337 CsrWifiNmeProfileDeleteAllCfm *msg__; \
338 CsrWifiNmeProfileDeleteAllCfmCreate(msg__, dst__, src__, status__); \
339 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
342 #define CsrWifiNmeProfileDeleteAllCfmSend(dst__, status__) \
343 CsrWifiNmeProfileDeleteAllCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, status__)
359 #define CsrWifiNmeProfileDeleteReqCreate(msg__, dst__, src__, profileIdentity__) \
360 msg__ = kmalloc(sizeof(CsrWifiNmeProfileDeleteReq), GFP_KERNEL); \
361 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_DELETE_REQ, dst__, src__); \
362 msg__->profileIdentity = (profileIdentity__);
364 #define CsrWifiNmeProfileDeleteReqSendTo(dst__, src__, profileIdentity__) \
366 CsrWifiNmeProfileDeleteReq *msg__; \
367 CsrWifiNmeProfileDeleteReqCreate(msg__, dst__, src__, profileIdentity__); \
368 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
371 #define CsrWifiNmeProfileDeleteReqSend(src__, profileIdentity__) \
372 CsrWifiNmeProfileDeleteReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, profileIdentity__)
388 #define CsrWifiNmeProfileDeleteCfmCreate(msg__, dst__, src__, status__) \
389 msg__ = kmalloc(sizeof(CsrWifiNmeProfileDeleteCfm), GFP_KERNEL); \
390 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_DELETE_CFM, dst__, src__); \
391 msg__->status = (status__);
393 #define CsrWifiNmeProfileDeleteCfmSendTo(dst__, src__, status__) \
395 CsrWifiNmeProfileDeleteCfm *msg__; \
396 CsrWifiNmeProfileDeleteCfmCreate(msg__, dst__, src__, status__); \
397 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
400 #define CsrWifiNmeProfileDeleteCfmSend(dst__, status__) \
401 CsrWifiNmeProfileDeleteCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, status__)
428 #define CsrWifiNmeProfileDisconnectIndCreate(msg__, dst__, src__, interfaceTag__, connectAttemptsCount__, connectAttempts__) \
429 msg__ = kmalloc(sizeof(CsrWifiNmeProfileDisconnectInd), GFP_KERNEL); \
430 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_DISCONNECT_IND, dst__, src__); \
431 msg__->interfaceTag = (interfaceTag__); \
432 msg__->connectAttemptsCount = (connectAttemptsCount__); \
433 msg__->connectAttempts = (connectAttempts__);
435 #define CsrWifiNmeProfileDisconnectIndSendTo(dst__, src__, interfaceTag__, connectAttemptsCount__, connectAttempts__) \
437 CsrWifiNmeProfileDisconnectInd *msg__; \
438 CsrWifiNmeProfileDisconnectIndCreate(msg__, dst__, src__, interfaceTag__, connectAttemptsCount__, connectAttempts__); \
439 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
442 #define CsrWifiNmeProfileDisconnectIndSend(dst__, interfaceTag__, connectAttemptsCount__, connectAttempts__) \
443 CsrWifiNmeProfileDisconnectIndSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, connectAttemptsCount__, connectAttempts__)
470 #define CsrWifiNmeProfileOrderSetReqCreate(msg__, dst__, src__, interfaceTag__, profileIdentitysCount__, profileIdentitys__) \
471 msg__ = kmalloc(sizeof(CsrWifiNmeProfileOrderSetReq), GFP_KERNEL); \
472 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_ORDER_SET_REQ, dst__, src__); \
473 msg__->interfaceTag = (interfaceTag__); \
474 msg__->profileIdentitysCount = (profileIdentitysCount__); \
475 msg__->profileIdentitys = (profileIdentitys__);
477 #define CsrWifiNmeProfileOrderSetReqSendTo(dst__, src__, interfaceTag__, profileIdentitysCount__, profileIdentitys__) \
479 CsrWifiNmeProfileOrderSetReq *msg__; \
480 CsrWifiNmeProfileOrderSetReqCreate(msg__, dst__, src__, interfaceTag__, profileIdentitysCount__, profileIdentitys__); \
481 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
484 #define CsrWifiNmeProfileOrderSetReqSend(src__, interfaceTag__, profileIdentitysCount__, profileIdentitys__) \
485 CsrWifiNmeProfileOrderSetReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__, profileIdentitysCount__, profileIdentitys__)
502 #define CsrWifiNmeProfileOrderSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
503 msg__ = kmalloc(sizeof(CsrWifiNmeProfileOrderSetCfm), GFP_KERNEL); \
504 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_ORDER_SET_CFM, dst__, src__); \
505 msg__->interfaceTag = (interfaceTag__); \
506 msg__->status = (status__);
508 #define CsrWifiNmeProfileOrderSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
510 CsrWifiNmeProfileOrderSetCfm *msg__; \
511 CsrWifiNmeProfileOrderSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
512 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
515 #define CsrWifiNmeProfileOrderSetCfmSend(dst__, interfaceTag__, status__) \
516 CsrWifiNmeProfileOrderSetCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__)
536 #define CsrWifiNmeProfileSetReqCreate(msg__, dst__, src__, profile__) \
537 msg__ = kmalloc(sizeof(CsrWifiNmeProfileSetReq), GFP_KERNEL); \
538 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_SET_REQ, dst__, src__); \
539 msg__->profile = (profile__);
541 #define CsrWifiNmeProfileSetReqSendTo(dst__, src__, profile__) \
543 CsrWifiNmeProfileSetReq *msg__; \
544 CsrWifiNmeProfileSetReqCreate(msg__, dst__, src__, profile__); \
545 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
548 #define CsrWifiNmeProfileSetReqSend(src__, profile__) \
549 CsrWifiNmeProfileSetReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, profile__)
569 #define CsrWifiNmeProfileSetCfmCreate(msg__, dst__, src__, status__) \
570 msg__ = kmalloc(sizeof(CsrWifiNmeProfileSetCfm), GFP_KERNEL); \
571 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_SET_CFM, dst__, src__); \
572 msg__->status = (status__);
574 #define CsrWifiNmeProfileSetCfmSendTo(dst__, src__, status__) \
576 CsrWifiNmeProfileSetCfm *msg__; \
577 CsrWifiNmeProfileSetCfmCreate(msg__, dst__, src__, status__); \
578 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
581 #define CsrWifiNmeProfileSetCfmSend(dst__, status__) \
582 CsrWifiNmeProfileSetCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, status__)
604 #define CsrWifiNmeProfileUpdateIndCreate(msg__, dst__, src__, interfaceTag__, profile__) \
605 msg__ = kmalloc(sizeof(CsrWifiNmeProfileUpdateInd), GFP_KERNEL); \
606 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_PROFILE_UPDATE_IND, dst__, src__); \
607 msg__->interfaceTag = (interfaceTag__); \
608 msg__->profile = (profile__);
610 #define CsrWifiNmeProfileUpdateIndSendTo(dst__, src__, interfaceTag__, profile__) \
612 CsrWifiNmeProfileUpdateInd *msg__; \
613 CsrWifiNmeProfileUpdateIndCreate(msg__, dst__, src__, interfaceTag__, profile__); \
614 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
617 #define CsrWifiNmeProfileUpdateIndSend(dst__, interfaceTag__, profile__) \
618 CsrWifiNmeProfileUpdateIndSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, profile__)
643 #define CsrWifiNmeSimGsmAuthIndCreate(msg__, dst__, src__, randsLength__, rands__) \
644 msg__ = kmalloc(sizeof(CsrWifiNmeSimGsmAuthInd), GFP_KERNEL); \
645 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_GSM_AUTH_IND, dst__, src__); \
646 msg__->randsLength = (randsLength__); \
647 msg__->rands = (rands__);
649 #define CsrWifiNmeSimGsmAuthIndSendTo(dst__, src__, randsLength__, rands__) \
651 CsrWifiNmeSimGsmAuthInd *msg__; \
652 CsrWifiNmeSimGsmAuthIndCreate(msg__, dst__, src__, randsLength__, rands__); \
653 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
656 #define CsrWifiNmeSimGsmAuthIndSend(dst__, randsLength__, rands__) \
657 CsrWifiNmeSimGsmAuthIndSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, randsLength__, rands__)
683 #define CsrWifiNmeSimGsmAuthResCreate(msg__, dst__, src__, status__, kcsLength__, kcs__, sresLength__, sres__) \
684 msg__ = kmalloc(sizeof(CsrWifiNmeSimGsmAuthRes), GFP_KERNEL); \
685 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_GSM_AUTH_RES, dst__, src__); \
686 msg__->status = (status__); \
687 msg__->kcsLength = (kcsLength__); \
688 msg__->kcs = (kcs__); \
689 msg__->sresLength = (sresLength__); \
690 msg__->sres = (sres__);
692 #define CsrWifiNmeSimGsmAuthResSendTo(dst__, src__, status__, kcsLength__, kcs__, sresLength__, sres__) \
694 CsrWifiNmeSimGsmAuthRes *msg__; \
695 CsrWifiNmeSimGsmAuthResCreate(msg__, dst__, src__, status__, kcsLength__, kcs__, sresLength__, sres__); \
696 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
699 #define CsrWifiNmeSimGsmAuthResSend(src__, status__, kcsLength__, kcs__, sresLength__, sres__) \
700 CsrWifiNmeSimGsmAuthResSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, status__, kcsLength__, kcs__, sresLength__, sres__)
720 #define CsrWifiNmeSimImsiGetIndCreate(msg__, dst__, src__) \
721 msg__ = kmalloc(sizeof(CsrWifiNmeSimImsiGetInd), GFP_KERNEL); \
722 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_IMSI_GET_IND, dst__, src__);
724 #define CsrWifiNmeSimImsiGetIndSendTo(dst__, src__) \
726 CsrWifiNmeSimImsiGetInd *msg__; \
727 CsrWifiNmeSimImsiGetIndCreate(msg__, dst__, src__); \
728 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
731 #define CsrWifiNmeSimImsiGetIndSend(dst__) \
732 CsrWifiNmeSimImsiGetIndSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE)
749 #define CsrWifiNmeSimImsiGetResCreate(msg__, dst__, src__, status__, imsi__, cardType__) \
750 msg__ = kmalloc(sizeof(CsrWifiNmeSimImsiGetRes), GFP_KERNEL); \
751 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_IMSI_GET_RES, dst__, src__); \
752 msg__->status = (status__); \
753 msg__->imsi = (imsi__); \
754 msg__->cardType = (cardType__);
756 #define CsrWifiNmeSimImsiGetResSendTo(dst__, src__, status__, imsi__, cardType__) \
758 CsrWifiNmeSimImsiGetRes *msg__; \
759 CsrWifiNmeSimImsiGetResCreate(msg__, dst__, src__, status__, imsi__, cardType__); \
760 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
763 #define CsrWifiNmeSimImsiGetResSend(src__, status__, imsi__, cardType__) \
764 CsrWifiNmeSimImsiGetResSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, status__, imsi__, cardType__)
788 #define CsrWifiNmeSimUmtsAuthIndCreate(msg__, dst__, src__, rand__, autn__) \
789 msg__ = kmalloc(sizeof(CsrWifiNmeSimUmtsAuthInd), GFP_KERNEL); \
790 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_IND, dst__, src__); \
791 memcpy(msg__->rand, (rand__), sizeof(u8) * 16); \
792 memcpy(msg__->autn, (autn__), sizeof(u8) * 16);
794 #define CsrWifiNmeSimUmtsAuthIndSendTo(dst__, src__, rand__, autn__) \
796 CsrWifiNmeSimUmtsAuthInd *msg__; \
797 CsrWifiNmeSimUmtsAuthIndCreate(msg__, dst__, src__, rand__, autn__); \
798 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
801 #define CsrWifiNmeSimUmtsAuthIndSend(dst__, rand__, autn__) \
802 CsrWifiNmeSimUmtsAuthIndSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, rand__, autn__)
835 #define CsrWifiNmeSimUmtsAuthResCreate(msg__, dst__, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__) \
836 msg__ = kmalloc(sizeof(CsrWifiNmeSimUmtsAuthRes), GFP_KERNEL); \
837 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_SIM_UMTS_AUTH_RES, dst__, src__); \
838 msg__->status = (status__); \
839 msg__->result = (result__); \
840 memcpy(msg__->umtsCipherKey, (umtsCipherKey__), sizeof(u8) * 16); \
841 memcpy(msg__->umtsIntegrityKey, (umtsIntegrityKey__), sizeof(u8) * 16); \
842 msg__->resParameterLength = (resParameterLength__); \
843 msg__->resParameter = (resParameter__); \
844 memcpy(msg__->auts, (auts__), sizeof(u8) * 14);
846 #define CsrWifiNmeSimUmtsAuthResSendTo(dst__, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__) \
848 CsrWifiNmeSimUmtsAuthRes *msg__; \
849 CsrWifiNmeSimUmtsAuthResCreate(msg__, dst__, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__); \
850 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
853 #define CsrWifiNmeSimUmtsAuthResSend(src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__) \
854 CsrWifiNmeSimUmtsAuthResSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, status__, result__, umtsCipherKey__, umtsIntegrityKey__, resParameterLength__, resParameter__, auts__)
871 #define CsrWifiNmeWpsCancelReqCreate(msg__, dst__, src__, interfaceTag__) \
872 msg__ = kmalloc(sizeof(CsrWifiNmeWpsCancelReq), GFP_KERNEL); \
873 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_CANCEL_REQ, dst__, src__); \
874 msg__->interfaceTag = (interfaceTag__);
876 #define CsrWifiNmeWpsCancelReqSendTo(dst__, src__, interfaceTag__) \
878 CsrWifiNmeWpsCancelReq *msg__; \
879 CsrWifiNmeWpsCancelReqCreate(msg__, dst__, src__, interfaceTag__); \
880 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
883 #define CsrWifiNmeWpsCancelReqSend(src__, interfaceTag__) \
884 CsrWifiNmeWpsCancelReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__)
900 #define CsrWifiNmeWpsCancelCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
901 msg__ = kmalloc(sizeof(CsrWifiNmeWpsCancelCfm), GFP_KERNEL); \
902 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_CANCEL_CFM, dst__, src__); \
903 msg__->interfaceTag = (interfaceTag__); \
904 msg__->status = (status__);
906 #define CsrWifiNmeWpsCancelCfmSendTo(dst__, src__, interfaceTag__, status__) \
908 CsrWifiNmeWpsCancelCfm *msg__; \
909 CsrWifiNmeWpsCancelCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
910 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
913 #define CsrWifiNmeWpsCancelCfmSend(dst__, interfaceTag__, status__) \
914 CsrWifiNmeWpsCancelCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__)
936 #define CsrWifiNmeWpsCfmCreate(msg__, dst__, src__, interfaceTag__, status__, profile__) \
937 msg__ = kmalloc(sizeof(CsrWifiNmeWpsCfm), GFP_KERNEL); \
938 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_CFM, dst__, src__); \
939 msg__->interfaceTag = (interfaceTag__); \
940 msg__->status = (status__); \
941 msg__->profile = (profile__);
943 #define CsrWifiNmeWpsCfmSendTo(dst__, src__, interfaceTag__, status__, profile__) \
945 CsrWifiNmeWpsCfm *msg__; \
946 CsrWifiNmeWpsCfmCreate(msg__, dst__, src__, interfaceTag__, status__, profile__); \
947 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
950 #define CsrWifiNmeWpsCfmSend(dst__, interfaceTag__, status__, profile__) \
951 CsrWifiNmeWpsCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, interfaceTag__, status__, profile__)
967 #define CsrWifiNmeWpsConfigSetReqCreate(msg__, dst__, src__, wpsConfig__) \
968 msg__ = kmalloc(sizeof(CsrWifiNmeWpsConfigSetReq), GFP_KERNEL); \
969 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_CONFIG_SET_REQ, dst__, src__); \
970 msg__->wpsConfig = (wpsConfig__);
972 #define CsrWifiNmeWpsConfigSetReqSendTo(dst__, src__, wpsConfig__) \
974 CsrWifiNmeWpsConfigSetReq *msg__; \
975 CsrWifiNmeWpsConfigSetReqCreate(msg__, dst__, src__, wpsConfig__); \
976 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
979 #define CsrWifiNmeWpsConfigSetReqSend(src__, wpsConfig__) \
980 CsrWifiNmeWpsConfigSetReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, wpsConfig__)
995 #define CsrWifiNmeWpsConfigSetCfmCreate(msg__, dst__, src__, status__) \
996 msg__ = kmalloc(sizeof(CsrWifiNmeWpsConfigSetCfm), GFP_KERNEL); \
997 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_CONFIG_SET_CFM, dst__, src__); \
998 msg__->status = (status__);
1000 #define CsrWifiNmeWpsConfigSetCfmSendTo(dst__, src__, status__) \
1002 CsrWifiNmeWpsConfigSetCfm *msg__; \
1003 CsrWifiNmeWpsConfigSetCfmCreate(msg__, dst__, src__, status__); \
1004 CsrSchedMessagePut(dst__, CSR_WIFI_NME_PRIM, msg__); \
1007 #define CsrWifiNmeWpsConfigSetCfmSend(dst__, status__) \
1008 CsrWifiNmeWpsConfigSetCfmSendTo(dst__, CSR_WIFI_NME_IFACEQUEUE, status__)
1031 #define CsrWifiNmeWpsReqCreate(msg__, dst__, src__, interfaceTag__, pin__, ssid__, bssid__) \
1032 msg__ = kmalloc(sizeof(CsrWifiNmeWpsReq), GFP_KERNEL); \
1033 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_NME_PRIM, CSR_WIFI_NME_WPS_REQ, dst__, src__); \
1034 msg__->interfaceTag = (interfaceTag__); \
1035 memcpy(msg__->pin, (pin__), sizeof(u8) * 8); \
1036 msg__->ssid = (ssid__); \
1037 msg__->bssid = (bssid__);
1039 #define CsrWifiNmeWpsReqSendTo(dst__, src__, interfaceTag__, pin__, ssid__, bssid__) \
1041 CsrWifiNmeWpsReq *msg__; \
1042 CsrWifiNmeWpsReqCreate(msg__, dst__, src__, interfaceTag__, pin__, ssid__, bssid__); \
1043 CsrMsgTransport(dst__, CSR_WIFI_NME_PRIM, msg__); \
1046 #define CsrWifiNmeWpsReqSend(src__, interfaceTag__, pin__, ssid__, bssid__) \
1047 CsrWifiNmeWpsReqSendTo(CSR_WIFI_NME_IFACEQUEUE, src__, interfaceTag__, pin__, ssid__, bssid__)