[ns] Change the value of dataRate_ in Mac/802_11

2009-07-07 Thread El hadi Cherkaoui

hi all,

i want to change via tcl the value of rate in Mac/802_11 ...

For exemple when i set :
Mac/802_11 set dataRate_ 1Mb 
the dataRate is really 1 Mb but after if i want to change the datarate to 2Mb
Mac/802_11 set dataRate_ 2Mb 

the value of dataRate_ is still 1Mb

What's wrong with this ?
thanx 




  


Re: [ns] Change the value of dataRate_ in Mac/802_11

2009-07-07 Thread David Ross

Are you setting it *before* creating the nodes?
If dataRate_ is not set when the nodes are created, they use bandwidth_ 
(defaults to 1Mb) instead.

- David Ross.

El hadi Cherkaoui wrote:
 hi all,

 i want to change via tcl the value of rate in Mac/802_11 ...

 For exemple when i set :
 Mac/802_11 set dataRate_ 1Mb 
 the dataRate is really 1 Mb but after if i want to change the datarate to 2Mb
 Mac/802_11 set dataRate_ 2Mb 

 the value of dataRate_ is still 1Mb

 What's wrong with this ?
 thanx