summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-15 23:17:16 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-03-15 23:17:16 +0000
commit1e90ce08b5070f6170a7a086036cddf149167296 (patch)
tree2549addf8c11ddae43eb74d253b5d21ecf9500f7 /package
parent085eea203353ba134ceb4ead4093cc9c3f0984b7 (diff)
Enable bridge, disable wifi
Easier to deal with "how do I enable wifi" than "why isn't wifi working?" git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6570 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/broadcom-wl/files/lib/wifi/broadcom.sh3
-rwxr-xr-xpackage/madwifi/files/lib/wifi/madwifi.sh5
2 files changed, 7 insertions, 1 deletions
diff --git a/package/broadcom-wl/files/lib/wifi/broadcom.sh b/package/broadcom-wl/files/lib/wifi/broadcom.sh
index bc3a1f371..bfb1b1267 100644
--- a/package/broadcom-wl/files/lib/wifi/broadcom.sh
+++ b/package/broadcom-wl/files/lib/wifi/broadcom.sh
@@ -243,9 +243,12 @@ detect_broadcom() {
config wifi-device wl0
option type broadcom
option channel 5
+# disable radio to prevent an open ap after reflashing:
+ option radio 0
config wifi-iface
option device wl0
+ option network lan
option mode ap
option ssid OpenWrt
option hidden 0
diff --git a/package/madwifi/files/lib/wifi/madwifi.sh b/package/madwifi/files/lib/wifi/madwifi.sh
index e7e227bb7..8083612af 100755
--- a/package/madwifi/files/lib/wifi/madwifi.sh
+++ b/package/madwifi/files/lib/wifi/madwifi.sh
@@ -240,10 +240,13 @@ config wifi-device $dev
# option txantenna 0
# option rxantenna 0
# option distance 2000
+# disable radio to prevent an open ap after reflashing:
+ option radio 0
+
config wifi-iface
option device $dev
-# option network lan
+ option network lan
option mode ap
option ssid OpenWrt
option hidden 0