Hi All,
I was able to compile/link batman statically and configure using the instructions given by Sven
LDFLAGS="-s -static" /usr/bin/make
You can check it with `file batmand`. It should print something like batmand: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, for GNU/Linux 2.6.8, stripped
$ wlanconfig ath0 create wlandev wifi0 wlanmode adhoc
$ iwconfig ath0 essid testnet
$ iwconfig ath0 ap 02:00:de:ad:be:ef
$ iwconfig ath0 channel 10
$ ip addr add $IP brd $BRDCAST dev ath0
$ ip link set ath0 up
On running the command wlanconfig ath0 create wlandev wifi0 wlanmode adhoc I get the following output
ath0: unable to register device
ath0
I currently have 2 devices and use the following IP address configuration
IP :192.168.1.10 & 192.168.1.11
BRDCAST: 192.168.1.255
Finally I run ./batmand ath0
This echos :Using interface ath0 with address IP and broadcast address BDCAST
To test I tried pinging one device from the other, but it doesn't seem to work. Have I missed out something or is my configuration just wrong. Also whats the best way to test if the configuration and devices are running correctly.
Thanks
Kartik