[OLSR-users] Re: Setting up OLSR for a complicated environment

Michael Oh (spam-protected)
Mon Feb 12 21:12:45 CET 2007


We are able to get ad-hoc and ap with atheros chipsets working. Had some
trouble, but the following works for us reliably. Not sure yet if it was
forcing the cards to 802.11b mode only or hiding the ssid...

============
        insmod ath_pci autocreate=none

        wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
        wlanconfig ath1 create wlandev wifi0 wlanmode ap

        iwconfig ath0 channel 3
        iwconfig ath0 rts 250  frag 500

        iwpriv ath1 bintval 400
        iwpriv ath0 bintval 400

        APSSID=$( ip link sho ath1 | tail -n 1 | \
                awk '{ split($2, ar, ":"); printf ("mesh-%s%s", ar[5],
ar[6]) }' )
        AHADDR=$( ip link sho ath0 | tail -n 1 | \
                awk '{ split($2, ar, ":"); printf ("10.%d\.%d\.%d", "0x"
ar[4], "0x" ar[5], "0x" ar[6]) }' )

        iwconfig ath0 essid "Mesh"
        iwconfig ath1 essid "$APSSID"
        ip addr add ${AHADDR}/8 dev ath0
        ip addr add 192.168.2.1/24 dev ath1

        # 802.11b only
        iwpriv ath0 mode 2
        iwpriv ath1 mode 2

        # hide the mesh side ssid
        iwpriv ath0 hide_ssid 1
        iwpriv ath0 turbo 0

        ip link set ath0 up
        ip link set ath1 up

        iwpriv ath0 authmode 2
        iwpriv ath0 bintval 400
        iwpriv ath1 bintval 400

        iwconfig ath0 channel 3
        iwconfig ath1 channel 3
============


On 2/12/07, Ignacio García Pérez <(spam-protected)> wrote:
>
> Jon Smirl escribió:
> > Do my wireless mesh nodes have to be running in ad hoc mode? Note that
> > in my case they are in fixed locations.
> Yes you need adhoc mode.
> >
> > If the wireless mesh nodes are running in adhoc, how does a normal
> > laptop running in Infrastructure mode attach to the adhoc network?
> It has to run also in ad-hoc mode and run olsrd. Definitely not for the
> average joe user.
>
> A two radio setup would obviously solve the problem, but is more
> expensive.
>
> And a third option would be having a radio that can simultaneously run
> in ad-hoc and ap mode. Checkout the atheros based minipci radios. I'm
> sure (because I've succesfully done it) you can setup a radio
> simultaneously as ap and client (in the same channel, of course). In
> fact, you can set it up as several virtual acces points and one client.
> I haven't been able to setup ap and ad-hoc simultaneously though.
>
>
> >
> > Could I run my mesh nodes in Master mode and then use OLSR to set up
> > WDS links between them?
> >
> Mmm... don't know enough about WDS as to respond, but seem to recall
> that WDS was a really really dumb mechanism.
>
> _______________________________________________
> olsr-users mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-users
>



-- 

Thanks!
Michael Oh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20070212/3a583f8a/attachment.html>


More information about the Olsr-users mailing list