summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-27 13:07:18 +0000
committerRoy Marples <roy@marples.name>2008-05-27 13:07:18 +0000
commiteeadc618fb7e7c62924c8240c7d6c57c9c9d6007 (patch)
treeea04c9365131d10b2c29e8b5ae2a1d6dec005065 /net
parentbb069e161838f9bb343f140a38a80414b62c41c3 (diff)
downloadopenrc-eeadc618fb7e7c62924c8240c7d6c57c9c9d6007.tar.gz
openrc-eeadc618fb7e7c62924c8240c7d6c57c9c9d6007.tar.bz2
openrc-eeadc618fb7e7c62924c8240c7d6c57c9c9d6007.tar.xz
Work with madwifi craptastic drivers. Hopefuly prism54 still works.
Diffstat (limited to 'net')
-rw-r--r--net/iwconfig.sh.Linux.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/net/iwconfig.sh.Linux.in b/net/iwconfig.sh.Linux.in
index 85b6cb6..3193020 100644
--- a/net/iwconfig.sh.Linux.in
+++ b/net/iwconfig.sh.Linux.in
@@ -206,9 +206,13 @@ iwconfig_wait_for_association()
# Use sysfs if we can
if [ -e /sys/class/net/"${IFACE}"/carrier ]; then
if [ "$(cat /sys/class/net/"${IFACE}"/carrier)" = "1" ]; then
- # Double check we have an ssid. This is mainly for buggy
- # prism54 drivers that always set their carrier on :/
- [ -n "$(iwgetid --raw "${IFACE}")" ] && return 0
+ # Double check we have an ssid and a non-zero
+ # mac address. This is mainly for buggy
+ # prism54 drivers that always set their
+ # carrier on or buggy madwifi drivers that
+ # sometimes have carrier on and ssid set
+ # without being associated. :/
+ [ -n "$(iwgetid --raw "${IFACE}")" ] && [ "$(iwgetid --ap --raw "${IFACE}")" != "00:00:00:00:00:00" ] && return 0
fi
else
local atest=