OpenWrt Forum Archive

Topic: Setting Up a B.A.T.M.A.N. Network on Buffalo WZR-HP-G300NH

The content of this topic has been archived on 21 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

So in following the Open Mesh documentation (found here) on setting up a "simple mesh network", I'm running into some issues setting my wireless device to ad-hoc mode.

root@OpenWrt:~# ifconfig wlan0 down
root@OpenWrt:~# iwconfig wlan0 mode ad-hoc essid my-mesh-network ap 02:12:34:56:78:9A channel 1
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan0 ; Device or resource busy.

Given that I just brought the device down, I'm a little confused as to why it would be busy. Anyone have any insight as to what's going on here?

Hostapd is keeping the iface busy.

jow wrote:

Hostapd is keeping the iface busy.

Set fails even after the hostapd package is removed. Anyway, I went into /etc/config/wireless and changed the values to what I think should work.

config wifi-device  radio0
        option type     mac80211
        option channel  1
        option macaddr  02:12:34:56:78:9A
        option hwmode   11ng
        option htmode   HT20
        list ht_capab   SHORT-GI-40
        list ht_capab   DSSS_CCK-40
        # REMOVE THIS LINE TO ENABLE WIFI:


config wifi-iface
        option device   radio0
        option network  lan
        option mode     adhoc
        option ssid     my-mesh-network
        option encryption none

I obviously did something wrong, because when I try to bring up the wireless interface I get the following results:

root@OpenWrt:~# wifi
PHY for wifi device radio0 not found
PHY for wifi device radio0 not found

Any ideas? What is a radio phy?

(Last edited by Pirate_0x on 6 May 2011, 01:30)

The mac address is wrong.

Huzzah! It's working. Now I just need to debrick my other router big_smile Thanks jow.

Bumping this old thread for a similar issue. I'm trying to construct a mesh bridge rather than just a relay, and am running into this issue:

root@OpenWrt:~# brctl addbr mesh-bridge
root@OpenWrt:~# brctl addif mesh-bridge eth0
brctl: bridge mesh-bridge: Device or resource busy
root@OpenWrt:~# brctl addif mesh-bridge bat0
root@OpenWrt:~#

Any ideas why I can't make a bridge? Do I need to bring eth0 or br-lan down? I killed hostapd.

(Last edited by Pirate_0x on 29 Jul 2011, 05:05)

The discussion might have continued from here.