DIR-825 not saving wireless config

If your problem doesn't fall into one of the other categories, report it here.

Moderator: Moderators

Post Reply
swinters
Posts: 8
Joined: Sat Feb 20, 2010 11:44 am

DIR-825 not saving wireless config

Post by swinters »

Just installed the image here for the DIR-825 and everything was going fine (dhcp, quotas, restrictions) until I tried to enable the wireless. It goes to the saving prompt, then back into the config screen with the wireless disabled. Is this the same issue as http://www.gargoyle-router.com/phpbb/vi ... ?f=6&t=834
(WNDR3700 (ar71xx) not saving settings)

From what I understand the WNDR3700 and DIR-825 are basically the same hardware.


logread output

Dec 31 21:01:01 Gargoyle cron.err crond[15344]: USER root pid 15369 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Dec 31 21:01:17 Gargoyle cron.err crond[15445]: crond (busybox 1.15.3) started, log level 5
Dec 31 21:01:17 Gargoyle cron.err crond[15511]: crond (busybox 1.15.3) started, log level 5
Dec 31 21:01:17 Gargoyle user.notice upnp: removing firewall rules
Dec 31 21:01:18 Gargoyle daemon.info dnsmasq[15360]: exiting on receipt of SIGTERM
Dec 31 21:01:19 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Dec 31 21:01:19 Gargoyle user.info kernel: br-lan: port 1(eth0) entering disabled state
Dec 31 21:01:19 Gargoyle user.info kernel: eth0: link down
Dec 31 21:01:19 Gargoyle user.info kernel: device wlan0 left promiscuous mode
Dec 31 21:01:19 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Dec 31 21:01:19 Gargoyle user.info kernel: device eth0 left promiscuous mode
Dec 31 21:01:19 Gargoyle user.info kernel: br-lan: port 1(eth0) entering disabled state
Dec 31 21:01:20 Gargoyle user.debug kernel: ar71xx: pll_reg 0xb8050010: 0x11110000
Dec 31 21:01:20 Gargoyle user.info kernel: eth0: link up (1000Mbps/Full duplex)
Dec 31 21:01:20 Gargoyle user.info kernel: eth0: link down
Dec 31 21:01:21 Gargoyle user.debug kernel: ar71xx: pll_reg 0xb8050010: 0x11110000
Dec 31 21:01:21 Gargoyle user.info kernel: eth0: link up (1000Mbps/Full duplex)
Dec 31 21:01:21 Gargoyle user.info kernel: eth0: link down
Dec 31 21:01:21 Gargoyle user.debug kernel: ar71xx: pll_reg 0xb8050010: 0x11110000
Dec 31 21:01:21 Gargoyle user.info kernel: eth0: link up (1000Mbps/Full duplex)
Dec 31 21:01:22 Gargoyle user.info kernel: device eth0 entered promiscuous mode
Dec 31 21:01:22 Gargoyle user.info kernel: br-lan: port 1(eth0) entering forwarding state
Dec 31 21:01:24 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Dec 31 21:01:24 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Dec 31 21:01:26 Gargoyle user.info kernel: device wlan0 left promiscuous mode
Dec 31 21:01:26 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering disabled state
Dec 31 21:01:26 Gargoyle user.info kernel: device wlan0 entered promiscuous mode
Dec 31 21:01:26 Gargoyle user.info kernel: br-lan: port 2(wlan0) entering forwarding state
Dec 31 21:01:29 Gargoyle cron.err crond[17027]: crond (busybox 1.15.3) started, log level 5
Dec 31 21:01:29 Gargoyle user.notice root: adding lan (br-lan) to firewall zone lan
Dec 31 21:01:30 Gargoyle cron.err crond[17484]: crond (busybox 1.15.3) started, log level 5
Dec 31 21:01:31 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: started, version 2.55 cachesize 150
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: using local addresses only for domain lan
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: reading /tmp/resolv.conf.auto
Dec 31 21:01:31 Gargoyle daemon.warn dnsmasq[17500]: ignoring nameserver 192.168.87.80 - local interface
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: using local addresses only for domain lan
Dec 31 21:01:31 Gargoyle daemon.info dnsmasq[17500]: read /etc/hosts - 20 addresses



tail of dmesg
ath: Regpair used: 0x3a
phy0: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy0::radio
Registered led device: ath9k-phy0::assoc
Registered led device: ath9k-phy0::tx
Registered led device: ath9k-phy0::rx
phy0: Atheros AR9280 Rev:2 mem=0xb0000000, irq=48
PCI: Enabling device 0000:00:12.0 (0000 -> 0002)
ath: EEPROM regdomain: 0x0
ath: EEPROM indicates default country code should be used
ath: doing EEPROM country->regdmn map search
ath: country maps to regdmn code: 0x3a
ath: Country alpha2 being used: US
ath: Regpair used: 0x3a
cfg80211: Calling CRDA for country: US
phy1: Selected rate control algorithm 'minstrel_ht'
Registered led device: ath9k-phy1::radio
Registered led device: ath9k-phy1::assoc
Registered led device: ath9k-phy1::tx
Registered led device: ath9k-phy1::rx
phy1: Atheros AR9280 Rev:2 mem=0xb0010000, irq=49
cfg80211: Calling CRDA for country: US
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR71xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
nf_conntrack version 0.5.0 (969 buckets, 3876 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
Hooked IMQ after mangle on PREROUTING
Hooked IMQ after nat on POSTROUTING
IMQ driver loaded successfully.
Ebtables v2.0 registered
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ar71xx-ohci ar71xx-ohci: Atheros AR71xx built-in OHCI controller
ar71xx-ohci ar71xx-ohci: new USB bus registered, assigned bus number 2
ar71xx-ohci ar71xx-ohci: irq 14, io mem 0x1c000000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
cfg80211: Current regulatory domain intersected:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(2457000 KHz - 2472000 KHz @ 15000 KHz), (300 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
cfg80211: Current regulatory domain intersected:
(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
(2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
(2457000 KHz - 2472000 KHz @ 15000 KHz), (300 mBi, 2000 mBm)
(5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
(5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
br-lan: port 2(wlan0) entering disabled state
br-lan: port 1(eth0) entering disabled state
eth0: link down
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device eth0 left promiscuous mode
br-lan: port 1(eth0) entering disabled state
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
eth0: link down
ar71xx: pll_reg 0xb8050010: 0x11110000
eth0: link up (1000Mbps/Full duplex)
device eth0 entered promiscuous mode
br-lan: port 1(eth0) entering forwarding state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
root@Gargoyle:~#

Eric
Site Admin
Posts: 1443
Joined: Sat Jun 14, 2008 1:14 pm

Re: DIR-825 not saving wireless config

Post by Eric »

I need to see both /etc/config/network and /etc/config/wireless -- that output really doesn't tell me very much.

swinters
Posts: 8
Joined: Sat Feb 20, 2010 11:44 am

Re: DIR-825 not saving wireless config

Post by swinters »

The wireless is actually working fine, just the web interface is having issues. Looks like my initial config did take, I added the mac filters manually afterward.


root@Gargoyle:/etc/config# cat wireless

config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'channel' '5'
option 'macfilter' 'allow'
option 'maclist' '00:1A:73:02:16:AF 00:13:02:81:74:09 00:22:FB:5A:77:22 00:22:41:0D:D5:06 00:26:37:B2:51:E5 00:26:08:67:cd:30'
option 'macaddr' '00:26:5a:fb:57:c6'
option 'hwmode' '11ng'
option 'htmode' 'HT20'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'TX-STBC'
list 'ht_capab' 'RX-STBC1'
list 'ht_capab' 'DSSS_CCK-40'

config 'wifi-device' 'radio1'
option 'type' 'mac80211'
option 'channel' '36'
option 'macaddr' '00:26:5a:fb:57:c7'
option 'hwmode' '11na'
option 'htmode' 'HT20'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'TX-STBC'
list 'ht_capab' 'RX-STBC1'
list 'ht_capab' 'DSSS_CCK-40'
option 'disabled' '1'

config 'wifi-iface' 'cfg2'
option 'device' 'radio0'
option 'mode' 'ap'
option 'network' 'lan'
option 'ssid' 'Gargoyle'
option 'encryption' 'psk'
option 'key' 'test1234@123'

root@Gargoyle:/etc/config# cat /etc/config/network

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 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'dns' '192.168.87.80'
option 'ipaddr' '192.168.87.80'

config 'interface' 'wan'
option 'ifname' 'eth1'
option 'proto' 'dhcp'

config 'switch'
option 'name' 'rtl8366s'
option 'reset' '1'
option 'enable_vlan' '1'

config 'switch_vlan'
option 'device' 'rtl8366s'
option 'vlan' '1'
option 'ports' '0 1 2 3 5'

virta
Posts: 8
Joined: Sat Oct 02, 2010 5:45 am

Re: DIR-825 not saving wireless config

Post by virta »

I'm rying to get wndr3700 running and I'm having same problem.

Compiled my image by just adding
"-wndr3700-squashfs-" to targets/ar71xx/profiles/ath9k_only/profile_images

It seems that common.js : getWirelessMode is returning "disabled" for "ap" configration. My wireless configuration from ucicontainer:

Code: Select all

uciOriginal.set('wireless', 'radio0', '', "wifi-device");
uciOriginal.set('wireless', 'radio0', 'type', "mac80211");
uciOriginal.set('wireless', 'radio0', 'macaddr', "30:46:9a:0b:a1:91");
uciOriginal.set('wireless', 'radio0', 'htmode', "HT20");
uciOriginal.set('wireless', 'radio0', 'ht_capab', "SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40");
uciOriginal.set('wireless', 'radio0', 'channel', "1");
uciOriginal.set('wireless', 'radio0', 'txpower', "20");
uciOriginal.set('wireless', 'radio0', 'hwmode', "11ng");
uciOriginal.set('wireless', 'radio1', '', "wifi-device");
uciOriginal.set('wireless', 'radio1', 'type', "mac80211");
uciOriginal.set('wireless', 'radio1', 'channel', "36");
uciOriginal.set('wireless', 'radio1', 'macaddr', "30:46:9a:0b:a1:93");
uciOriginal.set('wireless', 'radio1', 'hwmode', "11na");
uciOriginal.set('wireless', 'radio1', 'htmode', "HT20");
uciOriginal.set('wireless', 'radio1', 'ht_capab', "SHORT-GI-40 TX-STBC RX-STBC1 DSSS_CCK-40");
uciOriginal.set('wireless', 'radio1', 'disabled', "1");
uciOriginal.set('wireless', 'cfg2', '', "wifi-iface");
uciOriginal.set('wireless', 'cfg2', 'device', "radio0");
uciOriginal.set('wireless', 'cfg2', 'mode', "ap");
uciOriginal.set('wireless', 'cfg2', 'network', "lan");
uciOriginal.set('wireless', 'cfg2', 'ssid', "virta");
uciOriginal.set('wireless', 'cfg2', 'encryption', "none");
I also noted that header_footer program is reporting wrong interface for wifi:

Code: Select all

var uciWireless = "radio1";
Are AP:s with two radios supposed to work?

Post Reply