rtl8720dn: add UDP close function

This commit is contained in:
sago35
2022-08-06 15:13:05 +09:00
committed by Ron Evans
parent 749b2f6726
commit 41b7f06d05
+1 -1
View File
@@ -227,7 +227,7 @@ func (r *RTL8720DN) DisconnectSocket() error {
fmt.Printf("DisconnectSocket()\r\n")
}
switch r.connectionType {
case ConnectionTypeTCP:
case ConnectionTypeTCP, ConnectionTypeUDP:
_, err := r.Rpc_lwip_close(r.socket)
if err != nil {
return err