Unable to change default bitrate of wireless network interface












4














I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows:



wlan0     IEEE 802.11abgn  ESSID:"FACULTY-STAFF-N"  
Mode:Managed Frequency:5.24 GHz Access Point: C4:0A:CB:2D:75:5A
Bit Rate=240 Mb/s Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2 Invalid misc:0 Missed beacon:0


To fix the bitrate (9Mbps in this case, but I checked multiple bit rates), I use these commands:



sudo iw dev wlan0 set bitrates legacy-5 9


OR



sudo iwconfig wlan0 rate 9M


I check the maximum bit rate used by wlan0 by iw dev wlan0 link; iwconfig wlan0 and I check the current bitrate used by interface through glances. However, none of these commands seem to have any effect on the bit rate.



This is the information on running iw dev wlan0 link:



Connected to c4:0a:cb:2d:75:55 (on wlan0)
SSID: FACULTY-STAFF-N
freq: 2462
RX: 420678 bytes (1949 packets)
TX: 144065 bytes (850 packets)
signal: -57 dBm
tx bitrate: 130.0 MBit/s MCS 14 short GI

bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 102


The accepted answer to the related question asked here requires me to bring down the interface before I change the rates. However, doing so I encounter the following error:



Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device wlan0 ; Network is down


Also I tried iw list. This command does not return all available rates but returns the current rate.










share|improve this question
























  • My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
    – Tanya Shreedhar
    Jul 21 '16 at 9:55












  • I have also used different laptops, another one using Atheros AR9485.
    – Tanya Shreedhar
    Jul 21 '16 at 10:34










  • did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
    – Alex Stragies
    Jul 21 '16 at 13:08


















4














I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows:



wlan0     IEEE 802.11abgn  ESSID:"FACULTY-STAFF-N"  
Mode:Managed Frequency:5.24 GHz Access Point: C4:0A:CB:2D:75:5A
Bit Rate=240 Mb/s Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2 Invalid misc:0 Missed beacon:0


To fix the bitrate (9Mbps in this case, but I checked multiple bit rates), I use these commands:



sudo iw dev wlan0 set bitrates legacy-5 9


OR



sudo iwconfig wlan0 rate 9M


I check the maximum bit rate used by wlan0 by iw dev wlan0 link; iwconfig wlan0 and I check the current bitrate used by interface through glances. However, none of these commands seem to have any effect on the bit rate.



This is the information on running iw dev wlan0 link:



Connected to c4:0a:cb:2d:75:55 (on wlan0)
SSID: FACULTY-STAFF-N
freq: 2462
RX: 420678 bytes (1949 packets)
TX: 144065 bytes (850 packets)
signal: -57 dBm
tx bitrate: 130.0 MBit/s MCS 14 short GI

bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 102


The accepted answer to the related question asked here requires me to bring down the interface before I change the rates. However, doing so I encounter the following error:



Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device wlan0 ; Network is down


Also I tried iw list. This command does not return all available rates but returns the current rate.










share|improve this question
























  • My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
    – Tanya Shreedhar
    Jul 21 '16 at 9:55












  • I have also used different laptops, another one using Atheros AR9485.
    – Tanya Shreedhar
    Jul 21 '16 at 10:34










  • did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
    – Alex Stragies
    Jul 21 '16 at 13:08
















4












4








4


1





I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows:



wlan0     IEEE 802.11abgn  ESSID:"FACULTY-STAFF-N"  
Mode:Managed Frequency:5.24 GHz Access Point: C4:0A:CB:2D:75:5A
Bit Rate=240 Mb/s Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2 Invalid misc:0 Missed beacon:0


To fix the bitrate (9Mbps in this case, but I checked multiple bit rates), I use these commands:



sudo iw dev wlan0 set bitrates legacy-5 9


OR



sudo iwconfig wlan0 rate 9M


I check the maximum bit rate used by wlan0 by iw dev wlan0 link; iwconfig wlan0 and I check the current bitrate used by interface through glances. However, none of these commands seem to have any effect on the bit rate.



This is the information on running iw dev wlan0 link:



Connected to c4:0a:cb:2d:75:55 (on wlan0)
SSID: FACULTY-STAFF-N
freq: 2462
RX: 420678 bytes (1949 packets)
TX: 144065 bytes (850 packets)
signal: -57 dBm
tx bitrate: 130.0 MBit/s MCS 14 short GI

bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 102


The accepted answer to the related question asked here requires me to bring down the interface before I change the rates. However, doing so I encounter the following error:



Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device wlan0 ; Network is down


Also I tried iw list. This command does not return all available rates but returns the current rate.










share|improve this question















I am trying to change the bitrate of my wireless nic (AR9565 driver: ath9k_htc) for experimentation purposes. I am running Ubuntu 14.04 LTS and my card details are as follows:



wlan0     IEEE 802.11abgn  ESSID:"FACULTY-STAFF-N"  
Mode:Managed Frequency:5.24 GHz Access Point: C4:0A:CB:2D:75:5A
Bit Rate=240 Mb/s Tx-Power=17 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Power Management:off
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:2 Invalid misc:0 Missed beacon:0


To fix the bitrate (9Mbps in this case, but I checked multiple bit rates), I use these commands:



sudo iw dev wlan0 set bitrates legacy-5 9


OR



sudo iwconfig wlan0 rate 9M


I check the maximum bit rate used by wlan0 by iw dev wlan0 link; iwconfig wlan0 and I check the current bitrate used by interface through glances. However, none of these commands seem to have any effect on the bit rate.



This is the information on running iw dev wlan0 link:



Connected to c4:0a:cb:2d:75:55 (on wlan0)
SSID: FACULTY-STAFF-N
freq: 2462
RX: 420678 bytes (1949 packets)
TX: 144065 bytes (850 packets)
signal: -57 dBm
tx bitrate: 130.0 MBit/s MCS 14 short GI

bss flags: short-preamble short-slot-time
dtim period: 1
beacon int: 102


The accepted answer to the related question asked here requires me to bring down the interface before I change the rates. However, doing so I encounter the following error:



Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device wlan0 ; Network is down


Also I tried iw list. This command does not return all available rates but returns the current rate.







linux wifi network-interface






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 13 '17 at 12:36









Community

1




1










asked Jul 21 '16 at 8:38









Tanya Shreedhar

2113




2113












  • My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
    – Tanya Shreedhar
    Jul 21 '16 at 9:55












  • I have also used different laptops, another one using Atheros AR9485.
    – Tanya Shreedhar
    Jul 21 '16 at 10:34










  • did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
    – Alex Stragies
    Jul 21 '16 at 13:08




















  • My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
    – Tanya Shreedhar
    Jul 21 '16 at 9:55












  • I have also used different laptops, another one using Atheros AR9485.
    – Tanya Shreedhar
    Jul 21 '16 at 10:34










  • did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
    – Alex Stragies
    Jul 21 '16 at 13:08


















My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
– Tanya Shreedhar
Jul 21 '16 at 9:55






My wireless chipset is AR9565 (driver: ath9k_htc). I checked for multiple bit rates. Also I tried iw list. This command does not return all available rates but returns the current rate.
– Tanya Shreedhar
Jul 21 '16 at 9:55














I have also used different laptops, another one using Atheros AR9485.
– Tanya Shreedhar
Jul 21 '16 at 10:34




I have also used different laptops, another one using Atheros AR9485.
– Tanya Shreedhar
Jul 21 '16 at 10:34












did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
– Alex Stragies
Jul 21 '16 at 13:08






did you check the available bit rates on the AP side too?. Do they include the bit-rates you tried?. For future reference: Add new information (like "I tried another device, AR9485") to the Question, not into comments. If the new information is in response to a commenter asking for it, perhaps flag it as helpful, and then -after adding the new info- flag the comment asking for it as "obsolete". That way the comment section can be kept on-topic, up2date and "clean".
– Alex Stragies
Jul 21 '16 at 13:08












1 Answer
1






active

oldest

votes


















0














I will be assuming that the WiFi card is called wlan0. I will divide the answer in two parts:




  1. Fixing the Error


Run sudo ifconfig wlan0 up to start the network, because you are getting error : SET failed on device wlan0 ; Network is down




  1. How to change the bitrate properly


Run iwlist wlan0 bitrate first to check what bit rates are supported and the current bitrate is.



Then, iwconfig wlan0 bitrate 24M






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f297311%2funable-to-change-default-bitrate-of-wireless-network-interface%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I will be assuming that the WiFi card is called wlan0. I will divide the answer in two parts:




    1. Fixing the Error


    Run sudo ifconfig wlan0 up to start the network, because you are getting error : SET failed on device wlan0 ; Network is down




    1. How to change the bitrate properly


    Run iwlist wlan0 bitrate first to check what bit rates are supported and the current bitrate is.



    Then, iwconfig wlan0 bitrate 24M






    share|improve this answer


























      0














      I will be assuming that the WiFi card is called wlan0. I will divide the answer in two parts:




      1. Fixing the Error


      Run sudo ifconfig wlan0 up to start the network, because you are getting error : SET failed on device wlan0 ; Network is down




      1. How to change the bitrate properly


      Run iwlist wlan0 bitrate first to check what bit rates are supported and the current bitrate is.



      Then, iwconfig wlan0 bitrate 24M






      share|improve this answer
























        0












        0








        0






        I will be assuming that the WiFi card is called wlan0. I will divide the answer in two parts:




        1. Fixing the Error


        Run sudo ifconfig wlan0 up to start the network, because you are getting error : SET failed on device wlan0 ; Network is down




        1. How to change the bitrate properly


        Run iwlist wlan0 bitrate first to check what bit rates are supported and the current bitrate is.



        Then, iwconfig wlan0 bitrate 24M






        share|improve this answer












        I will be assuming that the WiFi card is called wlan0. I will divide the answer in two parts:




        1. Fixing the Error


        Run sudo ifconfig wlan0 up to start the network, because you are getting error : SET failed on device wlan0 ; Network is down




        1. How to change the bitrate properly


        Run iwlist wlan0 bitrate first to check what bit rates are supported and the current bitrate is.



        Then, iwconfig wlan0 bitrate 24M







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 19 '17 at 3:25









        Vedant

        1011




        1011






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f297311%2funable-to-change-default-bitrate-of-wireless-network-interface%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            List directoties down one level, excluding some named directories and files

            list processes belonging to a network namespace

            list systemd RuntimeDirectory mounts