Hi
I have a r31059 fon 2100ABC (single RJ45) set as AP that hosts 2 wireless. This is a hotspot config, with a private wl and a public one.
I search for a workaround on the spartan ticket https://dev.openwrt.org/ticket/11438 I posted.
Sometimes on reboot the wan mac changes as I can see in the internet (my own lan) side with arp-scan, and dhcp IP also changes as a consequence. I'd rather let the wan ip to dynamic (like a guest pc) in the case something changes on internet side, like lan ip or dns.
It seems the bridges conf change sometimes on reboot, "brctl show" this:
either
br-wan 8000.061884....f1 no ath0-1
eth0
br-lan 8000.001884....f1 no ath0 (never changes)
arp-scan ....
192.168.xx.241 06:18:84:xx:xx:f1 (Unknown)
or
br-lan 8000.001884....f1 no ath0 (same as above)
br-wan 8000.001884....f0 no ath0-1
eth0
arp-scan ....
192.168.xx.240 00:18:84:xx:xx:f0 FON (the MAC on the sticker)
In the /etc/config/wireless file there is:
config wifi-device 'radio0'
option type 'atheros'
option macaddr '00:18:84:xx:xx:f1'
option disabled '0'
option country 'FR'
option channel '13'
option twpower '10'
option hwmode '11g'
and 2 config wifi-iface sections for option network 'lan' and 'wan' both ap mode refering to 'radio0' for option device.
I tried to set the file /etc/config/network config interface 'wan' with option ifname 'eth0 ath0-1' and option macaddr '00:18:84:xx:xx:F0' and then /etc/init.d/network restart, but after the network comes back I get error messages :
ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
Configuration file: /var/run/hostapd-ath0-1.conf
Using interface ath0-1 with hwaddr 00:18:84:xx:xx:f0 and ssid 'Private'
and I can't connect to the private wl ath0-1 anymore, even when setting my pc wireless to a static IP, it will always behave like I give a wrong WPA passphrase (recorded and not changed). Although I can connect to the public ssid.
In both case, iwlist scan reports the same
Cell 0x - Address: 06:18:84:xx:xx:F1
ESSID:"Private"
Protocol:IEEE 802.11g
Mode:Master
Frequency:2.472 GHz (Channel 13)
Encryption key:on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Quality=64/100 Signal level=-62 dBm
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : CCMP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
the tool dmesg displays these info:
...
[ 4.370000] eth0: Atheros AR231x: 00:18:84:xx:xx:f0, irq 4
[ 4.500000] ar231x_eth_mii: probed
[ 4.550000] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00)
...
[ 6.130000] eth0: Configuring MAC for full duplex
...
[ 26.530000] ath_hal: module license 'Proprietary' taints kernel.
[ 26.600000] Disabling lock debugging due to kernel taint
...
[ 26.720000] ath_hal: 2009-05-08 (AR5212, AR5312, RF5111, RF5112, RF2316, RF2317, REGOPS_FUNC, TX_DESC_SWAP, XR)
[ 28.420000] ath_ahb: trunk
[ 28.450000] wlan: trunk
[ 28.480000] wlan: mac acl policy registered
[ 28.530000] ath_rate_minstrel: Minstrel automatic rate control algorithm 1.2 (trunk)
[ 28.620000] ath_rate_minstrel: look around rate set to 10%
[ 28.690000] ath_rate_minstrel: EWMA rolloff level set to 75%
[ 28.760000] ath_rate_minstrel: max segment size in the mrr set to 6000 us
[ 28.840000] Atheros HAL provided by OpenWrt, DD-WRT and MakSat Technologies
[ 28.930000] wifi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
[ 28.990000] wifi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 29.120000] wifi0: turboG rates: 6Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
[ 29.210000] wifi0: H/W encryption support: WEP AES AES_CCM TKIP
[ 29.280000] ath_ahb: wifi0: Atheros 2315 WiSoC: mem=0xb0000000, irq=3
[ 38.000000] device ath0 entered promiscuous mode
[ 38.240000] br-lan: port 1(ath0) entering forwarding state
[ 38.310000] br-lan: port 1(ath0) entering forwarding state
[ 42.260000] device ath0-1 entered promiscuous mode
[ 42.530000] br-wan: port 1(ath0-1) entering forwarding state
[ 42.600000] br-wan: port 1(ath0-1) entering forwarding state
[ 43.290000] device eth0 entered promiscuous mode
[ 43.350000] br-wan: port 2(eth0) entering forwarding state
[ 43.410000] br-wan: port 2(eth0) entering forwarding state
[ 44.730000] br-wan: port 1(ath0-1) entering forwarding state
[ 45.670000] br-wan: port 1(ath0-1) entering forwarding state
[ 45.740000] br-wan: port 1(ath0-1) entering forwarding state
[ 64.080000] device ath0-1 left promiscuous mode
[ 64.130000] br-wan: port 1(ath0-1) entering forwarding state
[ 65.220000] device ath0-1 entered promiscuous mode
[ 65.280000] br-wan: port 1(ath0-1) entering forwarding state
[ 65.350000] br-wan: port 1(ath0-1) entering forwarding state
[ 107.830000] device br-lan entered promiscuous mode
[ 796.620000] br-lan: port 1(ath0) entering forwarding state
[ 797.730000] device ath0 left promiscuous mode
[ 797.790000] br-lan: port 1(ath0) entering disabled state
[ 797.850000] device br-lan left promiscuous mode
[ 815.100000] br-wan: port 1(ath0-1) entering forwarding state
[ 815.170000] br-wan: port 2(eth0) entering forwarding state
[ 816.780000] device ath0-1 left promiscuous mode
[ 816.840000] br-wan: port 1(ath0-1) entering disabled state
[ 816.900000] device eth0 left promiscuous mode
[ 816.960000] br-wan: port 2(eth0) entering disabled state
[ 851.180000] device ath0-1 entered promiscuous mode
[ 851.410000] br-wan: port 1(ath0-1) entering forwarding state
[ 851.480000] br-wan: port 1(ath0-1) entering forwarding state
[ 854.180000] device eth0 entered promiscuous mode
[ 854.240000] br-wan: port 2(eth0) entering forwarding state
[ 854.300000] br-wan: port 2(eth0) entering forwarding state
[ 903.760000] br-wan: port 1(ath0-1) entering forwarding state
[ 933.450000] device ath0-1 left promiscuous mode
[ 933.500000] br-wan: port 1(ath0-1) entering disabled state
[ 1014.860000] device ath0 entered promiscuous mode
[ 1017.970000] br-lan: port 1(ath0) entering forwarding state
[ 1018.030000] br-lan: port 1(ath0) entering forwarding state
[ 1037.810000] device ath0-1 entered promiscuous mode
[ 1037.860000] br-wan: port 1(ath0-1) entering forwarding state
[ 1037.930000] br-wan: port 1(ath0-1) entering forwarding state
[ 1067.310000] br-wan: port 1(ath0-1) entering forwarding state
[ 1102.160000] br-wan: port 1(ath0-1) entering forwarding state
[ 1102.230000] br-wan: port 1(ath0-1) entering forwarding state
[ 1123.850000] device ath0-1 left promiscuous mode
[ 1123.900000] br-wan: port 1(ath0-1) entering forwarding state
[ 1131.510000] device ath0-1 entered promiscuous mode
[ 1131.570000] br-wan: port 1(ath0-1) entering forwarding state
[ 1131.640000] br-wan: port 1(ath0-1) entering forwarding state
Please could you help
Thank you