src/shared/wifi-util.h
raw| 1 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
| 2 | |
| 3 | #pragma once |
| 4 | |
| 5 | #include <linux/nl80211.h> |
| 6 | |
| 7 | #include "shared-forward.h" |
| 8 | |
| 9 | int wifi_get_interface(sd_netlink *genl, int ifindex, enum nl80211_iftype *ret_iftype, char **ret_ssid); |
| 10 | int wifi_get_station(sd_netlink *genl, int ifindex, struct ether_addr *ret_bssid); |
| 11 | |
| 12 | DECLARE_STRING_TABLE_LOOKUP(nl80211_iftype, enum nl80211_iftype); |
| 13 | DECLARE_STRING_TABLE_LOOKUP_TO_STRING(nl80211_cmd, int); |