Go to the documentation of this file.
13 #ifndef CSR_WIFI_SME_LIB_H__
14 #define CSR_WIFI_SME_LIB_H__
26 #ifndef CSR_WIFI_SME_LIB_DESTINATION_QUEUE
27 # ifdef CSR_WIFI_NME_ENABLE
29 # define CSR_WIFI_SME_LIB_DESTINATION_QUEUE CSR_WIFI_NME_IFACEQUEUE
31 # define CSR_WIFI_SME_LIB_DESTINATION_QUEUE CSR_WIFI_SME_IFACEQUEUE
138 #define CsrWifiSmeActivateReqCreate(msg__, dst__, src__) \
139 msg__ = kmalloc(sizeof(CsrWifiSmeActivateReq), GFP_KERNEL); \
140 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ACTIVATE_REQ, dst__, src__);
142 #define CsrWifiSmeActivateReqSendTo(dst__, src__) \
144 CsrWifiSmeActivateReq *msg__; \
145 CsrWifiSmeActivateReqCreate(msg__, dst__, src__); \
146 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
149 #define CsrWifiSmeActivateReqSend(src__) \
150 CsrWifiSmeActivateReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
165 #define CsrWifiSmeActivateCfmCreate(msg__, dst__, src__, status__) \
166 msg__ = kmalloc(sizeof(CsrWifiSmeActivateCfm), GFP_KERNEL); \
167 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ACTIVATE_CFM, dst__, src__); \
168 msg__->status = (status__);
170 #define CsrWifiSmeActivateCfmSendTo(dst__, src__, status__) \
172 CsrWifiSmeActivateCfm *msg__; \
173 CsrWifiSmeActivateCfmCreate(msg__, dst__, src__, status__); \
174 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
177 #define CsrWifiSmeActivateCfmSend(dst__, status__) \
178 CsrWifiSmeActivateCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
192 #define CsrWifiSmeAdhocConfigGetReqCreate(msg__, dst__, src__) \
193 msg__ = kmalloc(sizeof(CsrWifiSmeAdhocConfigGetReq), GFP_KERNEL); \
194 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ADHOC_CONFIG_GET_REQ, dst__, src__);
196 #define CsrWifiSmeAdhocConfigGetReqSendTo(dst__, src__) \
198 CsrWifiSmeAdhocConfigGetReq *msg__; \
199 CsrWifiSmeAdhocConfigGetReqCreate(msg__, dst__, src__); \
200 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
203 #define CsrWifiSmeAdhocConfigGetReqSend(src__) \
204 CsrWifiSmeAdhocConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
221 #define CsrWifiSmeAdhocConfigGetCfmCreate(msg__, dst__, src__, status__, adHocConfig__) \
222 msg__ = kmalloc(sizeof(CsrWifiSmeAdhocConfigGetCfm), GFP_KERNEL); \
223 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ADHOC_CONFIG_GET_CFM, dst__, src__); \
224 msg__->status = (status__); \
225 msg__->adHocConfig = (adHocConfig__);
227 #define CsrWifiSmeAdhocConfigGetCfmSendTo(dst__, src__, status__, adHocConfig__) \
229 CsrWifiSmeAdhocConfigGetCfm *msg__; \
230 CsrWifiSmeAdhocConfigGetCfmCreate(msg__, dst__, src__, status__, adHocConfig__); \
231 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
234 #define CsrWifiSmeAdhocConfigGetCfmSend(dst__, status__, adHocConfig__) \
235 CsrWifiSmeAdhocConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, adHocConfig__)
250 #define CsrWifiSmeAdhocConfigSetReqCreate(msg__, dst__, src__, adHocConfig__) \
251 msg__ = kmalloc(sizeof(CsrWifiSmeAdhocConfigSetReq), GFP_KERNEL); \
252 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ADHOC_CONFIG_SET_REQ, dst__, src__); \
253 msg__->adHocConfig = (adHocConfig__);
255 #define CsrWifiSmeAdhocConfigSetReqSendTo(dst__, src__, adHocConfig__) \
257 CsrWifiSmeAdhocConfigSetReq *msg__; \
258 CsrWifiSmeAdhocConfigSetReqCreate(msg__, dst__, src__, adHocConfig__); \
259 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
262 #define CsrWifiSmeAdhocConfigSetReqSend(src__, adHocConfig__) \
263 CsrWifiSmeAdhocConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, adHocConfig__)
278 #define CsrWifiSmeAdhocConfigSetCfmCreate(msg__, dst__, src__, status__) \
279 msg__ = kmalloc(sizeof(CsrWifiSmeAdhocConfigSetCfm), GFP_KERNEL); \
280 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ADHOC_CONFIG_SET_CFM, dst__, src__); \
281 msg__->status = (status__);
283 #define CsrWifiSmeAdhocConfigSetCfmSendTo(dst__, src__, status__) \
285 CsrWifiSmeAdhocConfigSetCfm *msg__; \
286 CsrWifiSmeAdhocConfigSetCfmCreate(msg__, dst__, src__, status__); \
287 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
290 #define CsrWifiSmeAdhocConfigSetCfmSend(dst__, status__) \
291 CsrWifiSmeAdhocConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
308 #define CsrWifiSmeAmpStatusChangeIndCreate(msg__, dst__, src__, interfaceTag__, ampStatus__) \
309 msg__ = kmalloc(sizeof(CsrWifiSmeAmpStatusChangeInd), GFP_KERNEL); \
310 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_AMP_STATUS_CHANGE_IND, dst__, src__); \
311 msg__->interfaceTag = (interfaceTag__); \
312 msg__->ampStatus = (ampStatus__);
314 #define CsrWifiSmeAmpStatusChangeIndSendTo(dst__, src__, interfaceTag__, ampStatus__) \
316 CsrWifiSmeAmpStatusChangeInd *msg__; \
317 CsrWifiSmeAmpStatusChangeIndCreate(msg__, dst__, src__, interfaceTag__, ampStatus__); \
318 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
321 #define CsrWifiSmeAmpStatusChangeIndSend(dst__, interfaceTag__, ampStatus__) \
322 CsrWifiSmeAmpStatusChangeIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, ampStatus__)
349 #define CsrWifiSmeAssociationCompleteIndCreate(msg__, dst__, src__, interfaceTag__, status__, connectionInfo__, deauthReason__) \
350 msg__ = kmalloc(sizeof(CsrWifiSmeAssociationCompleteInd), GFP_KERNEL); \
351 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ASSOCIATION_COMPLETE_IND, dst__, src__); \
352 msg__->interfaceTag = (interfaceTag__); \
353 msg__->status = (status__); \
354 msg__->connectionInfo = (connectionInfo__); \
355 msg__->deauthReason = (deauthReason__);
357 #define CsrWifiSmeAssociationCompleteIndSendTo(dst__, src__, interfaceTag__, status__, connectionInfo__, deauthReason__) \
359 CsrWifiSmeAssociationCompleteInd *msg__; \
360 CsrWifiSmeAssociationCompleteIndCreate(msg__, dst__, src__, interfaceTag__, status__, connectionInfo__, deauthReason__); \
361 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
364 #define CsrWifiSmeAssociationCompleteIndSend(dst__, interfaceTag__, status__, connectionInfo__, deauthReason__) \
365 CsrWifiSmeAssociationCompleteIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, connectionInfo__, deauthReason__)
383 #define CsrWifiSmeAssociationStartIndCreate(msg__, dst__, src__, interfaceTag__, address__, ssid__) \
384 msg__ = kmalloc(sizeof(CsrWifiSmeAssociationStartInd), GFP_KERNEL); \
385 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ASSOCIATION_START_IND, dst__, src__); \
386 msg__->interfaceTag = (interfaceTag__); \
387 msg__->address = (address__); \
388 msg__->ssid = (ssid__);
390 #define CsrWifiSmeAssociationStartIndSendTo(dst__, src__, interfaceTag__, address__, ssid__) \
392 CsrWifiSmeAssociationStartInd *msg__; \
393 CsrWifiSmeAssociationStartIndCreate(msg__, dst__, src__, interfaceTag__, address__, ssid__); \
394 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
397 #define CsrWifiSmeAssociationStartIndSend(dst__, interfaceTag__, address__, ssid__) \
398 CsrWifiSmeAssociationStartIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, address__, ssid__)
426 #define CsrWifiSmeBlacklistReqCreate(msg__, dst__, src__, interfaceTag__, action__, setAddressCount__, setAddresses__) \
427 msg__ = kmalloc(sizeof(CsrWifiSmeBlacklistReq), GFP_KERNEL); \
428 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_BLACKLIST_REQ, dst__, src__); \
429 msg__->interfaceTag = (interfaceTag__); \
430 msg__->action = (action__); \
431 msg__->setAddressCount = (setAddressCount__); \
432 msg__->setAddresses = (setAddresses__);
434 #define CsrWifiSmeBlacklistReqSendTo(dst__, src__, interfaceTag__, action__, setAddressCount__, setAddresses__) \
436 CsrWifiSmeBlacklistReq *msg__; \
437 CsrWifiSmeBlacklistReqCreate(msg__, dst__, src__, interfaceTag__, action__, setAddressCount__, setAddresses__); \
438 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
441 #define CsrWifiSmeBlacklistReqSend(src__, interfaceTag__, action__, setAddressCount__, setAddresses__) \
442 CsrWifiSmeBlacklistReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, action__, setAddressCount__, setAddresses__)
466 #define CsrWifiSmeBlacklistCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getAddressCount__, getAddresses__) \
467 msg__ = kmalloc(sizeof(CsrWifiSmeBlacklistCfm), GFP_KERNEL); \
468 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_BLACKLIST_CFM, dst__, src__); \
469 msg__->interfaceTag = (interfaceTag__); \
470 msg__->status = (status__); \
471 msg__->action = (action__); \
472 msg__->getAddressCount = (getAddressCount__); \
473 msg__->getAddresses = (getAddresses__);
475 #define CsrWifiSmeBlacklistCfmSendTo(dst__, src__, interfaceTag__, status__, action__, getAddressCount__, getAddresses__) \
477 CsrWifiSmeBlacklistCfm *msg__; \
478 CsrWifiSmeBlacklistCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getAddressCount__, getAddresses__); \
479 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
482 #define CsrWifiSmeBlacklistCfmSend(dst__, interfaceTag__, status__, action__, getAddressCount__, getAddresses__) \
483 CsrWifiSmeBlacklistCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, action__, getAddressCount__, getAddresses__)
497 #define CsrWifiSmeCalibrationDataGetReqCreate(msg__, dst__, src__) \
498 msg__ = kmalloc(sizeof(CsrWifiSmeCalibrationDataGetReq), GFP_KERNEL); \
499 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CALIBRATION_DATA_GET_REQ, dst__, src__);
501 #define CsrWifiSmeCalibrationDataGetReqSendTo(dst__, src__) \
503 CsrWifiSmeCalibrationDataGetReq *msg__; \
504 CsrWifiSmeCalibrationDataGetReqCreate(msg__, dst__, src__); \
505 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
508 #define CsrWifiSmeCalibrationDataGetReqSend(src__) \
509 CsrWifiSmeCalibrationDataGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
528 #define CsrWifiSmeCalibrationDataGetCfmCreate(msg__, dst__, src__, status__, calibrationDataLength__, calibrationData__) \
529 msg__ = kmalloc(sizeof(CsrWifiSmeCalibrationDataGetCfm), GFP_KERNEL); \
530 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CALIBRATION_DATA_GET_CFM, dst__, src__); \
531 msg__->status = (status__); \
532 msg__->calibrationDataLength = (calibrationDataLength__); \
533 msg__->calibrationData = (calibrationData__);
535 #define CsrWifiSmeCalibrationDataGetCfmSendTo(dst__, src__, status__, calibrationDataLength__, calibrationData__) \
537 CsrWifiSmeCalibrationDataGetCfm *msg__; \
538 CsrWifiSmeCalibrationDataGetCfmCreate(msg__, dst__, src__, status__, calibrationDataLength__, calibrationData__); \
539 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
542 #define CsrWifiSmeCalibrationDataGetCfmSend(dst__, status__, calibrationDataLength__, calibrationData__) \
543 CsrWifiSmeCalibrationDataGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, calibrationDataLength__, calibrationData__)
563 #define CsrWifiSmeCalibrationDataSetReqCreate(msg__, dst__, src__, calibrationDataLength__, calibrationData__) \
564 msg__ = kmalloc(sizeof(CsrWifiSmeCalibrationDataSetReq), GFP_KERNEL); \
565 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CALIBRATION_DATA_SET_REQ, dst__, src__); \
566 msg__->calibrationDataLength = (calibrationDataLength__); \
567 msg__->calibrationData = (calibrationData__);
569 #define CsrWifiSmeCalibrationDataSetReqSendTo(dst__, src__, calibrationDataLength__, calibrationData__) \
571 CsrWifiSmeCalibrationDataSetReq *msg__; \
572 CsrWifiSmeCalibrationDataSetReqCreate(msg__, dst__, src__, calibrationDataLength__, calibrationData__); \
573 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
576 #define CsrWifiSmeCalibrationDataSetReqSend(src__, calibrationDataLength__, calibrationData__) \
577 CsrWifiSmeCalibrationDataSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, calibrationDataLength__, calibrationData__)
592 #define CsrWifiSmeCalibrationDataSetCfmCreate(msg__, dst__, src__, status__) \
593 msg__ = kmalloc(sizeof(CsrWifiSmeCalibrationDataSetCfm), GFP_KERNEL); \
594 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CALIBRATION_DATA_SET_CFM, dst__, src__); \
595 msg__->status = (status__);
597 #define CsrWifiSmeCalibrationDataSetCfmSendTo(dst__, src__, status__) \
599 CsrWifiSmeCalibrationDataSetCfm *msg__; \
600 CsrWifiSmeCalibrationDataSetCfmCreate(msg__, dst__, src__, status__); \
601 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
604 #define CsrWifiSmeCalibrationDataSetCfmSend(dst__, status__) \
605 CsrWifiSmeCalibrationDataSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
621 #define CsrWifiSmeCcxConfigGetReqCreate(msg__, dst__, src__, interfaceTag__) \
622 msg__ = kmalloc(sizeof(CsrWifiSmeCcxConfigGetReq), GFP_KERNEL); \
623 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CCX_CONFIG_GET_REQ, dst__, src__); \
624 msg__->interfaceTag = (interfaceTag__);
626 #define CsrWifiSmeCcxConfigGetReqSendTo(dst__, src__, interfaceTag__) \
628 CsrWifiSmeCcxConfigGetReq *msg__; \
629 CsrWifiSmeCcxConfigGetReqCreate(msg__, dst__, src__, interfaceTag__); \
630 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
633 #define CsrWifiSmeCcxConfigGetReqSend(src__, interfaceTag__) \
634 CsrWifiSmeCcxConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
651 #define CsrWifiSmeCcxConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, ccxConfig__) \
652 msg__ = kmalloc(sizeof(CsrWifiSmeCcxConfigGetCfm), GFP_KERNEL); \
653 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CCX_CONFIG_GET_CFM, dst__, src__); \
654 msg__->interfaceTag = (interfaceTag__); \
655 msg__->status = (status__); \
656 msg__->ccxConfig = (ccxConfig__);
658 #define CsrWifiSmeCcxConfigGetCfmSendTo(dst__, src__, interfaceTag__, status__, ccxConfig__) \
660 CsrWifiSmeCcxConfigGetCfm *msg__; \
661 CsrWifiSmeCcxConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, ccxConfig__); \
662 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
665 #define CsrWifiSmeCcxConfigGetCfmSend(dst__, interfaceTag__, status__, ccxConfig__) \
666 CsrWifiSmeCcxConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, ccxConfig__)
683 #define CsrWifiSmeCcxConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, ccxConfig__) \
684 msg__ = kmalloc(sizeof(CsrWifiSmeCcxConfigSetReq), GFP_KERNEL); \
685 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CCX_CONFIG_SET_REQ, dst__, src__); \
686 msg__->interfaceTag = (interfaceTag__); \
687 msg__->ccxConfig = (ccxConfig__);
689 #define CsrWifiSmeCcxConfigSetReqSendTo(dst__, src__, interfaceTag__, ccxConfig__) \
691 CsrWifiSmeCcxConfigSetReq *msg__; \
692 CsrWifiSmeCcxConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, ccxConfig__); \
693 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
696 #define CsrWifiSmeCcxConfigSetReqSend(src__, interfaceTag__, ccxConfig__) \
697 CsrWifiSmeCcxConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, ccxConfig__)
713 #define CsrWifiSmeCcxConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
714 msg__ = kmalloc(sizeof(CsrWifiSmeCcxConfigSetCfm), GFP_KERNEL); \
715 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CCX_CONFIG_SET_CFM, dst__, src__); \
716 msg__->interfaceTag = (interfaceTag__); \
717 msg__->status = (status__);
719 #define CsrWifiSmeCcxConfigSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
721 CsrWifiSmeCcxConfigSetCfm *msg__; \
722 CsrWifiSmeCcxConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
723 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
726 #define CsrWifiSmeCcxConfigSetCfmSend(dst__, interfaceTag__, status__) \
727 CsrWifiSmeCcxConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
741 #define CsrWifiSmeCloakedSsidsGetReqCreate(msg__, dst__, src__) \
742 msg__ = kmalloc(sizeof(CsrWifiSmeCloakedSsidsGetReq), GFP_KERNEL); \
743 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CLOAKED_SSIDS_GET_REQ, dst__, src__);
745 #define CsrWifiSmeCloakedSsidsGetReqSendTo(dst__, src__) \
747 CsrWifiSmeCloakedSsidsGetReq *msg__; \
748 CsrWifiSmeCloakedSsidsGetReqCreate(msg__, dst__, src__); \
749 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
752 #define CsrWifiSmeCloakedSsidsGetReqSend(src__) \
753 CsrWifiSmeCloakedSsidsGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
770 #define CsrWifiSmeCloakedSsidsGetCfmCreate(msg__, dst__, src__, status__, cloakedSsids__) \
771 msg__ = kmalloc(sizeof(CsrWifiSmeCloakedSsidsGetCfm), GFP_KERNEL); \
772 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CLOAKED_SSIDS_GET_CFM, dst__, src__); \
773 msg__->status = (status__); \
774 msg__->cloakedSsids = (cloakedSsids__);
776 #define CsrWifiSmeCloakedSsidsGetCfmSendTo(dst__, src__, status__, cloakedSsids__) \
778 CsrWifiSmeCloakedSsidsGetCfm *msg__; \
779 CsrWifiSmeCloakedSsidsGetCfmCreate(msg__, dst__, src__, status__, cloakedSsids__); \
780 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
783 #define CsrWifiSmeCloakedSsidsGetCfmSend(dst__, status__, cloakedSsids__) \
784 CsrWifiSmeCloakedSsidsGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, cloakedSsids__)
804 #define CsrWifiSmeCloakedSsidsSetReqCreate(msg__, dst__, src__, cloakedSsids__) \
805 msg__ = kmalloc(sizeof(CsrWifiSmeCloakedSsidsSetReq), GFP_KERNEL); \
806 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CLOAKED_SSIDS_SET_REQ, dst__, src__); \
807 msg__->cloakedSsids = (cloakedSsids__);
809 #define CsrWifiSmeCloakedSsidsSetReqSendTo(dst__, src__, cloakedSsids__) \
811 CsrWifiSmeCloakedSsidsSetReq *msg__; \
812 CsrWifiSmeCloakedSsidsSetReqCreate(msg__, dst__, src__, cloakedSsids__); \
813 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
816 #define CsrWifiSmeCloakedSsidsSetReqSend(src__, cloakedSsids__) \
817 CsrWifiSmeCloakedSsidsSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, cloakedSsids__)
832 #define CsrWifiSmeCloakedSsidsSetCfmCreate(msg__, dst__, src__, status__) \
833 msg__ = kmalloc(sizeof(CsrWifiSmeCloakedSsidsSetCfm), GFP_KERNEL); \
834 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CLOAKED_SSIDS_SET_CFM, dst__, src__); \
835 msg__->status = (status__);
837 #define CsrWifiSmeCloakedSsidsSetCfmSendTo(dst__, src__, status__) \
839 CsrWifiSmeCloakedSsidsSetCfm *msg__; \
840 CsrWifiSmeCloakedSsidsSetCfmCreate(msg__, dst__, src__, status__); \
841 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
844 #define CsrWifiSmeCloakedSsidsSetCfmSend(dst__, status__) \
845 CsrWifiSmeCloakedSsidsSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
859 #define CsrWifiSmeCoexConfigGetReqCreate(msg__, dst__, src__) \
860 msg__ = kmalloc(sizeof(CsrWifiSmeCoexConfigGetReq), GFP_KERNEL); \
861 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_CONFIG_GET_REQ, dst__, src__);
863 #define CsrWifiSmeCoexConfigGetReqSendTo(dst__, src__) \
865 CsrWifiSmeCoexConfigGetReq *msg__; \
866 CsrWifiSmeCoexConfigGetReqCreate(msg__, dst__, src__); \
867 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
870 #define CsrWifiSmeCoexConfigGetReqSend(src__) \
871 CsrWifiSmeCoexConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
888 #define CsrWifiSmeCoexConfigGetCfmCreate(msg__, dst__, src__, status__, coexConfig__) \
889 msg__ = kmalloc(sizeof(CsrWifiSmeCoexConfigGetCfm), GFP_KERNEL); \
890 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_CONFIG_GET_CFM, dst__, src__); \
891 msg__->status = (status__); \
892 msg__->coexConfig = (coexConfig__);
894 #define CsrWifiSmeCoexConfigGetCfmSendTo(dst__, src__, status__, coexConfig__) \
896 CsrWifiSmeCoexConfigGetCfm *msg__; \
897 CsrWifiSmeCoexConfigGetCfmCreate(msg__, dst__, src__, status__, coexConfig__); \
898 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
901 #define CsrWifiSmeCoexConfigGetCfmSend(dst__, status__, coexConfig__) \
902 CsrWifiSmeCoexConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, coexConfig__)
917 #define CsrWifiSmeCoexConfigSetReqCreate(msg__, dst__, src__, coexConfig__) \
918 msg__ = kmalloc(sizeof(CsrWifiSmeCoexConfigSetReq), GFP_KERNEL); \
919 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_CONFIG_SET_REQ, dst__, src__); \
920 msg__->coexConfig = (coexConfig__);
922 #define CsrWifiSmeCoexConfigSetReqSendTo(dst__, src__, coexConfig__) \
924 CsrWifiSmeCoexConfigSetReq *msg__; \
925 CsrWifiSmeCoexConfigSetReqCreate(msg__, dst__, src__, coexConfig__); \
926 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
929 #define CsrWifiSmeCoexConfigSetReqSend(src__, coexConfig__) \
930 CsrWifiSmeCoexConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, coexConfig__)
945 #define CsrWifiSmeCoexConfigSetCfmCreate(msg__, dst__, src__, status__) \
946 msg__ = kmalloc(sizeof(CsrWifiSmeCoexConfigSetCfm), GFP_KERNEL); \
947 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_CONFIG_SET_CFM, dst__, src__); \
948 msg__->status = (status__);
950 #define CsrWifiSmeCoexConfigSetCfmSendTo(dst__, src__, status__) \
952 CsrWifiSmeCoexConfigSetCfm *msg__; \
953 CsrWifiSmeCoexConfigSetCfmCreate(msg__, dst__, src__, status__); \
954 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
957 #define CsrWifiSmeCoexConfigSetCfmSend(dst__, status__) \
958 CsrWifiSmeCoexConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
972 #define CsrWifiSmeCoexInfoGetReqCreate(msg__, dst__, src__) \
973 msg__ = kmalloc(sizeof(CsrWifiSmeCoexInfoGetReq), GFP_KERNEL); \
974 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_INFO_GET_REQ, dst__, src__);
976 #define CsrWifiSmeCoexInfoGetReqSendTo(dst__, src__) \
978 CsrWifiSmeCoexInfoGetReq *msg__; \
979 CsrWifiSmeCoexInfoGetReqCreate(msg__, dst__, src__); \
980 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
983 #define CsrWifiSmeCoexInfoGetReqSend(src__) \
984 CsrWifiSmeCoexInfoGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
1000 #define CsrWifiSmeCoexInfoGetCfmCreate(msg__, dst__, src__, status__, coexInfo__) \
1001 msg__ = kmalloc(sizeof(CsrWifiSmeCoexInfoGetCfm), GFP_KERNEL); \
1002 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_COEX_INFO_GET_CFM, dst__, src__); \
1003 msg__->status = (status__); \
1004 msg__->coexInfo = (coexInfo__);
1006 #define CsrWifiSmeCoexInfoGetCfmSendTo(dst__, src__, status__, coexInfo__) \
1008 CsrWifiSmeCoexInfoGetCfm *msg__; \
1009 CsrWifiSmeCoexInfoGetCfmCreate(msg__, dst__, src__, status__, coexInfo__); \
1010 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1013 #define CsrWifiSmeCoexInfoGetCfmSend(dst__, status__, coexInfo__) \
1014 CsrWifiSmeCoexInfoGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, coexInfo__)
1066 #define CsrWifiSmeConnectReqCreate(msg__, dst__, src__, interfaceTag__, connectionConfig__) \
1067 msg__ = kmalloc(sizeof(CsrWifiSmeConnectReq), GFP_KERNEL); \
1068 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECT_REQ, dst__, src__); \
1069 msg__->interfaceTag = (interfaceTag__); \
1070 msg__->connectionConfig = (connectionConfig__);
1072 #define CsrWifiSmeConnectReqSendTo(dst__, src__, interfaceTag__, connectionConfig__) \
1074 CsrWifiSmeConnectReq *msg__; \
1075 CsrWifiSmeConnectReqCreate(msg__, dst__, src__, interfaceTag__, connectionConfig__); \
1076 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1079 #define CsrWifiSmeConnectReqSend(src__, interfaceTag__, connectionConfig__) \
1080 CsrWifiSmeConnectReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, connectionConfig__)
1099 #define CsrWifiSmeConnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
1100 msg__ = kmalloc(sizeof(CsrWifiSmeConnectCfm), GFP_KERNEL); \
1101 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECT_CFM, dst__, src__); \
1102 msg__->interfaceTag = (interfaceTag__); \
1103 msg__->status = (status__);
1105 #define CsrWifiSmeConnectCfmSendTo(dst__, src__, interfaceTag__, status__) \
1107 CsrWifiSmeConnectCfm *msg__; \
1108 CsrWifiSmeConnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
1109 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1112 #define CsrWifiSmeConnectCfmSend(dst__, interfaceTag__, status__) \
1113 CsrWifiSmeConnectCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
1128 #define CsrWifiSmeConnectionConfigGetReqCreate(msg__, dst__, src__, interfaceTag__) \
1129 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionConfigGetReq), GFP_KERNEL); \
1130 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_CONFIG_GET_REQ, dst__, src__); \
1131 msg__->interfaceTag = (interfaceTag__);
1133 #define CsrWifiSmeConnectionConfigGetReqSendTo(dst__, src__, interfaceTag__) \
1135 CsrWifiSmeConnectionConfigGetReq *msg__; \
1136 CsrWifiSmeConnectionConfigGetReqCreate(msg__, dst__, src__, interfaceTag__); \
1137 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1140 #define CsrWifiSmeConnectionConfigGetReqSend(src__, interfaceTag__) \
1141 CsrWifiSmeConnectionConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1158 #define CsrWifiSmeConnectionConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionConfig__) \
1159 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionConfigGetCfm), GFP_KERNEL); \
1160 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_CONFIG_GET_CFM, dst__, src__); \
1161 msg__->interfaceTag = (interfaceTag__); \
1162 msg__->status = (status__); \
1163 msg__->connectionConfig = (connectionConfig__);
1165 #define CsrWifiSmeConnectionConfigGetCfmSendTo(dst__, src__, interfaceTag__, status__, connectionConfig__) \
1167 CsrWifiSmeConnectionConfigGetCfm *msg__; \
1168 CsrWifiSmeConnectionConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionConfig__); \
1169 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1172 #define CsrWifiSmeConnectionConfigGetCfmSend(dst__, interfaceTag__, status__, connectionConfig__) \
1173 CsrWifiSmeConnectionConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, connectionConfig__)
1188 #define CsrWifiSmeConnectionInfoGetReqCreate(msg__, dst__, src__, interfaceTag__) \
1189 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionInfoGetReq), GFP_KERNEL); \
1190 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_INFO_GET_REQ, dst__, src__); \
1191 msg__->interfaceTag = (interfaceTag__);
1193 #define CsrWifiSmeConnectionInfoGetReqSendTo(dst__, src__, interfaceTag__) \
1195 CsrWifiSmeConnectionInfoGetReq *msg__; \
1196 CsrWifiSmeConnectionInfoGetReqCreate(msg__, dst__, src__, interfaceTag__); \
1197 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1200 #define CsrWifiSmeConnectionInfoGetReqSend(src__, interfaceTag__) \
1201 CsrWifiSmeConnectionInfoGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1218 #define CsrWifiSmeConnectionInfoGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionInfo__) \
1219 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionInfoGetCfm), GFP_KERNEL); \
1220 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_INFO_GET_CFM, dst__, src__); \
1221 msg__->interfaceTag = (interfaceTag__); \
1222 msg__->status = (status__); \
1223 msg__->connectionInfo = (connectionInfo__);
1225 #define CsrWifiSmeConnectionInfoGetCfmSendTo(dst__, src__, interfaceTag__, status__, connectionInfo__) \
1227 CsrWifiSmeConnectionInfoGetCfm *msg__; \
1228 CsrWifiSmeConnectionInfoGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionInfo__); \
1229 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1232 #define CsrWifiSmeConnectionInfoGetCfmSend(dst__, interfaceTag__, status__, connectionInfo__) \
1233 CsrWifiSmeConnectionInfoGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, connectionInfo__)
1256 #define CsrWifiSmeConnectionQualityIndCreate(msg__, dst__, src__, interfaceTag__, linkQuality__) \
1257 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionQualityInd), GFP_KERNEL); \
1258 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_QUALITY_IND, dst__, src__); \
1259 msg__->interfaceTag = (interfaceTag__); \
1260 msg__->linkQuality = (linkQuality__);
1262 #define CsrWifiSmeConnectionQualityIndSendTo(dst__, src__, interfaceTag__, linkQuality__) \
1264 CsrWifiSmeConnectionQualityInd *msg__; \
1265 CsrWifiSmeConnectionQualityIndCreate(msg__, dst__, src__, interfaceTag__, linkQuality__); \
1266 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1269 #define CsrWifiSmeConnectionQualityIndSend(dst__, interfaceTag__, linkQuality__) \
1270 CsrWifiSmeConnectionQualityIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, linkQuality__)
1285 #define CsrWifiSmeConnectionStatsGetReqCreate(msg__, dst__, src__, interfaceTag__) \
1286 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionStatsGetReq), GFP_KERNEL); \
1287 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_STATS_GET_REQ, dst__, src__); \
1288 msg__->interfaceTag = (interfaceTag__);
1290 #define CsrWifiSmeConnectionStatsGetReqSendTo(dst__, src__, interfaceTag__) \
1292 CsrWifiSmeConnectionStatsGetReq *msg__; \
1293 CsrWifiSmeConnectionStatsGetReqCreate(msg__, dst__, src__, interfaceTag__); \
1294 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1297 #define CsrWifiSmeConnectionStatsGetReqSend(src__, interfaceTag__) \
1298 CsrWifiSmeConnectionStatsGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1315 #define CsrWifiSmeConnectionStatsGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionStats__) \
1316 msg__ = kmalloc(sizeof(CsrWifiSmeConnectionStatsGetCfm), GFP_KERNEL); \
1317 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CONNECTION_STATS_GET_CFM, dst__, src__); \
1318 msg__->interfaceTag = (interfaceTag__); \
1319 msg__->status = (status__); \
1320 msg__->connectionStats = (connectionStats__);
1322 #define CsrWifiSmeConnectionStatsGetCfmSendTo(dst__, src__, interfaceTag__, status__, connectionStats__) \
1324 CsrWifiSmeConnectionStatsGetCfm *msg__; \
1325 CsrWifiSmeConnectionStatsGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, connectionStats__); \
1326 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1329 #define CsrWifiSmeConnectionStatsGetCfmSend(dst__, interfaceTag__, status__, connectionStats__) \
1330 CsrWifiSmeConnectionStatsGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, connectionStats__)
1352 #define CsrWifiSmeCoreDumpIndCreate(msg__, dst__, src__, dataLength__, data__) \
1353 msg__ = kmalloc(sizeof(CsrWifiSmeCoreDumpInd), GFP_KERNEL); \
1354 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_CORE_DUMP_IND, dst__, src__); \
1355 msg__->dataLength = (dataLength__); \
1356 msg__->data = (data__);
1358 #define CsrWifiSmeCoreDumpIndSendTo(dst__, src__, dataLength__, data__) \
1360 CsrWifiSmeCoreDumpInd *msg__; \
1361 CsrWifiSmeCoreDumpIndCreate(msg__, dst__, src__, dataLength__, data__); \
1362 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1365 #define CsrWifiSmeCoreDumpIndSend(dst__, dataLength__, data__) \
1366 CsrWifiSmeCoreDumpIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, dataLength__, data__)
1380 #define CsrWifiSmeDeactivateReqCreate(msg__, dst__, src__) \
1381 msg__ = kmalloc(sizeof(CsrWifiSmeDeactivateReq), GFP_KERNEL); \
1382 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_DEACTIVATE_REQ, dst__, src__);
1384 #define CsrWifiSmeDeactivateReqSendTo(dst__, src__) \
1386 CsrWifiSmeDeactivateReq *msg__; \
1387 CsrWifiSmeDeactivateReqCreate(msg__, dst__, src__); \
1388 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1391 #define CsrWifiSmeDeactivateReqSend(src__) \
1392 CsrWifiSmeDeactivateReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
1409 #define CsrWifiSmeDeactivateCfmCreate(msg__, dst__, src__, status__) \
1410 msg__ = kmalloc(sizeof(CsrWifiSmeDeactivateCfm), GFP_KERNEL); \
1411 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_DEACTIVATE_CFM, dst__, src__); \
1412 msg__->status = (status__);
1414 #define CsrWifiSmeDeactivateCfmSendTo(dst__, src__, status__) \
1416 CsrWifiSmeDeactivateCfm *msg__; \
1417 CsrWifiSmeDeactivateCfmCreate(msg__, dst__, src__, status__); \
1418 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1421 #define CsrWifiSmeDeactivateCfmSend(dst__, status__) \
1422 CsrWifiSmeDeactivateCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
1438 #define CsrWifiSmeDisconnectReqCreate(msg__, dst__, src__, interfaceTag__) \
1439 msg__ = kmalloc(sizeof(CsrWifiSmeDisconnectReq), GFP_KERNEL); \
1440 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_DISCONNECT_REQ, dst__, src__); \
1441 msg__->interfaceTag = (interfaceTag__);
1443 #define CsrWifiSmeDisconnectReqSendTo(dst__, src__, interfaceTag__) \
1445 CsrWifiSmeDisconnectReq *msg__; \
1446 CsrWifiSmeDisconnectReqCreate(msg__, dst__, src__, interfaceTag__); \
1447 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1450 #define CsrWifiSmeDisconnectReqSend(src__, interfaceTag__) \
1451 CsrWifiSmeDisconnectReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1470 #define CsrWifiSmeDisconnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
1471 msg__ = kmalloc(sizeof(CsrWifiSmeDisconnectCfm), GFP_KERNEL); \
1472 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_DISCONNECT_CFM, dst__, src__); \
1473 msg__->interfaceTag = (interfaceTag__); \
1474 msg__->status = (status__);
1476 #define CsrWifiSmeDisconnectCfmSendTo(dst__, src__, interfaceTag__, status__) \
1478 CsrWifiSmeDisconnectCfm *msg__; \
1479 CsrWifiSmeDisconnectCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
1480 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1483 #define CsrWifiSmeDisconnectCfmSend(dst__, interfaceTag__, status__) \
1484 CsrWifiSmeDisconnectCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
1499 #define CsrWifiSmeErrorIndCreate(msg__, dst__, src__, errorMessage__) \
1500 msg__ = kmalloc(sizeof(CsrWifiSmeErrorInd), GFP_KERNEL); \
1501 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ERROR_IND, dst__, src__); \
1502 msg__->errorMessage = (errorMessage__);
1504 #define CsrWifiSmeErrorIndSendTo(dst__, src__, errorMessage__) \
1506 CsrWifiSmeErrorInd *msg__; \
1507 CsrWifiSmeErrorIndCreate(msg__, dst__, src__, errorMessage__); \
1508 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1511 #define CsrWifiSmeErrorIndSend(dst__, errorMessage__) \
1512 CsrWifiSmeErrorIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, errorMessage__)
1530 #define CsrWifiSmeEventMaskSetReqCreate(msg__, dst__, src__, indMask__) \
1531 msg__ = kmalloc(sizeof(CsrWifiSmeEventMaskSetReq), GFP_KERNEL); \
1532 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_EVENT_MASK_SET_REQ, dst__, src__); \
1533 msg__->indMask = (indMask__);
1535 #define CsrWifiSmeEventMaskSetReqSendTo(dst__, src__, indMask__) \
1537 CsrWifiSmeEventMaskSetReq *msg__; \
1538 CsrWifiSmeEventMaskSetReqCreate(msg__, dst__, src__, indMask__); \
1539 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1542 #define CsrWifiSmeEventMaskSetReqSend(src__, indMask__) \
1543 CsrWifiSmeEventMaskSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, indMask__)
1559 #define CsrWifiSmeEventMaskSetCfmCreate(msg__, dst__, src__, status__) \
1560 msg__ = kmalloc(sizeof(CsrWifiSmeEventMaskSetCfm), GFP_KERNEL); \
1561 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_EVENT_MASK_SET_CFM, dst__, src__); \
1562 msg__->status = (status__);
1564 #define CsrWifiSmeEventMaskSetCfmSendTo(dst__, src__, status__) \
1566 CsrWifiSmeEventMaskSetCfm *msg__; \
1567 CsrWifiSmeEventMaskSetCfmCreate(msg__, dst__, src__, status__); \
1568 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1571 #define CsrWifiSmeEventMaskSetCfmSend(dst__, status__) \
1572 CsrWifiSmeEventMaskSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
1587 #define CsrWifiSmeHostConfigGetReqCreate(msg__, dst__, src__, interfaceTag__) \
1588 msg__ = kmalloc(sizeof(CsrWifiSmeHostConfigGetReq), GFP_KERNEL); \
1589 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_HOST_CONFIG_GET_REQ, dst__, src__); \
1590 msg__->interfaceTag = (interfaceTag__);
1592 #define CsrWifiSmeHostConfigGetReqSendTo(dst__, src__, interfaceTag__) \
1594 CsrWifiSmeHostConfigGetReq *msg__; \
1595 CsrWifiSmeHostConfigGetReqCreate(msg__, dst__, src__, interfaceTag__); \
1596 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1599 #define CsrWifiSmeHostConfigGetReqSend(src__, interfaceTag__) \
1600 CsrWifiSmeHostConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1617 #define CsrWifiSmeHostConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, hostConfig__) \
1618 msg__ = kmalloc(sizeof(CsrWifiSmeHostConfigGetCfm), GFP_KERNEL); \
1619 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_HOST_CONFIG_GET_CFM, dst__, src__); \
1620 msg__->interfaceTag = (interfaceTag__); \
1621 msg__->status = (status__); \
1622 msg__->hostConfig = (hostConfig__);
1624 #define CsrWifiSmeHostConfigGetCfmSendTo(dst__, src__, interfaceTag__, status__, hostConfig__) \
1626 CsrWifiSmeHostConfigGetCfm *msg__; \
1627 CsrWifiSmeHostConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, hostConfig__); \
1628 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1631 #define CsrWifiSmeHostConfigGetCfmSend(dst__, interfaceTag__, status__, hostConfig__) \
1632 CsrWifiSmeHostConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, hostConfig__)
1650 #define CsrWifiSmeHostConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, hostConfig__) \
1651 msg__ = kmalloc(sizeof(CsrWifiSmeHostConfigSetReq), GFP_KERNEL); \
1652 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_HOST_CONFIG_SET_REQ, dst__, src__); \
1653 msg__->interfaceTag = (interfaceTag__); \
1654 msg__->hostConfig = (hostConfig__);
1656 #define CsrWifiSmeHostConfigSetReqSendTo(dst__, src__, interfaceTag__, hostConfig__) \
1658 CsrWifiSmeHostConfigSetReq *msg__; \
1659 CsrWifiSmeHostConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, hostConfig__); \
1660 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1663 #define CsrWifiSmeHostConfigSetReqSend(src__, interfaceTag__, hostConfig__) \
1664 CsrWifiSmeHostConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, hostConfig__)
1680 #define CsrWifiSmeHostConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
1681 msg__ = kmalloc(sizeof(CsrWifiSmeHostConfigSetCfm), GFP_KERNEL); \
1682 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_HOST_CONFIG_SET_CFM, dst__, src__); \
1683 msg__->interfaceTag = (interfaceTag__); \
1684 msg__->status = (status__);
1686 #define CsrWifiSmeHostConfigSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
1688 CsrWifiSmeHostConfigSetCfm *msg__; \
1689 CsrWifiSmeHostConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
1690 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1693 #define CsrWifiSmeHostConfigSetCfmSend(dst__, interfaceTag__, status__) \
1694 CsrWifiSmeHostConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
1711 #define CsrWifiSmeIbssStationIndCreate(msg__, dst__, src__, address__, isconnected__) \
1712 msg__ = kmalloc(sizeof(CsrWifiSmeIbssStationInd), GFP_KERNEL); \
1713 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_IBSS_STATION_IND, dst__, src__); \
1714 msg__->address = (address__); \
1715 msg__->isconnected = (isconnected__);
1717 #define CsrWifiSmeIbssStationIndSendTo(dst__, src__, address__, isconnected__) \
1719 CsrWifiSmeIbssStationInd *msg__; \
1720 CsrWifiSmeIbssStationIndCreate(msg__, dst__, src__, address__, isconnected__); \
1721 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1724 #define CsrWifiSmeIbssStationIndSend(dst__, address__, isconnected__) \
1725 CsrWifiSmeIbssStationIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, address__, isconnected__)
1741 #define CsrWifiSmeInfoIndCreate(msg__, dst__, src__, infoMessage__) \
1742 msg__ = kmalloc(sizeof(CsrWifiSmeInfoInd), GFP_KERNEL); \
1743 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_INFO_IND, dst__, src__); \
1744 msg__->infoMessage = (infoMessage__);
1746 #define CsrWifiSmeInfoIndSendTo(dst__, src__, infoMessage__) \
1748 CsrWifiSmeInfoInd *msg__; \
1749 CsrWifiSmeInfoIndCreate(msg__, dst__, src__, infoMessage__); \
1750 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1753 #define CsrWifiSmeInfoIndSend(dst__, infoMessage__) \
1754 CsrWifiSmeInfoIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, infoMessage__)
1769 #define CsrWifiSmeInterfaceCapabilityGetReqCreate(msg__, dst__, src__) \
1770 msg__ = kmalloc(sizeof(CsrWifiSmeInterfaceCapabilityGetReq), GFP_KERNEL); \
1771 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_REQ, dst__, src__);
1773 #define CsrWifiSmeInterfaceCapabilityGetReqSendTo(dst__, src__) \
1775 CsrWifiSmeInterfaceCapabilityGetReq *msg__; \
1776 CsrWifiSmeInterfaceCapabilityGetReqCreate(msg__, dst__, src__); \
1777 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1780 #define CsrWifiSmeInterfaceCapabilityGetReqSend(src__) \
1781 CsrWifiSmeInterfaceCapabilityGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
1805 #define CsrWifiSmeInterfaceCapabilityGetCfmCreate(msg__, dst__, src__, status__, numInterfaces__, capBitmap__) \
1806 msg__ = kmalloc(sizeof(CsrWifiSmeInterfaceCapabilityGetCfm), GFP_KERNEL); \
1807 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_INTERFACE_CAPABILITY_GET_CFM, dst__, src__); \
1808 msg__->status = (status__); \
1809 msg__->numInterfaces = (numInterfaces__); \
1810 memcpy(msg__->capBitmap, (capBitmap__), sizeof(u8) * 2);
1812 #define CsrWifiSmeInterfaceCapabilityGetCfmSendTo(dst__, src__, status__, numInterfaces__, capBitmap__) \
1814 CsrWifiSmeInterfaceCapabilityGetCfm *msg__; \
1815 CsrWifiSmeInterfaceCapabilityGetCfmCreate(msg__, dst__, src__, status__, numInterfaces__, capBitmap__); \
1816 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1819 #define CsrWifiSmeInterfaceCapabilityGetCfmSend(dst__, status__, numInterfaces__, capBitmap__) \
1820 CsrWifiSmeInterfaceCapabilityGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, numInterfaces__, capBitmap__)
1842 #define CsrWifiSmeKeyReqCreate(msg__, dst__, src__, interfaceTag__, action__, key__) \
1843 msg__ = kmalloc(sizeof(CsrWifiSmeKeyReq), GFP_KERNEL); \
1844 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_KEY_REQ, dst__, src__); \
1845 msg__->interfaceTag = (interfaceTag__); \
1846 msg__->action = (action__); \
1847 msg__->key = (key__);
1849 #define CsrWifiSmeKeyReqSendTo(dst__, src__, interfaceTag__, action__, key__) \
1851 CsrWifiSmeKeyReq *msg__; \
1852 CsrWifiSmeKeyReqCreate(msg__, dst__, src__, interfaceTag__, action__, key__); \
1853 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1856 #define CsrWifiSmeKeyReqSend(src__, interfaceTag__, action__, key__) \
1857 CsrWifiSmeKeyReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, action__, key__)
1877 #define CsrWifiSmeKeyCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, keyType__, peerMacAddress__) \
1878 msg__ = kmalloc(sizeof(CsrWifiSmeKeyCfm), GFP_KERNEL); \
1879 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_KEY_CFM, dst__, src__); \
1880 msg__->interfaceTag = (interfaceTag__); \
1881 msg__->status = (status__); \
1882 msg__->action = (action__); \
1883 msg__->keyType = (keyType__); \
1884 msg__->peerMacAddress = (peerMacAddress__);
1886 #define CsrWifiSmeKeyCfmSendTo(dst__, src__, interfaceTag__, status__, action__, keyType__, peerMacAddress__) \
1888 CsrWifiSmeKeyCfm *msg__; \
1889 CsrWifiSmeKeyCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, keyType__, peerMacAddress__); \
1890 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1893 #define CsrWifiSmeKeyCfmSend(dst__, interfaceTag__, status__, action__, keyType__, peerMacAddress__) \
1894 CsrWifiSmeKeyCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, action__, keyType__, peerMacAddress__)
1909 #define CsrWifiSmeLinkQualityGetReqCreate(msg__, dst__, src__, interfaceTag__) \
1910 msg__ = kmalloc(sizeof(CsrWifiSmeLinkQualityGetReq), GFP_KERNEL); \
1911 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_LINK_QUALITY_GET_REQ, dst__, src__); \
1912 msg__->interfaceTag = (interfaceTag__);
1914 #define CsrWifiSmeLinkQualityGetReqSendTo(dst__, src__, interfaceTag__) \
1916 CsrWifiSmeLinkQualityGetReq *msg__; \
1917 CsrWifiSmeLinkQualityGetReqCreate(msg__, dst__, src__, interfaceTag__); \
1918 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
1921 #define CsrWifiSmeLinkQualityGetReqSend(src__, interfaceTag__) \
1922 CsrWifiSmeLinkQualityGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
1939 #define CsrWifiSmeLinkQualityGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, linkQuality__) \
1940 msg__ = kmalloc(sizeof(CsrWifiSmeLinkQualityGetCfm), GFP_KERNEL); \
1941 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_LINK_QUALITY_GET_CFM, dst__, src__); \
1942 msg__->interfaceTag = (interfaceTag__); \
1943 msg__->status = (status__); \
1944 msg__->linkQuality = (linkQuality__);
1946 #define CsrWifiSmeLinkQualityGetCfmSendTo(dst__, src__, interfaceTag__, status__, linkQuality__) \
1948 CsrWifiSmeLinkQualityGetCfm *msg__; \
1949 CsrWifiSmeLinkQualityGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, linkQuality__); \
1950 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1953 #define CsrWifiSmeLinkQualityGetCfmSend(dst__, interfaceTag__, status__, linkQuality__) \
1954 CsrWifiSmeLinkQualityGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, linkQuality__)
1983 #define CsrWifiSmeMediaStatusIndCreate(msg__, dst__, src__, interfaceTag__, mediaStatus__, connectionInfo__, disassocReason__, deauthReason__) \
1984 msg__ = kmalloc(sizeof(CsrWifiSmeMediaStatusInd), GFP_KERNEL); \
1985 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MEDIA_STATUS_IND, dst__, src__); \
1986 msg__->interfaceTag = (interfaceTag__); \
1987 msg__->mediaStatus = (mediaStatus__); \
1988 msg__->connectionInfo = (connectionInfo__); \
1989 msg__->disassocReason = (disassocReason__); \
1990 msg__->deauthReason = (deauthReason__);
1992 #define CsrWifiSmeMediaStatusIndSendTo(dst__, src__, interfaceTag__, mediaStatus__, connectionInfo__, disassocReason__, deauthReason__) \
1994 CsrWifiSmeMediaStatusInd *msg__; \
1995 CsrWifiSmeMediaStatusIndCreate(msg__, dst__, src__, interfaceTag__, mediaStatus__, connectionInfo__, disassocReason__, deauthReason__); \
1996 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
1999 #define CsrWifiSmeMediaStatusIndSend(dst__, interfaceTag__, mediaStatus__, connectionInfo__, disassocReason__, deauthReason__) \
2000 CsrWifiSmeMediaStatusIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, mediaStatus__, connectionInfo__, disassocReason__, deauthReason__)
2014 #define CsrWifiSmeMibConfigGetReqCreate(msg__, dst__, src__) \
2015 msg__ = kmalloc(sizeof(CsrWifiSmeMibConfigGetReq), GFP_KERNEL); \
2016 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_CONFIG_GET_REQ, dst__, src__);
2018 #define CsrWifiSmeMibConfigGetReqSendTo(dst__, src__) \
2020 CsrWifiSmeMibConfigGetReq *msg__; \
2021 CsrWifiSmeMibConfigGetReqCreate(msg__, dst__, src__); \
2022 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2025 #define CsrWifiSmeMibConfigGetReqSend(src__) \
2026 CsrWifiSmeMibConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
2042 #define CsrWifiSmeMibConfigGetCfmCreate(msg__, dst__, src__, status__, mibConfig__) \
2043 msg__ = kmalloc(sizeof(CsrWifiSmeMibConfigGetCfm), GFP_KERNEL); \
2044 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_CONFIG_GET_CFM, dst__, src__); \
2045 msg__->status = (status__); \
2046 msg__->mibConfig = (mibConfig__);
2048 #define CsrWifiSmeMibConfigGetCfmSendTo(dst__, src__, status__, mibConfig__) \
2050 CsrWifiSmeMibConfigGetCfm *msg__; \
2051 CsrWifiSmeMibConfigGetCfmCreate(msg__, dst__, src__, status__, mibConfig__); \
2052 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2055 #define CsrWifiSmeMibConfigGetCfmSend(dst__, status__, mibConfig__) \
2056 CsrWifiSmeMibConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, mibConfig__)
2072 #define CsrWifiSmeMibConfigSetReqCreate(msg__, dst__, src__, mibConfig__) \
2073 msg__ = kmalloc(sizeof(CsrWifiSmeMibConfigSetReq), GFP_KERNEL); \
2074 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_CONFIG_SET_REQ, dst__, src__); \
2075 msg__->mibConfig = (mibConfig__);
2077 #define CsrWifiSmeMibConfigSetReqSendTo(dst__, src__, mibConfig__) \
2079 CsrWifiSmeMibConfigSetReq *msg__; \
2080 CsrWifiSmeMibConfigSetReqCreate(msg__, dst__, src__, mibConfig__); \
2081 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2084 #define CsrWifiSmeMibConfigSetReqSend(src__, mibConfig__) \
2085 CsrWifiSmeMibConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, mibConfig__)
2100 #define CsrWifiSmeMibConfigSetCfmCreate(msg__, dst__, src__, status__) \
2101 msg__ = kmalloc(sizeof(CsrWifiSmeMibConfigSetCfm), GFP_KERNEL); \
2102 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_CONFIG_SET_CFM, dst__, src__); \
2103 msg__->status = (status__);
2105 #define CsrWifiSmeMibConfigSetCfmSendTo(dst__, src__, status__) \
2107 CsrWifiSmeMibConfigSetCfm *msg__; \
2108 CsrWifiSmeMibConfigSetCfmCreate(msg__, dst__, src__, status__); \
2109 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2112 #define CsrWifiSmeMibConfigSetCfmSend(dst__, status__) \
2113 CsrWifiSmeMibConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
2131 #define CsrWifiSmeMibGetCfmCreate(msg__, dst__, src__, status__, mibAttributeLength__, mibAttribute__) \
2132 msg__ = kmalloc(sizeof(CsrWifiSmeMibGetCfm), GFP_KERNEL); \
2133 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_GET_CFM, dst__, src__); \
2134 msg__->status = (status__); \
2135 msg__->mibAttributeLength = (mibAttributeLength__); \
2136 msg__->mibAttribute = (mibAttribute__);
2138 #define CsrWifiSmeMibGetCfmSendTo(dst__, src__, status__, mibAttributeLength__, mibAttribute__) \
2140 CsrWifiSmeMibGetCfm *msg__; \
2141 CsrWifiSmeMibGetCfmCreate(msg__, dst__, src__, status__, mibAttributeLength__, mibAttribute__); \
2142 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2145 #define CsrWifiSmeMibGetCfmSend(dst__, status__, mibAttributeLength__, mibAttribute__) \
2146 CsrWifiSmeMibGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, mibAttributeLength__, mibAttribute__)
2164 #define CsrWifiSmeMibGetNextReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__) \
2165 msg__ = kmalloc(sizeof(CsrWifiSmeMibGetNextReq), GFP_KERNEL); \
2166 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_GET_NEXT_REQ, dst__, src__); \
2167 msg__->mibAttributeLength = (mibAttributeLength__); \
2168 msg__->mibAttribute = (mibAttribute__);
2170 #define CsrWifiSmeMibGetNextReqSendTo(dst__, src__, mibAttributeLength__, mibAttribute__) \
2172 CsrWifiSmeMibGetNextReq *msg__; \
2173 CsrWifiSmeMibGetNextReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__); \
2174 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2177 #define CsrWifiSmeMibGetNextReqSend(src__, mibAttributeLength__, mibAttribute__) \
2178 CsrWifiSmeMibGetNextReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, mibAttributeLength__, mibAttribute__)
2199 #define CsrWifiSmeMibGetNextCfmCreate(msg__, dst__, src__, status__, mibAttributeLength__, mibAttribute__) \
2200 msg__ = kmalloc(sizeof(CsrWifiSmeMibGetNextCfm), GFP_KERNEL); \
2201 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_GET_NEXT_CFM, dst__, src__); \
2202 msg__->status = (status__); \
2203 msg__->mibAttributeLength = (mibAttributeLength__); \
2204 msg__->mibAttribute = (mibAttribute__);
2206 #define CsrWifiSmeMibGetNextCfmSendTo(dst__, src__, status__, mibAttributeLength__, mibAttribute__) \
2208 CsrWifiSmeMibGetNextCfm *msg__; \
2209 CsrWifiSmeMibGetNextCfmCreate(msg__, dst__, src__, status__, mibAttributeLength__, mibAttribute__); \
2210 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2213 #define CsrWifiSmeMibGetNextCfmSend(dst__, status__, mibAttributeLength__, mibAttribute__) \
2214 CsrWifiSmeMibGetNextCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, mibAttributeLength__, mibAttribute__)
2232 #define CsrWifiSmeMibGetReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__) \
2233 msg__ = kmalloc(sizeof(CsrWifiSmeMibGetReq), GFP_KERNEL); \
2234 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_GET_REQ, dst__, src__); \
2235 msg__->mibAttributeLength = (mibAttributeLength__); \
2236 msg__->mibAttribute = (mibAttribute__);
2238 #define CsrWifiSmeMibGetReqSendTo(dst__, src__, mibAttributeLength__, mibAttribute__) \
2240 CsrWifiSmeMibGetReq *msg__; \
2241 CsrWifiSmeMibGetReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__); \
2242 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2245 #define CsrWifiSmeMibGetReqSend(src__, mibAttributeLength__, mibAttribute__) \
2246 CsrWifiSmeMibGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, mibAttributeLength__, mibAttribute__)
2272 #define CsrWifiSmeMibSetReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__) \
2273 msg__ = kmalloc(sizeof(CsrWifiSmeMibSetReq), GFP_KERNEL); \
2274 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_SET_REQ, dst__, src__); \
2275 msg__->mibAttributeLength = (mibAttributeLength__); \
2276 msg__->mibAttribute = (mibAttribute__);
2278 #define CsrWifiSmeMibSetReqSendTo(dst__, src__, mibAttributeLength__, mibAttribute__) \
2280 CsrWifiSmeMibSetReq *msg__; \
2281 CsrWifiSmeMibSetReqCreate(msg__, dst__, src__, mibAttributeLength__, mibAttribute__); \
2282 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2285 #define CsrWifiSmeMibSetReqSend(src__, mibAttributeLength__, mibAttribute__) \
2286 CsrWifiSmeMibSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, mibAttributeLength__, mibAttribute__)
2301 #define CsrWifiSmeMibSetCfmCreate(msg__, dst__, src__, status__) \
2302 msg__ = kmalloc(sizeof(CsrWifiSmeMibSetCfm), GFP_KERNEL); \
2303 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIB_SET_CFM, dst__, src__); \
2304 msg__->status = (status__);
2306 #define CsrWifiSmeMibSetCfmSendTo(dst__, src__, status__) \
2308 CsrWifiSmeMibSetCfm *msg__; \
2309 CsrWifiSmeMibSetCfmCreate(msg__, dst__, src__, status__); \
2310 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2313 #define CsrWifiSmeMibSetCfmSend(dst__, status__) \
2314 CsrWifiSmeMibSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
2336 #define CsrWifiSmeMicFailureIndCreate(msg__, dst__, src__, interfaceTag__, secondFailure__, count__, address__, keyType__) \
2337 msg__ = kmalloc(sizeof(CsrWifiSmeMicFailureInd), GFP_KERNEL); \
2338 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MIC_FAILURE_IND, dst__, src__); \
2339 msg__->interfaceTag = (interfaceTag__); \
2340 msg__->secondFailure = (secondFailure__); \
2341 msg__->count = (count__); \
2342 msg__->address = (address__); \
2343 msg__->keyType = (keyType__);
2345 #define CsrWifiSmeMicFailureIndSendTo(dst__, src__, interfaceTag__, secondFailure__, count__, address__, keyType__) \
2347 CsrWifiSmeMicFailureInd *msg__; \
2348 CsrWifiSmeMicFailureIndCreate(msg__, dst__, src__, interfaceTag__, secondFailure__, count__, address__, keyType__); \
2349 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2352 #define CsrWifiSmeMicFailureIndSend(dst__, interfaceTag__, secondFailure__, count__, address__, keyType__) \
2353 CsrWifiSmeMicFailureIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, secondFailure__, count__, address__, keyType__)
2378 #define CsrWifiSmeMulticastAddressReqCreate(msg__, dst__, src__, interfaceTag__, action__, setAddressesCount__, setAddresses__) \
2379 msg__ = kmalloc(sizeof(CsrWifiSmeMulticastAddressReq), GFP_KERNEL); \
2380 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MULTICAST_ADDRESS_REQ, dst__, src__); \
2381 msg__->interfaceTag = (interfaceTag__); \
2382 msg__->action = (action__); \
2383 msg__->setAddressesCount = (setAddressesCount__); \
2384 msg__->setAddresses = (setAddresses__);
2386 #define CsrWifiSmeMulticastAddressReqSendTo(dst__, src__, interfaceTag__, action__, setAddressesCount__, setAddresses__) \
2388 CsrWifiSmeMulticastAddressReq *msg__; \
2389 CsrWifiSmeMulticastAddressReqCreate(msg__, dst__, src__, interfaceTag__, action__, setAddressesCount__, setAddresses__); \
2390 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2393 #define CsrWifiSmeMulticastAddressReqSend(src__, interfaceTag__, action__, setAddressesCount__, setAddresses__) \
2394 CsrWifiSmeMulticastAddressReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, action__, setAddressesCount__, setAddresses__)
2417 #define CsrWifiSmeMulticastAddressCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getAddressesCount__, getAddresses__) \
2418 msg__ = kmalloc(sizeof(CsrWifiSmeMulticastAddressCfm), GFP_KERNEL); \
2419 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_MULTICAST_ADDRESS_CFM, dst__, src__); \
2420 msg__->interfaceTag = (interfaceTag__); \
2421 msg__->status = (status__); \
2422 msg__->action = (action__); \
2423 msg__->getAddressesCount = (getAddressesCount__); \
2424 msg__->getAddresses = (getAddresses__);
2426 #define CsrWifiSmeMulticastAddressCfmSendTo(dst__, src__, interfaceTag__, status__, action__, getAddressesCount__, getAddresses__) \
2428 CsrWifiSmeMulticastAddressCfm *msg__; \
2429 CsrWifiSmeMulticastAddressCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getAddressesCount__, getAddresses__); \
2430 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2433 #define CsrWifiSmeMulticastAddressCfmSend(dst__, interfaceTag__, status__, action__, getAddressesCount__, getAddresses__) \
2434 CsrWifiSmeMulticastAddressCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, action__, getAddressesCount__, getAddresses__)
2477 #define CsrWifiSmePacketFilterSetReqCreate(msg__, dst__, src__, interfaceTag__, filterLength__, filter__, mode__, arpFilterAddress__) \
2478 msg__ = kmalloc(sizeof(CsrWifiSmePacketFilterSetReq), GFP_KERNEL); \
2479 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PACKET_FILTER_SET_REQ, dst__, src__); \
2480 msg__->interfaceTag = (interfaceTag__); \
2481 msg__->filterLength = (filterLength__); \
2482 msg__->filter = (filter__); \
2483 msg__->mode = (mode__); \
2484 msg__->arpFilterAddress = (arpFilterAddress__);
2486 #define CsrWifiSmePacketFilterSetReqSendTo(dst__, src__, interfaceTag__, filterLength__, filter__, mode__, arpFilterAddress__) \
2488 CsrWifiSmePacketFilterSetReq *msg__; \
2489 CsrWifiSmePacketFilterSetReqCreate(msg__, dst__, src__, interfaceTag__, filterLength__, filter__, mode__, arpFilterAddress__); \
2490 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2493 #define CsrWifiSmePacketFilterSetReqSend(src__, interfaceTag__, filterLength__, filter__, mode__, arpFilterAddress__) \
2494 CsrWifiSmePacketFilterSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, filterLength__, filter__, mode__, arpFilterAddress__)
2510 #define CsrWifiSmePacketFilterSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
2511 msg__ = kmalloc(sizeof(CsrWifiSmePacketFilterSetCfm), GFP_KERNEL); \
2512 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PACKET_FILTER_SET_CFM, dst__, src__); \
2513 msg__->interfaceTag = (interfaceTag__); \
2514 msg__->status = (status__);
2516 #define CsrWifiSmePacketFilterSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
2518 CsrWifiSmePacketFilterSetCfm *msg__; \
2519 CsrWifiSmePacketFilterSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
2520 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2523 #define CsrWifiSmePacketFilterSetCfmSend(dst__, interfaceTag__, status__) \
2524 CsrWifiSmePacketFilterSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
2538 #define CsrWifiSmePermanentMacAddressGetReqCreate(msg__, dst__, src__) \
2539 msg__ = kmalloc(sizeof(CsrWifiSmePermanentMacAddressGetReq), GFP_KERNEL); \
2540 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PERMANENT_MAC_ADDRESS_GET_REQ, dst__, src__);
2542 #define CsrWifiSmePermanentMacAddressGetReqSendTo(dst__, src__) \
2544 CsrWifiSmePermanentMacAddressGetReq *msg__; \
2545 CsrWifiSmePermanentMacAddressGetReqCreate(msg__, dst__, src__); \
2546 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2549 #define CsrWifiSmePermanentMacAddressGetReqSend(src__) \
2550 CsrWifiSmePermanentMacAddressGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
2566 #define CsrWifiSmePermanentMacAddressGetCfmCreate(msg__, dst__, src__, status__, permanentMacAddress__) \
2567 msg__ = kmalloc(sizeof(CsrWifiSmePermanentMacAddressGetCfm), GFP_KERNEL); \
2568 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PERMANENT_MAC_ADDRESS_GET_CFM, dst__, src__); \
2569 msg__->status = (status__); \
2570 msg__->permanentMacAddress = (permanentMacAddress__);
2572 #define CsrWifiSmePermanentMacAddressGetCfmSendTo(dst__, src__, status__, permanentMacAddress__) \
2574 CsrWifiSmePermanentMacAddressGetCfm *msg__; \
2575 CsrWifiSmePermanentMacAddressGetCfmCreate(msg__, dst__, src__, status__, permanentMacAddress__); \
2576 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2579 #define CsrWifiSmePermanentMacAddressGetCfmSend(dst__, status__, permanentMacAddress__) \
2580 CsrWifiSmePermanentMacAddressGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, permanentMacAddress__)
2600 #define CsrWifiSmePmkidCandidateListIndCreate(msg__, dst__, src__, interfaceTag__, pmkidCandidatesCount__, pmkidCandidates__) \
2601 msg__ = kmalloc(sizeof(CsrWifiSmePmkidCandidateListInd), GFP_KERNEL); \
2602 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PMKID_CANDIDATE_LIST_IND, dst__, src__); \
2603 msg__->interfaceTag = (interfaceTag__); \
2604 msg__->pmkidCandidatesCount = (pmkidCandidatesCount__); \
2605 msg__->pmkidCandidates = (pmkidCandidates__);
2607 #define CsrWifiSmePmkidCandidateListIndSendTo(dst__, src__, interfaceTag__, pmkidCandidatesCount__, pmkidCandidates__) \
2609 CsrWifiSmePmkidCandidateListInd *msg__; \
2610 CsrWifiSmePmkidCandidateListIndCreate(msg__, dst__, src__, interfaceTag__, pmkidCandidatesCount__, pmkidCandidates__); \
2611 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2614 #define CsrWifiSmePmkidCandidateListIndSend(dst__, interfaceTag__, pmkidCandidatesCount__, pmkidCandidates__) \
2615 CsrWifiSmePmkidCandidateListIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, pmkidCandidatesCount__, pmkidCandidates__)
2642 #define CsrWifiSmePmkidReqCreate(msg__, dst__, src__, interfaceTag__, action__, setPmkidsCount__, setPmkids__) \
2643 msg__ = kmalloc(sizeof(CsrWifiSmePmkidReq), GFP_KERNEL); \
2644 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PMKID_REQ, dst__, src__); \
2645 msg__->interfaceTag = (interfaceTag__); \
2646 msg__->action = (action__); \
2647 msg__->setPmkidsCount = (setPmkidsCount__); \
2648 msg__->setPmkids = (setPmkids__);
2650 #define CsrWifiSmePmkidReqSendTo(dst__, src__, interfaceTag__, action__, setPmkidsCount__, setPmkids__) \
2652 CsrWifiSmePmkidReq *msg__; \
2653 CsrWifiSmePmkidReqCreate(msg__, dst__, src__, interfaceTag__, action__, setPmkidsCount__, setPmkids__); \
2654 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2657 #define CsrWifiSmePmkidReqSend(src__, interfaceTag__, action__, setPmkidsCount__, setPmkids__) \
2658 CsrWifiSmePmkidReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, action__, setPmkidsCount__, setPmkids__)
2681 #define CsrWifiSmePmkidCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getPmkidsCount__, getPmkids__) \
2682 msg__ = kmalloc(sizeof(CsrWifiSmePmkidCfm), GFP_KERNEL); \
2683 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_PMKID_CFM, dst__, src__); \
2684 msg__->interfaceTag = (interfaceTag__); \
2685 msg__->status = (status__); \
2686 msg__->action = (action__); \
2687 msg__->getPmkidsCount = (getPmkidsCount__); \
2688 msg__->getPmkids = (getPmkids__);
2690 #define CsrWifiSmePmkidCfmSendTo(dst__, src__, interfaceTag__, status__, action__, getPmkidsCount__, getPmkids__) \
2692 CsrWifiSmePmkidCfm *msg__; \
2693 CsrWifiSmePmkidCfmCreate(msg__, dst__, src__, interfaceTag__, status__, action__, getPmkidsCount__, getPmkids__); \
2694 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2697 #define CsrWifiSmePmkidCfmSend(dst__, interfaceTag__, status__, action__, getPmkidsCount__, getPmkids__) \
2698 CsrWifiSmePmkidCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, action__, getPmkidsCount__, getPmkids__)
2712 #define CsrWifiSmePowerConfigGetReqCreate(msg__, dst__, src__) \
2713 msg__ = kmalloc(sizeof(CsrWifiSmePowerConfigGetReq), GFP_KERNEL); \
2714 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_POWER_CONFIG_GET_REQ, dst__, src__);
2716 #define CsrWifiSmePowerConfigGetReqSendTo(dst__, src__) \
2718 CsrWifiSmePowerConfigGetReq *msg__; \
2719 CsrWifiSmePowerConfigGetReqCreate(msg__, dst__, src__); \
2720 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2723 #define CsrWifiSmePowerConfigGetReqSend(src__) \
2724 CsrWifiSmePowerConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
2741 #define CsrWifiSmePowerConfigGetCfmCreate(msg__, dst__, src__, status__, powerConfig__) \
2742 msg__ = kmalloc(sizeof(CsrWifiSmePowerConfigGetCfm), GFP_KERNEL); \
2743 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_POWER_CONFIG_GET_CFM, dst__, src__); \
2744 msg__->status = (status__); \
2745 msg__->powerConfig = (powerConfig__);
2747 #define CsrWifiSmePowerConfigGetCfmSendTo(dst__, src__, status__, powerConfig__) \
2749 CsrWifiSmePowerConfigGetCfm *msg__; \
2750 CsrWifiSmePowerConfigGetCfmCreate(msg__, dst__, src__, status__, powerConfig__); \
2751 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2754 #define CsrWifiSmePowerConfigGetCfmSend(dst__, status__, powerConfig__) \
2755 CsrWifiSmePowerConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, powerConfig__)
2770 #define CsrWifiSmePowerConfigSetReqCreate(msg__, dst__, src__, powerConfig__) \
2771 msg__ = kmalloc(sizeof(CsrWifiSmePowerConfigSetReq), GFP_KERNEL); \
2772 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_POWER_CONFIG_SET_REQ, dst__, src__); \
2773 msg__->powerConfig = (powerConfig__);
2775 #define CsrWifiSmePowerConfigSetReqSendTo(dst__, src__, powerConfig__) \
2777 CsrWifiSmePowerConfigSetReq *msg__; \
2778 CsrWifiSmePowerConfigSetReqCreate(msg__, dst__, src__, powerConfig__); \
2779 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2782 #define CsrWifiSmePowerConfigSetReqSend(src__, powerConfig__) \
2783 CsrWifiSmePowerConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, powerConfig__)
2798 #define CsrWifiSmePowerConfigSetCfmCreate(msg__, dst__, src__, status__) \
2799 msg__ = kmalloc(sizeof(CsrWifiSmePowerConfigSetCfm), GFP_KERNEL); \
2800 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_POWER_CONFIG_SET_CFM, dst__, src__); \
2801 msg__->status = (status__);
2803 #define CsrWifiSmePowerConfigSetCfmSendTo(dst__, src__, status__) \
2805 CsrWifiSmePowerConfigSetCfm *msg__; \
2806 CsrWifiSmePowerConfigSetCfmCreate(msg__, dst__, src__, status__); \
2807 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2810 #define CsrWifiSmePowerConfigSetCfmSend(dst__, status__) \
2811 CsrWifiSmePowerConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
2825 #define CsrWifiSmeRegulatoryDomainInfoGetReqCreate(msg__, dst__, src__) \
2826 msg__ = kmalloc(sizeof(CsrWifiSmeRegulatoryDomainInfoGetReq), GFP_KERNEL); \
2827 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_REGULATORY_DOMAIN_INFO_GET_REQ, dst__, src__);
2829 #define CsrWifiSmeRegulatoryDomainInfoGetReqSendTo(dst__, src__) \
2831 CsrWifiSmeRegulatoryDomainInfoGetReq *msg__; \
2832 CsrWifiSmeRegulatoryDomainInfoGetReqCreate(msg__, dst__, src__); \
2833 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2836 #define CsrWifiSmeRegulatoryDomainInfoGetReqSend(src__) \
2837 CsrWifiSmeRegulatoryDomainInfoGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
2854 #define CsrWifiSmeRegulatoryDomainInfoGetCfmCreate(msg__, dst__, src__, status__, regDomInfo__) \
2855 msg__ = kmalloc(sizeof(CsrWifiSmeRegulatoryDomainInfoGetCfm), GFP_KERNEL); \
2856 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_REGULATORY_DOMAIN_INFO_GET_CFM, dst__, src__); \
2857 msg__->status = (status__); \
2858 msg__->regDomInfo = (regDomInfo__);
2860 #define CsrWifiSmeRegulatoryDomainInfoGetCfmSendTo(dst__, src__, status__, regDomInfo__) \
2862 CsrWifiSmeRegulatoryDomainInfoGetCfm *msg__; \
2863 CsrWifiSmeRegulatoryDomainInfoGetCfmCreate(msg__, dst__, src__, status__, regDomInfo__); \
2864 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2867 #define CsrWifiSmeRegulatoryDomainInfoGetCfmSend(dst__, status__, regDomInfo__) \
2868 CsrWifiSmeRegulatoryDomainInfoGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, regDomInfo__)
2887 #define CsrWifiSmeRoamCompleteIndCreate(msg__, dst__, src__, interfaceTag__, status__) \
2888 msg__ = kmalloc(sizeof(CsrWifiSmeRoamCompleteInd), GFP_KERNEL); \
2889 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAM_COMPLETE_IND, dst__, src__); \
2890 msg__->interfaceTag = (interfaceTag__); \
2891 msg__->status = (status__);
2893 #define CsrWifiSmeRoamCompleteIndSendTo(dst__, src__, interfaceTag__, status__) \
2895 CsrWifiSmeRoamCompleteInd *msg__; \
2896 CsrWifiSmeRoamCompleteIndCreate(msg__, dst__, src__, interfaceTag__, status__); \
2897 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2900 #define CsrWifiSmeRoamCompleteIndSend(dst__, interfaceTag__, status__) \
2901 CsrWifiSmeRoamCompleteIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
2936 #define CsrWifiSmeRoamStartIndCreate(msg__, dst__, src__, interfaceTag__, roamReason__, reason80211__) \
2937 msg__ = kmalloc(sizeof(CsrWifiSmeRoamStartInd), GFP_KERNEL); \
2938 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAM_START_IND, dst__, src__); \
2939 msg__->interfaceTag = (interfaceTag__); \
2940 msg__->roamReason = (roamReason__); \
2941 msg__->reason80211 = (reason80211__);
2943 #define CsrWifiSmeRoamStartIndSendTo(dst__, src__, interfaceTag__, roamReason__, reason80211__) \
2945 CsrWifiSmeRoamStartInd *msg__; \
2946 CsrWifiSmeRoamStartIndCreate(msg__, dst__, src__, interfaceTag__, roamReason__, reason80211__); \
2947 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
2950 #define CsrWifiSmeRoamStartIndSend(dst__, interfaceTag__, roamReason__, reason80211__) \
2951 CsrWifiSmeRoamStartIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, roamReason__, reason80211__)
2966 #define CsrWifiSmeRoamingConfigGetReqCreate(msg__, dst__, src__, interfaceTag__) \
2967 msg__ = kmalloc(sizeof(CsrWifiSmeRoamingConfigGetReq), GFP_KERNEL); \
2968 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAMING_CONFIG_GET_REQ, dst__, src__); \
2969 msg__->interfaceTag = (interfaceTag__);
2971 #define CsrWifiSmeRoamingConfigGetReqSendTo(dst__, src__, interfaceTag__) \
2973 CsrWifiSmeRoamingConfigGetReq *msg__; \
2974 CsrWifiSmeRoamingConfigGetReqCreate(msg__, dst__, src__, interfaceTag__); \
2975 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
2978 #define CsrWifiSmeRoamingConfigGetReqSend(src__, interfaceTag__) \
2979 CsrWifiSmeRoamingConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
2996 #define CsrWifiSmeRoamingConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, roamingConfig__) \
2997 msg__ = kmalloc(sizeof(CsrWifiSmeRoamingConfigGetCfm), GFP_KERNEL); \
2998 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAMING_CONFIG_GET_CFM, dst__, src__); \
2999 msg__->interfaceTag = (interfaceTag__); \
3000 msg__->status = (status__); \
3001 msg__->roamingConfig = (roamingConfig__);
3003 #define CsrWifiSmeRoamingConfigGetCfmSendTo(dst__, src__, interfaceTag__, status__, roamingConfig__) \
3005 CsrWifiSmeRoamingConfigGetCfm *msg__; \
3006 CsrWifiSmeRoamingConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, roamingConfig__); \
3007 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3010 #define CsrWifiSmeRoamingConfigGetCfmSend(dst__, interfaceTag__, status__, roamingConfig__) \
3011 CsrWifiSmeRoamingConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, roamingConfig__)
3027 #define CsrWifiSmeRoamingConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, roamingConfig__) \
3028 msg__ = kmalloc(sizeof(CsrWifiSmeRoamingConfigSetReq), GFP_KERNEL); \
3029 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAMING_CONFIG_SET_REQ, dst__, src__); \
3030 msg__->interfaceTag = (interfaceTag__); \
3031 msg__->roamingConfig = (roamingConfig__);
3033 #define CsrWifiSmeRoamingConfigSetReqSendTo(dst__, src__, interfaceTag__, roamingConfig__) \
3035 CsrWifiSmeRoamingConfigSetReq *msg__; \
3036 CsrWifiSmeRoamingConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, roamingConfig__); \
3037 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3040 #define CsrWifiSmeRoamingConfigSetReqSend(src__, interfaceTag__, roamingConfig__) \
3041 CsrWifiSmeRoamingConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, roamingConfig__)
3057 #define CsrWifiSmeRoamingConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
3058 msg__ = kmalloc(sizeof(CsrWifiSmeRoamingConfigSetCfm), GFP_KERNEL); \
3059 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_ROAMING_CONFIG_SET_CFM, dst__, src__); \
3060 msg__->interfaceTag = (interfaceTag__); \
3061 msg__->status = (status__);
3063 #define CsrWifiSmeRoamingConfigSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
3065 CsrWifiSmeRoamingConfigSetCfm *msg__; \
3066 CsrWifiSmeRoamingConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
3067 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3070 #define CsrWifiSmeRoamingConfigSetCfmSend(dst__, interfaceTag__, status__) \
3071 CsrWifiSmeRoamingConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
3085 #define CsrWifiSmeScanConfigGetReqCreate(msg__, dst__, src__) \
3086 msg__ = kmalloc(sizeof(CsrWifiSmeScanConfigGetReq), GFP_KERNEL); \
3087 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_CONFIG_GET_REQ, dst__, src__);
3089 #define CsrWifiSmeScanConfigGetReqSendTo(dst__, src__) \
3091 CsrWifiSmeScanConfigGetReq *msg__; \
3092 CsrWifiSmeScanConfigGetReqCreate(msg__, dst__, src__); \
3093 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3096 #define CsrWifiSmeScanConfigGetReqSend(src__) \
3097 CsrWifiSmeScanConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3114 #define CsrWifiSmeScanConfigGetCfmCreate(msg__, dst__, src__, status__, scanConfig__) \
3115 msg__ = kmalloc(sizeof(CsrWifiSmeScanConfigGetCfm), GFP_KERNEL); \
3116 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_CONFIG_GET_CFM, dst__, src__); \
3117 msg__->status = (status__); \
3118 msg__->scanConfig = (scanConfig__);
3120 #define CsrWifiSmeScanConfigGetCfmSendTo(dst__, src__, status__, scanConfig__) \
3122 CsrWifiSmeScanConfigGetCfm *msg__; \
3123 CsrWifiSmeScanConfigGetCfmCreate(msg__, dst__, src__, status__, scanConfig__); \
3124 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3127 #define CsrWifiSmeScanConfigGetCfmSend(dst__, status__, scanConfig__) \
3128 CsrWifiSmeScanConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, scanConfig__)
3154 #define CsrWifiSmeScanConfigSetReqCreate(msg__, dst__, src__, scanConfig__) \
3155 msg__ = kmalloc(sizeof(CsrWifiSmeScanConfigSetReq), GFP_KERNEL); \
3156 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_CONFIG_SET_REQ, dst__, src__); \
3157 msg__->scanConfig = (scanConfig__);
3159 #define CsrWifiSmeScanConfigSetReqSendTo(dst__, src__, scanConfig__) \
3161 CsrWifiSmeScanConfigSetReq *msg__; \
3162 CsrWifiSmeScanConfigSetReqCreate(msg__, dst__, src__, scanConfig__); \
3163 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3166 #define CsrWifiSmeScanConfigSetReqSend(src__, scanConfig__) \
3167 CsrWifiSmeScanConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, scanConfig__)
3182 #define CsrWifiSmeScanConfigSetCfmCreate(msg__, dst__, src__, status__) \
3183 msg__ = kmalloc(sizeof(CsrWifiSmeScanConfigSetCfm), GFP_KERNEL); \
3184 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_CONFIG_SET_CFM, dst__, src__); \
3185 msg__->status = (status__);
3187 #define CsrWifiSmeScanConfigSetCfmSendTo(dst__, src__, status__) \
3189 CsrWifiSmeScanConfigSetCfm *msg__; \
3190 CsrWifiSmeScanConfigSetCfmCreate(msg__, dst__, src__, status__); \
3191 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3194 #define CsrWifiSmeScanConfigSetCfmSend(dst__, status__) \
3195 CsrWifiSmeScanConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
3237 #define CsrWifiSmeScanFullReqCreate(msg__, dst__, src__, ssidCount__, ssid__, bssid__, forceScan__, bssType__, scanType__, channelListCount__, channelList__, probeIeLength__, probeIe__) \
3238 msg__ = kmalloc(sizeof(CsrWifiSmeScanFullReq), GFP_KERNEL); \
3239 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_FULL_REQ, dst__, src__); \
3240 msg__->ssidCount = (ssidCount__); \
3241 msg__->ssid = (ssid__); \
3242 msg__->bssid = (bssid__); \
3243 msg__->forceScan = (forceScan__); \
3244 msg__->bssType = (bssType__); \
3245 msg__->scanType = (scanType__); \
3246 msg__->channelListCount = (channelListCount__); \
3247 msg__->channelList = (channelList__); \
3248 msg__->probeIeLength = (probeIeLength__); \
3249 msg__->probeIe = (probeIe__);
3251 #define CsrWifiSmeScanFullReqSendTo(dst__, src__, ssidCount__, ssid__, bssid__, forceScan__, bssType__, scanType__, channelListCount__, channelList__, probeIeLength__, probeIe__) \
3253 CsrWifiSmeScanFullReq *msg__; \
3254 CsrWifiSmeScanFullReqCreate(msg__, dst__, src__, ssidCount__, ssid__, bssid__, forceScan__, bssType__, scanType__, channelListCount__, channelList__, probeIeLength__, probeIe__); \
3255 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3258 #define CsrWifiSmeScanFullReqSend(src__, ssidCount__, ssid__, bssid__, forceScan__, bssType__, scanType__, channelListCount__, channelList__, probeIeLength__, probeIe__) \
3259 CsrWifiSmeScanFullReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, ssidCount__, ssid__, bssid__, forceScan__, bssType__, scanType__, channelListCount__, channelList__, probeIeLength__, probeIe__)
3275 #define CsrWifiSmeScanFullCfmCreate(msg__, dst__, src__, status__) \
3276 msg__ = kmalloc(sizeof(CsrWifiSmeScanFullCfm), GFP_KERNEL); \
3277 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_FULL_CFM, dst__, src__); \
3278 msg__->status = (status__);
3280 #define CsrWifiSmeScanFullCfmSendTo(dst__, src__, status__) \
3282 CsrWifiSmeScanFullCfm *msg__; \
3283 CsrWifiSmeScanFullCfmCreate(msg__, dst__, src__, status__); \
3284 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3287 #define CsrWifiSmeScanFullCfmSend(dst__, status__) \
3288 CsrWifiSmeScanFullCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
3304 #define CsrWifiSmeScanResultIndCreate(msg__, dst__, src__, result__) \
3305 msg__ = kmalloc(sizeof(CsrWifiSmeScanResultInd), GFP_KERNEL); \
3306 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_RESULT_IND, dst__, src__); \
3307 msg__->result = (result__);
3309 #define CsrWifiSmeScanResultIndSendTo(dst__, src__, result__) \
3311 CsrWifiSmeScanResultInd *msg__; \
3312 CsrWifiSmeScanResultIndCreate(msg__, dst__, src__, result__); \
3313 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3316 #define CsrWifiSmeScanResultIndSend(dst__, result__) \
3317 CsrWifiSmeScanResultIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, result__)
3340 #define CsrWifiSmeScanResultsFlushReqCreate(msg__, dst__, src__) \
3341 msg__ = kmalloc(sizeof(CsrWifiSmeScanResultsFlushReq), GFP_KERNEL); \
3342 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_RESULTS_FLUSH_REQ, dst__, src__);
3344 #define CsrWifiSmeScanResultsFlushReqSendTo(dst__, src__) \
3346 CsrWifiSmeScanResultsFlushReq *msg__; \
3347 CsrWifiSmeScanResultsFlushReqCreate(msg__, dst__, src__); \
3348 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3351 #define CsrWifiSmeScanResultsFlushReqSend(src__) \
3352 CsrWifiSmeScanResultsFlushReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3367 #define CsrWifiSmeScanResultsFlushCfmCreate(msg__, dst__, src__, status__) \
3368 msg__ = kmalloc(sizeof(CsrWifiSmeScanResultsFlushCfm), GFP_KERNEL); \
3369 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_RESULTS_FLUSH_CFM, dst__, src__); \
3370 msg__->status = (status__);
3372 #define CsrWifiSmeScanResultsFlushCfmSendTo(dst__, src__, status__) \
3374 CsrWifiSmeScanResultsFlushCfm *msg__; \
3375 CsrWifiSmeScanResultsFlushCfmCreate(msg__, dst__, src__, status__); \
3376 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3379 #define CsrWifiSmeScanResultsFlushCfmSend(dst__, status__) \
3380 CsrWifiSmeScanResultsFlushCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
3396 #define CsrWifiSmeScanResultsGetReqCreate(msg__, dst__, src__) \
3397 msg__ = kmalloc(sizeof(CsrWifiSmeScanResultsGetReq), GFP_KERNEL); \
3398 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_RESULTS_GET_REQ, dst__, src__);
3400 #define CsrWifiSmeScanResultsGetReqSendTo(dst__, src__) \
3402 CsrWifiSmeScanResultsGetReq *msg__; \
3403 CsrWifiSmeScanResultsGetReqCreate(msg__, dst__, src__); \
3404 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3407 #define CsrWifiSmeScanResultsGetReqSend(src__) \
3408 CsrWifiSmeScanResultsGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3426 #define CsrWifiSmeScanResultsGetCfmCreate(msg__, dst__, src__, status__, scanResultsCount__, scanResults__) \
3427 msg__ = kmalloc(sizeof(CsrWifiSmeScanResultsGetCfm), GFP_KERNEL); \
3428 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SCAN_RESULTS_GET_CFM, dst__, src__); \
3429 msg__->status = (status__); \
3430 msg__->scanResultsCount = (scanResultsCount__); \
3431 msg__->scanResults = (scanResults__);
3433 #define CsrWifiSmeScanResultsGetCfmSendTo(dst__, src__, status__, scanResultsCount__, scanResults__) \
3435 CsrWifiSmeScanResultsGetCfm *msg__; \
3436 CsrWifiSmeScanResultsGetCfmCreate(msg__, dst__, src__, status__, scanResultsCount__, scanResults__); \
3437 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3440 #define CsrWifiSmeScanResultsGetCfmSend(dst__, status__, scanResultsCount__, scanResults__) \
3441 CsrWifiSmeScanResultsGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, scanResultsCount__, scanResults__)
3460 #define CsrWifiSmeSetReqCreate(msg__, dst__, src__, dataLength__, data__) \
3461 msg__ = kmalloc(sizeof(CsrWifiSmeSetReq), GFP_KERNEL); \
3462 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SET_REQ, dst__, src__); \
3463 msg__->dataLength = (dataLength__); \
3464 msg__->data = (data__);
3466 #define CsrWifiSmeSetReqSendTo(dst__, src__, dataLength__, data__) \
3468 CsrWifiSmeSetReq *msg__; \
3469 CsrWifiSmeSetReqCreate(msg__, dst__, src__, dataLength__, data__); \
3470 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3473 #define CsrWifiSmeSetReqSend(src__, dataLength__, data__) \
3474 CsrWifiSmeSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, dataLength__, data__)
3488 #define CsrWifiSmeSmeCommonConfigGetReqCreate(msg__, dst__, src__) \
3489 msg__ = kmalloc(sizeof(CsrWifiSmeSmeCommonConfigGetReq), GFP_KERNEL); \
3490 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_COMMON_CONFIG_GET_REQ, dst__, src__);
3492 #define CsrWifiSmeSmeCommonConfigGetReqSendTo(dst__, src__) \
3494 CsrWifiSmeSmeCommonConfigGetReq *msg__; \
3495 CsrWifiSmeSmeCommonConfigGetReqCreate(msg__, dst__, src__); \
3496 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3499 #define CsrWifiSmeSmeCommonConfigGetReqSend(src__) \
3500 CsrWifiSmeSmeCommonConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3516 #define CsrWifiSmeSmeCommonConfigGetCfmCreate(msg__, dst__, src__, status__, deviceConfig__) \
3517 msg__ = kmalloc(sizeof(CsrWifiSmeSmeCommonConfigGetCfm), GFP_KERNEL); \
3518 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_COMMON_CONFIG_GET_CFM, dst__, src__); \
3519 msg__->status = (status__); \
3520 msg__->deviceConfig = (deviceConfig__);
3522 #define CsrWifiSmeSmeCommonConfigGetCfmSendTo(dst__, src__, status__, deviceConfig__) \
3524 CsrWifiSmeSmeCommonConfigGetCfm *msg__; \
3525 CsrWifiSmeSmeCommonConfigGetCfmCreate(msg__, dst__, src__, status__, deviceConfig__); \
3526 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3529 #define CsrWifiSmeSmeCommonConfigGetCfmSend(dst__, status__, deviceConfig__) \
3530 CsrWifiSmeSmeCommonConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, deviceConfig__)
3545 #define CsrWifiSmeSmeCommonConfigSetReqCreate(msg__, dst__, src__, deviceConfig__) \
3546 msg__ = kmalloc(sizeof(CsrWifiSmeSmeCommonConfigSetReq), GFP_KERNEL); \
3547 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_COMMON_CONFIG_SET_REQ, dst__, src__); \
3548 msg__->deviceConfig = (deviceConfig__);
3550 #define CsrWifiSmeSmeCommonConfigSetReqSendTo(dst__, src__, deviceConfig__) \
3552 CsrWifiSmeSmeCommonConfigSetReq *msg__; \
3553 CsrWifiSmeSmeCommonConfigSetReqCreate(msg__, dst__, src__, deviceConfig__); \
3554 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3557 #define CsrWifiSmeSmeCommonConfigSetReqSend(src__, deviceConfig__) \
3558 CsrWifiSmeSmeCommonConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, deviceConfig__)
3573 #define CsrWifiSmeSmeCommonConfigSetCfmCreate(msg__, dst__, src__, status__) \
3574 msg__ = kmalloc(sizeof(CsrWifiSmeSmeCommonConfigSetCfm), GFP_KERNEL); \
3575 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_COMMON_CONFIG_SET_CFM, dst__, src__); \
3576 msg__->status = (status__);
3578 #define CsrWifiSmeSmeCommonConfigSetCfmSendTo(dst__, src__, status__) \
3580 CsrWifiSmeSmeCommonConfigSetCfm *msg__; \
3581 CsrWifiSmeSmeCommonConfigSetCfmCreate(msg__, dst__, src__, status__); \
3582 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3585 #define CsrWifiSmeSmeCommonConfigSetCfmSend(dst__, status__) \
3586 CsrWifiSmeSmeCommonConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
3601 #define CsrWifiSmeSmeStaConfigGetReqCreate(msg__, dst__, src__, interfaceTag__) \
3602 msg__ = kmalloc(sizeof(CsrWifiSmeSmeStaConfigGetReq), GFP_KERNEL); \
3603 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_STA_CONFIG_GET_REQ, dst__, src__); \
3604 msg__->interfaceTag = (interfaceTag__);
3606 #define CsrWifiSmeSmeStaConfigGetReqSendTo(dst__, src__, interfaceTag__) \
3608 CsrWifiSmeSmeStaConfigGetReq *msg__; \
3609 CsrWifiSmeSmeStaConfigGetReqCreate(msg__, dst__, src__, interfaceTag__); \
3610 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3613 #define CsrWifiSmeSmeStaConfigGetReqSend(src__, interfaceTag__) \
3614 CsrWifiSmeSmeStaConfigGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__)
3631 #define CsrWifiSmeSmeStaConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, smeConfig__) \
3632 msg__ = kmalloc(sizeof(CsrWifiSmeSmeStaConfigGetCfm), GFP_KERNEL); \
3633 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_STA_CONFIG_GET_CFM, dst__, src__); \
3634 msg__->interfaceTag = (interfaceTag__); \
3635 msg__->status = (status__); \
3636 msg__->smeConfig = (smeConfig__);
3638 #define CsrWifiSmeSmeStaConfigGetCfmSendTo(dst__, src__, interfaceTag__, status__, smeConfig__) \
3640 CsrWifiSmeSmeStaConfigGetCfm *msg__; \
3641 CsrWifiSmeSmeStaConfigGetCfmCreate(msg__, dst__, src__, interfaceTag__, status__, smeConfig__); \
3642 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3645 #define CsrWifiSmeSmeStaConfigGetCfmSend(dst__, interfaceTag__, status__, smeConfig__) \
3646 CsrWifiSmeSmeStaConfigGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, smeConfig__)
3662 #define CsrWifiSmeSmeStaConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, smeConfig__) \
3663 msg__ = kmalloc(sizeof(CsrWifiSmeSmeStaConfigSetReq), GFP_KERNEL); \
3664 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_STA_CONFIG_SET_REQ, dst__, src__); \
3665 msg__->interfaceTag = (interfaceTag__); \
3666 msg__->smeConfig = (smeConfig__);
3668 #define CsrWifiSmeSmeStaConfigSetReqSendTo(dst__, src__, interfaceTag__, smeConfig__) \
3670 CsrWifiSmeSmeStaConfigSetReq *msg__; \
3671 CsrWifiSmeSmeStaConfigSetReqCreate(msg__, dst__, src__, interfaceTag__, smeConfig__); \
3672 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3675 #define CsrWifiSmeSmeStaConfigSetReqSend(src__, interfaceTag__, smeConfig__) \
3676 CsrWifiSmeSmeStaConfigSetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, smeConfig__)
3692 #define CsrWifiSmeSmeStaConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__) \
3693 msg__ = kmalloc(sizeof(CsrWifiSmeSmeStaConfigSetCfm), GFP_KERNEL); \
3694 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_SME_STA_CONFIG_SET_CFM, dst__, src__); \
3695 msg__->interfaceTag = (interfaceTag__); \
3696 msg__->status = (status__);
3698 #define CsrWifiSmeSmeStaConfigSetCfmSendTo(dst__, src__, interfaceTag__, status__) \
3700 CsrWifiSmeSmeStaConfigSetCfm *msg__; \
3701 CsrWifiSmeSmeStaConfigSetCfmCreate(msg__, dst__, src__, interfaceTag__, status__); \
3702 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3705 #define CsrWifiSmeSmeStaConfigSetCfmSend(dst__, interfaceTag__, status__) \
3706 CsrWifiSmeSmeStaConfigSetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__)
3721 #define CsrWifiSmeStationMacAddressGetReqCreate(msg__, dst__, src__) \
3722 msg__ = kmalloc(sizeof(CsrWifiSmeStationMacAddressGetReq), GFP_KERNEL); \
3723 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_REQ, dst__, src__);
3725 #define CsrWifiSmeStationMacAddressGetReqSendTo(dst__, src__) \
3727 CsrWifiSmeStationMacAddressGetReq *msg__; \
3728 CsrWifiSmeStationMacAddressGetReqCreate(msg__, dst__, src__); \
3729 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3732 #define CsrWifiSmeStationMacAddressGetReqSend(src__) \
3733 CsrWifiSmeStationMacAddressGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3749 #define CsrWifiSmeStationMacAddressGetCfmCreate(msg__, dst__, src__, status__, stationMacAddress__) \
3750 msg__ = kmalloc(sizeof(CsrWifiSmeStationMacAddressGetCfm), GFP_KERNEL); \
3751 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_STATION_MAC_ADDRESS_GET_CFM, dst__, src__); \
3752 msg__->status = (status__); \
3753 memcpy(msg__->stationMacAddress, (stationMacAddress__), sizeof(CsrWifiMacAddress) * 2);
3755 #define CsrWifiSmeStationMacAddressGetCfmSendTo(dst__, src__, status__, stationMacAddress__) \
3757 CsrWifiSmeStationMacAddressGetCfm *msg__; \
3758 CsrWifiSmeStationMacAddressGetCfmCreate(msg__, dst__, src__, status__, stationMacAddress__); \
3759 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3762 #define CsrWifiSmeStationMacAddressGetCfmSend(dst__, status__, stationMacAddress__) \
3763 CsrWifiSmeStationMacAddressGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, stationMacAddress__)
3807 #define CsrWifiSmeTspecReqCreate(msg__, dst__, src__, interfaceTag__, action__, transactionId__, strict__, ctrlMask__, tspecLength__, tspec__, tclasLength__, tclas__) \
3808 msg__ = kmalloc(sizeof(CsrWifiSmeTspecReq), GFP_KERNEL); \
3809 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_TSPEC_REQ, dst__, src__); \
3810 msg__->interfaceTag = (interfaceTag__); \
3811 msg__->action = (action__); \
3812 msg__->transactionId = (transactionId__); \
3813 msg__->strict = (strict__); \
3814 msg__->ctrlMask = (ctrlMask__); \
3815 msg__->tspecLength = (tspecLength__); \
3816 msg__->tspec = (tspec__); \
3817 msg__->tclasLength = (tclasLength__); \
3818 msg__->tclas = (tclas__);
3820 #define CsrWifiSmeTspecReqSendTo(dst__, src__, interfaceTag__, action__, transactionId__, strict__, ctrlMask__, tspecLength__, tspec__, tclasLength__, tclas__) \
3822 CsrWifiSmeTspecReq *msg__; \
3823 CsrWifiSmeTspecReqCreate(msg__, dst__, src__, interfaceTag__, action__, transactionId__, strict__, ctrlMask__, tspecLength__, tspec__, tclasLength__, tclas__); \
3824 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3827 #define CsrWifiSmeTspecReqSend(src__, interfaceTag__, action__, transactionId__, strict__, ctrlMask__, tspecLength__, tspec__, tclasLength__, tclas__) \
3828 CsrWifiSmeTspecReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, interfaceTag__, action__, transactionId__, strict__, ctrlMask__, tspecLength__, tspec__, tclasLength__, tclas__)
3850 #define CsrWifiSmeTspecIndCreate(msg__, dst__, src__, interfaceTag__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3851 msg__ = kmalloc(sizeof(CsrWifiSmeTspecInd), GFP_KERNEL); \
3852 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_TSPEC_IND, dst__, src__); \
3853 msg__->interfaceTag = (interfaceTag__); \
3854 msg__->transactionId = (transactionId__); \
3855 msg__->tspecResultCode = (tspecResultCode__); \
3856 msg__->tspecLength = (tspecLength__); \
3857 msg__->tspec = (tspec__);
3859 #define CsrWifiSmeTspecIndSendTo(dst__, src__, interfaceTag__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3861 CsrWifiSmeTspecInd *msg__; \
3862 CsrWifiSmeTspecIndCreate(msg__, dst__, src__, interfaceTag__, transactionId__, tspecResultCode__, tspecLength__, tspec__); \
3863 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3866 #define CsrWifiSmeTspecIndSend(dst__, interfaceTag__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3867 CsrWifiSmeTspecIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, transactionId__, tspecResultCode__, tspecLength__, tspec__)
3889 #define CsrWifiSmeTspecCfmCreate(msg__, dst__, src__, interfaceTag__, status__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3890 msg__ = kmalloc(sizeof(CsrWifiSmeTspecCfm), GFP_KERNEL); \
3891 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_TSPEC_CFM, dst__, src__); \
3892 msg__->interfaceTag = (interfaceTag__); \
3893 msg__->status = (status__); \
3894 msg__->transactionId = (transactionId__); \
3895 msg__->tspecResultCode = (tspecResultCode__); \
3896 msg__->tspecLength = (tspecLength__); \
3897 msg__->tspec = (tspec__);
3899 #define CsrWifiSmeTspecCfmSendTo(dst__, src__, interfaceTag__, status__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3901 CsrWifiSmeTspecCfm *msg__; \
3902 CsrWifiSmeTspecCfmCreate(msg__, dst__, src__, interfaceTag__, status__, transactionId__, tspecResultCode__, tspecLength__, tspec__); \
3903 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3906 #define CsrWifiSmeTspecCfmSend(dst__, interfaceTag__, status__, transactionId__, tspecResultCode__, tspecLength__, tspec__) \
3907 CsrWifiSmeTspecCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, interfaceTag__, status__, transactionId__, tspecResultCode__, tspecLength__, tspec__)
3921 #define CsrWifiSmeVersionsGetReqCreate(msg__, dst__, src__) \
3922 msg__ = kmalloc(sizeof(CsrWifiSmeVersionsGetReq), GFP_KERNEL); \
3923 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_VERSIONS_GET_REQ, dst__, src__);
3925 #define CsrWifiSmeVersionsGetReqSendTo(dst__, src__) \
3927 CsrWifiSmeVersionsGetReq *msg__; \
3928 CsrWifiSmeVersionsGetReqCreate(msg__, dst__, src__); \
3929 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
3932 #define CsrWifiSmeVersionsGetReqSend(src__) \
3933 CsrWifiSmeVersionsGetReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
3949 #define CsrWifiSmeVersionsGetCfmCreate(msg__, dst__, src__, status__, versions__) \
3950 msg__ = kmalloc(sizeof(CsrWifiSmeVersionsGetCfm), GFP_KERNEL); \
3951 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_VERSIONS_GET_CFM, dst__, src__); \
3952 msg__->status = (status__); \
3953 msg__->versions = (versions__);
3955 #define CsrWifiSmeVersionsGetCfmSendTo(dst__, src__, status__, versions__) \
3957 CsrWifiSmeVersionsGetCfm *msg__; \
3958 CsrWifiSmeVersionsGetCfmCreate(msg__, dst__, src__, status__, versions__); \
3959 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
3962 #define CsrWifiSmeVersionsGetCfmSend(dst__, status__, versions__) \
3963 CsrWifiSmeVersionsGetCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__, versions__)
4006 #define CsrWifiSmeWifiFlightmodeReqCreate(msg__, dst__, src__, address__, mibFilesCount__, mibFiles__) \
4007 msg__ = kmalloc(sizeof(CsrWifiSmeWifiFlightmodeReq), GFP_KERNEL); \
4008 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_FLIGHTMODE_REQ, dst__, src__); \
4009 msg__->address = (address__); \
4010 msg__->mibFilesCount = (mibFilesCount__); \
4011 msg__->mibFiles = (mibFiles__);
4013 #define CsrWifiSmeWifiFlightmodeReqSendTo(dst__, src__, address__, mibFilesCount__, mibFiles__) \
4015 CsrWifiSmeWifiFlightmodeReq *msg__; \
4016 CsrWifiSmeWifiFlightmodeReqCreate(msg__, dst__, src__, address__, mibFilesCount__, mibFiles__); \
4017 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
4020 #define CsrWifiSmeWifiFlightmodeReqSend(src__, address__, mibFilesCount__, mibFiles__) \
4021 CsrWifiSmeWifiFlightmodeReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, address__, mibFilesCount__, mibFiles__)
4039 #define CsrWifiSmeWifiFlightmodeCfmCreate(msg__, dst__, src__, status__) \
4040 msg__ = kmalloc(sizeof(CsrWifiSmeWifiFlightmodeCfm), GFP_KERNEL); \
4041 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_FLIGHTMODE_CFM, dst__, src__); \
4042 msg__->status = (status__);
4044 #define CsrWifiSmeWifiFlightmodeCfmSendTo(dst__, src__, status__) \
4046 CsrWifiSmeWifiFlightmodeCfm *msg__; \
4047 CsrWifiSmeWifiFlightmodeCfmCreate(msg__, dst__, src__, status__); \
4048 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4051 #define CsrWifiSmeWifiFlightmodeCfmSend(dst__, status__) \
4052 CsrWifiSmeWifiFlightmodeCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
4067 #define CsrWifiSmeWifiOffReqCreate(msg__, dst__, src__) \
4068 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOffReq), GFP_KERNEL); \
4069 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_OFF_REQ, dst__, src__);
4071 #define CsrWifiSmeWifiOffReqSendTo(dst__, src__) \
4073 CsrWifiSmeWifiOffReq *msg__; \
4074 CsrWifiSmeWifiOffReqCreate(msg__, dst__, src__); \
4075 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
4078 #define CsrWifiSmeWifiOffReqSend(src__) \
4079 CsrWifiSmeWifiOffReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__)
4095 #define CsrWifiSmeWifiOffIndCreate(msg__, dst__, src__, reason__) \
4096 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOffInd), GFP_KERNEL); \
4097 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_OFF_IND, dst__, src__); \
4098 msg__->reason = (reason__);
4100 #define CsrWifiSmeWifiOffIndSendTo(dst__, src__, reason__) \
4102 CsrWifiSmeWifiOffInd *msg__; \
4103 CsrWifiSmeWifiOffIndCreate(msg__, dst__, src__, reason__); \
4104 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4107 #define CsrWifiSmeWifiOffIndSend(dst__, reason__) \
4108 CsrWifiSmeWifiOffIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, reason__)
4127 #define CsrWifiSmeWifiOffCfmCreate(msg__, dst__, src__, status__) \
4128 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOffCfm), GFP_KERNEL); \
4129 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_OFF_CFM, dst__, src__); \
4130 msg__->status = (status__);
4132 #define CsrWifiSmeWifiOffCfmSendTo(dst__, src__, status__) \
4134 CsrWifiSmeWifiOffCfm *msg__; \
4135 CsrWifiSmeWifiOffCfmCreate(msg__, dst__, src__, status__); \
4136 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4139 #define CsrWifiSmeWifiOffCfmSend(dst__, status__) \
4140 CsrWifiSmeWifiOffCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
4176 #define CsrWifiSmeWifiOnReqCreate(msg__, dst__, src__, address__, mibFilesCount__, mibFiles__) \
4177 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOnReq), GFP_KERNEL); \
4178 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_ON_REQ, dst__, src__); \
4179 msg__->address = (address__); \
4180 msg__->mibFilesCount = (mibFilesCount__); \
4181 msg__->mibFiles = (mibFiles__);
4183 #define CsrWifiSmeWifiOnReqSendTo(dst__, src__, address__, mibFilesCount__, mibFiles__) \
4185 CsrWifiSmeWifiOnReq *msg__; \
4186 CsrWifiSmeWifiOnReqCreate(msg__, dst__, src__, address__, mibFilesCount__, mibFiles__); \
4187 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
4190 #define CsrWifiSmeWifiOnReqSend(src__, address__, mibFilesCount__, mibFiles__) \
4191 CsrWifiSmeWifiOnReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, address__, mibFilesCount__, mibFiles__)
4207 #define CsrWifiSmeWifiOnIndCreate(msg__, dst__, src__, address__) \
4208 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOnInd), GFP_KERNEL); \
4209 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_ON_IND, dst__, src__); \
4210 msg__->address = (address__);
4212 #define CsrWifiSmeWifiOnIndSendTo(dst__, src__, address__) \
4214 CsrWifiSmeWifiOnInd *msg__; \
4215 CsrWifiSmeWifiOnIndCreate(msg__, dst__, src__, address__); \
4216 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4219 #define CsrWifiSmeWifiOnIndSend(dst__, address__) \
4220 CsrWifiSmeWifiOnIndSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, address__)
4236 #define CsrWifiSmeWifiOnCfmCreate(msg__, dst__, src__, status__) \
4237 msg__ = kmalloc(sizeof(CsrWifiSmeWifiOnCfm), GFP_KERNEL); \
4238 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WIFI_ON_CFM, dst__, src__); \
4239 msg__->status = (status__);
4241 #define CsrWifiSmeWifiOnCfmSendTo(dst__, src__, status__) \
4243 CsrWifiSmeWifiOnCfm *msg__; \
4244 CsrWifiSmeWifiOnCfmCreate(msg__, dst__, src__, status__); \
4245 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4248 #define CsrWifiSmeWifiOnCfmSend(dst__, status__) \
4249 CsrWifiSmeWifiOnCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)
4265 #define CsrWifiSmeWpsConfigurationReqCreate(msg__, dst__, src__, wpsConfig__) \
4266 msg__ = kmalloc(sizeof(CsrWifiSmeWpsConfigurationReq), GFP_KERNEL); \
4267 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WPS_CONFIGURATION_REQ, dst__, src__); \
4268 msg__->wpsConfig = (wpsConfig__);
4270 #define CsrWifiSmeWpsConfigurationReqSendTo(dst__, src__, wpsConfig__) \
4272 CsrWifiSmeWpsConfigurationReq *msg__; \
4273 CsrWifiSmeWpsConfigurationReqCreate(msg__, dst__, src__, wpsConfig__); \
4274 CsrMsgTransport(dst__, CSR_WIFI_SME_PRIM, msg__); \
4277 #define CsrWifiSmeWpsConfigurationReqSend(src__, wpsConfig__) \
4278 CsrWifiSmeWpsConfigurationReqSendTo(CSR_WIFI_SME_LIB_DESTINATION_QUEUE, src__, wpsConfig__)
4293 #define CsrWifiSmeWpsConfigurationCfmCreate(msg__, dst__, src__, status__) \
4294 msg__ = kmalloc(sizeof(CsrWifiSmeWpsConfigurationCfm), GFP_KERNEL); \
4295 CsrWifiFsmEventInit(&msg__->common, CSR_WIFI_SME_PRIM, CSR_WIFI_SME_WPS_CONFIGURATION_CFM, dst__, src__); \
4296 msg__->status = (status__);
4298 #define CsrWifiSmeWpsConfigurationCfmSendTo(dst__, src__, status__) \
4300 CsrWifiSmeWpsConfigurationCfm *msg__; \
4301 CsrWifiSmeWpsConfigurationCfmCreate(msg__, dst__, src__, status__); \
4302 CsrSchedMessagePut(dst__, CSR_WIFI_SME_PRIM, msg__); \
4305 #define CsrWifiSmeWpsConfigurationCfmSend(dst__, status__) \
4306 CsrWifiSmeWpsConfigurationCfmSendTo(dst__, CSR_WIFI_SME_IFACEQUEUE, status__)