Lines Matching full:handle
50 static void internal_event_handler(wifi_handle handle, int events);
53 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group);
54 static int wifi_add_membership(wifi_handle handle, const char *group);
55 static wifi_error wifi_init_interfaces(wifi_handle handle);
85 ALOGE("Could not create handle");
96 ALOGE("Could not connect handle");
166 wifi_error wifi_initialize(wifi_handle *handle)
187 ALOGE("Could not create handle");
193 ALOGE("Could not create handle");
200 ALOGE("Could not create handle");
233 *handle = (wifi_handle) info;
235 wifi_add_membership(*handle, "scan");
236 wifi_add_membership(*handle, "mlme");
237 wifi_add_membership(*handle, "regulatory");
238 wifi_add_membership(*handle, "vendor");
240 wifi_init_interfaces(*handle);
248 static int wifi_add_membership(wifi_handle handle, const char *group)
250 hal_info *info = getHalInfo(handle);
252 int id = wifi_get_multicast_id(handle, "nl80211", group);
267 static void internal_cleaned_up_handler(wifi_handle handle)
269 hal_info *info = getHalInfo(handle);
281 (*cleaned_up_handler)(handle);
288 void wifi_cleanup(wifi_handle handle, wifi_cleaned_up_handler handler)
290 hal_info *info = getHalInfo(handle);
337 static int internal_pollin_handler(wifi_handle handle)
339 hal_info *info = getHalInfo(handle);
348 void wifi_event_loop(wifi_handle handle)
350 hal_info *info = getHalInfo(handle);
385 internal_pollin_handler(handle);
396 internal_cleaned_up_handler(handle);
410 wifi_handle handle = (wifi_handle)arg;
411 hal_info *info = getHalInfo(handle);
482 GetMulticastIdCommand(wifi_handle handle, const char *name, const char *group)
483 : WifiCommand("GetMulticastIdCommand", handle, 0)
557 SetPnoMacAddrOuiCommand(wifi_interface_handle handle, oui scan_oui)
558 : WifiCommand("SetPnoMacAddrOuiCommand", handle, 0)
609 SetNodfsCommand(wifi_interface_handle handle, u32 nodfs)
610 : WifiCommand("SetNodfsCommand", handle, 0) {
637 SetCountryCodeCommand(wifi_interface_handle handle, const char *country_code)
638 : WifiCommand("SetCountryCodeCommand", handle, 0) {
668 SetRSSIMonitorCommand(wifi_request_id id, wifi_interface_handle handle,
670 : WifiCommand("SetRSSIMonitorCommand", handle, id), mMax_rssi(max_rssi), mMin_rssi
787 GetFeatureSetCommand(wifi_interface_handle handle, int feature, feature_set *set,
789 : WifiCommand("GetFeatureSetCommand", handle, 0)
877 static int wifi_get_multicast_id(wifi_handle handle, const char *name, const char *group)
879 GetMulticastIdCommand cmd(handle, name, group);
907 wifi_error wifi_init_interfaces(wifi_handle handle)
909 hal_info *info = (hal_info *)handle;
944 ifinfo->handle = handle;
956 wifi_error wifi_get_ifaces(wifi_handle handle, int *num, wifi_interface_handle **interfaces)
958 hal_info *info = (hal_info *)handle;
966 wifi_error wifi_get_iface_name(wifi_interface_handle handle, char *name, size_t size)
968 interface_info *info = (interface_info *)handle;
973 wifi_error wifi_get_supported_feature_set(wifi_interface_handle handle, feature_set *set)
975 GetFeatureSetCommand command(handle, FEATURE_SET, set, NULL, NULL, 1);
979 wifi_error wifi_get_concurrency_matrix(wifi_interface_handle handle, int set_size_max,
982 GetFeatureSetCommand command(handle, FEATURE_SET_MATRIX, NULL, set, set_size, set_size_max);
986 wifi_error wifi_set_scanning_mac_oui(wifi_interface_handle handle, oui scan_oui)
988 SetPnoMacAddrOuiCommand command(handle, scan_oui);
993 wifi_error wifi_set_nodfs_flag(wifi_interface_handle handle, u32 nodfs)
995 SetNodfsCommand command(handle, nodfs);
999 wifi_error wifi_set_country_code(wifi_interface_handle handle, const char *country_code)
1001 SetCountryCodeCommand command(handle, country_code);
1009 wifi_handle handle = getWifiHandle(iface);
1011 wifi_register_cmd(handle, id, cmd);
1023 wifi_handle handle = getWifiHandle(iface);