Lines Matching refs:handle
73 static void internal_event_handler(wifi_handle handle, int events);
76 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group);
77 static int wifi_add_membership(wifi_handle handle, const char *group);
78 static wifi_error wifi_init_interfaces(wifi_handle handle);
82 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle,
84 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
218 wifi_error wifi_initialize(wifi_handle *handle) in wifi_initialize() argument
291 *handle = (wifi_handle) info; in wifi_initialize()
293 if (wifi_init_interfaces(*handle) != WIFI_SUCCESS) { in wifi_initialize()
302 if ((wifi_add_membership(*handle, "scan") < 0) || in wifi_initialize()
303 (wifi_add_membership(*handle, "mlme") < 0) || in wifi_initialize()
304 (wifi_add_membership(*handle, "regulatory") < 0) || in wifi_initialize()
305 (wifi_add_membership(*handle, "vendor") < 0)) { in wifi_initialize()
339 static int wifi_add_membership(wifi_handle handle, const char *group) in wifi_add_membership() argument
341 hal_info *info = getHalInfo(handle); in wifi_add_membership()
343 int id = wifi_get_multicast_id(handle, "nl80211", group); in wifi_add_membership()
358 static void internal_cleaned_up_handler(wifi_handle handle) in internal_cleaned_up_handler() argument
360 hal_info *info = getHalInfo(handle); in internal_cleaned_up_handler()
372 (*cleaned_up_handler)(handle); in internal_cleaned_up_handler()
379 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) in wifi_cleanup() argument
381 hal_info *info = getHalInfo(handle); in wifi_cleanup()
439 internal_cleaned_up_handler(handle); in wifi_cleanup()
442 static int internal_pollin_handler(wifi_handle handle) in internal_pollin_handler() argument
444 hal_info *info = getHalInfo(handle); in internal_pollin_handler()
453 void wifi_event_loop(wifi_handle handle) in wifi_event_loop() argument
455 hal_info *info = getHalInfo(handle); in wifi_event_loop()
491 internal_pollin_handler(handle); in wifi_event_loop()
524 wifi_handle handle = (wifi_handle)arg; in internal_valid_message_handler() local
525 hal_info *info = getHalInfo(handle); in internal_valid_message_handler()
595 GetMulticastIdCommand(wifi_handle handle, const char *name, const char *group) in GetMulticastIdCommand() argument
596 : WifiCommand("GetMulticastIdCommand", handle, 0) in GetMulticastIdCommand()
670 SetPnoMacAddrOuiCommand(wifi_interface_handle handle, oui scan_oui) in SetPnoMacAddrOuiCommand() argument
671 : WifiCommand("SetPnoMacAddrOuiCommand", handle, 0) in SetPnoMacAddrOuiCommand()
722 SetNodfsCommand(wifi_interface_handle handle, u32 nodfs) in SetNodfsCommand() argument
723 : WifiCommand("SetNodfsCommand", handle, 0) { in SetNodfsCommand()
750 SetCountryCodeCommand(wifi_interface_handle handle, const char *country_code) in SetCountryCodeCommand() argument
751 : WifiCommand("SetCountryCodeCommand", handle, 0) { in SetCountryCodeCommand()
781 SetRSSIMonitorCommand(wifi_request_id id, wifi_interface_handle handle, in SetRSSIMonitorCommand() argument
783 : WifiCommand("SetRSSIMonitorCommand", handle, id), mMax_rssi(max_rssi), mMin_rssi in SetRSSIMonitorCommand()
899 AndroidPktFilterCommand(wifi_interface_handle handle, in AndroidPktFilterCommand() argument
901 : WifiCommand("AndroidPktFilterCommand", handle, 0), in AndroidPktFilterCommand()
907 AndroidPktFilterCommand(wifi_interface_handle handle, in AndroidPktFilterCommand() argument
909 : WifiCommand("AndroidPktFilterCommand", handle, 0), in AndroidPktFilterCommand()
1034 SetNdoffloadCommand(wifi_interface_handle handle, u8 enable) in SetNdoffloadCommand() argument
1035 : WifiCommand("SetNdoffloadCommand", handle, 0) { in SetNdoffloadCommand()
1067 GetFeatureSetCommand(wifi_interface_handle handle, int feature, feature_set *set, in GetFeatureSetCommand() argument
1069 : WifiCommand("GetFeatureSetCommand", handle, 0) in GetFeatureSetCommand()
1157 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group) in wifi_get_multicast_id() argument
1159 GetMulticastIdCommand cmd(handle, name, group); in wifi_get_multicast_id()
1187 wifi_error wifi_init_interfaces(wifi_handle handle) in wifi_init_interfaces() argument
1189 hal_info *info = (hal_info *)handle; in wifi_init_interfaces()
1227 ifinfo->handle = handle; in wifi_init_interfaces()
1239 wifi_error wifi_get_ifaces(wifi_handle handle, int *num, wifi_interface_handle **interfaces) in wifi_get_ifaces() argument
1241 hal_info *info = (hal_info *)handle; in wifi_get_ifaces()
1249 wifi_error wifi_get_iface_name(wifi_interface_handle handle, char *name, size_t size) in wifi_get_iface_name() argument
1251 interface_info *info = (interface_info *)handle; in wifi_get_iface_name()
1256 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set) in wifi_get_supported_feature_set() argument
1258 GetFeatureSetCommand command(handle, ANDR_WIFI_ATTRIBUTE_NUM_FEATURE_SET, set, NULL, NULL, 1); in wifi_get_supported_feature_set()
1262 wifi_error wifi_get_concurrency_matrix(wifi_interface_handle handle, int set_size_max, in wifi_get_concurrency_matrix() argument
1265 GetFeatureSetCommand command(handle, ANDR_WIFI_ATTRIBUTE_FEATURE_SET, NULL, in wifi_get_concurrency_matrix()
1270 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, oui scan_oui) in wifi_set_scanning_mac_oui() argument
1272 SetPnoMacAddrOuiCommand command(handle, scan_oui); in wifi_set_scanning_mac_oui()
1277 wifi_error wifi_set_nodfs_flag(wifi_interface_handle handle, u32 nodfs) in wifi_set_nodfs_flag() argument
1279 SetNodfsCommand command(handle, nodfs); in wifi_set_nodfs_flag()
1283 wifi_error wifi_set_country_code(wifi_interface_handle handle, const char *country_code) in wifi_set_country_code() argument
1285 SetCountryCodeCommand command(handle, country_code); in wifi_set_country_code()
1293 wifi_handle handle = getWifiHandle(iface); in wifi_start_rssi_monitoring() local
1296 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_start_rssi_monitoring()
1303 wifi_unregister_cmd(handle, id); in wifi_start_rssi_monitoring()
1317 wifi_handle handle = getWifiHandle(iface); in wifi_stop_rssi_monitoring() local
1329 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle, in wifi_get_packet_filter_capabilities() argument
1332 ALOGD("Getting APF capabilities, halHandle = %p\n", handle); in wifi_get_packet_filter_capabilities()
1333 AndroidPktFilterCommand *cmd = new AndroidPktFilterCommand(handle, version, max_len); in wifi_get_packet_filter_capabilities()
1343 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle, in wifi_set_packet_filter() argument
1346 ALOGD("Setting APF program, halHandle = %p\n", handle); in wifi_set_packet_filter()
1347 AndroidPktFilterCommand *cmd = new AndroidPktFilterCommand(handle, program, len); in wifi_set_packet_filter()
1354 static wifi_error wifi_configure_nd_offload(wifi_interface_handle handle, u8 enable) in wifi_configure_nd_offload() argument
1356 SetNdoffloadCommand command(handle, enable); in wifi_configure_nd_offload()