diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-15 16:34:28 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2016-06-17 03:32:06 -0700 |
commit | 9e422dc9ba4eeee4162e72f05fd18cddff6dda27 (patch) | |
tree | cdb026b67ed3548c56b455b997eaa04e987a497e /src/network.c | |
parent | d6b5205c4674173e05d9fc421dcf898314c62d8d (diff) | |
download | connman-9e422dc9ba4eeee4162e72f05fd18cddff6dda27.tar.gz connman-9e422dc9ba4eeee4162e72f05fd18cddff6dda27.tar.bz2 connman-9e422dc9ba4eeee4162e72f05fd18cddff6dda27.zip |
[SPIN] add keymgmt property for bss.
Change-Id: Id436db5828febaabd8273c2e0aab91f9ee9572ff
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'src/network.c')
-rwxr-xr-x | src/network.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/network.c b/src/network.c index cf746829..f67dbb68 100755 --- a/src/network.c +++ b/src/network.c @@ -97,6 +97,8 @@ struct connman_network { unsigned char bssid[WIFI_BSSID_LEN_MAX]; unsigned int maxrate; unsigned int isHS20AP; + unsigned int keymgmt; + char *keymgmt_type; bool rsn_selected; #endif } wifi; @@ -1941,6 +1943,25 @@ unsigned int connman_network_get_is_hs20AP(struct connman_network *network) return network->wifi.isHS20AP; } + +int connman_network_set_keymgmt(struct connman_network *network, + unsigned int keymgmt) +{ + if (network == NULL) + return 0; + + network->wifi.keymgmt = keymgmt; + + return 0; +} + +unsigned int connman_network_get_keymgmt(struct connman_network *network) +{ + if (network == NULL) + return 0; + + return network->wifi.keymgmt; +} #endif int connman_network_set_nameservers(struct connman_network *network, |