From e110ea8b483b944bd58e4266fffb9f889cc22b38 Mon Sep 17 00:00:00 2001 From: mark Date: Wed, 7 Mar 2001 19:56:26 +0000 Subject: [PATCH] Some updates to the CHANGES file. Also added support for not overwriting wlan-ng.opts when the version codes are the same. MAN! what a pain in the butt! --- CHANGES | 6 +++ Configure | 82 +++++++++++++++++++++++++++++++++++++++++ Makefile | 1 + config.in | 4 ++ etc/pcmcia/Makefile | 39 ++++++++++++++++---- etc/pcmcia/wlan-ng.opts | 5 +++ 6 files changed, 130 insertions(+), 7 deletions(-) diff --git a/CHANGES b/CHANGES index 8a7b36d..c1a60ed 100644 --- a/CHANGES +++ b/CHANGES @@ -41,6 +41,12 @@ * Intersil Corporation as part of PRISM(R) chipset product development. * * -------------------------------------------------------------------- +0.1.8 + - Added pkundrat's 'chinfo' patch + - Added pkundrat's 'small fixes' patch + - Added some contributed patches supporting a fix to our 'reassoc + under load' problem + - Added wlannoenable pcmcia scheme support to prevent card initialization. 0.1.7 - Fixed the "converting eth in unknown mode" bug - Added APM/ACPI suspend/resume handling diff --git a/Configure b/Configure index 5691dcf..eca269a 100755 --- a/Configure +++ b/Configure @@ -160,8 +160,90 @@ ask_str () { write_str $2 } +mkversionh () { +versionh=src/include/wlan/version.h +cat > $versionh <> $versionh +printf '#define WLAN_RELEASE_CODE 0x%02x%02x%02x\n' \ + ${WLAN_VERSION} \ + ${WLAN_PATCHLEVEL} \ + ${WLAN_SUBLEVEL} >> $versionh + + +} #======================================================================= +# Dump the version variables +dump_str "WLAN_VERSION=$WLAN_VERSION" +dump_str "WLAN_PATCHLEVEL=$WLAN_PATCHLEVEL" +dump_str "WLAN_SUBLEVEL=$WLAN_SUBLEVEL" +dump_str "WLAN_EXTRAVERSION=$WLAN_EXTRAVERSION" + +# If the src/include/wlan/version.h file needs a touchup, fix or create it +if [ -r src/include/wlan/version.h ]; then + WLAN_RELEASE="${WLAN_VERSION}.${WLAN_PATCHLEVEL}.${WLAN_SUBLEVEL}${WLAN_EXTRAVERSION}" + OLD_RELEASE=`sed --quiet -e '/#define.*WLAN_RELEASE[^_].*\"\(.*\)\"/s//\1/p' < src/include/wlan/version.h` + echo ${WLAN_RELEASE} + echo ${OLD_RELEASE} + if [ "${WLAN_RELEASE}" != "${OLD_RELEASE}" ]; then + # Overwrite the file + mkversionh + fi +else + # File doesn't exist, create it + mkversionh +fi + $ECHO "" $ECHO "-------------- Linux WLAN Configuration Script -------------" $ECHO "" diff --git a/Makefile b/Makefile index 8c7cce7..05229cd 100644 --- a/Makefile +++ b/Makefile @@ -65,6 +65,7 @@ clean: rm -f core core.* *.o .*.o *.s *.a .depend tmp_make *~ tags for i in *_obj; do if [ -d $$i ]; then rm -fr $$i; fi; done rm -f config.mk config.new + rm -f src/include/wlan/version.h install: set -e; for d in $(DIRS); do $(MAKE) -C $$d install ; done diff --git a/config.in b/config.in index 7483a50..f510cfe 100644 --- a/config.in +++ b/config.in @@ -1,3 +1,7 @@ +WLAN_VERSION=0 +WLAN_PATCHLEVEL=1 +WLAN_SUBLEVEL=8 +WLAN_EXTRAVERSION= LINUX_SRC=/usr/src/linux WLAN_TARGET_ARCH= PCMCIA_SRC= diff --git a/etc/pcmcia/Makefile b/etc/pcmcia/Makefile index e39d51c..8560c9c 100644 --- a/etc/pcmcia/Makefile +++ b/etc/pcmcia/Makefile @@ -51,23 +51,48 @@ clean: echo "Nothing to do" install: + set -x; \ if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng ]; then \ mv -f $(TARGET_PCMCIA_DIR)/wlan-ng $(TARGET_PCMCIA_DIR)/wlan-ng.O ; \ fi ; \ cp wlan-ng $(TARGET_PCMCIA_DIR) ; \ chmod +x $(TARGET_PCMCIA_DIR)/wlan-ng ; \ + mkwlanopts () { \ + sed -e '/WLAN_VERSION=.*/s//WLAN_VERSION=$(WLAN_VERSION)/' \ + -e '/WLAN_PATCHLEVEL=.*/s//WLAN_PATCHLEVEL=$(WLAN_PATCHLEVEL)/' \ + -e '/WLAN_SUBLEVEL=.*/s//WLAN_SUBLEVEL=$(WLAN_SUBLEVEL)/' \ + -e '/WLAN_EXTRAVERSION=.*/s//WLAN_EXTRAVERSION=$(WLAN_EXTRAVERSION)/' \ + < ./wlan-ng.opts > $(TARGET_PCMCIA_DIR)/wlan-ng.opts; \ + } ; \ if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng.opts ]; then \ - mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.opts $(TARGET_PCMCIA_DIR)/wlan-ng.opts.O ; \ + if grep -s WLAN_VERSION $(TARGET_PCMCIA_DIR)/wlan-ng.opts; then \ + mkver=$(WLAN_VERSION).$(WLAN_PATCHLEVEL).$(WLAN_SUBLEVEL)$(WLAN_EXTRAVERSION); \ + eval `grep "WLAN_VERSION=" $(TARGET_PCMCIA_DIR)/wlan-ng.opts`; \ + eval `grep "WLAN_PATCHLEVEL=" $(TARGET_PCMCIA_DIR)/wlan-ng.opts`; \ + eval `grep "WLAN_SUBLEVEL=" $(TARGET_PCMCIA_DIR)/wlan-ng.opts`; \ + eval `grep "WLAN_EXTRAVERSION=" $(TARGET_PCMCIA_DIR)/wlan-ng.opts`; \ + oldver=$$WLAN_VERSION.$$WLAN_PATCHLEVEL.$$WLAN_SUBLEVEL$$WLAN_EXTRAVERSION; \ + echo mkver= $$mkver; \ + echo oldver= $$oldver; \ + if [ $$mkver != $$oldver ]; then \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.opts $(TARGET_PCMCIA_DIR)/wlan-ng.opts.O ; \ + mkwlanopts ; \ + fi; \ + else \ + mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.opts $(TARGET_PCMCIA_DIR)/wlan-ng.opts.O ; \ + mkwlanopts ; \ + fi; \ + else \ + mkwlanopts ; \ fi ; \ - cp wlan-ng.opts $(TARGET_PCMCIA_DIR) ; \ - chmod +x $(TARGET_PCMCIA_DIR)/wlan-ng ; \ + chmod +x $(TARGET_PCMCIA_DIR)/wlan-ng.opts ; \ if [ -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf ]; then \ mv -f $(TARGET_PCMCIA_DIR)/wlan-ng.conf $(TARGET_PCMCIA_DIR)/wlan-ng.conf.O ; \ fi ; \ cp wlan-ng.conf $(TARGET_PCMCIA_DIR) ; \ if ! grep -sq 'source.*\.\/\*\.conf$$' $(TARGET_PCMCIA_DIR)/config ; then \ - if ! grep -sq 'source \.\/wlan-ng.conf' $(TARGET_PCMCIA_DIR)/config ; then \ - mv -f $(TARGET_PCMCIA_DIR)/config $(TARGET_PCMCIA_DIR)/config.O ; \ - ( echo "source ./wlan-ng.conf"; cat $(TARGET_PCMCIA_DIR)/config.O) > $(TARGET_PCMCIA_DIR)/config ; \ - fi ; \ + if ! grep -sq 'source \.\/wlan-ng.conf' $(TARGET_PCMCIA_DIR)/config ; then \ + mv -f $(TARGET_PCMCIA_DIR)/config $(TARGET_PCMCIA_DIR)/config.O ; \ + ( echo "source ./wlan-ng.conf"; cat $(TARGET_PCMCIA_DIR)/config.O) > $(TARGET_PCMCIA_DIR)/config ; \ + fi ; \ fi diff --git a/etc/pcmcia/wlan-ng.opts b/etc/pcmcia/wlan-ng.opts index b596152..88090a9 100755 --- a/etc/pcmcia/wlan-ng.opts +++ b/etc/pcmcia/wlan-ng.opts @@ -49,6 +49,11 @@ # # -------------------------------------------------------------------- +WLAN_VERSION= +WLAN_PATCHLEVEL= +WLAN_SUBLEVEL= +WLAN_EXTRAVERSION= + case "$ADDRESS" in wlannoenable,*,*,*) #=======ENABLE========================================