diff options
author | Arron Wang <arron.wang@intel.com> | 2012-09-24 14:18:07 +0800 |
---|---|---|
committer | Zhang zhengguang <zhengguang.zhang@intel.com> | 2013-07-01 10:47:43 +0800 |
commit | 0b571435f46d1c2acbe154c43d2e2b28403694c2 (patch) | |
tree | 74d6c7e9e67d19243c96f42dd3f55fbf3036123e /plugins | |
parent | 5627d0d9d59bc7a5cc0830bcd9f2ab3403ba4174 (diff) | |
download | connman-0b571435f46d1c2acbe154c43d2e2b28403694c2.tar.gz connman-0b571435f46d1c2acbe154c43d2e2b28403694c2.tar.bz2 connman-0b571435f46d1c2acbe154c43d2e2b28403694c2.zip |
Tizen: Export more wifi info in ConnMan network API
Network client requires additional wifi specific info
Export the BSSID property
Export the MaxRate property
Export the detailed info for encryption mode(mixed,aes,tkip,wep,none)
Export the connman_network get/set method for bssid, maxrate,
encryption_mode property
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wifi.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/plugins/wifi.c b/plugins/wifi.c index 5f078692..7a334cc6 100644 --- a/plugins/wifi.c +++ b/plugins/wifi.c @@ -1790,6 +1790,15 @@ static void network_added(GSupplicantNetwork *supplicant_network) connman_network_set_frequency(network, g_supplicant_network_get_frequency(supplicant_network)); +#if defined TIZEN_EXT + connman_network_set_bssid(network, + g_supplicant_network_get_bssid(supplicant_network)); + connman_network_set_maxrate(network, + g_supplicant_network_get_maxrate(supplicant_network)); + connman_network_set_enc_mode(network, + g_supplicant_network_get_enc_mode(supplicant_network)); +#endif + connman_network_set_available(network, TRUE); connman_network_set_string(network, "WiFi.Mode", mode); @@ -1844,6 +1853,11 @@ static void network_changed(GSupplicantNetwork *network, const char *property) struct wifi_data *wifi; const char *name, *identifier; struct connman_network *connman_network; +#if defined TIZEN_EXT + const unsigned char *bssid; + unsigned int maxrate; + uint16_t frequency; +#endif interface = g_supplicant_network_get_interface(network); wifi = g_supplicant_interface_get_data(interface); @@ -1864,6 +1878,16 @@ static void network_changed(GSupplicantNetwork *network, const char *property) calculate_strength(network)); connman_network_update(connman_network); } + +#if defined TIZEN_EXT + bssid = g_supplicant_network_get_bssid(network); + maxrate = g_supplicant_network_get_maxrate(network); + frequency = g_supplicant_network_get_frequency(network); + + connman_network_set_bssid(connman_network, bssid); + connman_network_set_maxrate(connman_network, maxrate); + connman_network_set_frequency(connman_network, frequency); +#endif } static void debug(const char *str) |