OpenWrt Forum Archive

Topic: two wifi net with wgt634u

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

Hi,
I'd like to know if is it possible to create a double wi-fi net with my wgt634u and kamikaze 7.09 (official snapshot from openwrt.org), in particular I'd like to create two net, one psk and one psk2.
I have tried to modify /etc/config/wireless like this:


config wifi-device  wifi0
        option type     atheros
        option channel  7


config wifi-iface

                option device   wifi0
                option network  lan
                option mode     ap
                option ssid     wgt634u_psk
                option encryption psk
                option key 12345678901234567890


config wifi-device  wifi1
        option type     atheros
        option channel  5


config wifi-iface

                option device   wifi1
                option network  lan
                option mode     ap
                option ssid     wgt634u_psk2
                option encryption psk2
                option key 12345678901234567890

but it doesn't work, I see only the psk net.
What can I do?
Thank you and excese me fot grammar mistake

You only have one physical device called "wifi0" and both virtual wifi-iface must be based on that.

Thank you MMCM! Now it works! I have modified /etc/config/wireless like this:


config wifi-device  wifi0
        option type     atheros
        option channel  7

config wifi-iface

                option device   wifi0
                option network  lan
                option mode     ap
                option ssid     wgt634u
                option encryption psk
                option key 12345678901234567890


config wifi-iface

                option device   wifi0
                 option network  lan
                 option mode     ap
                 option ssid     wgt634u2
                option encryption psk2
                option key 09876543210987654321

I have two wifi network, one psk and one psk2!

draxx86, could you please post the contents of your /etc/modules.d/XX-madwifi?

(Last edited by pedrofaustino on 6 Jun 2008, 14:01)

this is my /etc/modules.d/50-madwifi

wlan
wlan_scan_ap
wlan_scan_sta
ath_hal
ath_rate_minstrel
wlan_acl
wlan_ccmp
wlan_tkip
wlan_wep
wlan_xauth
ath_pci

Using trunk I had to add autocreate=none maxvaps=2 when loading the ath_pci module in order to have the same config as you. Thanks anyway!

The discussion might have continued from here.