Connecting P1i to FreeBSD

Sepherosa Ziehau sepherosa at gmail.com
Mon Apr 28 08:16:55 UTC 2008


On Mon, Apr 28, 2008 at 7:22 AM, Ivan Voras <ivoras at freebsd.org> wrote:
> Sepherosa Ziehau wrote:
>
>
> >
> > >  I think you are using iwi to do the tap, could you put iwi into
> > >  monitor mode, since iwi is "smart" device which may filter certain
> > >  type of frames in non-monitor mode?
> > >
> >
>
>  Do you still need these tests since you did your own with the rum device?
> Apparently my iwi device causes kernel panic when switching modes or some
> related activity, so it's difficult to work with.

I just wanted to see whether the cause of your problem is the same as mine.
Will iwi panic if you set "mediaopt monitor" before bringing it up?

>
>
>
> >
> > >  I tested my rum: the beacon template set in the hardware is trashed in
> > >  a strange a pattern
> > >
> > BTW, the pattern is anything beyond 64bytes will be wrapped.  See the
> > dump and the beacon content.
> >
>
>  Yes, I see what you mean...
>
>
>
> >

...

> > >
> > >  After several small code change, I found that beacon template size
> > >  can't exceeds 64bytes.  Small template space means you could only use
> > >  rum IBSS in 11b mode.  I have tried to setup BEACON_BASE1 but without
> > >
> >
>
>  I tried, and I can't run rum in IBSS in 11b (at least the device in
> question ignores it as always). Can you?

On old system, before you bring rum up:
ifconfig rum0 mode 11b

It works fine for me; beacon size is less than 64bytes, if I choose
short essid (short essid will not make 11g work, since even one char
essid would make beacon size go beyond 64bytes)

But one thing I noticed, is that once you operate rum as IBSS starter,
it always tries to sending beacons even if you set its operation mode
back into STA, i.e. IBSS operation mode is "sticky" o_O.  I suspect
this is a driver bug.

>
>
>
> >
> > >  result.  If it is not a hardware design flaw then we will need data
> > >  sheet to make it correct.
> > >
> >
>
>  I don't think it's a hardware fault since it "just works" in Windows
> without any special configuration.

Nah, Windows puts rum into 11b mode and uses short essid when working
as IBSS starter (see the tap you posted in the previous email), could
you set essid to a 32 char string under Windows instead of "A2"?

>
>  Btw. what hardware revision is your rum device? Mine is C1 (found on the
> label before the firmware version).

I do not have the hardware at hand now; Will take a look at it when I
come back home.

>
>  I don't know about data sheets, but the Linux driver (rum-equivalent) is
> available from the chips' vendor:
> http://www.ralinktech.com/ralink/Home/Support/Linux.html
>  It should be the one for RT2500USB.

I took a look at it yesterday, when I tried to program BEACON_BASE1 :)
I don't think 11g IBSS operation mode will work under Linux.  That's
why data sheet will be necessary to make it correct.

Best Regards,
sephe

-- 
Live Free or Die


More information about the freebsd-net mailing list