# # spec file for package wlan-kmp (Version 1) # # Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild # usedforbuild aaa_base acl attr audit-libs autoconf automake bash bind-libs bind-utils binutils bison bzip2 coreutils cpio cpp cpp41 cracklib cvs cyrus-sasl db diffutils e2fsprogs file filesystem fillup findutils flex gawk gcc gcc41 gdbm gdbm-devel gettext gettext-devel glibc glibc-devel glibc-locale gpm grep groff gzip info insserv kernel-source kernel-syms klogd less libacl libattr libcom_err libgcc41 libltdl libmudflap41 libnscd libstdc++41 libtool libvolume_id libxcrypt libzio linux-kernel-headers m4 make man mktemp module-init-tools ncurses ncurses-devel net-tools netcfg openldap2-client openssl pam pam-modules patch perl permissions popt procinfo procps psmisc pwdutils rcs readline rpm sed sharutils strace sysvinit tar tcpd texinfo timezone unzip util-linux vim zlib zlib-devel Name: wlan-kmp BuildRequires: kernel-source kernel-syms sharutils %define kernel_version %(uname -r) %define at76_version 0.14beta1 %define wlanng_version 0.2.5 %define acx_version 20060521 %define adm_version 20060111 %define rfswitch_version 0.1 %define rt2x00_version cvs-2006091108 %define rtl_version 1.0.1-b %define ipw3945_version 1.1.0 Summary: Kernel Modules for Wireless LAN Cards Version: 1 Release: 16 Group: System/Kernel License: GNU General Public License (GPL) BuildRoot: %{_tmppath}/%{name}-%{version}-build #Provides: #Requires: #Conflicts: Url: http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html Autoreqprov: on Supplements: modalias(pci:v*d*sv*sd*bc06sc07i00*) Source10: at76_usb-%{at76_version}.tar.bz2 Patch10: at76_usb.diff Source30: linux-wlan-ng-%{wlanng_version}.tar.bz2 Patch30: linux-wlan-ng.diff Source31: linux-wlan-ng.config Source32: linux-wlan-ng-mkversionh.sh Source40: acx-%{acx_version}.tar.bz2 Patch40: acx.dif Source50: ipw3945-%{ipw3945_version}.tar.bz2 Source51: ipw3945-Makefile Patch50: ipw3945-api_version.diff Source60: adm8211-%{adm_version}.tar.bz2 Patch60: adm8211.dif Source70: rtl818x-%{rtl_version}.tar.bz2 Patch70: rtl818x.diff Source80: rfswitch-%{rfswitch_version}.tar.bz2 Patch80: rfswitch.dif Source90: rt2x00-%{rt2x00_version}.tar.bz2 Patch90: rt2x00.diff Source100: preamble ExclusiveArch: %ix86 x86_64 ppc ppc64 %suse_kernel_module_package -n wlan -p %_sourcedir/preamble kdump um %description This package contains kernel modules for various WLAN adapters. Authors: -------- Jörg Albert (at76c503) Sam Leffler (madwifi) Greg Chesson (madwifi) Michael Wu (adm8211) James Ketrenos (ipw2x00) Various others %debug_package %package -n wlan-KMP Group: System/Kernel License: GNU General Public License (GPL) Summary: Kernel Modules for Wireless LAN Cards %description -n wlan-KMP This package contains kernel modules for various WLAN adapters. Authors: -------- Jörg Albert (at76c503) Sam Leffler (madwifi) Greg Chesson (madwifi) Michael Wu (adm8211) James Ketrenos (ipw2x00) Various others %prep %setup10 -T -b 10 -n at76_usb-%{at76_version} %patch10 -p1 %setup30 -q -T -b 30 -n linux-wlan-ng-%{wlanng_version} %patch30 cp %{SOURCE31} config.mk cp %{SOURCE32} mkversionh.sh %setup40 -q -T -b 40 -n acx-%{acx_version} %patch40 # driver disabled, in-kernel stack too old %setup50 -q -T -b 50 -n ipw3945-%{ipw3945_version} %patch50 -p1 cp %{SOURCE51} Makefile %setup60 -q -T -b 60 -n adm8211 %patch60 -p1 # driver disabled, interferes with in-kernel stack #%setup70 -q -T -b 70 -n rtl818x-%{rtl_version} #%patch70 -p1 %setup80 -q -T -b 80 -n rfswitch-%{rfswitch_version} %patch80 -p1 %setup90 -q -T -b 90 -n rt2x00-%{rt2x00_version} %patch90 -p1 %build cd .. %ifarch %ix86 x86_64 # creating wlanng buildtree (cd linux-wlan-ng-%{wlanng_version} ; ./mkversionh.sh ) mkdir wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/Makefile \ wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/mkmeta \ wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/p80211 \ wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/prism2/driver \ wlan-ng-%{wlanng_version}/prism2 cp -a linux-wlan-ng-%{wlanng_version}/src/shared \ wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/include \ wlan-ng-%{wlanng_version} cp -a linux-wlan-ng-%{wlanng_version}/src/prism2/include/prism2 \ wlan-ng-%{wlanng_version}/include cp -a %{SOURCE31} \ wlan-ng-%{wlanng_version}/config.mk cp -a %{SOURCE32} \ wlan-ng-%{wlanng_version}/mkversionh.sh make -C wlan-ng-%{wlanng_version}/mkmeta %endif rm -rf linux-wlan-ng-%{wlanng_version} #cp -a rtl818x-%{rtl_version}/drivers/net/wireless/rtl818x rtl818x #rm -r rtl818x-%{rtl_version} make -C rt2x00-%{rt2x00_version} config_header mkdir obj echo "flavors_to_build: %{flavors_to_build}" for flavor in %flavors_to_build; do rm -rf obj/$flavor mkdir obj/$flavor for i in * ; do test $i = obj && continue cp -r $i obj/$flavor/ make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ M=$PWD/obj/$flavor/$i done done %install cd .. export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates k=%kernel_version kernel_version_=${k%%-*} for flavor in %flavors_to_build; do for i in $PWD/obj/$flavor/* ; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$i done mkdir -p %{buildroot}/lib/modules/${kernel_version_}-$flavor/updates done %clean rm -rf $RPM_BUILD_ROOT %changelog -n wlan-kmp * Thu Sep 21 2006 - jg@suse.de - linux-wlan-ng: update to 0.2.5 * 2.6.18-rc fixes. * A few tweaks for Wireless-Extensions-21 * Fix an interrupt-related race that could lead to a crash on shutdown * Tweaks to the prism2_usb code to improve suspendability on 2.6.15+ * Silence many warnings under GCC 4.1 * udev support for USB targets (Richard Kennedy) * semaphores are deprecated as of 2.6.16 (Chris Rankin) * prism2_usb build fix for 2.6.16 * Generate a WEXT Event when we gain/lose association. * Make prism2_defer query ssid and bssid, as IBSS mode has this change. * Clean up prism2_defer_timer a bit. * Propogate linkstatus into p80211, and make ethtool aware of it. * USB Build fix from Chris Rankin. * Theoretically the per-frame signal/noise figures are now in dBm. - linux-wlan-ng: dropped obsolete patches * Tue Sep 12 2006 - jg@suse.de - acx: update to 20060521 - at76_usb (formerly at76c503a): update to 0.14beta1 - ipw3945: update to 1.1.0, changes: * Modified to not filter out legacy (non-802.11h) access points on channels marked as being in the radar detect spectrum. * Fixed problem with mandatory basic rates not being added correctly into association requests if they have been masked out by a mode selection. * Fixed #1059 problem with iwlist rate not working * Fixed problem with 802.11a channels not associating. * Fixed behavior with short_slot_time and short_preamble capabilities * Fixed problem with driver requesting masked rates during association * Fixed #1035 problem with not being able to associate with active key not being set to [1]. * Fixed #1043 problem with periodic system hang while switching between BSS and IBSS modes. * Fixed #1024 problem with associating to open AP after WPA APs * Fix #1021 problem with using uninitialized crypt pointer during shared-key authentication. * Fix #1025 problem with not being able to trun off RTS via iwconfig. * Fix problem with not setting privacy bits correctly. * Fix problem with using uninitialized bssid during association. * Fix #934 to correctly clear out station table when switching modes. * Fix #1013 to properly set capability bits. * Set RTS handling to match 802.11 spec * Fixed #980 problem with iwconfig ethX power not being able to set power to ON. * Fixed problem with iwlist scan returning that a scan was in progress while trying to associate. * Changed default retry per rate count from 2 to 1 to improve throughput. - added rt2x00 driver - updated and disabled Realtek driver (does not work with the in-kernel ieee802.11 stack currently) * Tue Aug 22 2006 - ro@suse.de - make the package at least build with current kernel * Mon Apr 10 2006 - agruen@suse.de - Add preamble `Enhances: kernel-$flavor' workaround to KMP sub-packages (156513). * Fri Apr 07 2006 - jg@suse.de - added PCI class cardbus bridge modalias tag * Fri Apr 07 2006 - jg@suse.de - ipw3945: update to 0.0.73 (bug 145190), changes: * Fixed problem with RSSI having IPW_RSSI_OFFSET being subtracted twice (resulting in *very low* signal levels) * Fixed #972 problem with not being able to associate to hidden SSIDs using wpa_supplicant. * Fixed #976 problem with RTS threshold value being clamped at 2304 vs. 2344. * Fixed #933 problem with association to hidden networks timing out (increased the timeout from 500ms to 750ms) * Merged patch to set 'fixed' flag for the WE get rate handler * Added rtap_filter sysfs entry for configuring which packets are sent to user space via the rtap interface. * Modified the tx and rx byte count statistics to count only 802.11 data payloads vs. counting miscellaneous 802.11 overhead. * Changed single usage of kfree_skb to dev_kfree_skb_any to fix a compile problem seen by some users. * Fixed problem with timed out host commands reporting the wrong command # to the debug log. * Added code to wait for an in-progress scan to abort before switching modes. * Modified scan request to block until the request is acknowledged before returning to ensure that the scanning state machine is in sync with the hardware state machine. * Fix #964 problem with disassociation on hidden networks * Fix #956 problem loading driver if RF Kill switch enabled in 0.0.70 * Fixed problem with switching from BG to A mode via iwpriv set_mode while in an ad-hoc network. * Change association timeout value from HZ/2 to 750ms (see #933) * Added rtap interface for RF promiscuous mode while associated. Enabled via CONFIG_IPW3945_RADIOTAP. * Modified rate scaling to not send an unnecessary command to the microcode every time the rate changes. * Modified the Tx measurement code to only gather statistics once every 3 seconds vs. every time a packet exceeds a given size (relative to the rate used) * Fixed #932 - Modified Tx measurement code to disable BT priority for those Tx requests where measurements are being requested - ipw3945: dropped obsolete hidden_ssid and associate_timout patches * Mon Apr 03 2006 - agruen@suse.de - convert-MODULE_PARM.diff: Convert from the obsolete MODULE_PARM to the new module_param. * Wed Mar 29 2006 - jg@suse.de - ipw3945: replaced association timeout patch with upstream fix (bug 145190) - ipw3945: added support to scan for hidden SSIDs using wpa_supplicant (bug 145190) * Sun Mar 26 2006 - ro@suse.de - do not build rtl8100 on ppc (no rdtsc) * Wed Mar 22 2006 - jg@suse.de - ipw3945: update to 1.0.0 (bug 145190, no code changes, documentation update only) * Fri Mar 03 2006 - jg@suse.de - increased association timeout (fixes association to networks with hidden ESSIDs) * Mon Feb 27 2006 - jg@suse.de - ipw3945: update to 0.0.69 (bug 145190) * Thu Feb 23 2006 - jg@suse.de - copying installed modules around to avoid 'make modules_install' delete them - removed broken rt2x00 driver (bug 149141) * Mon Feb 13 2006 - jg@suse.de - rtl8180-sa2400: fixed module params - ipw3945: update to 0.63 (bug 145190) * Fri Feb 10 2006 - jg@suse.de - split off wlan drivers in their own package - removed dependency on kernel-source - linux-wlan-ng: removed prism2dl.c from tarball (bug 148715)