SourceForge.net Logo

4.10. Wireless Driver (madwifi)

The wireless NIC used in the SISO router is made by Altheros. The roots of this Linux madwifi driver are in the OpenBSD project. The Hardware Abstraction Layer (HAL) of this driver is based on a data sheet obtained under NDA. Therefore that part of the source code is not available. Note that the OpenBSD community recently reverse engineered the HAL (ar5xxx.c and ar5xxx.h).

Download:

wget -P $DL_DIR http://superb-west.dl.sourceforge.net/sourceforge/madwifi/madwifi-0.9.4.tar.bz2  # was 0.9.2, 0.9.3.2 throws skb_over_panic
tar -C $PRJ_DIR/apps -xvjf $DL_DIR/madwifi-0.9.4.tar.bz2
cd $PRJ_DIR/apps/madwifi-0.9.4

Compile and install to rootfs.d (remember to install sharutils [28] first). Note that it builds, despite the undefined! warnings.

make KERNELPATH=$LINUX_DIR TOOLPREFIX=$TOOLCHAIN_CROSS \
     CROSS_COMPILE=$TOOLCHAIN_CROSS DESTDIR=$ROOTFS_DIR ATH_RATE=ath_rate/sample

make KERNELPATH=$LINUX_DIR TOOLPREFIX=$TOOLCHAIN_CROSS \
     CROSS_COMPILE=$TOOLCHAIN_CROSS ATH_RATE=ath_rate/sample \
     DESTDIR=$ROOTFS_DIR BINDIR=/usr/bin MANDIR=/usr/man install

[Note]Note

ratectrl=onoe should be specified when loading ath_pci from /etc/sysconfig/network/ifup, otherwise the advanced sample will be selected.

An example configuration can be found in Section 7.1.1, “Wired Equivalent Privacy (WEP)”.

For secure connections additional software is needed as described in Section 4.11, “Wireless Authenticator and Authentication Server (hostapd)”.



[28] yum install sharutils