From: chleun-moon <32117100+chleun-moon@users.noreply.github.com> Date: Tue, 3 Nov 2020 01:01:48 +0000 (+0900) Subject: [WiFi] Use cloned apHandle (#2155) X-Git-Tag: accepted/tizen/unified/20210219.040944~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06802ffdff3252dadc865500e5ed50dd58b537b8;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [WiFi] Use cloned apHandle (#2155) --- diff --git a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs index 869a0ea..ee8afe0 100755 --- a/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs +++ b/src/Tizen.Network.WiFi/Tizen.Network.WiFi/ConnectionStateChangedEventArgs.cs @@ -30,7 +30,9 @@ namespace Tizen.Network.WiFi internal ConnectionStateChangedEventArgs(WiFiConnectionState s, IntPtr apHandle) { _state = s; - _ap = new WiFiAP(apHandle); + IntPtr clonedHandle; + Interop.WiFi.AP.Clone(out clonedHandle, apHandle); + _ap = new WiFiAP(clonedHandle); } ///