OpenWrt Forum Archive

Topic: HOWTO enable WLAN on D-Link DIR-825 with OpenWrt 10.03 (Backfire)

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

Hello,

this is how you enable WLAN on both radios (2.4 GHz and 5 GHz) on the DIR-825:

Either you follow the description here: http://wiki.openwrt.org/toh/d-link/dir-825

Or you do it like this:

opkg update
opkg install kmod-ath9k wpad-mini

wpad-mini supports WPA-PSK. If you need WPA/EAP/RADIUS, install wpad instead.

Now log into luci at http://192.168.1.1/ and enable and configure your Wifi devices.
Radio 0 is 2.4 GHz and radio 1 is 5 Ghz. Enable both, change to the expert mode, go to Network > Wifi > Radio 0 and 1, and set radio 0 channel to a 6 f. ex. (2.4 GHz) and radio 1 to channel 36 (5 GHz).
For both radios set the country to "US".

Afterwards you can check your settings on the command line like this:

$ uci show wireless
wireless.radio0=wifi-device
wireless.radio0.type=mac80211
wireless.radio0.macaddr=00:26:xx:xx:xx:xx
wireless.radio0.htmode=HT20
wireless.radio0.ht_capab=SHORT-GI-40 DSSS_CCK-40
wireless.radio0.disabled=0
wireless.radio0.country=US
wireless.radio0.channel=6
wireless.radio0.hwmode=11ng

wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device=radio0
wireless.@wifi-iface[0].network=lan
wireless.@wifi-iface[0].mode=ap
wireless.@wifi-iface[0].ssid=OpenWrt-0
wireless.@wifi-iface[0].encryption=psk-mixed
wireless.@wifi-iface[0].key=SecretKey12345
wireless.radio1=wifi-device
wireless.radio1.type=mac80211
wireless.radio1.channel=36
wireless.radio1.macaddr=00:26:xx:xx:xx:xx
wireless.radio1.hwmode=11na
wireless.radio1.htmode=HT20
wireless.radio1.ht_capab=SHORT-GI-40 DSSS_CCK-40
wireless.radio1.disabled=0
wireless.radio1.country=US
wireless.@wifi-iface[1]=wifi-iface
wireless.@wifi-iface[1].device=radio1
wireless.@wifi-iface[1].network=lan
wireless.@wifi-iface[1].mode=ap
wireless.@wifi-iface[1].ssid=OpenWrt-1
wireless.@wifi-iface[1].encryption=psk-mixed
wireless.@wifi-iface[1].key=SecretKey12345

Please note:
- WLAN scanning does not work when in WPA-mode (hostapd running)
- Luci does not display the TX dBm for the 5 GHz radio
- enabling WLAN only works if you set the right channel. Don't get confused by luci showing wrong channels!
- If you set country=US then you may use channel 1-11 on radio 0 and channel 36, 40, 44, 48, 149, 153, 157, 161, 165 on radio 1.
- I suggest you try with country=US first, even if you are in another country. Use channel 36. If it is working, change the channel to what you like (within the allowed range). If you change to country=DE for example, you will only get the subset of allowed channels from the US range. You are stuck to channel 36-48 then. For further information use forum search for "DFS".

You can also set wireless settings on the command line like this: uci set wireless.radio1.channel=36
To make your changes permanent: uci commit
Documentation for UCI: http://wiki.openwrt.org/doc/uci

You can check if your wifi is woking by running "wifi" on the command line.

That's it.

(Last edited by zoo on 28 Jun 2010, 14:01)

hello zoo. I got one question:

What do I have to do in order to use the 802.11n speeds by using the 5 ghz bands only? is it possible? (I mean using 802.11n on the 5 ghz band)

Thank you

In order for this to work for me, I had to compile my own image and set CONFIG_ATH_USER_REGD=y

Hi,

I followed your instructions and my 2.4GHz WLAN works. But the transfer rates are really poor, windows 7 reports 65Mbps link, and a FTP transfer can't get more that 3MBps. How should I increase this ?

The discussion might have continued from here.