Lines Matching refs:dev
68 const struct device *dev; member
98 static struct wpa_supplicant *get_wpa_s_handle(const struct device *dev) in get_wpa_s_handle() argument
100 struct net_if *iface = net_if_lookup_by_dev(dev); in get_wpa_s_handle()
106 wpa_printf(MSG_ERROR, "Interface for device %s not found", dev->name); in get_wpa_s_handle()
126 static int wait_for_disconnect_complete(const struct device *dev) in wait_for_disconnect_complete() argument
130 struct wpa_supplicant *wpa_s = get_wpa_s_handle(dev); in wait_for_disconnect_complete()
167 wpa_s = get_wpa_s_handle(ctrl->dev); in supp_shell_connect_status()
470 int supplicant_add_enterprise_creds(const struct device *dev, in supplicant_add_enterprise_creds() argument
1128 static int wpas_disconnect_network(const struct device *dev, int cur_mode) argument
1130 struct net_if *iface = net_if_lookup_by_dev(dev);
1137 wpa_printf(MSG_ERROR, "Interface for device %s not found", dev->name);
1141 wpa_s = get_wpa_s_handle(dev);
1144 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1152 wpa_printf(MSG_ERROR, "Interface %s is not in %s mode", dev->name,
1159 wpas_api_ctrl.dev = dev;
1176 ret = wait_for_disconnect_complete(dev);
1201 int supplicant_connect(const struct device *dev, struct wifi_connect_req_params *params) argument
1206 if (!net_if_is_admin_up(net_if_lookup_by_dev(dev))) {
1209 dev->name);
1215 wpa_s = get_wpa_s_handle(dev);
1218 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1225 wpa_printf(MSG_ERROR, "Interface %s is not in STA mode", dev->name);
1235 wpas_api_ctrl.dev = dev;
1249 int supplicant_disconnect(const struct device *dev) argument
1251 return wpas_disconnect_network(dev, WPAS_MODE_INFRA);
1293 int supplicant_status(const struct device *dev, struct wifi_iface_status *status) argument
1295 struct net_if *iface = net_if_lookup_by_dev(dev);
1303 wpa_printf(MSG_ERROR, "Interface for device %s not found", dev->name);
1309 wpa_s = get_wpa_s_handle(dev);
1311 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1434 const struct wifi_mgmt_ops *const get_wifi_mgmt_api(const struct device *dev) argument
1436 struct net_wifi_mgmt_offload *api = (struct net_wifi_mgmt_offload *)dev->api;
1441 int supplicant_get_version(const struct device *dev, struct wifi_version *params) argument
1443 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1450 return wifi_mgmt_api->get_version(dev, params);
1453 int supplicant_scan(const struct device *dev, struct wifi_scan_params *params, argument
1456 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1463 return wifi_mgmt_api->scan(dev, params, cb);
1467 int supplicant_get_stats(const struct device *dev, struct net_stats_wifi *stats) argument
1469 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1476 return wifi_mgmt_api->get_stats(dev, stats);
1479 int supplicant_reset_stats(const struct device *dev) argument
1481 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1488 return wifi_mgmt_api->reset_stats(dev);
1492 int supplicant_pmksa_flush(const struct device *dev) argument
1499 wpa_s = get_wpa_s_handle(dev);
1502 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1517 int supplicant_11k_cfg(const struct device *dev, struct wifi_11k_params *params) argument
1519 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1526 return wifi_mgmt_api->cfg_11k(dev, params);
1529 int supplicant_11k_neighbor_request(const struct device *dev, struct wifi_11k_params *params) argument
1534 wpa_s = get_wpa_s_handle(dev);
1536 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1580 int supplicant_candidate_scan(const struct device *dev, struct wifi_scan_params *params) argument
1609 int supplicant_11r_roaming(const struct device *dev) argument
1616 wpa_s = get_wpa_s_handle(dev);
1618 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1643 int supplicant_set_power_save(const struct device *dev, struct wifi_ps_params *params) argument
1645 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1652 return wifi_mgmt_api->set_power_save(dev, params);
1655 int supplicant_set_twt(const struct device *dev, struct wifi_twt_params *params) argument
1657 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1664 return wifi_mgmt_api->set_twt(dev, params);
1667 int supplicant_set_btwt(const struct device *dev, struct wifi_twt_params *params) argument
1669 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1676 return wifi_mgmt_api->set_btwt(dev, params);
1679 int supplicant_get_power_save_config(const struct device *dev, argument
1682 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1689 return wifi_mgmt_api->get_power_save_config(dev, config);
1692 int supplicant_reg_domain(const struct device *dev, argument
1695 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1705 return wifi_mgmt_api->reg_domain(dev, reg_domain);
1711 wpa_s = get_wpa_s_handle(dev);
1713 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1736 int supplicant_mode(const struct device *dev, struct wifi_mode_info *mode) argument
1738 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1745 return wifi_mgmt_api->mode(dev, mode);
1748 int supplicant_filter(const struct device *dev, struct wifi_filter_info *filter) argument
1750 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1757 return wifi_mgmt_api->filter(dev, filter);
1760 int supplicant_channel(const struct device *dev, struct wifi_channel_info *channel) argument
1762 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1769 return wifi_mgmt_api->channel(dev, channel);
1772 int supplicant_set_rts_threshold(const struct device *dev, unsigned int rts_threshold) argument
1774 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1781 return wifi_mgmt_api->set_rts_threshold(dev, rts_threshold);
1784 int supplicant_get_rts_threshold(const struct device *dev, unsigned int *rts_threshold) argument
1786 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1793 return wifi_mgmt_api->get_rts_threshold(dev, rts_threshold);
1796 bool supplicant_bss_support_neighbor_rep(const struct device *dev) argument
1802 wpa_s = get_wpa_s_handle(dev);
1804 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1825 int supplicant_bss_ext_capab(const struct device *dev, int capab) argument
1830 wpa_s = get_wpa_s_handle(dev);
1832 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1843 int supplicant_legacy_roam(const struct device *dev) argument
1850 wpa_s = get_wpa_s_handle(dev);
1853 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1876 int supplicant_set_bss_max_idle_period(const struct device *dev, argument
1879 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
1886 return wifi_mgmt_api->set_bss_max_idle_period(dev, bss_max_idle_period);
1890 int supplicant_btm_query(const struct device *dev, uint8_t reason) argument
1897 wpa_s = get_wpa_s_handle(dev);
1900 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1924 int supplicant_get_wifi_conn_params(const struct device *dev, argument
1932 wpa_s = get_wpa_s_handle(dev);
1935 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);
1945 static int supplicant_wps_pbc(const struct device *dev) argument
1952 wpa_s = get_wpa_s_handle(dev);
1955 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
1963 wpas_api_ctrl.dev = dev;
1974 static int supplicant_wps_pin(const struct device *dev, struct wifi_wps_config_params *params) argument
1982 wpa_s = get_wpa_s_handle(dev);
1985 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
2002 wpas_api_ctrl.dev = dev;
2017 int supplicant_wps_config(const struct device *dev, struct wifi_wps_config_params *params) argument
2022 ret = supplicant_wps_pbc(dev);
2024 ret = supplicant_wps_pin(dev, params);
2031 int set_ap_bandwidth(const struct device *dev, enum wifi_frequency_bandwidths bandwidth) argument
2033 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev);
2042 return wifi_mgmt_api->ap_config_params(dev, ¶ms);
2045 int supplicant_ap_enable(const struct device *dev, argument
2051 if (!net_if_is_admin_up(net_if_lookup_by_dev(dev))) {
2054 dev->name);
2058 ret = set_ap_bandwidth(dev, params->bandwidth);
2066 wpa_s = get_wpa_s_handle(dev);
2069 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
2075 wpa_printf(MSG_ERROR, "Interface %s is not in disconnected state", dev->name);
2096 int supplicant_ap_disable(const struct device *dev) argument
2103 wpa_s = get_wpa_s_handle(dev);
2106 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
2110 ret = wpas_disconnect_network(dev, WPAS_MODE_AP);
2124 int supplicant_ap_sta_disconnect(const struct device *dev, argument
2132 wpa_s = get_wpa_s_handle(dev);
2135 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name);
2419 int supplicant_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params) argument
2451 int supplicant_config_params(const struct device *dev, struct wifi_config_params *params) argument
2458 wpa_s = get_wpa_s_handle(dev);
2461 wpa_printf(MSG_ERROR, "Device %s not found", dev->name);