-4

In my project, I have a Android smartphone and a router (can be a normal router or use a laptop running Linux or Windows). I need to emulate some traffic jam or signal degradation. I know the WIFI link speed is normally changing automatically based on signal strength and etc..Is it possible to change it manually whenever I want? The signal strength is always good because I just put the phone beside the router.. Thanks,

Hao Shen
  • 93
  • 1
  • 4
  • Use a combination of turning down the transmit power and putting the phone further away from the router. – Sammitch Sep 26 '13 at 18:54
  • @Sammitch I see... But do you know is there a way to do it in code or software? – Hao Shen Sep 26 '13 at 18:56
  • 1
    Obviously it depends on the router. On most 'enterprise' APs you can connect with a command line interface and issue commands to change settings, which would include radio power, frequency, maximum link speed, etc. – Zoredache Sep 26 '13 at 19:02
  • @Zoredache Looks useful. I will take a look at my router settings. Thanks – Hao Shen Sep 26 '13 at 19:09

1 Answers1

6

Since you mentioned linux.

iwconfig man page says you can.... eg:

 iwconfig wlan0 rate 11M
 iwconfig wlan0 rate auto
 iwconfig wlan0 rate 5.5M auto
Michael Hampton
  • 244,070
  • 43
  • 506
  • 972
  • Looks like you are configuring the ethernet. What is needed is to configure the WIFI link speed:) – Hao Shen Sep 26 '13 at 19:08
  • 4
    No, Mike Brentlinger's comments are correct. The `iwconfig` command is specifically for Wi-Fi, and the speeds he uses in his example are for Wi-Fi (IEEE 802.11) and not for Ethernet (802.3). – user8162 Sep 26 '13 at 19:14