$ ./lsmesh.sh
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:
#!/bin/bash
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"
fi
done
No comments:
Post a Comment