Lines Matching refs:nanCommand
85 NanCommand *nanCommand = NULL; in nan_register_handler() local
88 nanCommand = NanCommand::instance(wifiHandle); in nan_register_handler()
89 if (nanCommand == NULL) { in nan_register_handler()
94 ret = nanCommand->setCallbackHandler(handlers); in nan_register_handler()
111 NanCommand *nanCommand = NULL; in nan_enable_request() local
122 nanCommand = new NanCommand(wifiHandle, in nan_enable_request()
128 if (nanCommand == NULL) { in nan_enable_request()
133 ret = nanCommand->create(); in nan_enable_request()
138 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_enable_request()
142 ret = nanCommand->putNanEnable(id, msg); in nan_enable_request()
148 ret = nanCommand->requestEvent(); in nan_enable_request()
160 delete nanCommand; in nan_enable_request()
169 NanCommand *nanCommand = NULL; in nan_disable_request() local
180 nanCommand = new NanCommand(wifiHandle, in nan_disable_request()
186 if (nanCommand == NULL) { in nan_disable_request()
191 ret = nanCommand->create(); in nan_disable_request()
196 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_disable_request()
200 ret = nanCommand->putNanDisable(id); in nan_disable_request()
206 ret = nanCommand->requestEvent(); in nan_disable_request()
218 delete nanCommand; in nan_disable_request()
228 NanCommand *nanCommand = NULL; in nan_publish_request() local
238 nanCommand = new NanCommand(wifiHandle, in nan_publish_request()
244 if (nanCommand == NULL) { in nan_publish_request()
249 ret = nanCommand->create(); in nan_publish_request()
254 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_publish_request()
258 ret = nanCommand->putNanPublish(id, msg); in nan_publish_request()
264 ret = nanCommand->requestEvent(); in nan_publish_request()
269 delete nanCommand; in nan_publish_request()
279 NanCommand *nanCommand = NULL; in nan_publish_cancel_request() local
289 nanCommand = new NanCommand(wifiHandle, in nan_publish_cancel_request()
295 if (nanCommand == NULL) { in nan_publish_cancel_request()
300 ret = nanCommand->create(); in nan_publish_cancel_request()
305 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_publish_cancel_request()
309 ret = nanCommand->putNanPublishCancel(id, msg); in nan_publish_cancel_request()
315 ret = nanCommand->requestEvent(); in nan_publish_cancel_request()
320 delete nanCommand; in nan_publish_cancel_request()
330 NanCommand *nanCommand = NULL; in nan_subscribe_request() local
340 nanCommand = new NanCommand(wifiHandle, in nan_subscribe_request()
346 if (nanCommand == NULL) { in nan_subscribe_request()
351 ret = nanCommand->create(); in nan_subscribe_request()
356 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_subscribe_request()
360 ret = nanCommand->putNanSubscribe(id, msg); in nan_subscribe_request()
366 ret = nanCommand->requestEvent(); in nan_subscribe_request()
371 delete nanCommand; in nan_subscribe_request()
381 NanCommand *nanCommand = NULL; in nan_subscribe_cancel_request() local
392 nanCommand = new NanCommand(wifiHandle, in nan_subscribe_cancel_request()
398 if (nanCommand == NULL) { in nan_subscribe_cancel_request()
403 ret = nanCommand->create(); in nan_subscribe_cancel_request()
408 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_subscribe_cancel_request()
412 ret = nanCommand->putNanSubscribeCancel(id, msg); in nan_subscribe_cancel_request()
418 ret = nanCommand->requestEvent(); in nan_subscribe_cancel_request()
431 delete nanCommand; in nan_subscribe_cancel_request()
441 NanCommand *nanCommand = NULL; in nan_transmit_followup_request() local
451 nanCommand = new NanCommand(wifiHandle, in nan_transmit_followup_request()
457 if (nanCommand == NULL) { in nan_transmit_followup_request()
462 ret = nanCommand->create(); in nan_transmit_followup_request()
467 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_transmit_followup_request()
471 ret = nanCommand->putNanTransmitFollowup(id, msg); in nan_transmit_followup_request()
477 ret = nanCommand->requestEvent(); in nan_transmit_followup_request()
482 delete nanCommand; in nan_transmit_followup_request()
492 NanCommand *nanCommand = NULL; in nan_stats_request() local
502 nanCommand = new NanCommand(wifiHandle, in nan_stats_request()
508 if (nanCommand == NULL) { in nan_stats_request()
513 ret = nanCommand->create(); in nan_stats_request()
518 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_stats_request()
522 ret = nanCommand->putNanStats(id, msg); in nan_stats_request()
528 ret = nanCommand->requestEvent(); in nan_stats_request()
533 delete nanCommand; in nan_stats_request()
543 NanCommand *nanCommand = NULL; in nan_config_request() local
553 nanCommand = new NanCommand(wifiHandle, in nan_config_request()
559 if (nanCommand == NULL) { in nan_config_request()
564 ret = nanCommand->create(); in nan_config_request()
569 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_config_request()
573 ret = nanCommand->putNanConfig(id, msg); in nan_config_request()
579 ret = nanCommand->requestEvent(); in nan_config_request()
584 delete nanCommand; in nan_config_request()
594 NanCommand *nanCommand = NULL; in nan_tca_request() local
604 nanCommand = new NanCommand(wifiHandle, in nan_tca_request()
610 if (nanCommand == NULL) { in nan_tca_request()
615 ret = nanCommand->create(); in nan_tca_request()
620 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_tca_request()
624 ret = nanCommand->putNanTCA(id, msg); in nan_tca_request()
630 ret = nanCommand->requestEvent(); in nan_tca_request()
635 delete nanCommand; in nan_tca_request()
648 NanCommand *nanCommand = NULL; in nan_beacon_sdf_payload_request() local
658 nanCommand = new NanCommand(wifiHandle, in nan_beacon_sdf_payload_request()
664 if (nanCommand == NULL) { in nan_beacon_sdf_payload_request()
669 ret = nanCommand->create(); in nan_beacon_sdf_payload_request()
674 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_beacon_sdf_payload_request()
678 ret = nanCommand->putNanBeaconSdfPayload(id, msg); in nan_beacon_sdf_payload_request()
684 ret = nanCommand->requestEvent(); in nan_beacon_sdf_payload_request()
689 delete nanCommand; in nan_beacon_sdf_payload_request()
698 NanCommand *nanCommand = NULL; in nan_get_sta_parameter() local
701 nanCommand = NanCommand::instance(wifiHandle); in nan_get_sta_parameter()
702 if (nanCommand == NULL) { in nan_get_sta_parameter()
707 ret = nanCommand->getNanStaParameter(iface, msg); in nan_get_sta_parameter()
722 NanCommand *nanCommand = NULL; in nan_get_capabilities() local
732 nanCommand = new NanCommand(wifiHandle, in nan_get_capabilities()
738 if (nanCommand == NULL) { in nan_get_capabilities()
743 ret = nanCommand->create(); in nan_get_capabilities()
748 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_get_capabilities()
752 ret = nanCommand->putNanCapabilities(id); in nan_get_capabilities()
758 ret = nanCommand->requestEvent(); in nan_get_capabilities()
763 delete nanCommand; in nan_get_capabilities()
774 NanCommand *nanCommand = NULL; in nan_debug_command_config() local
790 nanCommand = new NanCommand(wifiHandle, in nan_debug_command_config()
796 if (nanCommand == NULL) { in nan_debug_command_config()
801 ret = nanCommand->create(); in nan_debug_command_config()
806 ret = nanCommand->set_iface_id(ifaceInfo->name); in nan_debug_command_config()
810 ret = nanCommand->putNanDebugCommand(debug, debug_msg_length); in nan_debug_command_config()
816 ret = nanCommand->requestEvent(); in nan_debug_command_config()
821 delete nanCommand; in nan_debug_command_config()
826 NanCommand **nanCommand) in nan_initialize_vendor_cmd() argument
832 if (nanCommand == NULL) { in nan_initialize_vendor_cmd()
837 *nanCommand = new NanCommand(wifiHandle, in nan_initialize_vendor_cmd()
841 if (*nanCommand == NULL) { in nan_initialize_vendor_cmd()
847 ret = (*nanCommand)->create(); in nan_initialize_vendor_cmd()
851 ret = (*nanCommand)->set_iface_id(ifaceInfo->name); in nan_initialize_vendor_cmd()
858 delete *nanCommand; in nan_initialize_vendor_cmd()
869 NanCommand *nanCommand = NULL; in nan_data_interface_create() local
912 ret = nan_initialize_vendor_cmd(iface, &nanCommand); in nan_data_interface_create()
919 nlData = nanCommand->attr_start(NL80211_ATTR_VENDOR_DATA); in nan_data_interface_create()
925 if (nanCommand->put_u32( in nan_data_interface_create()
928 nanCommand->put_u16( in nan_data_interface_create()
931 nanCommand->put_string( in nan_data_interface_create()
938 nanCommand->attr_end(nlData); in nan_data_interface_create()
940 ret = nanCommand->requestEvent(); in nan_data_interface_create()
945 delete nanCommand; in nan_data_interface_create()
975 NanCommand *nanCommand = NULL; in nan_data_interface_delete() local
992 &nanCommand); in nan_data_interface_delete()
999 nlData = nanCommand->attr_start(NL80211_ATTR_VENDOR_DATA); in nan_data_interface_delete()
1005 if (nanCommand->put_u32( in nan_data_interface_delete()
1008 nanCommand->put_u16( in nan_data_interface_delete()
1011 nanCommand->put_string( in nan_data_interface_delete()
1018 nanCommand->attr_end(nlData); in nan_data_interface_delete()
1020 ret = nanCommand->requestEvent(); in nan_data_interface_delete()
1025 delete nanCommand; in nan_data_interface_delete()
1210 NanCommand *nanCommand = NULL; in nan_data_request_initiator() local
1218 &nanCommand); in nan_data_request_initiator()
1245 nlData = nanCommand->attr_start(NL80211_ATTR_VENDOR_DATA); in nan_data_request_initiator()
1251 if (nanCommand->put_u32( in nan_data_request_initiator()
1254 nanCommand->put_u16( in nan_data_request_initiator()
1257 nanCommand->put_u32( in nan_data_request_initiator()
1260 nanCommand->put_bytes( in nan_data_request_initiator()
1264 nanCommand->put_string( in nan_data_request_initiator()
1272 if (nanCommand->put_u32 ( in nan_data_request_initiator()
1275 nanCommand->put_u32( in nan_data_request_initiator()
1284 if (nanCommand->put_bytes( in nan_data_request_initiator()
1295 nanCommand->attr_start(QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS); in nan_data_request_initiator()
1301 nanCommand->attr_end(nlCfgQos); in nan_data_request_initiator()
1304 if (nanCommand->put_u32(QCA_WLAN_VENDOR_ATTR_NDP_CSID, in nan_data_request_initiator()
1317 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PMK, in nan_data_request_initiator()
1349 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PMK, in nan_data_request_initiator()
1352 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, in nan_data_request_initiator()
1359 } else if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, in nan_data_request_initiator()
1367 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, in nan_data_request_initiator()
1373 nanCommand->attr_end(nlData); in nan_data_request_initiator()
1375 ret = nanCommand->requestEvent(); in nan_data_request_initiator()
1380 delete nanCommand; in nan_data_request_initiator()
1391 NanCommand *nanCommand = NULL; in nan_data_indication_response() local
1399 &nanCommand); in nan_data_indication_response()
1418 nlData = nanCommand->attr_start(NL80211_ATTR_VENDOR_DATA); in nan_data_indication_response()
1424 if (nanCommand->put_u32( in nan_data_indication_response()
1427 nanCommand->put_u16( in nan_data_indication_response()
1430 nanCommand->put_u32( in nan_data_indication_response()
1433 nanCommand->put_string( in nan_data_indication_response()
1436 nanCommand->put_u32( in nan_data_indication_response()
1443 if (nanCommand->put_bytes( in nan_data_indication_response()
1453 nanCommand->attr_start(QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS); in nan_data_indication_response()
1460 nanCommand->attr_end(nlCfgQos); in nan_data_indication_response()
1463 if (nanCommand->put_u32(QCA_WLAN_VENDOR_ATTR_NDP_CSID, in nan_data_indication_response()
1476 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PMK, in nan_data_indication_response()
1509 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PMK, in nan_data_indication_response()
1512 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, in nan_data_indication_response()
1518 } else if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, in nan_data_indication_response()
1527 if (nanCommand->put_bytes(QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, in nan_data_indication_response()
1533 nanCommand->attr_end(nlData); in nan_data_indication_response()
1535 ret = nanCommand->requestEvent(); in nan_data_indication_response()
1540 delete nanCommand; in nan_data_indication_response()
1551 NanCommand *nanCommand = NULL; in nan_data_end() local
1557 &nanCommand); in nan_data_end()
1564 nlData = nanCommand->attr_start(NL80211_ATTR_VENDOR_DATA); in nan_data_end()
1570 if (nanCommand->put_u32( in nan_data_end()
1573 nanCommand->put_u16( in nan_data_end()
1576 nanCommand->put_bytes( in nan_data_end()
1583 nanCommand->attr_end(nlData); in nan_data_end()
1585 ret = nanCommand->requestEvent(); in nan_data_end()
1590 delete nanCommand; in nan_data_end()