[PATCH] Re: hostap-2002-10-12 + linux-2.4.19 + soekris4501/dwl-520 = crash!

Jun Sun jsun at junsun.net
Sat Nov 16 11:27:05 EST 2002


Nevermind.  All of a sudden, the original code works just fine
and the patch actually causes problems.  Strange.

Jun

On Sat, Nov 16, 2002 at 08:08:13AM -0800, Jun Sun wrote:
> 
> How this patch?  Does this look reasonable?
> 
> Basically if hostap is linked into kernel (vs. as a module) and kernel
> doesn't have module configured, you will see the following crash.
> 
> Jun
> 
> On Thu, Nov 07, 2002 at 09:54:21PM -0800, Jun Sun wrote:
> > 
> > Jouni,
> > 
> > I found out the problem.  However, I am not about the proper fix.
> > 
> > The root is cause is that in prism2_init_local_data():hostap_hw.c,
> > it sets local->hw_module to THIS_MODULE.  However, since
> > __GENKSYMS__ is not defined (should it be defined?), THIS_MODULE
> > is set to NULL (include/linux/module.h)
> > 
> > Removing all the code that changes hw_module makes the problem
> > going away.  However, that is just a hack.  Not sure what the
> > currect fix is.
> > 
> > Jun
> > 
> > 
> > On Tue, Nov 05, 2002 at 10:16:12PM -0800, Jun Sun wrote:
> > > 
> > > Here are some info about my setup:
> > > 
> > > . I applied the hostap kernel patch instead of the usual module approach.
> > > . I am using nfs root fs (which should not matter)
> > > 
> > > I put the output from serial console at the end of this email.  I also
> > > attached the .config file.  Does anybody know what is wrong here?
> > > 
> > > Jun
> > > 
> > > natsemi.c:v1.07 1/9/2001  Written by Donald Becker <becker at scyld.com>
> > >   http://www.scyld.com/network/natsemi.html
> > >   (unofficial 2.4.x kernel port, version 1.07+LK1.0.14, Nov 27, 2001  Jeff Garzi
> > > k, Tjeerd Mulder)
> > > eth0: NatSemi DP8381[56] at 0xc480d000, 00:00:24:c0:95:bc, IRQ 11.
> > > eth1: NatSemi DP8381[56] at 0xc480f000, 00:00:24:c0:95:bd, IRQ 5.
> > > eth2: NatSemi DP8381[56] at 0xc4811000, 00:00:24:c0:95:be, IRQ 9.
> > > hostap_pci: hostap_pci.c 0.0.0 2002-10-12 (SSH Communications Security Corp, Jou
> > > ni Malinen)
> > > hostap_pci: (c) Jouni Malinen <jkmaline at cc.hut.fi>
> > > hostap_pci: Registered netdevice wlan0
> > > wlan0: NIC: id=0x8013 v1.0.0
> > > wlan0: PRI: id=0x15 v1.1.0
> > > wlan0: STA: id=0x1f v1.4.9
> > > wlan0: Intersil Prism2.5 PCI: mem=0xa0000000, irq=10
> > > pktgen.c: v1.1 020418: Packet Generator for packet performance testing.
> > > pktgen: Error: your machine does not have working cycle counter.
> > > NET4: Linux TCP/IP 1.0 for NET4.0
> > > IP Protocols: ICMP, UDP, TCP, IGMP
> > > IP: routing cache hash table of 512 buckets, 4Kbytes
> > > TCP: Hash tables configured (established 4096 bind 4096)
> > > eth0: link up.
> > > eth1: autonegotiation did not complete in 4000 usec.
> > > eth2: autonegotiation did not complete in 4000 usec.
> > > Unable to handle kernel NULL pointer dereference at virtual address 00000010
> > >  printing eip:
> > > c01e83b2
> > > *pde = 00000000
> > > Oops: 0000
> > > CPU:    0
> > > EIP:    0010:[<c01e83b2>]    Not tainted
> > > EFLAGS: 00010246
> > > eax: 00000000   ebx: c10cec00   ecx: c0278a00   edx: 00000001
> > > esi: c11f4200   edi: 00001003   ebp: 00000000   esp: c10e5f60
> > > ds: 0018   es: 0018   ss: 0018
> > > Process swapper (pid: 1, stackpage=c10e5000)
> > > Stack: 00000000 00000000 00000000 00000000 c11f4200 00000000 c02043fe c11f4200 
> > >        c11f4200 00001002 c0205432 c11f4200 c11f4200 00000001 c0271002 c02e1fc0 
> > >        c02bb0b0 c11f4200 00001003 c1188580 c02e250c c02a9fdc c0105000 0004e000 
> > > Call Trace:    [<c02043fe>] [<c0205432>] [<c0105000>] [<c0105000>] [<c0105039>]
> > >   [<c0105000>] [<c0107276>] [<c0105030>]
> > > 
> > > Code: ff 40 10 8b 03 83 48 14 18 8b 43 08 85 c0 75 2e 8b 83 e0 02 
> > >  <0>Kernel panic: Attempted to kill init!
> > > 
> > 
> > > #
> > > # Automatically generated make config: don't edit
> > > #
> > > CONFIG_X86=y
> > > CONFIG_ISA=y
> > > # CONFIG_SBUS is not set
> > > CONFIG_UID16=y
> > > 
> > > #
> > > # Code maturity level options
> > > #
> > > CONFIG_EXPERIMENTAL=y
> > > 
> > > #
> > > # Loadable module support
> > > #
> > > CONFIG_MODULES=y
> > > CONFIG_MODVERSIONS=y
> > > # CONFIG_KMOD is not set
> > > 
> > > #
> > > # Processor type and features
> > > #
> > > # CONFIG_M386 is not set
> > > CONFIG_M486=y
> > > # CONFIG_M586 is not set
> > > # CONFIG_M586TSC is not set
> > > # CONFIG_M586MMX is not set
> > > # CONFIG_M686 is not set
> > > # CONFIG_MPENTIUMIII is not set
> > > # CONFIG_MPENTIUM4 is not set
> > > # CONFIG_MK6 is not set
> > > # CONFIG_MK7 is not set
> > > # CONFIG_MELAN is not set
> > > # CONFIG_MCRUSOE is not set
> > > # CONFIG_MWINCHIPC6 is not set
> > > # CONFIG_MWINCHIP2 is not set
> > > # CONFIG_MWINCHIP3D is not set
> > > # CONFIG_MCYRIXIII is not set
> > > CONFIG_X86_WP_WORKS_OK=y
> > > CONFIG_X86_INVLPG=y
> > > CONFIG_X86_CMPXCHG=y
> > > CONFIG_X86_XADD=y
> > > CONFIG_X86_BSWAP=y
> > > CONFIG_X86_POPAD_OK=y
> > > # CONFIG_RWSEM_GENERIC_SPINLOCK is not set
> > > CONFIG_RWSEM_XCHGADD_ALGORITHM=y
> > > CONFIG_X86_L1_CACHE_SHIFT=4
> > > CONFIG_X86_USE_STRING_486=y
> > > CONFIG_X86_ALIGNMENT_16=y
> > > CONFIG_X86_PPRO_FENCE=y
> > > # CONFIG_X86_MCE is not set
> > > # CONFIG_TOSHIBA is not set
> > > # CONFIG_I8K is not set
> > > # CONFIG_MICROCODE is not set
> > > # CONFIG_X86_MSR is not set
> > > # CONFIG_X86_CPUID is not set
> > > CONFIG_NOHIGHMEM=y
> > > # CONFIG_HIGHMEM4G is not set
> > > # CONFIG_HIGHMEM64G is not set
> > > CONFIG_MATH_EMULATION=y
> > > # CONFIG_MTRR is not set
> > > # CONFIG_SMP is not set
> > > # CONFIG_X86_UP_APIC is not set
> > > # CONFIG_X86_UP_IOAPIC is not set
> > > 
> > > #
> > > # General setup
> > > #
> > > CONFIG_NET=y
> > > CONFIG_PCI=y
> > > # CONFIG_PCI_GOBIOS is not set
> > > # CONFIG_PCI_GODIRECT is not set
> > > CONFIG_PCI_GOANY=y
> > > CONFIG_PCI_BIOS=y
> > > CONFIG_PCI_DIRECT=y
> > > CONFIG_PCI_NAMES=y
> > > # CONFIG_EISA is not set
> > > # CONFIG_MCA is not set
> > > # CONFIG_HOTPLUG is not set
> > > # CONFIG_PCMCIA is not set
> > > # CONFIG_HOTPLUG_PCI is not set
> > > CONFIG_SYSVIPC=y
> > > CONFIG_BSD_PROCESS_ACCT=y
> > > CONFIG_SYSCTL=y
> > > CONFIG_KCORE_ELF=y
> > > # CONFIG_KCORE_AOUT is not set
> > > # CONFIG_BINFMT_AOUT is not set
> > > CONFIG_BINFMT_ELF=y
> > > # CONFIG_BINFMT_MISC is not set
> > > CONFIG_PM=y
> > > # CONFIG_ACPI is not set
> > > CONFIG_APM=m
> > > # CONFIG_APM_IGNORE_USER_SUSPEND is not set
> > > # CONFIG_APM_DO_ENABLE is not set
> > > # CONFIG_APM_CPU_IDLE is not set
> > > CONFIG_APM_DISPLAY_BLANK=y
> > > CONFIG_APM_RTC_IS_GMT=y
> > > # CONFIG_APM_ALLOW_INTS is not set
> > > # CONFIG_APM_REAL_MODE_POWER_OFF is not set
> > > 
> > > #
> > > # Memory Technology Devices (MTD)
> > > #
> > > # CONFIG_MTD is not set
> > > 
> > > #
> > > # Parallel port support
> > > #
> > > # CONFIG_PARPORT is not set
> > > 
> > > #
> > > # Plug and Play configuration
> > > #
> > > CONFIG_PNP=m
> > > CONFIG_ISAPNP=m
> > > 
> > > #
> > > # Block devices
> > > #
> > > CONFIG_BLK_DEV_FD=m
> > > # CONFIG_BLK_DEV_XD is not set
> > > # CONFIG_PARIDE is not set
> > > # CONFIG_BLK_CPQ_DA is not set
> > > # CONFIG_BLK_CPQ_CISS_DA is not set
> > > # CONFIG_CISS_SCSI_TAPE is not set
> > > # CONFIG_BLK_DEV_DAC960 is not set
> > > # CONFIG_BLK_DEV_UMEM is not set
> > > CONFIG_BLK_DEV_LOOP=m
> > > # CONFIG_BLK_DEV_NBD is not set
> > > # CONFIG_BLK_DEV_RAM is not set
> > > # CONFIG_BLK_DEV_INITRD is not set
> > > 
> > > #
> > > # Multi-device support (RAID and LVM)
> > > #
> > > # CONFIG_MD is not set
> > > # CONFIG_BLK_DEV_MD is not set
> > > # CONFIG_MD_LINEAR is not set
> > > # CONFIG_MD_RAID0 is not set
> > > # CONFIG_MD_RAID1 is not set
> > > # CONFIG_MD_RAID5 is not set
> > > # CONFIG_MD_MULTIPATH is not set
> > > # CONFIG_BLK_DEV_LVM is not set
> > > 
> > > #
> > > # Networking options
> > > #
> > > CONFIG_PACKET=y
> > > CONFIG_PACKET_MMAP=y
> > > CONFIG_NETLINK_DEV=y
> > > CONFIG_NETFILTER=y
> > > CONFIG_NETFILTER_DEBUG=y
> > > # CONFIG_FILTER is not set
> > > CONFIG_UNIX=y
> > > CONFIG_INET=y
> > > CONFIG_IP_MULTICAST=y
> > > # CONFIG_IP_ADVANCED_ROUTER is not set
> > > CONFIG_IP_PNP=y
> > > # CONFIG_IP_PNP_DHCP is not set
> > > CONFIG_IP_PNP_BOOTP=y
> > > # CONFIG_IP_PNP_RARP is not set
> > > CONFIG_NET_IPIP=m
> > > CONFIG_NET_IPGRE=m
> > > # CONFIG_NET_IPGRE_BROADCAST is not set
> > > # CONFIG_IP_MROUTE is not set
> > > # CONFIG_ARPD is not set
> > > # CONFIG_INET_ECN is not set
> > > CONFIG_SYN_COOKIES=y
> > > 
> > > #
> > > #   IP: Netfilter Configuration
> > > #
> > > CONFIG_IP_NF_CONNTRACK=m
> > > CONFIG_IP_NF_FTP=m
> > > CONFIG_IP_NF_IRC=m
> > > CONFIG_IP_NF_QUEUE=m
> > > CONFIG_IP_NF_IPTABLES=m
> > > CONFIG_IP_NF_MATCH_LIMIT=m
> > > CONFIG_IP_NF_MATCH_MAC=m
> > > CONFIG_IP_NF_MATCH_MARK=m
> > > CONFIG_IP_NF_MATCH_MULTIPORT=m
> > > CONFIG_IP_NF_MATCH_TOS=m
> > > CONFIG_IP_NF_MATCH_AH_ESP=m
> > > CONFIG_IP_NF_MATCH_LENGTH=m
> > > CONFIG_IP_NF_MATCH_TTL=m
> > > CONFIG_IP_NF_MATCH_TCPMSS=m
> > > CONFIG_IP_NF_MATCH_STATE=m
> > > CONFIG_IP_NF_MATCH_UNCLEAN=m
> > > CONFIG_IP_NF_MATCH_OWNER=m
> > > CONFIG_IP_NF_FILTER=m
> > > CONFIG_IP_NF_TARGET_REJECT=m
> > > CONFIG_IP_NF_TARGET_MIRROR=m
> > > CONFIG_IP_NF_NAT=m
> > > CONFIG_IP_NF_NAT_NEEDED=y
> > > CONFIG_IP_NF_TARGET_MASQUERADE=m
> > > CONFIG_IP_NF_TARGET_REDIRECT=m
> > > # CONFIG_IP_NF_NAT_LOCAL is not set
> > > CONFIG_IP_NF_NAT_SNMP_BASIC=m
> > > CONFIG_IP_NF_NAT_IRC=m
> > > CONFIG_IP_NF_NAT_FTP=m
> > > CONFIG_IP_NF_MANGLE=m
> > > CONFIG_IP_NF_TARGET_TOS=m
> > > CONFIG_IP_NF_TARGET_MARK=m
> > > CONFIG_IP_NF_TARGET_LOG=m
> > > CONFIG_IP_NF_TARGET_ULOG=m
> > > CONFIG_IP_NF_TARGET_TCPMSS=m
> > > CONFIG_IP_NF_ARPTABLES=y
> > > CONFIG_IP_NF_ARPFILTER=y
> > > # CONFIG_IP_NF_COMPAT_IPCHAINS is not set
> > > # CONFIG_IP_NF_COMPAT_IPFWADM is not set
> > > CONFIG_IPV6=m
> > > 
> > > #
> > > #   IPv6: Netfilter Configuration
> > > #
> > > # CONFIG_IP6_NF_QUEUE is not set
> > > # CONFIG_IP6_NF_IPTABLES is not set
> > > CONFIG_KHTTPD=m
> > > # CONFIG_ATM is not set
> > > CONFIG_VLAN_8021Q=m
> > > 
> > > #
> > > #  
> > > #
> > > # CONFIG_IPX is not set
> > > # CONFIG_ATALK is not set
> > > 
> > > #
> > > # Appletalk devices
> > > #
> > > # CONFIG_DEV_APPLETALK is not set
> > > # CONFIG_DECNET is not set
> > > CONFIG_BRIDGE=m
> > > # CONFIG_X25 is not set
> > > # CONFIG_LAPB is not set
> > > # CONFIG_LLC is not set
> > > # CONFIG_NET_DIVERT is not set
> > > # CONFIG_ECONET is not set
> > > # CONFIG_WAN_ROUTER is not set
> > > # CONFIG_NET_FASTROUTE is not set
> > > # CONFIG_NET_HW_FLOWCONTROL is not set
> > > 
> > > #
> > > # QoS and/or fair queueing
> > > #
> > > CONFIG_NET_SCHED=y
> > > CONFIG_NET_SCH_CBQ=m
> > > CONFIG_NET_SCH_CSZ=m
> > > CONFIG_NET_SCH_PRIO=m
> > > CONFIG_NET_SCH_RED=m
> > > CONFIG_NET_SCH_SFQ=m
> > > CONFIG_NET_SCH_TEQL=m
> > > CONFIG_NET_SCH_TBF=m
> > > CONFIG_NET_SCH_GRED=m
> > > CONFIG_NET_SCH_DSMARK=m
> > > CONFIG_NET_SCH_INGRESS=m
> > > CONFIG_NET_QOS=y
> > > CONFIG_NET_ESTIMATOR=y
> > > CONFIG_NET_CLS=y
> > > CONFIG_NET_CLS_TCINDEX=m
> > > CONFIG_NET_CLS_ROUTE4=m
> > > CONFIG_NET_CLS_ROUTE=y
> > > CONFIG_NET_CLS_FW=m
> > > CONFIG_NET_CLS_U32=m
> > > CONFIG_NET_CLS_RSVP=m
> > > CONFIG_NET_CLS_RSVP6=m
> > > CONFIG_NET_CLS_POLICE=y
> > > 
> > > #
> > > # Network testing
> > > #
> > > CONFIG_NET_PKTGEN=y
> > > 
> > > #
> > > # Telephony Support
> > > #
> > > CONFIG_PHONE=m
> > > CONFIG_PHONE_IXJ=m
> > > # CONFIG_PHONE_IXJ_PCMCIA is not set
> > > 
> > > #
> > > # ATA/IDE/MFM/RLL support
> > > #
> > > CONFIG_IDE=y
> > > 
> > > #
> > > # IDE, ATA and ATAPI Block devices
> > > #
> > > CONFIG_BLK_DEV_IDE=y
> > > 
> > > #
> > > # Please see Documentation/ide.txt for help/info on IDE drives
> > > #
> > > # CONFIG_BLK_DEV_HD_IDE is not set
> > > # CONFIG_BLK_DEV_HD is not set
> > > CONFIG_BLK_DEV_IDEDISK=y
> > > CONFIG_IDEDISK_MULTI_MODE=y
> > > CONFIG_IDEDISK_STROKE=y
> > > # CONFIG_BLK_DEV_IDEDISK_VENDOR is not set
> > > # CONFIG_BLK_DEV_IDEDISK_FUJITSU is not set
> > > # CONFIG_BLK_DEV_IDEDISK_IBM is not set
> > > # CONFIG_BLK_DEV_IDEDISK_MAXTOR is not set
> > > # CONFIG_BLK_DEV_IDEDISK_QUANTUM is not set
> > > # CONFIG_BLK_DEV_IDEDISK_SEAGATE is not set
> > > # CONFIG_BLK_DEV_IDEDISK_WD is not set
> > > # CONFIG_BLK_DEV_COMMERIAL is not set
> > > # CONFIG_BLK_DEV_TIVO is not set
> > > # CONFIG_BLK_DEV_IDECS is not set
> > > CONFIG_BLK_DEV_IDECD=y
> > > # CONFIG_BLK_DEV_IDETAPE is not set
> > > # CONFIG_BLK_DEV_IDEFLOPPY is not set
> > > # CONFIG_BLK_DEV_IDESCSI is not set
> > > CONFIG_IDE_TASK_IOCTL=y
> > > 
> > > #
> > > # IDE chipset support/bugfixes
> > > #
> > > CONFIG_BLK_DEV_CMD640=y
> > > # CONFIG_BLK_DEV_CMD640_ENHANCED is not set
> > > # CONFIG_BLK_DEV_ISAPNP is not set
> > > CONFIG_BLK_DEV_RZ1000=y
> > > CONFIG_BLK_DEV_IDEPCI=y
> > > CONFIG_IDEPCI_SHARE_IRQ=y
> > > CONFIG_BLK_DEV_IDEDMA_PCI=y
> > > # CONFIG_BLK_DEV_OFFBOARD is not set
> > > # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
> > > CONFIG_IDEDMA_PCI_AUTO=y
> > > # CONFIG_IDEDMA_ONLYDISK is not set
> > > CONFIG_BLK_DEV_IDEDMA=y
> > > # CONFIG_IDEDMA_PCI_WIP is not set
> > > # CONFIG_BLK_DEV_IDEDMA_TIMEOUT is not set
> > > # CONFIG_IDEDMA_NEW_DRIVE_LISTINGS is not set
> > > CONFIG_BLK_DEV_ADMA=y
> > > # CONFIG_BLK_DEV_AEC62XX is not set
> > > # CONFIG_AEC62XX_TUNING is not set
> > > # CONFIG_BLK_DEV_ALI15X3 is not set
> > > # CONFIG_WDC_ALI15X3 is not set
> > > # CONFIG_BLK_DEV_AMD74XX is not set
> > > # CONFIG_AMD74XX_OVERRIDE is not set
> > > # CONFIG_BLK_DEV_CMD64X is not set
> > > # CONFIG_BLK_DEV_CMD680 is not set
> > > # CONFIG_BLK_DEV_CY82C693 is not set
> > > # CONFIG_BLK_DEV_CS5530 is not set
> > > # CONFIG_BLK_DEV_HPT34X is not set
> > > # CONFIG_HPT34X_AUTODMA is not set
> > > # CONFIG_BLK_DEV_HPT366 is not set
> > > CONFIG_BLK_DEV_PIIX=y
> > > CONFIG_PIIX_TUNING=y
> > > # CONFIG_BLK_DEV_NS87415 is not set
> > > # CONFIG_BLK_DEV_OPTI621 is not set
> > > # CONFIG_BLK_DEV_PDC202XX is not set
> > > # CONFIG_PDC202XX_BURST is not set
> > > # CONFIG_PDC202XX_FORCE is not set
> > > # CONFIG_BLK_DEV_SVWKS is not set
> > > # CONFIG_BLK_DEV_SIS5513 is not set
> > > # CONFIG_BLK_DEV_SLC90E66 is not set
> > > # CONFIG_BLK_DEV_TRM290 is not set
> > > # CONFIG_BLK_DEV_VIA82CXXX is not set
> > > # CONFIG_IDE_CHIPSETS is not set
> > > CONFIG_IDEDMA_AUTO=y
> > > # CONFIG_IDEDMA_IVB is not set
> > > # CONFIG_DMA_NONPCI is not set
> > > CONFIG_BLK_DEV_IDE_MODES=y
> > > # CONFIG_BLK_DEV_ATARAID is not set
> > > # CONFIG_BLK_DEV_ATARAID_PDC is not set
> > > # CONFIG_BLK_DEV_ATARAID_HPT is not set
> > > 
> > > #
> > > # SCSI support
> > > #
> > > # CONFIG_SCSI is not set
> > > 
> > > #
> > > # Fusion MPT device support
> > > #
> > > # CONFIG_FUSION is not set
> > > # CONFIG_FUSION_BOOT is not set
> > > # CONFIG_FUSION_ISENSE is not set
> > > # CONFIG_FUSION_CTL is not set
> > > # CONFIG_FUSION_LAN is not set
> > > 
> > > #
> > > # IEEE 1394 (FireWire) support (EXPERIMENTAL)
> > > #
> > > # CONFIG_IEEE1394 is not set
> > > 
> > > #
> > > # I2O device support
> > > #
> > > # CONFIG_I2O is not set
> > > # CONFIG_I2O_PCI is not set
> > > # CONFIG_I2O_BLOCK is not set
> > > # CONFIG_I2O_LAN is not set
> > > # CONFIG_I2O_SCSI is not set
> > > # CONFIG_I2O_PROC is not set
> > > 
> > > #
> > > # Network device support
> > > #
> > > CONFIG_NETDEVICES=y
> > > 
> > > #
> > > # ARCnet devices
> > > #
> > > # CONFIG_ARCNET is not set
> > > CONFIG_DUMMY=m
> > > # CONFIG_BONDING is not set
> > > # CONFIG_EQUALIZER is not set
> > > CONFIG_TUN=m
> > > # CONFIG_ETHERTAP is not set
> > > # CONFIG_NET_SB1000 is not set
> > > 
> > > #
> > > # Ethernet (10 or 100Mbit)
> > > #
> > > CONFIG_NET_ETHERNET=y
> > > # CONFIG_SUNLANCE is not set
> > > CONFIG_HAPPYMEAL=m
> > > # CONFIG_SUNBMAC is not set
> > > # CONFIG_SUNQE is not set
> > > CONFIG_SUNGEM=m
> > > # CONFIG_NET_VENDOR_3COM is not set
> > > CONFIG_LANCE=m
> > > # CONFIG_NET_VENDOR_SMC is not set
> > > # CONFIG_NET_VENDOR_RACAL is not set
> > > CONFIG_AT1700=m
> > > CONFIG_DEPCA=m
> > > CONFIG_HP100=m
> > > # CONFIG_NET_ISA is not set
> > > CONFIG_NET_PCI=y
> > > CONFIG_PCNET32=m
> > > CONFIG_ADAPTEC_STARFIRE=m
> > > CONFIG_AC3200=m
> > > CONFIG_APRICOT=m
> > > CONFIG_CS89x0=m
> > > CONFIG_TULIP=m
> > > CONFIG_TC35815=m
> > > # CONFIG_TULIP_MWI is not set
> > > # CONFIG_TULIP_MMIO is not set
> > > CONFIG_DE4X5=m
> > > CONFIG_DGRS=m
> > > CONFIG_DM9102=m
> > > CONFIG_EEPRO100=m
> > > # CONFIG_LNE390 is not set
> > > CONFIG_FEALNX=m
> > > CONFIG_NATSEMI=y
> > > # CONFIG_NATSEMI_CABLE_MAGIC is not set
> > > CONFIG_NE2K_PCI=m
> > > # CONFIG_NE3210 is not set
> > > # CONFIG_ES3210 is not set
> > > CONFIG_8139CP=m
> > > CONFIG_8139TOO=m
> > > # CONFIG_8139TOO_PIO is not set
> > > # CONFIG_8139TOO_TUNE_TWISTER is not set
> > > # CONFIG_8139TOO_8129 is not set
> > > # CONFIG_8139_NEW_RX_RESET is not set
> > > CONFIG_SIS900=m
> > > CONFIG_EPIC100=m
> > > CONFIG_SUNDANCE=m
> > > CONFIG_TLAN=m
> > > CONFIG_VIA_RHINE=m
> > > # CONFIG_VIA_RHINE_MMIO is not set
> > > CONFIG_WINBOND_840=m
> > > # CONFIG_NET_POCKET is not set
> > > 
> > > #
> > > # Ethernet (1000 Mbit)
> > > #
> > > # CONFIG_ACENIC is not set
> > > # CONFIG_DL2K is not set
> > > # CONFIG_MYRI_SBUS is not set
> > > # CONFIG_NS83820 is not set
> > > # CONFIG_HAMACHI is not set
> > > # CONFIG_YELLOWFIN is not set
> > > # CONFIG_SK98LIN is not set
> > > # CONFIG_TIGON3 is not set
> > > # CONFIG_FDDI is not set
> > > # CONFIG_HIPPI is not set
> > > # CONFIG_PLIP is not set
> > > # CONFIG_PPP is not set
> > > # CONFIG_SLIP is not set
> > > 
> > > #
> > > # Wireless LAN (non-hamradio)
> > > #
> > > CONFIG_NET_RADIO=y
> > > CONFIG_STRIP=m
> > > CONFIG_WAVELAN=m
> > > CONFIG_ARLAN=m
> > > CONFIG_AIRONET4500=m
> > > CONFIG_AIRONET4500_NONCS=m
> > > # CONFIG_AIRONET4500_PNP is not set
> > > # CONFIG_AIRONET4500_PCI is not set
> > > # CONFIG_AIRONET4500_ISA is not set
> > > # CONFIG_AIRONET4500_I365 is not set
> > > CONFIG_AIRONET4500_PROC=m
> > > CONFIG_AIRO=m
> > > CONFIG_HERMES=m
> > > CONFIG_HOSTAP=y
> > > # CONFIG_PLX_HERMES is not set
> > > # CONFIG_PCI_HERMES is not set
> > > # CONFIG_HOSTAP_PLX is not set
> > > CONFIG_HOSTAP_PCI=y
> > > CONFIG_NET_WIRELESS=y
> > > 
> > > #
> > > # Token Ring devices
> > > #
> > > # CONFIG_TR is not set
> > > # CONFIG_NET_FC is not set
> > > # CONFIG_RCPCI is not set
> > > # CONFIG_SHAPER is not set
> > > 
> > > #
> > > # Wan interfaces
> > > #
> > > # CONFIG_WAN is not set
> > > 
> > > #
> > > # Amateur Radio support
> > > #
> > > # CONFIG_HAMRADIO is not set
> > > 
> > > #
> > > # IrDA (infrared) support
> > > #
> > > # CONFIG_IRDA is not set
> > > 
> > > #
> > > # ISDN subsystem
> > > #
> > > # CONFIG_ISDN is not set
> > > 
> > > #
> > > # Old CD-ROM drivers (not SCSI, not IDE)
> > > #
> > > # CONFIG_CD_NO_IDESCSI is not set
> > > 
> > > #
> > > # Input core support
> > > #
> > > CONFIG_INPUT=m
> > > CONFIG_INPUT_KEYBDEV=m
> > > CONFIG_INPUT_MOUSEDEV=m
> > > CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
> > > CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
> > > CONFIG_INPUT_JOYDEV=m
> > > CONFIG_INPUT_EVDEV=m
> > > 
> > > #
> > > # Character devices
> > > #
> > > CONFIG_VT=y
> > > CONFIG_VT_CONSOLE=y
> > > CONFIG_SERIAL=y
> > > CONFIG_SERIAL_CONSOLE=y
> > > # CONFIG_SERIAL_EXTENDED is not set
> > > # CONFIG_SERIAL_NONSTANDARD is not set
> > > CONFIG_UNIX98_PTYS=y
> > > CONFIG_UNIX98_PTY_COUNT=256
> > > 
> > > #
> > > # I2C support
> > > #
> > > # CONFIG_I2C is not set
> > > 
> > > #
> > > # Mice
> > > #
> > > # CONFIG_BUSMOUSE is not set
> > > CONFIG_MOUSE=y
> > > CONFIG_PSMOUSE=y
> > > # CONFIG_82C710_MOUSE is not set
> > > # CONFIG_PC110_PAD is not set
> > > # CONFIG_MK712_MOUSE is not set
> > > 
> > > #
> > > # Joysticks
> > > #
> > > # CONFIG_INPUT_GAMEPORT is not set
> > > # CONFIG_INPUT_NS558 is not set
> > > # CONFIG_INPUT_LIGHTNING is not set
> > > # CONFIG_INPUT_PCIGAME is not set
> > > # CONFIG_INPUT_CS461X is not set
> > > # CONFIG_INPUT_EMU10K1 is not set
> > > # CONFIG_INPUT_SERIO is not set
> > > # CONFIG_INPUT_SERPORT is not set
> > > 
> > > #
> > > # Joysticks
> > > #
> > > # CONFIG_INPUT_ANALOG is not set
> > > # CONFIG_INPUT_A3D is not set
> > > # CONFIG_INPUT_ADI is not set
> > > # CONFIG_INPUT_COBRA is not set
> > > # CONFIG_INPUT_GF2K is not set
> > > # CONFIG_INPUT_GRIP is not set
> > > # CONFIG_INPUT_INTERACT is not set
> > > # CONFIG_INPUT_TMDC is not set
> > > # CONFIG_INPUT_SIDEWINDER is not set
> > > # CONFIG_INPUT_IFORCE_USB is not set
> > > # CONFIG_INPUT_IFORCE_232 is not set
> > > # CONFIG_INPUT_WARRIOR is not set
> > > # CONFIG_INPUT_MAGELLAN is not set
> > > # CONFIG_INPUT_SPACEORB is not set
> > > # CONFIG_INPUT_SPACEBALL is not set
> > > # CONFIG_INPUT_STINGER is not set
> > > # CONFIG_INPUT_DB9 is not set
> > > # CONFIG_INPUT_GAMECON is not set
> > > # CONFIG_INPUT_TURBOGRAFX is not set
> > > # CONFIG_QIC02_TAPE is not set
> > > 
> > > #
> > > # Watchdog Cards
> > > #
> > > # CONFIG_WATCHDOG is not set
> > > # CONFIG_AMD_RNG is not set
> > > # CONFIG_INTEL_RNG is not set
> > > # CONFIG_NVRAM is not set
> > > # CONFIG_RTC is not set
> > > # CONFIG_DTLK is not set
> > > # CONFIG_R3964 is not set
> > > # CONFIG_APPLICOM is not set
> > > # CONFIG_SONYPI is not set
> > > 
> > > #
> > > # Ftape, the floppy tape device driver
> > > #
> > > # CONFIG_FTAPE is not set
> > > # CONFIG_AGP is not set
> > > # CONFIG_DRM is not set
> > > # CONFIG_MWAVE is not set
> > > 
> > > #
> > > # Multimedia devices
> > > #
> > > # CONFIG_VIDEO_DEV is not set
> > > 
> > > #
> > > # File systems
> > > #
> > > # CONFIG_QUOTA is not set
> > > # CONFIG_AUTOFS_FS is not set
> > > # CONFIG_AUTOFS4_FS is not set
> > > CONFIG_REISERFS_FS=y
> > > # CONFIG_REISERFS_CHECK is not set
> > > # CONFIG_REISERFS_PROC_INFO is not set
> > > # CONFIG_ADFS_FS is not set
> > > # CONFIG_ADFS_FS_RW is not set
> > > # CONFIG_AFFS_FS is not set
> > > # CONFIG_HFS_FS is not set
> > > # CONFIG_BFS_FS is not set
> > > CONFIG_EXT3_FS=y
> > > CONFIG_JBD=y
> > > # CONFIG_JBD_DEBUG is not set
> > > # CONFIG_FAT_FS is not set
> > > # CONFIG_MSDOS_FS is not set
> > > # CONFIG_UMSDOS_FS is not set
> > > # CONFIG_VFAT_FS is not set
> > > # CONFIG_EFS_FS is not set
> > > # CONFIG_JFFS_FS is not set
> > > # CONFIG_JFFS2_FS is not set
> > > # CONFIG_CRAMFS is not set
> > > # CONFIG_TMPFS is not set
> > > CONFIG_RAMFS=y
> > > CONFIG_ISO9660_FS=y
> > > CONFIG_JOLIET=y
> > > CONFIG_ZISOFS=y
> > > CONFIG_MINIX_FS=m
> > > # CONFIG_VXFS_FS is not set
> > > # CONFIG_NTFS_FS is not set
> > > # CONFIG_NTFS_RW is not set
> > > # CONFIG_HPFS_FS is not set
> > > CONFIG_PROC_FS=y
> > > # CONFIG_DEVFS_FS is not set
> > > # CONFIG_DEVFS_MOUNT is not set
> > > # CONFIG_DEVFS_DEBUG is not set
> > > CONFIG_DEVPTS_FS=y
> > > # CONFIG_QNX4FS_FS is not set
> > > # CONFIG_QNX4FS_RW is not set
> > > # CONFIG_ROMFS_FS is not set
> > > CONFIG_EXT2_FS=y
> > > # CONFIG_SYSV_FS is not set
> > > # CONFIG_UDF_FS is not set
> > > # CONFIG_UDF_RW is not set
> > > # CONFIG_UFS_FS is not set
> > > # CONFIG_UFS_FS_WRITE is not set
> > > 
> > > #
> > > # Network File Systems
> > > #
> > > # CONFIG_CODA_FS is not set
> > > # CONFIG_INTERMEZZO_FS is not set
> > > CONFIG_NFS_FS=y
> > > # CONFIG_NFS_V3 is not set
> > > CONFIG_ROOT_NFS=y
> > > CONFIG_NFSD=m
> > > # CONFIG_NFSD_V3 is not set
> > > CONFIG_SUNRPC=y
> > > CONFIG_LOCKD=y
> > > CONFIG_SMB_FS=m
> > > # CONFIG_SMB_NLS_DEFAULT is not set
> > > # CONFIG_NCP_FS is not set
> > > # CONFIG_NCPFS_PACKET_SIGNING is not set
> > > # CONFIG_NCPFS_IOCTL_LOCKING is not set
> > > # CONFIG_NCPFS_STRONG is not set
> > > # CONFIG_NCPFS_NFS_NS is not set
> > > # CONFIG_NCPFS_OS2_NS is not set
> > > # CONFIG_NCPFS_SMALLDOS is not set
> > > # CONFIG_NCPFS_NLS is not set
> > > # CONFIG_NCPFS_EXTRAS is not set
> > > CONFIG_ZISOFS_FS=y
> > > CONFIG_ZLIB_FS_INFLATE=y
> > > 
> > > #
> > > # Partition Types
> > > #
> > > # CONFIG_PARTITION_ADVANCED is not set
> > > CONFIG_MSDOS_PARTITION=y
> > > CONFIG_SMB_NLS=y
> > > CONFIG_NLS=y
> > > 
> > > #
> > > # Native Language Support
> > > #
> > > CONFIG_NLS_DEFAULT="iso8859-1"
> > > # CONFIG_NLS_CODEPAGE_437 is not set
> > > # CONFIG_NLS_CODEPAGE_737 is not set
> > > # CONFIG_NLS_CODEPAGE_775 is not set
> > > # CONFIG_NLS_CODEPAGE_850 is not set
> > > # CONFIG_NLS_CODEPAGE_852 is not set
> > > # CONFIG_NLS_CODEPAGE_855 is not set
> > > # CONFIG_NLS_CODEPAGE_857 is not set
> > > # CONFIG_NLS_CODEPAGE_860 is not set
> > > # CONFIG_NLS_CODEPAGE_861 is not set
> > > # CONFIG_NLS_CODEPAGE_862 is not set
> > > # CONFIG_NLS_CODEPAGE_863 is not set
> > > # CONFIG_NLS_CODEPAGE_864 is not set
> > > # CONFIG_NLS_CODEPAGE_865 is not set
> > > # CONFIG_NLS_CODEPAGE_866 is not set
> > > # CONFIG_NLS_CODEPAGE_869 is not set
> > > # CONFIG_NLS_CODEPAGE_936 is not set
> > > # CONFIG_NLS_CODEPAGE_950 is not set
> > > # CONFIG_NLS_CODEPAGE_932 is not set
> > > # CONFIG_NLS_CODEPAGE_949 is not set
> > > # CONFIG_NLS_CODEPAGE_874 is not set
> > > # CONFIG_NLS_ISO8859_8 is not set
> > > # CONFIG_NLS_CODEPAGE_1250 is not set
> > > # CONFIG_NLS_CODEPAGE_1251 is not set
> > > # CONFIG_NLS_ISO8859_1 is not set
> > > # CONFIG_NLS_ISO8859_2 is not set
> > > # CONFIG_NLS_ISO8859_3 is not set
> > > # CONFIG_NLS_ISO8859_4 is not set
> > > # CONFIG_NLS_ISO8859_5 is not set
> > > # CONFIG_NLS_ISO8859_6 is not set
> > > # CONFIG_NLS_ISO8859_7 is not set
> > > # CONFIG_NLS_ISO8859_9 is not set
> > > # CONFIG_NLS_ISO8859_13 is not set
> > > # CONFIG_NLS_ISO8859_14 is not set
> > > # CONFIG_NLS_ISO8859_15 is not set
> > > # CONFIG_NLS_KOI8_R is not set
> > > # CONFIG_NLS_KOI8_U is not set
> > > # CONFIG_NLS_UTF8 is not set
> > > 
> > > #
> > > # Console drivers
> > > #
> > > CONFIG_VGA_CONSOLE=y
> > > # CONFIG_VIDEO_SELECT is not set
> > > # CONFIG_MDA_CONSOLE is not set
> > > 
> > > #
> > > # Frame-buffer support
> > > #
> > > # CONFIG_FB is not set
> > > 
> > > #
> > > # Sound
> > > #
> > > # CONFIG_SOUND is not set
> > > 
> > > #
> > > # USB support
> > > #
> > > # CONFIG_USB is not set
> > > 
> > > #
> > > # Bluetooth support
> > > #
> > > # CONFIG_BLUEZ is not set
> > > 
> > > #
> > > # Kernel hacking
> > > #
> > > # CONFIG_DEBUG_KERNEL is not set
> > 
> > _______________________________________________
> > HostAP mailing list
> > HostAP at shmoo.com
> > http://lists.shmoo.com/mailman/listinfo/hostap

> diff -Nru ./linux-2.4.19/drivers/net/wireless/hostap.c.orig ./linux-2.4.19/drivers/net/wireless/hostap.c
> --- ./linux-2.4.19/drivers/net/wireless/hostap.c.orig	Thu Nov  7 13:57:18 2002
> +++ ./linux-2.4.19/drivers/net/wireless/hostap.c	Sat Nov 16 08:03:30 2002
> @@ -578,8 +578,9 @@
>  	}
>  
>  	PRISM2_FLUSH_SCHEDULED_TASKS();
> -
> -	__MOD_DEC_USE_COUNT(local->hw_module);
> +	
> +	if (local->hwmodule)
> +		__MOD_DEC_USE_COUNT(local->hw_module);
>  
>  	return 0;
>  }
> @@ -594,7 +595,8 @@
>  	if (local->func->dev_open && local->func->dev_open(local))
>  		return 1;
>  
> -	__MOD_INC_USE_COUNT(local->hw_module);
> +	if (local->hwmodule)
> +		__MOD_INC_USE_COUNT(local->hw_module);
>  
>  	if (!local->dev_enabled && local->func->hw_enable(dev, 1)) {
>  		printk(KERN_WARNING "%s: could not enable MAC port\n",




More information about the HostAP mailing list