summaryrefslogtreecommitdiffstats
path: root/obsolete-buildroot/sources
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-07-20 02:37:57 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-07-20 02:37:57 +0000
commit055be4b87581baa649d469930ab3c5aec9acb159 (patch)
treea9709aa2fc0c5a1b417cc3ffdc9f04e52e05e6c7 /obsolete-buildroot/sources
parent03c678238897eccc6a361c16ad8e655ca3d88847 (diff)
quick and dirty buffalo hack
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@107 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot/sources')
-rw-r--r--obsolete-buildroot/sources/openwrt-diag.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/obsolete-buildroot/sources/openwrt-diag.c b/obsolete-buildroot/sources/openwrt-diag.c
index 73bdac918..250a58e30 100644
--- a/obsolete-buildroot/sources/openwrt-diag.c
+++ b/obsolete-buildroot/sources/openwrt-diag.c
@@ -53,6 +53,9 @@ static void v1_set_dmz(u8 state) {
}
// - - - - -
+static void ignore(u8 ignored) {};
+
+// - - - - -
#define BIT_DMZ 0x01
#define BIT_DIAG 0x04
@@ -114,6 +117,12 @@ static int __init diag_init()
board_type=1;
set_diag=v1_set_diag;
set_dmz=v1_set_dmz;
+
+ if (board_type==0x41d) {
+ printk(KERN_INFO "buffalo hack.\n");
+ set_diag=ignore;
+ set_dmz=v2_set_dmz;
+ }
} else {
board_type=2;
set_diag=v2_set_diag;