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);