Re: [B.A.T.M.A.N.] batman-adv and 11n speed

2009-07-06 Thread xxiao

Elektra,
You're correct. I disabled batman-adv, the speed will still return to 11g after 
a second IBSS board is up. that has something to do with 
rate-discovery-under-IBSS for mac80211/ath9k I think.
thanks,
xxiao

--- On Mon, 7/6/09, elektra  wrote:

> From: elektra 
> Subject: Re: [B.A.T.M.A.N.] batman-adv and 11n speed
> To: austinxxh-at...@yahoo.com, "The list for a Better Approach To Mobile 
> Ad-hoc Networking" 
> Date: Monday, July 6, 2009, 2:43 PM
> Hi xxiao -
> 
> I guess your problem is not related to batman-adv - I would
> plea not
> guilty unless proven otherwise.  This looks like a
> driver issue. 
> 
> Batman doesn't force your driver to use a certain 802.11
> mode or rate.
> It does send protocol messages as broadcasts of course, and
> those are
> usually sent at basic rate.
> 
> Did you actually test performance in IBSS mode without
> batman-adv
> running?
> 
> Ath9k is pretty new and my guess is that the driver hasn't
> experienced
> much testing in IBSS mode.
> 
> I'd like to suggest that you test the following:
> 
> Restart your wireless interfaces, set up IBSS mode. Don't
> start
> batman-adv.
> 
> Send broadcasts (by sending ping to the networks broadcast
> address for
> example) and check if the driver reports the same behaviour
> or not.
> 
> Cheers,
> Elektra
> 
> 
> 
> > I'm using Openwrt/compat-wireless-2009-06-25 on a
> AR7161 board. I'm using ath9k trying to get 11n speed for
> batman-adv working. All code is from openwrt trunk.
> > 
> > >From the debugfs of mac80211/ath9k, I can see
> under IBSS mode, the rcstat reports speed up to 300mbps. I
> have batman-adv enabled.
> > 
> > However after a second board with the same software
> booted up, both boards' rcstat output showed a speed of 11g
> only, an immediate drop from 11n to 11g. It's like the
> second batman-adv somehow forced a 11g speed after it
> "talked" to the first batman-adv board.
> > 
> > Any help is appreciated!
> > xxiao
> > 
> > 
> > Before the second batman-adv is booted up:
> > r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
> >  Rate     
>    Success  Retries  XRetries PER
> > 
> >   1.0:       
> 0        0       
> 0        0
> >   2.0:       
> 0        0       
> 0        0
> >   5.5:       
> 0        0       
> 0        0
> >  11.0:        0   
>     0        0   
>     0
> >   6.0:       
> 0        0       
> 0        0
> >   9.0:       
> 0        0       
> 0        0
> >  12.0:        0   
>     0        0   
>     0
> >  18.0:        0   
>     0        0   
>     0
> >  24.0:        0   
>     0        0   
>     0
> >  36.0:        0   
>     0        0   
>     0
> >  48.0:        0   
>     0        0   
>     0
> >  54.0:        0   
>     0        0   
>     0
> >   6.5:       
> 0        0       
> 0        0
> >  13.0:        0   
>     0        0   
>     0
> >  19.5:        0   
>     0        0   
>     0
> >  26.0:        0   
>     0        0   
>     0
> >  39.0:        0   
>     0        0   
>     0
> >  52.0:        0   
>     0        0   
>     0
> >  58.5:        0   
>     0        0   
>     0
> >  65.0:        0   
>     0        0   
>     0
> >  13.0:        0   
>     0        0   
>     0
> >  26.0:        0   
>     0        0   
>     0
> >  39.0:        0   
>     0        0   
>     0
> >  52.0:        0   
>     0        0   
>     0
> >  78.0:        0   
>     0        0   
>     0
> > 104.0:        0   
>     0        0   
>     0
> > 117.0:        0   
>     0        0   
>     0
> > 130.0:        0   
>     0        0   
>     0
> >  13.5:        0   
>     0        0   
>     0
> >  27.5:        0   
>     0        0   
>     0
> >  40.5:        0   
>     0        0   
>     0
> >  54.0:        0   
>     0        0   
>     0
> >  81.5:        0   
>     0        0   
>     0
> > 108.0:        0   
>     0        0   
>     0
> > 121.5:        0   
>     0        0   
>     0
> > 135.0:        0   
>     0        0   
>     0
> > 150.0:        0   
>     0        0   
>     0
> >  27.0:        0   
>     0        0   
>     0
> >  54.0:        0   
>     0        0   
>     0
> >  81.0:        0   
>     0        0   
>     0
> > 108.0:        0   
>     0        0   
>     0
> > 162.0:        0   
>     0        0   
>     0
> > 216.0:        0   
>     0        0   
>     0
> > 243.0:        0   
>     0        0   
>     0
> > 270.0:        0   
>     0        0   
>     0
> > 300.0:        0   
>     0        0   
>     0
> > 
> > after the second batman-adv is up:
> > r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
> >  Rate     
>    Success  Retries  XRetries PER
> > 
> >   1.0:       
> 0        0       
> 0        0
> >   2.0:       
> 0        0       
> 0        0
> >   5.5:       
> 0        0       
> 0        0
> >  11.0:        0   
>     0        0   
>     0
> >   6.0:       
> 0        0       
> 0        0
> >   9.0:       
> 0        0       
> 0        0
> >  12.0:        0   
>     0        0   
>     0
> >  18.0:        0   
>     0       

Re: [B.A.T.M.A.N.] batman-adv and 11n speed

2009-07-06 Thread elektra
Hi xxiao -

I guess your problem is not related to batman-adv - I would plea not
guilty unless proven otherwise.  This looks like a driver issue. 

Batman doesn't force your driver to use a certain 802.11 mode or rate.
It does send protocol messages as broadcasts of course, and those are
usually sent at basic rate.

Did you actually test performance in IBSS mode without batman-adv
running?

Ath9k is pretty new and my guess is that the driver hasn't experienced
much testing in IBSS mode.

I'd like to suggest that you test the following:

Restart your wireless interfaces, set up IBSS mode. Don't start
batman-adv.

Send broadcasts (by sending ping to the networks broadcast address for
example) and check if the driver reports the same behaviour or not.

Cheers,
Elektra



> I'm using Openwrt/compat-wireless-2009-06-25 on a AR7161 board. I'm using 
> ath9k trying to get 11n speed for batman-adv working. All code is from 
> openwrt trunk.
> 
> >From the debugfs of mac80211/ath9k, I can see under IBSS mode, the rcstat 
> >reports speed up to 300mbps. I have batman-adv enabled.
> 
> However after a second board with the same software booted up, both boards' 
> rcstat output showed a speed of 11g only, an immediate drop from 11n to 11g. 
> It's like the second batman-adv somehow forced a 11g speed after it "talked" 
> to the first batman-adv board.
> 
> Any help is appreciated!
> xxiao
> 
> 
> Before the second batman-adv is booted up:
> r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
>  Rate Success  Retries  XRetries PER
> 
>   1.0:0000
>   2.0:0000
>   5.5:0000
>  11.0:0000
>   6.0:0000
>   9.0:0000
>  12.0:0000
>  18.0:0000
>  24.0:0000
>  36.0:0000
>  48.0:0000
>  54.0:0000
>   6.5:0000
>  13.0:0000
>  19.5:0000
>  26.0:0000
>  39.0:0000
>  52.0:0000
>  58.5:0000
>  65.0:0000
>  13.0:0000
>  26.0:0000
>  39.0:0000
>  52.0:0000
>  78.0:0000
> 104.0:0000
> 117.0:0000
> 130.0:0000
>  13.5:0000
>  27.5:0000
>  40.5:0000
>  54.0:0000
>  81.5:0000
> 108.0:0000
> 121.5:0000
> 135.0:0000
> 150.0:0000
>  27.0:0000
>  54.0:0000
>  81.0:0000
> 108.0:0000
> 162.0:0000
> 216.0:0000
> 243.0:0000
> 270.0:0000
> 300.0:0000
> 
> after the second batman-adv is up:
> r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
>  Rate Success  Retries  XRetries PER
> 
>   1.0:0000
>   2.0:0000
>   5.5:0000
>  11.0:0000
>   6.0:0000
>   9.0:0000
>  12.0:0000
>  18.0:0000
>  24.0:0000
>  36.0:0000
>  48.0:0000
>  54.0:0000
> 
> On both boards I have this:
> r...@openwrt:/# iwconfig
> lono wireless extensions.
> 
> eth0  no wireless extensions.
> 
> eth1  no wireless extensions.
> 
> br-lanno wireless extensions.
> 
> wlan0 IEEE 802.11abgn  ESSID:"xyz"  
>   Mode:Ad-Hoc  Frequency:2.432 GHz  Cell: 92:46:0A:A3:8B:39   
>   Tx-Power=27 dBm   
>   Retry  long limit:7   RTS thr:off   Fragment thr:off
>   Encryption key:off
>   Power Management:off
>   Link Quality:0  Signal level:0  Noise level:0
>   Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
>   Tx excessive retries:0  Invalid misc:0   Missed beacon:0
> 
> bat0  no 

[B.A.T.M.A.N.] batman-adv and 11n speed

2009-07-06 Thread xxiao

Hi,

I'm using Openwrt/compat-wireless-2009-06-25 on a AR7161 board. I'm using ath9k 
trying to get 11n speed for batman-adv working. All code is from openwrt trunk.

>From the debugfs of mac80211/ath9k, I can see under IBSS mode, the rcstat 
>reports speed up to 300mbps. I have batman-adv enabled.

However after a second board with the same software booted up, both boards' 
rcstat output showed a speed of 11g only, an immediate drop from 11n to 11g. 
It's like the second batman-adv somehow forced a 11g speed after it "talked" to 
the first batman-adv board.

Any help is appreciated!
xxiao


Before the second batman-adv is booted up:
r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
 Rate Success  Retries  XRetries PER

  1.0:0000
  2.0:0000
  5.5:0000
 11.0:0000
  6.0:0000
  9.0:0000
 12.0:0000
 18.0:0000
 24.0:0000
 36.0:0000
 48.0:0000
 54.0:0000
  6.5:0000
 13.0:0000
 19.5:0000
 26.0:0000
 39.0:0000
 52.0:0000
 58.5:0000
 65.0:0000
 13.0:0000
 26.0:0000
 39.0:0000
 52.0:0000
 78.0:0000
104.0:0000
117.0:0000
130.0:0000
 13.5:0000
 27.5:0000
 40.5:0000
 54.0:0000
 81.5:0000
108.0:0000
121.5:0000
135.0:0000
150.0:0000
 27.0:0000
 54.0:0000
 81.0:0000
108.0:0000
162.0:0000
216.0:0000
243.0:0000
270.0:0000
300.0:0000

after the second batman-adv is up:
r...@openwrt:/# cat /mnt/ath9k/phy0/rcstat 
 Rate Success  Retries  XRetries PER

  1.0:0000
  2.0:0000
  5.5:0000
 11.0:0000
  6.0:0000
  9.0:0000
 12.0:0000
 18.0:0000
 24.0:0000
 36.0:0000
 48.0:0000
 54.0:0000

On both boards I have this:
r...@openwrt:/# iwconfig
lono wireless extensions.

eth0  no wireless extensions.

eth1  no wireless extensions.

br-lanno wireless extensions.

wlan0 IEEE 802.11abgn  ESSID:"xyz"  
  Mode:Ad-Hoc  Frequency:2.432 GHz  Cell: 92:46:0A:A3:8B:39   
  Tx-Power=27 dBm   
  Retry  long limit:7   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:off
  Link Quality:0  Signal level:0  Noise level:0
  Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
  Tx excessive retries:0  Invalid misc:0   Missed beacon:0

bat0  no wireless extensions.

Here is the dmesg dump:
r...@openwrt:/# dmesg
30fe050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=831da04a DA=831da044 BSSID=831da050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=8312204a DA=83122044 BSSID=83122050 (tx_last_beacon=1)
wlan0: Sending ProbeResp to 838e1804
wlan0: RX ProbeReq SA=8326804a DA=83268044 BSSID=83268050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=8319e04a DA=8319e044 BSSID=8319e050 (tx_last_beacon=1)
wlan0: Sending ProbeResp to 838e1604
wlan0: RX ProbeReq SA=831ac04a DA=831ac044 BSSID=831ac050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=8309604a DA=83096044 BSSID=83096050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=831e204a DA=831e2044 BSSID=831e2050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=831a204a DA=831a2044 BSSID=831a2050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=832de04a DA=832de044 BSSID=832de050 (tx_last_beacon=1)
wlan0: RX ProbeReq SA=8324604a DA=83246044 BSSID=83246050 (tx_last_beacon=1)
wlan0: Sending ProbeResp to 838e1604
wlan0: R