From: Arne Fitzenreiter Date: Thu, 7 Jan 2010 00:24:11 +0000 (+0100) Subject: hostap detections also match to cardbus cards. X-Git-Tag: v2.9-beta1~533 X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=071a0314faab8c833d812be3680fd94fff34381a;ds=inline hostap detections also match to cardbus cards. --- diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index 0cc95b7b42..9a400823d9 100644 --- a/src/initscripts/init.d/hostapd +++ b/src/initscripts/init.d/hostapd @@ -40,8 +40,7 @@ case "${1}" in 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 @@ -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... " - # Set Prism 2.4 Cards to master mode + # Set Prism Cards to master mode /usr/bin/iwconfig $INTERFACE mode master > /dev/null fi fi