Lines Matching refs:dev

53 static inline struct hostapd_iface *get_hostapd_handle(const struct device *dev)  in get_hostapd_handle()  argument
55 struct net_if *iface = net_if_lookup_by_dev(dev); in get_hostapd_handle()
61 wpa_printf(MSG_ERROR, "Interface for device %s not found", dev->name); in get_hostapd_handle()
349 int hostapd_add_enterprise_creds(const struct device *dev, in hostapd_add_enterprise_creds() argument
622 static int set_ap_config_params(const struct device *dev, struct wifi_ap_config_params *params) in set_ap_config_params() argument
624 const struct wifi_mgmt_ops *const wifi_mgmt_api = get_wifi_mgmt_api(dev); in set_ap_config_params()
630 return wifi_mgmt_api->ap_config_params(dev, params); in set_ap_config_params()
633 int hostapd_ap_config_params(const struct device *dev, struct wifi_ap_config_params *params) in hostapd_ap_config_params() argument
638 ret = set_ap_config_params(dev, params); in hostapd_ap_config_params()
646 iface = get_hostapd_handle(dev); in hostapd_ap_config_params()
649 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hostapd_ap_config_params()
655 wpa_printf(MSG_ERROR, "Interface %s is not in disable state", dev->name); in hostapd_ap_config_params()
691 int hostapd_ap_status(const struct device *dev, struct wifi_iface_status *status) in hostapd_ap_status() argument
706 iface = get_hostapd_handle(dev); in hostapd_ap_status()
709 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hostapd_ap_status()
716 wpa_printf(MSG_ERROR, "Conf %s not found", dev->name); in hostapd_ap_status()
723 wpa_printf(MSG_ERROR, "Bss_conf %s not found", dev->name); in hostapd_ap_status()
730 wpa_printf(MSG_ERROR, "Bss %s not found", dev->name); in hostapd_ap_status()
769 static int hapd_ap_wps_pbc(const struct device *dev) in hapd_ap_wps_pbc() argument
776 iface = get_hostapd_handle(dev); in hapd_ap_wps_pbc()
779 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hapd_ap_wps_pbc()
785 wpa_printf(MSG_ERROR, "Interface %s is not in enable state", dev->name); in hapd_ap_wps_pbc()
800 static int hapd_ap_wps_pin(const struct device *dev, struct wifi_wps_config_params *params) in hapd_ap_wps_pin() argument
809 iface = get_hostapd_handle(dev); in hapd_ap_wps_pin()
812 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hapd_ap_wps_pin()
818 wpa_printf(MSG_ERROR, "Interface %s is not in enable state", dev->name); in hapd_ap_wps_pin()
846 int hostapd_ap_wps_config(const struct device *dev, struct wifi_wps_config_params *params) in hostapd_ap_wps_config() argument
851 ret = hapd_ap_wps_pbc(dev); in hostapd_ap_wps_config()
853 ret = hapd_ap_wps_pin(dev, params); in hostapd_ap_wps_config()
860 int hostapd_ap_enable(const struct device *dev, in hostapd_ap_enable() argument
868 if (!net_if_is_admin_up(net_if_lookup_by_dev(dev))) { in hostapd_ap_enable()
871 dev->name); in hostapd_ap_enable()
875 ret = set_ap_bandwidth(dev, params->bandwidth); in hostapd_ap_enable()
883 iface = get_hostapd_handle(dev); in hostapd_ap_enable()
886 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hostapd_ap_enable()
894 wpa_printf(MSG_ERROR, "Interface %s is not in disable state", dev->name); in hostapd_ap_enable()
932 int hostapd_ap_disable(const struct device *dev) in hostapd_ap_disable() argument
939 iface = get_hostapd_handle(dev); in hostapd_ap_disable()
942 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hostapd_ap_disable()
948 wpa_printf(MSG_ERROR, "Interface %s is not in enable state", dev->name); in hostapd_ap_disable()
963 int hostapd_ap_sta_disconnect(const struct device *dev, in hostapd_ap_sta_disconnect() argument
971 iface = get_hostapd_handle(dev); in hostapd_ap_sta_disconnect()
974 wpa_printf(MSG_ERROR, "Interface %s not found", dev->name); in hostapd_ap_sta_disconnect()
980 wpa_printf(MSG_ERROR, "Interface %s is not in enable state", dev->name); in hostapd_ap_sta_disconnect()
1002 int hostapd_dpp_dispatch(const struct device *dev, struct wifi_dpp_params *params) in hostapd_dpp_dispatch() argument