projects
/
openwrt
/
staging
/
florian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a80df62
)
fix madwifi mode selection problems
author
Felix Fietkau
<nbd@openwrt.org>
Wed, 10 Jan 2007 16:14:16 +0000
(16:14 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Wed, 10 Jan 2007 16:14:16 +0000
(16:14 +0000)
SVN-Revision: 6063
package/madwifi/files/lib/wifi/madwifi.sh
patch
|
blob
|
history
diff --git
a/package/madwifi/files/lib/wifi/madwifi.sh
b/package/madwifi/files/lib/wifi/madwifi.sh
index a8fb101a6b1da2bacd1bc41a8402124ca514b942..5701485f153e4a19f0416d63dc0750ba6bb06fc3 100755
(executable)
--- a/
package/madwifi/files/lib/wifi/madwifi.sh
+++ b/
package/madwifi/files/lib/wifi/madwifi.sh
@@
-92,17
+92,17
@@
enable_atheros() {
[ "$first" = 1 ] && {
# only need to change freq band and channel on the first vif
[ "$first" = 1 ] && {
# only need to change freq band and channel on the first vif
- config_get "$device" mode
+ config_get
agmode
"$device" mode
pureg=0
pureg=0
- case "$mode" in
- *b) mode=11b;;
- *bg) mode=11g;;
- *g) mode=11g; pureg=1;;
- *a) mode=11a;;
- *) mode=11g;;
+ case "$
ag
mode" in
+ *b)
ag
mode=11b;;
+ *bg)
ag
mode=11g;;
+ *g)
ag
mode=11g; pureg=1;;
+ *a)
ag
mode=11a;;
+ *)
ag
mode=11g;;
esac
iwconfig "$ifname" channel 0
esac
iwconfig "$ifname" channel 0
- iwpriv "$ifname"
mode "$
mode"
+ iwpriv "$ifname"
agmode "$ag
mode"
iwpriv "$ifname" pureg "$pureg"
iwconfig "$ifname" channel "$channel"
}
iwpriv "$ifname" pureg "$pureg"
iwconfig "$ifname" channel "$channel"
}