Make hostapd_copy_psk_list() non-static
Signed-off-by: Michael Braun <michael-dev@fami-braun.de>
This commit is contained in:
parent
29024efd18
commit
d4ceaafc24
2 changed files with 15 additions and 13 deletions
|
@ -68,19 +68,6 @@ static void hostapd_acl_cache_free(struct hostapd_cached_radius_acl *acl_cache)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void copy_psk_list(struct hostapd_sta_wpa_psk_short **psk,
|
|
||||||
struct hostapd_sta_wpa_psk_short *src)
|
|
||||||
{
|
|
||||||
if (!psk)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (src)
|
|
||||||
src->ref++;
|
|
||||||
|
|
||||||
*psk = src;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr,
|
static int hostapd_acl_cache_get(struct hostapd_data *hapd, const u8 *addr,
|
||||||
struct radius_sta *out)
|
struct radius_sta *out)
|
||||||
{
|
{
|
||||||
|
@ -659,6 +646,19 @@ void hostapd_acl_deinit(struct hostapd_data *hapd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk,
|
||||||
|
struct hostapd_sta_wpa_psk_short *src)
|
||||||
|
{
|
||||||
|
if (!psk)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (src)
|
||||||
|
src->ref++;
|
||||||
|
|
||||||
|
*psk = src;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk)
|
void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk)
|
||||||
{
|
{
|
||||||
if (psk && psk->ref) {
|
if (psk && psk->ref) {
|
||||||
|
|
|
@ -34,5 +34,7 @@ int hostapd_acl_init(struct hostapd_data *hapd);
|
||||||
void hostapd_acl_deinit(struct hostapd_data *hapd);
|
void hostapd_acl_deinit(struct hostapd_data *hapd);
|
||||||
void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
|
void hostapd_free_psk_list(struct hostapd_sta_wpa_psk_short *psk);
|
||||||
void hostapd_acl_expire(struct hostapd_data *hapd);
|
void hostapd_acl_expire(struct hostapd_data *hapd);
|
||||||
|
void hostapd_copy_psk_list(struct hostapd_sta_wpa_psk_short **psk,
|
||||||
|
struct hostapd_sta_wpa_psk_short *src);
|
||||||
|
|
||||||
#endif /* IEEE802_11_AUTH_H */
|
#endif /* IEEE802_11_AUTH_H */
|
||||||
|
|
Loading…
Reference in a new issue