Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 09:52:05 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-wireless@FreeBSD.org
Subject:   [Bug 218527] [rtwn] Constantly packet dropping and connection loss
Message-ID:  <bug-218527-21060@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218527

            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-wireless@FreeBSD.org
          Reporter: gosha-necr@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=20
Since integrated WiFi based on Realtek 8723AE not supported, I have USB don=
gle
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 >1000=
ms
and packet dropping 10-20%. If I replug dongle, some time all works good un=
til
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.

=3D=3D=3D=3D=3D loader.conf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=20
if_rtwn_load=3D"YES"
if_rtwn_usb_load=3D"YES"
if_rtwn_pci_load=3D"YES"
legal.realtek.license_ack=3D1

=3D=3D=3D=3D=3D /etc/rc.conf =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
wlans_rtwn0=3D"wlan0"
ifconfig_wlan0=3D"WPA inet 192.168.0.100/24"

=3D=3D=3D=3D=3D ifconfig wlan0 list ap =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
UK              4e:5d:4e:4b:c8:f8    1   54M  -75:-95   100 EP   HTCAP RSN =
WME
BSSLOAD

=3D=3D=3D=3D=3D /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)!

=3D=3D=3D=3D=3D /var/log/messages after plug in dongle =3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D
Apr 10 14:29:52 G-BSD kernel: ugen0.2: <vendor 0x0b05 product 0x17ab> at us=
bus0
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=3D'UK' freq=3D2412 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=3DCCMP GTK=3DCCMP]
Apr 10 14:29:56 G-BSD wpa_supplicant[27837]: wlan0: CTRL-EVENT-CONNECTED -
Connection to 4e:5d:4e:4b:c8:f8 completed [id=3D0 id_str=3D]

=3D=3D=3D=3D=3D ifconfig wlan0 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
wlan0: flags=3D8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 15=
00
        ether 50:46:5d:af:f5:5e
        inet 192.168.6.95 netmask 0xffffff00 broadcast 192.168.6.255=20
        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=20

=3D=3D=3D=3D=3D lsusb -v info about dongle =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Bus /dev/usb Device /dev/ugen0.2: ID 0b05:17ab ASUSTek Computer, Inc. USB-N=
13
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=20
  bDeviceProtocol         0=20
  bMaxPacketSize0        64
  idVendor           0x0b05 ASUSTek Computer, Inc.
  idProduct          0x17ab USB-N13 802.11n Network Adapter (rev. B1) [Real=
tek
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=20
    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=20
      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=20
  bDeviceProtocol         0=20
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Input/output error
Device Status:     0x0000
  (Bus Powered)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218527-21060>