Archive for the ‘OpenWRT’ Category

OpenWRT and 802.11n on Asus WL-500W

802.11n is now working in attitude_adjustment 12.09-rc1 with the new proprietary broadcom driver. If you don’t want to be bothered compiling your own binary, the quickest way to get it working is as follows.

Firstly, install openwrt-brcm47xx-squashfs.trx version 12.09-rc1 or newer.
http://downloads.openwrt.org/attitude_adjustment/12.09-rc1/brcm47xx/generic/openwrt-brcm47xx-squashfs.trx

Once it’s up and running, remove the following packages:
opkg remove kmod-b43 kmod-b43legacy kmod-mac80211 kmod-cfg80211

Install the following propriatary Broadcom packages:
opkg update; opkg install kmod-brcm-wl nas wlc wl

Reboot
reboot; exit

Delete and reconfigure your wireless configuration and make a new one for the new driver.
rm -f /etc/config/wireless
wifi detect > /etc/config/wireless

Configure wireless settings. Set WMM Mode to 1:

https://forum.openwrt.org/viewtopic.php?id=28758&p=2

Your wireless spec has to be set manually using the wl tools. Add the commands to your /etc/rc.local file to have them executed at boot:
wl down
wl chanspec -b 2 -c 4 -w 40 -s -1
wl up

More info regarding the above command:
root@OpenWrt:~# wl -h chanspec
chanspec
Set [a,b][n][u,l]
channel number (0-224)
band a=5G, b=2G, default to 2G if channel <= 14
bandwidth, n=10, none for 20 & 40
ctl sideband, l=lower, u=upper
OR Set channel with legacy format:
-c channel number (0-224)
-b band (5(a) or 2(b/g))
-w bandwidth, 10,20 or 40
-s ctl sideband, -1=lower, 0=none, 1=upper

root@OpenWrt:~#

Check out your status with:
wl status

Wireless scanners show the wireless connection to be 802.11n. The transmits rate is around 300 Mbps. Looks like 11n to me.

Advertisements

WDS between AirPort Express and OpenWRT Kamikaze

I wanted to stream music with AirTunes to my AirPort Express, as well as, use the AE as an ethernet bridge for my Neuros OSD. I don’t really care too much about WDS except that the AirPort Extreme won’t bridge the ethernet when it’s in simple client mode, only in Wireless Distribution System mode (Good ol’ Apple flexibility)! So off I went trying to get the AE (Firmware 6.3) to play nice with my Asus WL-500W (Kamikaze installed).

Contrary to what I expected, the AE actually played nicely. The problem turned out to be the OpenWRT documentation. It describes the needed parameters, but neglects to mention, you need two wifi-iface configuration blocks; One for the Access Point conf and one for the WDS conf. Once I figured that out, the rest was gravy.

The config in Kamikaze (Configuration using Webif² worked as well):
config 'wifi-device' 'wl0'
option 'type' 'broadcom'
option 'channel' '5'
option 'disabled' '0'

config 'wifi-iface'
option 'device' 'wl0'
option 'network' 'lan'
option 'mode' 'ap'
option 'ssid' 'ssidname'
option 'encryption' 'wep'
option 'hidden' '0'
option 'key' '1'
option 'key1' 'xxxxxxxxxx'
option 'wds' '0'

config 'wifi-iface'
option 'device' 'wl0'
option 'network' 'lan'
option 'mode' 'wds'
option 'ssid' 'ssidname-wds'
option 'encryption' 'none'
option 'bssid' 'Airport Extreme's mac address'
option 'hidden' '0'
option 'wds' '0'

The AE settings were as one would expect:
Wireless Mode: Participate in WDS network
Channel: 5 (Same channel as the OpenWRT router)
Wireless Security: Wep (Also works with none)
WDS Mode: WDS remote
WDS Main: The wireless mac of the OpenWRT router

That’s all. The rest of the settings should be fine with the default.

As I said, I tested this with no security and WEP. I’d be interested to hear if the other security methods work so please post a comment. Cheers.

OpenWRT on Asus WL-500W

UPDATE: 802.11n now works

OpenWRT does not yet support the Asus WL-500W although there is some info in the developers blogs about how people got it working. Being a fan of this great project, I gave it a shot and updated the documentation with my efforts. I’ve been using it for about 2 weeks now and it works like a charm.

The 802.11n networking does not yet work. There is a new version of the proprietary broadcom driver in the Asus firmware. It hasn’t been included in the Openwrt CVS but I think this could be the ticket. I’ll give it a shot if I have some spare time in the future.

If you would simply like me to send you the version I complied, give me a quick email at
guarddogit-wordpress (at) yahoo (dot) ca

Update:
I updated the docs to include building of the Webif² package. Works pretty well but not perfectly. I still couldn’t get the wireless working with anything other than the wl_mimo driver which means only 802.11g works.