3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

wiphy: Add wiphy_find

This commit is contained in:
Denis Kenzior 2016-06-01 15:20:33 -05:00
parent 61b50cf81f
commit 8113f4c64e
2 changed files with 7 additions and 0 deletions

View File

@ -1496,6 +1496,11 @@ static void interface_dump_callback(struct l_genl_msg *msg, void *user_data)
l_io_set_read_handler(device->eapol_io, eapol_read, device, NULL);
}
struct wiphy *wiphy_find(int wiphy_id)
{
return l_queue_find(wiphy_list, wiphy_match, L_UINT_TO_PTR(wiphy_id));
}
static void parse_supported_commands(struct wiphy *wiphy,
struct l_genl_attr *attr)
{

View File

@ -31,6 +31,8 @@ typedef void (*iwd_device_foreach_func)(struct device *, void *data);
enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy,
uint16_t mask);
struct wiphy *wiphy_find(int wiphy_id);
bool wiphy_init(struct l_genl_family *in);
bool wiphy_exit(void);