Lines Matching refs:handle
45 static void internal_event_handler(wifi_handle handle, int events);
48 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group);
49 static int wifi_add_membership(wifi_handle handle, const char *group);
50 static wifi_error wifi_init_interfaces(wifi_handle handle);
54 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle,
56 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle,
188 wifi_error wifi_initialize(wifi_handle *handle) in wifi_initialize() argument
261 *handle = (wifi_handle) info; in wifi_initialize()
263 wifi_add_membership(*handle, "scan"); in wifi_initialize()
264 wifi_add_membership(*handle, "mlme"); in wifi_initialize()
265 wifi_add_membership(*handle, "regulatory"); in wifi_initialize()
266 wifi_add_membership(*handle, "vendor"); in wifi_initialize()
268 wifi_init_interfaces(*handle); in wifi_initialize()
276 static int wifi_add_membership(wifi_handle handle, const char *group) in wifi_add_membership() argument
278 hal_info *info = getHalInfo(handle); in wifi_add_membership()
280 int id = wifi_get_multicast_id(handle, "nl80211", group); in wifi_add_membership()
295 static void internal_cleaned_up_handler(wifi_handle handle) in internal_cleaned_up_handler() argument
297 hal_info *info = getHalInfo(handle); in internal_cleaned_up_handler()
309 (*cleaned_up_handler)(handle); in internal_cleaned_up_handler()
316 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler) in wifi_cleanup() argument
318 hal_info *info = getHalInfo(handle); in wifi_cleanup()
375 internal_cleaned_up_handler(handle); in wifi_cleanup()
378 static int internal_pollin_handler(wifi_handle handle) in internal_pollin_handler() argument
380 hal_info *info = getHalInfo(handle); in internal_pollin_handler()
389 void wifi_event_loop(wifi_handle handle) in wifi_event_loop() argument
391 hal_info *info = getHalInfo(handle); in wifi_event_loop()
426 internal_pollin_handler(handle); in wifi_event_loop()
458 wifi_handle handle = (wifi_handle)arg; in internal_valid_message_handler() local
459 hal_info *info = getHalInfo(handle); in internal_valid_message_handler()
529 GetMulticastIdCommand(wifi_handle handle, const char *name, const char *group) in GetMulticastIdCommand() argument
530 : WifiCommand("GetMulticastIdCommand", handle, 0) in GetMulticastIdCommand()
604 SetPnoMacAddrOuiCommand(wifi_interface_handle handle, oui scan_oui) in SetPnoMacAddrOuiCommand() argument
605 : WifiCommand("SetPnoMacAddrOuiCommand", handle, 0) in SetPnoMacAddrOuiCommand()
656 SetNodfsCommand(wifi_interface_handle handle, u32 nodfs) in SetNodfsCommand() argument
657 : WifiCommand("SetNodfsCommand", handle, 0) { in SetNodfsCommand()
684 SetCountryCodeCommand(wifi_interface_handle handle, const char *country_code) in SetCountryCodeCommand() argument
685 : WifiCommand("SetCountryCodeCommand", handle, 0) { in SetCountryCodeCommand()
715 SetRSSIMonitorCommand(wifi_request_id id, wifi_interface_handle handle, in SetRSSIMonitorCommand() argument
717 : WifiCommand("SetRSSIMonitorCommand", handle, id), mMax_rssi(max_rssi), mMin_rssi in SetRSSIMonitorCommand()
833 AndroidPktFilterCommand(wifi_interface_handle handle, in AndroidPktFilterCommand() argument
835 : WifiCommand("AndroidPktFilterCommand", handle, 0), in AndroidPktFilterCommand()
841 AndroidPktFilterCommand(wifi_interface_handle handle, in AndroidPktFilterCommand() argument
843 : WifiCommand("AndroidPktFilterCommand", handle, 0), in AndroidPktFilterCommand()
968 SetNdoffloadCommand(wifi_interface_handle handle, u8 enable) in SetNdoffloadCommand() argument
969 : WifiCommand("SetNdoffloadCommand", handle, 0) { in SetNdoffloadCommand()
1001 GetFeatureSetCommand(wifi_interface_handle handle, int feature, feature_set *set, in GetFeatureSetCommand() argument
1003 : WifiCommand("GetFeatureSetCommand", handle, 0) in GetFeatureSetCommand()
1091 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group) in wifi_get_multicast_id() argument
1093 GetMulticastIdCommand cmd(handle, name, group); in wifi_get_multicast_id()
1121 wifi_error wifi_init_interfaces(wifi_handle handle) in wifi_init_interfaces() argument
1123 hal_info *info = (hal_info *)handle; in wifi_init_interfaces()
1158 ifinfo->handle = handle; in wifi_init_interfaces()
1170 wifi_error wifi_get_ifaces(wifi_handle handle, int *num, wifi_interface_handle **interfaces) in wifi_get_ifaces() argument
1172 hal_info *info = (hal_info *)handle; in wifi_get_ifaces()
1180 wifi_error wifi_get_iface_name(wifi_interface_handle handle, char *name, size_t size) in wifi_get_iface_name() argument
1182 interface_info *info = (interface_info *)handle; in wifi_get_iface_name()
1187 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set) in wifi_get_supported_feature_set() argument
1189 GetFeatureSetCommand command(handle, ANDR_WIFI_ATTRIBUTE_NUM_FEATURE_SET, set, NULL, NULL, 1); in wifi_get_supported_feature_set()
1193 wifi_error wifi_get_concurrency_matrix(wifi_interface_handle handle, int set_size_max, in wifi_get_concurrency_matrix() argument
1196 GetFeatureSetCommand command(handle, ANDR_WIFI_ATTRIBUTE_FEATURE_SET, NULL, in wifi_get_concurrency_matrix()
1201 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, oui scan_oui) in wifi_set_scanning_mac_oui() argument
1203 SetPnoMacAddrOuiCommand command(handle, scan_oui); in wifi_set_scanning_mac_oui()
1208 wifi_error wifi_set_nodfs_flag(wifi_interface_handle handle, u32 nodfs) in wifi_set_nodfs_flag() argument
1210 SetNodfsCommand command(handle, nodfs); in wifi_set_nodfs_flag()
1214 wifi_error wifi_set_country_code(wifi_interface_handle handle, const char *country_code) in wifi_set_country_code() argument
1216 SetCountryCodeCommand command(handle, country_code); in wifi_set_country_code()
1224 wifi_handle handle = getWifiHandle(iface); in wifi_start_rssi_monitoring() local
1227 wifi_error result = wifi_register_cmd(handle, id, cmd); in wifi_start_rssi_monitoring()
1234 wifi_unregister_cmd(handle, id); in wifi_start_rssi_monitoring()
1248 wifi_handle handle = getWifiHandle(iface); in wifi_stop_rssi_monitoring() local
1260 static wifi_error wifi_get_packet_filter_capabilities(wifi_interface_handle handle, in wifi_get_packet_filter_capabilities() argument
1263 ALOGD("Getting APF capabilities, halHandle = %p\n", handle); in wifi_get_packet_filter_capabilities()
1264 AndroidPktFilterCommand *cmd = new AndroidPktFilterCommand(handle, version, max_len); in wifi_get_packet_filter_capabilities()
1274 static wifi_error wifi_set_packet_filter(wifi_interface_handle handle, in wifi_set_packet_filter() argument
1277 ALOGD("Setting APF program, halHandle = %p\n", handle); in wifi_set_packet_filter()
1278 AndroidPktFilterCommand *cmd = new AndroidPktFilterCommand(handle, program, len); in wifi_set_packet_filter()
1285 static wifi_error wifi_configure_nd_offload(wifi_interface_handle handle, u8 enable) in wifi_configure_nd_offload() argument
1287 SetNdoffloadCommand command(handle, enable); in wifi_configure_nd_offload()