From a9e9be469c97a09a29179c6bb79f4bd32c6f837b Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Mon, 16 May 2016 12:21:26 -0500 Subject: [PATCH] wiphy: Expose wiphy_select_cipher --- src/wiphy.c | 3 +-- src/wiphy.h | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wiphy.c b/src/wiphy.c index 0bb56625..68213525 100644 --- a/src/wiphy.c +++ b/src/wiphy.c @@ -244,8 +244,7 @@ static void genl_connect_cb(struct l_genl_msg *msg, void *user_data) } } -static enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, - uint16_t mask) +enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, uint16_t mask) { mask &= wiphy->pairwise_ciphers; diff --git a/src/wiphy.h b/src/wiphy.h index 4471d860..08344d45 100644 --- a/src/wiphy.h +++ b/src/wiphy.h @@ -24,9 +24,13 @@ #include struct netdev; +struct wiphy; typedef void (*iwd_device_foreach_func)(struct netdev *, void *data); +enum ie_rsn_cipher_suite wiphy_select_cipher(struct wiphy *wiphy, + uint16_t mask); + bool wiphy_init(struct l_genl_family *in); bool wiphy_exit(void);