OpenWrt Forum Archive

Topic: some clients doesn't associate

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.

Hi.
I want to show a strange behaviour of Openwrt.
This is my configuration:
config wifi-device  wl0
        option type     broadcom
        option channel  1

config wifi-iface
        option device   wl0
        option network  lan
        option mode     ap
        option ssid     aaaaaaa
        option hidden   1
        option encryption psk
        option key      bbbbbbbbbbbbbb

config wifi-iface
        option device   wl0
        option network  wan
        option mode     sta
        option ssid     "Other Network"

root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
        option vlan0    "0 1 2 3 5*"
        option vlan1    "4 5"


#### Loopback configuration
config interface loopback
        option ifname   "lo"
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0


#### LAN configuration
config interface lan
        option type     bridge
        option ifname   "eth0.0"
        option proto    'static'
        option ipaddr   '192.168.1.1'
        option netmask  '255.255.255.0'
        option gateway  ''
        option dns      ''


#### WAN configuration
config interface        wan
        option type     bridge
        option ifname   "eth0.1"
        option proto    static
        option ipaddr   192.168.0.7
        option netmask  255.255.255.0
        option gateway  192.168.0.1
        option dns      192.168.0.1


The "Other Network" is a wpa-psk network and i did a S99nas script in /etc/init.d to set up it correctly:

nas -P /var/run/nas.wl0.pid -l br-wan -i wl0 -S -m 4 -k "afjndhlfhelhfdfdf" -s "Other Network" -w 4 &

All works fine if i don't run this last script. If i run it, some computers (not ALL) can't associate to my network in ap mode.

This is a strange behaviour: why some computers can associate and other don't? The problem is the same also with WEP or NO ENCRYPTION (so it seems an error handling the bssid)

You should not call nas manually. It is being called by the wifi script.

The nas that i start in S99 is the one for the "Other Wireless" network because it's connected in sta mode.

In few word: my router gets the internet connection from "Other Wireless" and repeats it in "aaaaaaaa" network.

If i do not run that script i can't connect to the internet because my router doesn't associate to the "Other Wireless" network.

(Last edited by Goshawk on 25 Apr 2007, 19:00)

The discussion might have continued from here.