RTL8192CU speed issue

Having issues with your DietPi installation, or, found a bug? Post it here.
Castle

RTL8192CU speed issue

Post by Castle »

Hi,

I recently switched to Dietpi for my audio endpoints and am very happy with it.
Only one of my PI's has a TP-WN822n usb wifi adapter. It is a V3 type with a RTL8192CU chipset.

The problem is that it won't connect with speeds over 72.2Mbit and with the stock Raspbian it connected with the full 300Mbit of which it is capable.

Must be a driver problem. Can anybody help me out?

Thx in advance,
Jelle
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote:Hi,

I recently switched to Dietpi for my audio endpoints and am very happy with it.
Only one of my PI's has a TP-WN822n usb wifi adapter. It is a V3 type with a RTL8192CU chipset.

The problem is that it won't connect with speeds over 72.2Mbit and with the stock Raspbian it connected with the full 300Mbit of which it is capable.

Must be a driver problem. Can anybody help me out?

Thx in advance,
Jelle
Hi castle,

Make sure you have set the Wifi country code for your country, enables channels and power ratings legal for your country: dietpi-config > Networking: Adapters > WiFi.
note to self:
Maximum PHY data rate up to 144.4Mbps using 20MHz bandwidth, 300Mbps using 40MHz bandwidth
http://www.realtek.com.tw/products/prod ... ProdID=277
If problems persist, please let us know. I've got a RTL8192CU Edimax Nano laying around somewhere that we can use to run some tests.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

Thx for the reply Fourdee.

I have got the country code set to NL as I did with Raspbian.
So the problem still persists ;)

Also after the most recent update of DietPi.

Hope you can help me out!

Regards,
Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

And to add to that, your note to self just sinked in. Looks like it is stuck on 10mhz bandwth as it is exactly half of the 20Mhz speed.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote:And to add to that, your note to self just sinked in. Looks like it is stuck on 10mhz bandwth as it is exactly half of the 20Mhz speed.
Thanks.

Git Ticket, will take a look in the next day or two, you can track progress here: https://github.com/Fourdee/DietPi/issues/564
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Hi Castle,

I got expected results with my Edimax Nano:https://github.com/Fourdee/DietPi/issue ... -255529922, however, this is not 300mbit capable.

Can you please verify your router is running with a 40mhz channel width? Sometimes, if this is set to Auto, it can automatically flick between 20mhz and 40mhz without any indication, in which case, wifi speeds would be reduced.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

Yes my router is running at 40mhz bandwidth.
When I plug it into my laptop it has a 300Mbit connection.

Back to the RPI3 it is stuck at the 72.2Mbit.
As I said earlier, with Raspbian light it runs at least at 150Mbit.

Regards,
Jelle
Castle

Re: RTL8192CU speed issue

Post by Castle »

To add to this.
The activity led on de wifi device doesn't come on or flicker on activity as with Jessie light.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: RTL8192CU speed issue

Post by Fourdee »

Castle wrote:To add to this.
The activity led on de wifi device doesn't come on or flicker on activity as with Jessie light.
Bizzare, lets check the status of the device might give us some more info, can you paste results of:

Code: Select all

iwconfig wlan0
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
Castle

Re: RTL8192CU speed issue

Post by Castle »

To make it more interesting, I did a complete reinstall.
I added my wireless settings in dietpi.txt before first boot.
Started up the Pi and... it connected with 300Mbt.......
It ran thru the first installation scripts and after the first reboot...... back to 72.2Mbit......

Here's the dump as per your request:

root@RPI-Keuken:~# iwconfig wlan0
wlan0 IEEE 802.11bgn ESSID:"Castlepoint"
Mode:Managed Frequency:2.427 GHz Access Point: E4:F4:C6:1C:4F:20
Bit Rate=65 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=58/70 Signal level=-52 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:0 Missed beacon:0
Post Reply