mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-18 05:33:58 +00:00
rtl8720dn: allow connecting to open wifi access points
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -111,7 +111,11 @@ func (r *rtl8720dn) connectToAP() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Start the connection process
|
// Start the connection process
|
||||||
securityType := uint32(0x00400004)
|
securityType := uint32(0) // RTW_SECURITY_OPEN
|
||||||
|
if len(r.params.Passphrase) != 0 {
|
||||||
|
securityType = 0x00400004 // RTW_SECURITY_WPA2_AES_PSK
|
||||||
|
}
|
||||||
|
|
||||||
result := r.rpc_wifi_connect(r.params.Ssid, r.params.Passphrase, securityType, -1, 0)
|
result := r.rpc_wifi_connect(r.params.Ssid, r.params.Passphrase, securityType, -1, 0)
|
||||||
if result != 0 {
|
if result != 0 {
|
||||||
if debugging(debugBasic) {
|
if debugging(debugBasic) {
|
||||||
|
|||||||
Reference in New Issue
Block a user