internal void Init(AccessPoint accessPoint, string password) { var pw = Encoding.UTF8.GetBytes(password); Array.Copy(accessPoint.Ssid, _ssid, accessPoint.Ssid.Length); Array.Copy(pw, _password, pw.Length); _securityProtocol = (byte)accessPoint.SecurityProtocol; }
public AccessPoint(Packets.AccessPoint packet) { Packet = packet; Ssid = packet.SsidName; IsPasswordRequired = packet.SecurityProtocol != SecurityProtocol.Open; }