This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "IPFire 2.x development tree".
The branch, master has been updated via 8489f84507c6240b2b8258cbb1f69acb6acb071f (commit) via 8d30f4ed0020cac1adfd968045a30af524090fbc (commit) from 7f0974a23a7eb07effb516f40ebf757f521a2108 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- commit 8489f84507c6240b2b8258cbb1f69acb6acb071f Merge: 8d30f4ed0020cac1adfd968045a30af524090fbc 7f0974a23a7eb07effb516f40ebf757f521a2108 Author: Arne Fitzenreiter arne_f@ipfire.org Date: Thu Jan 7 01:07:25 2010 +0100
Merge branch 'master' of ssh://arne_f@ipfire.org/pub/git/ipfire-2.x
commit 8d30f4ed0020cac1adfd968045a30af524090fbc Author: Arne Fitzenreiter arne_f@ipfire.org Date: Thu Jan 7 01:05:29 2010 +0100
Add prism_pci support to hostapd. (thx to bronson).
-----------------------------------------------------------------------
Summary of changes: lfs/hostapd | 2 +- src/initscripts/init.d/hostapd | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-)
Difference in files: diff --git a/lfs/hostapd b/lfs/hostapd index 522e9b3..c881f80 100644 --- a/lfs/hostapd +++ b/lfs/hostapd @@ -32,7 +32,7 @@ DL_FROM = $(URL_IPFIRE) DIR_APP = $(DIR_SRC)/$(THISAPP) TARGET = $(DIR_INFO)/$(THISAPP) PROG = hostapd -PAK_VER = 15 +PAK_VER = 16
DEPS = ""
diff --git a/src/initscripts/init.d/hostapd b/src/initscripts/init.d/hostapd index 6e36189..0cc95b7 100644 --- a/src/initscripts/init.d/hostapd +++ b/src/initscripts/init.d/hostapd @@ -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
hooks/post-receive -- IPFire 2.x development tree