Thursday, June 25, 2009

wireless drivers that support Mesh Point mode

Here's a little script that I developed to query your Linux PC for information about mesh-capable wireless drivers, if any. It prints the relevant phy names, MAC addresses, and driver name. It just requires a recent version of iw. For example:

$ ./
phy1 00:1f:c6:20:c1:71 rt73usb
phy0 00:ff:f3:a0:24:bd ath5k

You then know what phy to use with iw (and what driver supports your device, if you're curious). Here's the script:


PHYS=`iw list | grep Wiphy | cut -d ' ' -f 2`

for phy in $PHYS; do
iw phy $phy info | grep "mesh point" >/dev/null
if [ "$?" = "0" ]; then
MAC="`cat /sys/class/ieee80211/$phy/macaddress`"
DRIVER="`ls /sys/class/ieee80211/$phy/device/driver/module/drivers/ 2>/dev/null | cut -d ':' -f 2`"

echo "$phy $MAC $DRIVER"

Thursday, June 11, 2009

Libertas GSPI driver in 2.6.30

The Libertas GSPI driver that I worked on is now mainline, as part of Linux kernel 2.6.30. While this is definitely good news, there have been subsequent improvements to the driver they'll land in upcoming kernels.

If you're planning to use this driver (which supports SPI-interfaced Marvell 88w8686 cards), please also take a look at:
  • this patch to remove the use of GPIO Chip Select in the driver. If you're using a Blackfin-based system, you'll need to configure your SPI controller to use GPIO-based Chip Select but that can be done in your board config and didn't belong in the libertas_spi driver!
  • this one with endianness fixes, especially needed for big-endian systems (ex: PowerPC)
  • this one with a fix for IEEE Power Save mode
...or, better yet, pull the driver from wireless-testing if possible so that you're working with the latest.