rtl8720dn: allow connecting to open wifi access points

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2024-01-11 12:48:05 +01:00
committed by Ron Evans
parent 7d24c3c285
commit 0262122ccd
+5 -1
View File
@@ -111,7 +111,11 @@ func (r *rtl8720dn) connectToAP() error {
}
// 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)
if result != 0 {
if debugging(debugBasic) {