Fix the method to get IAddressInformation of WiFiNetwork
authorchleun.moon <chleun.moon@samsung.com>
Tue, 10 Jan 2017 05:07:32 +0000 (14:07 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Tue, 10 Jan 2017 05:12:03 +0000 (14:12 +0900)
IAddressInformation _ipv4 and _ipv6 was created by Connection.AddressFactory.CreateAddressInformation.
However, for WiFi, it was wrong approach and so Connection.AddressFactory.CreateAddressInformation is used only for Connection csapi.
Now, WiFi AddressInformation is directly created.

Change-Id: I89628bd98f160c36a0cb2caa31f10f3afb65d278
Signed-off-by: cheoleun <chleun.moon@samsung.com>
packaging/csapi-network-wifi.spec
src/Tizen.Network.WiFi/Tizen.Network.WiFi/WiFiNetwork.cs

index 9e2a127..32dd9df 100644 (file)
@@ -1,6 +1,6 @@
 Name:       csapi-network-wifi
 Summary:    Tizen Wi-Fi API for C#
-Version:    1.0.2
+Version:    1.0.3
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0
index c80e03a..7e94e37 100644 (file)
@@ -245,8 +245,8 @@ namespace Tizen.Network.WiFi
         internal WiFiNetwork(IntPtr apHandle)
         {
             _apHandle = apHandle;
-            _ipv4 = AddressFactory.CreateAddressInformation(apHandle, AddressFamily.Ipv4, AddressInformationType.WiFi);
-            _ipv6 = AddressFactory.CreateAddressInformation(apHandle, AddressFamily.Ipv6, AddressInformationType.WiFi);
+            _ipv4 = new WiFiAddressInformation(apHandle, AddressFamily.Ipv4);
+            _ipv6 = new WiFiAddressInformation(apHandle, AddressFamily.Ipv6);
 
             IntPtr strPtr;
             int ret = Interop.WiFi.Ap.GetEssid(_apHandle, out strPtr);