summaryrefslogtreecommitdiff
path: root/src/network.c
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2016-06-15 16:34:28 +0530
committerNiraj Kumar Goit <niraj.g@samsung.com>2016-06-17 03:32:06 -0700
commit9e422dc9ba4eeee4162e72f05fd18cddff6dda27 (patch)
treecdb026b67ed3548c56b455b997eaa04e987a497e /src/network.c
parentd6b5205c4674173e05d9fc421dcf898314c62d8d (diff)
downloadconnman-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-xsrc/network.c21
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,