mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 16:02:59 +02:00
Add prism_pci support to hostapd. (thx to bronson).
This commit is contained in:
@@ -40,6 +40,10 @@ 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
|
||||
DRIVER="HOSTAP"
|
||||
driver="hostap"
|
||||
else
|
||||
boot_mesg "Interface $INTERFACE is a not supported wireless device." ${FAILURE}
|
||||
echo_failure
|
||||
@@ -63,6 +67,12 @@ case "${1}" in
|
||||
/usr/bin/wlanconfig $INTERFACE destroy > /dev/null
|
||||
/usr/bin/wlanconfig $INTERFACE create wlandev wifi0 wlanmode ap > /dev/null
|
||||
fi
|
||||
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
|
||||
/usr/bin/iwconfig $INTERFACE mode master > /dev/null
|
||||
fi
|
||||
fi
|
||||
|
||||
/usr/sbin/iwconfig $INTERFACE channel $CHANNEL
|
||||
|
||||
Reference in New Issue
Block a user