3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-21 11:52:34 +01:00

network: Add network_get_psk

This commit is contained in:
Denis Kenzior 2016-05-16 14:22:24 -05:00
parent 9bfa0aa768
commit 93c8a4f090
2 changed files with 6 additions and 0 deletions

View File

@ -231,6 +231,11 @@ enum security network_get_security(struct network *network)
return network->security;
}
const unsigned char *network_get_psk(struct network *network)
{
return network->psk;
}
bool network_settings_load(struct network *network)
{
if (network->settings)

View File

@ -52,6 +52,7 @@ const char *network_get_ssid(struct network *network);
struct netdev *network_get_netdev(struct network *network);
const char *network_get_path(struct network *network);
enum security network_get_security(struct network *network);
const unsigned char *network_get_psk(struct network *network);
bool network_settings_load(struct network *network);
void network_settings_close(struct network *network);