LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-13-2019, 06:15 AM   #1
fr483
LQ Newbie
 
Registered: Nov 2018
Posts: 8

Rep: Reputation: Disabled
What happens when using "iw dev <device> set bitrates ..." to set wireless transmit bitrates?


Hello,
I have a doubt about what happens when trying to set a wireless transmit bitrate with "iw dev <device> set bitrates".
Reading the "iw" documentation, it states that it works "by masking in the allowed bitrates, and also lets you clear the mask."

How does this bitrate masking happen? Does the iw tool tell the driver, using nl80211, what are the allowed bitrates to be used for transmission?
Are the drivers required to implement this or does this really depend on the driver and it may be unsupported by some of them?

I'm asking because I was able, for testing purposes, to set a bitrate of 6 Mbit/s, when connected to a 5 GHz 802.11a access point, with "sudo iw dev wlan0 set bitrates legacy-5 6". The problem was that "iwconfig" was still telling me about the bitrate being "54 Mbit/s", even though I could clearly see the effect of a much lowered transmit bitrate (for instance when tesing the goodput with iPerf or when using ping to measure the latency with a big payload size), and this makes me a bit confused.

How can I be sure that the bitrate I set was really accepted by the kernel and by the kernel?

Moreover, trying to force a single bitrate (11 Mbit/s) with "legacy-2.4" over a 802.11n connection ("sudo iw dev wlan0 set bitrates legacy-2.4 11"), in order to test a basic rate 802.11b connection, was completely unsuccessful, and, even if I got no output from the aforementioned command, it was like my request was completely ignored (I could reach over 40 Mbit/s). Why was this happening? Was I doing something wrong with "iw"?

Thank you very much in advance.
 
Old 03-13-2019, 07:03 AM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
iw doesn't return anything when it works. 'legacy-2.4' is the argument; '11' is extraneous.
 
Old 03-13-2019, 10:24 AM   #3
fr483
LQ Newbie
 
Registered: Nov 2018
Posts: 8

Original Poster
Rep: Reputation: Disabled
"11" should be the desired bitrate to be set in the mask, isn't this right? This is reported also in the "iw" documentation: https://wireless.wiki.kernel.org/en/...egacy_bitrates
The problem was that iw actually did not returned anything, but the desired 2.4 GHz legacy data rate (11 Mbit/s) was not set...
 
1 members found this post helpful.
Old 03-13-2019, 01:56 PM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
I was wrong.
 
  


Reply

Tags
802.11n, bitrate, mask, wireless



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Any "turnkey" device out there to transmit/receive through RF? eantoranz Linux - Hardware 6 01-12-2017 11:27 AM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
using flash drive changes device /dev/sr0 to /dev/sr1 for mapping to /dev/pktcdvd/0? lugoteehalt Linux - Software 3 10-24-2007 10:27 AM
command to convert mp3s to lower bitrates? bgryderclock Linux - Software 4 10-07-2006 05:25 PM
mplayer .ra (lame enc error bitrates>160kb/s) bendeco13 Linux - General 2 11-06-2004 06:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration