OpenWrt Forum Archive

Topic: Broadcom client mode with wpa2

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

How can i set up my ASUS WL-520gu with broadcom wlan to connect to my ap ?

This is my /etc/config/wireless at the moment:

config wifi-device  wl0
        option type     broadcom
        option channel  11

        # REMOVE THIS LINE TO ENABLE WIFI:
        #option disabled 1

config wifi-iface
        option device   wl0
        option network  lan
        option mode     sta
        option ssid     sid
        option encryption psk
        option key      >key<

Paste your /etc/config/network as well.

uci export network
uci export wireless

Ok here is my network config:


package 'network'

config 'switch' 'eth0'
        option 'vlan0' '0 1 2 3 4 5'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'type' 'none'
        option 'ifname' 'eth0.0'
        option 'proto' 'static'
        option 'ipaddr' '192.168.0.77'
        option 'netmask' '255.255.255.0'
        option 'gateway' '192.168.0.1'
        option 'dns' '192.168.0.1'

Configure routed client-mode and get the IP address via DHCP (LAN and WAN must have different subnets)

Remove wireless from the bridge

uci del wireless.@wifi-iface[0].network
uci commit wireless

Configure the WAN interface for a DHCP client and use the value from wireless.@wifi-iface[0].device (wireless) as wan

uci set network.wan=interface
uci set network.wan.proto=dhcp
uci set network.wan.ifname=$(uci get wireless.@wifi-iface[0].device)
uci commit network
reboot

You can't use bridged client-mode. It will not work.

(Last edited by Dogge on 8 Sep 2009, 15:35)

I did it. no change.
Now i have installed the luci webif and tried different things like no encryption etc. but nothing works.
The only thing i want is that the router act like a host and connect to the wpa2 wlan of my ap.

The discussion might have continued from here.