b***@freebsd.org
2017-04-10 09:52:05 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218527
Bug ID: 218527
Summary: [rtwn] Constantly packet dropping and connection loss
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: wireless
Assignee: freebsd-***@FreeBSD.org
Reporter: gosha-***@yandex.ru
I have a laptop with OS: FreeBSD G-BSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0
r316281: Fri Mar 31 00:44:45 +05 2017 amd64
Since integrated WiFi based on Realtek 8723AE not supported, I have USB dongle
ASUS USB-N13 based on Realtek RTL8192CU chipset.
I have periodically disconnections from router (/var/log/messages have not any
records in that moments), packets not transmitted (I try to ping router) and
after some timeout (about 60 seconds) network start works but latency >1000ms
and packet dropping 10-20%. If I replug dongle, some time all works good until
next turn.
My PC places not far from WiFi router, and all other users have not problems
with WiFi.
I have that problem with various APs and that dongle in Win-PC works without
problem.
===== loader.conf ========================
if_rtwn_load="YES"
if_rtwn_usb_load="YES"
if_rtwn_pci_load="YES"
legal.realtek.license_ack=1
===== /etc/rc.conf =======================
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA inet 192.168.0.100/24"
===== ifconfig wlan0 list ap =============
UK 4e:5d:4e:4b:c8:f8 1 54M -75:-95 100 EP HTCAP RSN WME
BSSLOAD
===== /var/log/messages periodical messages related to rtwn
Apr 10 13:20:24 G-BSD kernel: rtwn0: rtwn_rxeof: totlen (1606) > len (1280)!
Apr 10 13:20:24 G-BSD kernel: rtwn0: rtwn_rxeof: totlen (13315) > len (384)!
===== /var/log/messages after plug in dongle ==============
Apr 10 14:29:52 G-BSD kernel: ugen0.2: <vendor 0x0b05 product 0x17ab> at usbus0
Apr 10 14:29:52 G-BSD kernel: rtwn0 on uhub0
Apr 10 14:29:52 G-BSD kernel: rtwn0: <vendor 0x0b05 product 0x17ab, class 0/0,
rev 2.00/2.00, addr 3> on usbus0
Apr 10 14:29:52 G-BSD kernel: rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
Apr 10 14:29:52 G-BSD kernel: wlan0: Ethernet address: 50:46:5d:af:f5:5e
Apr 10 14:29:52 G-BSD wpa_supplicant[27836]: Successfully initialized
wpa_supplicant
Apr 10 14:29:55 G-BSD wpa_supplicant[27837]: wlan0: Trying to associate with
4e:5d:4e:4b:c8:f8 (SSID='UK' freq=2412 MHz)
Apr 10 14:29:55 G-BSD wpa_supplicant[27837]: wlan0: Associated with
4e:5d:4e:4b:c8:f8
Apr 10 14:29:55 G-BSD kernel: wlan0: link state changed to UP
Apr 10 14:29:56 G-BSD wpa_supplicant[27837]: wlan0: WPA: Key negotiation
completed with 4e:5d:4e:4b:c8:f8 [PTK=CCMP GTK=CCMP]
Apr 10 14:29:56 G-BSD wpa_supplicant[27837]: wlan0: CTRL-EVENT-CONNECTED -
Connection to 4e:5d:4e:4b:c8:f8 completed [id=0 id_str=]
===== ifconfig wlan0 =====================================
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 50:46:5d:af:f5:5e
inet 192.168.6.95 netmask 0xffffff00 broadcast 192.168.6.255
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid UK channel 1 (2412 MHz 11g ht/20) bssid 4e:5d:4e:4b:c8:f8
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
protmode CTS ht20 ampdulimit 64k ampdudensity 4 shortgi -stbc -ldpc
wme roaming MANUAL
groups: wlan
===== lsusb -v info about dongle ==============================
Bus /dev/usb Device /dev/ugen0.2: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13
802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0b05 ASUSTek Computer, Inc.
idProduct 0x17ab USB-N13 802.11n Network Adapter (rev. B1) [Realtek
RTL8192CU]
bcdDevice 2.00
iManufacturer 1 Realtek
iProduct 2 802.11n WLAN Adapter
iSerial 3 00e04c000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Input/output error
Device Status: 0x0000
(Bus Powered)
Bug ID: 218527
Summary: [rtwn] Constantly packet dropping and connection loss
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: wireless
Assignee: freebsd-***@FreeBSD.org
Reporter: gosha-***@yandex.ru
I have a laptop with OS: FreeBSD G-BSD 12.0-CURRENT FreeBSD 12.0-CURRENT #0
r316281: Fri Mar 31 00:44:45 +05 2017 amd64
Since integrated WiFi based on Realtek 8723AE not supported, I have USB dongle
ASUS USB-N13 based on Realtek RTL8192CU chipset.
I have periodically disconnections from router (/var/log/messages have not any
records in that moments), packets not transmitted (I try to ping router) and
after some timeout (about 60 seconds) network start works but latency >1000ms
and packet dropping 10-20%. If I replug dongle, some time all works good until
next turn.
My PC places not far from WiFi router, and all other users have not problems
with WiFi.
I have that problem with various APs and that dongle in Win-PC works without
problem.
===== loader.conf ========================
if_rtwn_load="YES"
if_rtwn_usb_load="YES"
if_rtwn_pci_load="YES"
legal.realtek.license_ack=1
===== /etc/rc.conf =======================
wlans_rtwn0="wlan0"
ifconfig_wlan0="WPA inet 192.168.0.100/24"
===== ifconfig wlan0 list ap =============
UK 4e:5d:4e:4b:c8:f8 1 54M -75:-95 100 EP HTCAP RSN WME
BSSLOAD
===== /var/log/messages periodical messages related to rtwn
Apr 10 13:20:24 G-BSD kernel: rtwn0: rtwn_rxeof: totlen (1606) > len (1280)!
Apr 10 13:20:24 G-BSD kernel: rtwn0: rtwn_rxeof: totlen (13315) > len (384)!
===== /var/log/messages after plug in dongle ==============
Apr 10 14:29:52 G-BSD kernel: ugen0.2: <vendor 0x0b05 product 0x17ab> at usbus0
Apr 10 14:29:52 G-BSD kernel: rtwn0 on uhub0
Apr 10 14:29:52 G-BSD kernel: rtwn0: <vendor 0x0b05 product 0x17ab, class 0/0,
rev 2.00/2.00, addr 3> on usbus0
Apr 10 14:29:52 G-BSD kernel: rtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
Apr 10 14:29:52 G-BSD kernel: wlan0: Ethernet address: 50:46:5d:af:f5:5e
Apr 10 14:29:52 G-BSD wpa_supplicant[27836]: Successfully initialized
wpa_supplicant
Apr 10 14:29:55 G-BSD wpa_supplicant[27837]: wlan0: Trying to associate with
4e:5d:4e:4b:c8:f8 (SSID='UK' freq=2412 MHz)
Apr 10 14:29:55 G-BSD wpa_supplicant[27837]: wlan0: Associated with
4e:5d:4e:4b:c8:f8
Apr 10 14:29:55 G-BSD kernel: wlan0: link state changed to UP
Apr 10 14:29:56 G-BSD wpa_supplicant[27837]: wlan0: WPA: Key negotiation
completed with 4e:5d:4e:4b:c8:f8 [PTK=CCMP GTK=CCMP]
Apr 10 14:29:56 G-BSD wpa_supplicant[27837]: wlan0: CTRL-EVENT-CONNECTED -
Connection to 4e:5d:4e:4b:c8:f8 completed [id=0 id_str=]
===== ifconfig wlan0 =====================================
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
ether 50:46:5d:af:f5:5e
inet 192.168.6.95 netmask 0xffffff00 broadcast 192.168.6.255
media: IEEE 802.11 Wireless Ethernet MCS mode 11ng
status: associated
ssid UK channel 1 (2412 MHz 11g ht/20) bssid 4e:5d:4e:4b:c8:f8
regdomain FCC country US authmode WPA2/802.11i privacy ON
deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid 60
protmode CTS ht20 ampdulimit 64k ampdudensity 4 shortgi -stbc -ldpc
wme roaming MANUAL
groups: wlan
===== lsusb -v info about dongle ==============================
Bus /dev/usb Device /dev/ugen0.2: ID 0b05:17ab ASUSTek Computer, Inc. USB-N13
802.11n Network Adapter (rev. B1) [Realtek RTL8192CU]
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0b05 ASUSTek Computer, Inc.
idProduct 0x17ab USB-N13 802.11n Network Adapter (rev. B1) [Realtek
RTL8192CU]
bcdDevice 2.00
iManufacturer 1 Realtek
iProduct 2 802.11n WLAN Adapter
iSerial 3 00e04c000001
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 46
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
can't get debug descriptor: Input/output error
Device Status: 0x0000
(Bus Powered)
--
You are receiving this mail because:
You are the assignee for the bug.
You are receiving this mail because:
You are the assignee for the bug.