hostap detections also match to cardbus cards.
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 7 Jan 2010 00:24:11 +0000 (01:24 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 7 Jan 2010 00:24:11 +0000 (01:24 +0100)
src/initscripts/init.d/hostapd

index 0cc95b7..9a40082 100644 (file)
@@ -40,8 +40,7 @@ case "${1}" in
                elif [ -e "/sys/class/net/$INTERFACE/madwifi_name_type" ]; then
                        DRIVER="MADWIFI"
                        driver="madwifi"
                elif [ -e "/sys/class/net/$INTERFACE/madwifi_name_type" ]; then
                        DRIVER="MADWIFI"
                        driver="madwifi"
-               elif [ "$(/bin/grep hostap_pci /sys/class/net/$INTERFACE/uevent)" != "" ]; then
-               #PHYSDEVDRIVER=hostap_pci
+               elif [ "$(/bin/grep hostap /sys/class/net/$INTERFACE/uevent)" != "" ]; then
                        DRIVER="HOSTAP"
                        driver="hostap"
                else
                        DRIVER="HOSTAP"
                        driver="hostap"
                else
@@ -70,7 +69,7 @@ case "${1}" in
                elif [ "$DRIVER" == "HOSTAP" ]; then
                        if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
                                boot_mesg "Setting HOSTAP wlan $INTERFACE to Master mode... "
                elif [ "$DRIVER" == "HOSTAP" ]; then
                        if [ "$(/usr/sbin/iwconfig $INTERFACE | /bin/grep "Mode:Master")" == "" ]; then
                                boot_mesg "Setting HOSTAP wlan $INTERFACE to Master mode... "
-                               # Set Prism 2.4 Cards to master mode
+                               # Set Prism Cards to master mode
                                /usr/bin/iwconfig $INTERFACE mode master > /dev/null
                        fi
                fi
                                /usr/bin/iwconfig $INTERFACE mode master > /dev/null
                        fi
                fi