hostapd-0.1.0 problem

Zou Min zoum at mzou.net
Tue Nov 11 10:51:08 EST 2003


Hi Jouni,

Thanks a lot for your prompt reply!

Jouni Malinen wrote:
> On Sun, Nov 09, 2003 at 02:13:58PM +0800, Min Zou wrote:
> 
> 
>>I recently upgraded hostap packages (in Debian) to the following:
>>- hostap-source  0.1.2
>>- hostap-util    0.1.2
>>- hostapd        0.1.0 
> 
> 
> OK, those work in my tests.. Which kernel version are you using? Do you
> have any patches in it? Which Linux wireless extensions version
> (include/linux/wireless.h)?

2.4.18 with NewNat patch from http://www.roeder.goe.net/~koepi/newnat.html

# uname -a
Linux westpeak 2.4.18-newnat13+helpers #1 Thu Oct 30 20:21:02 SGT 2003 
i586 GNU/Linux

#grep Version include/linux/wireless.h
  * Version :    12      5.10.01

In fact this kernel works for earlier version (0.0.3) of hostapd and 
hostap modules

> hostapd was unable to use an ioctl to configure the kernel driver. Could
> you please verify that the wireless extensions are working correctly
> with wireless-tools? For example, run following commands and report any
> errors:
> 
> iwpriv wlan0 hostapd 1
> # (or if your iwpriv is too old: iwpriv wlan0 prism2_param 34 1)
> # this is the same ioctl that failed with hostapd

# iwpriv wlan0 hostapd 1
wlan0     no private ioctls.

# iwpriv wlan0
wlan0     no private ioctls.

# iwconfig wlan0
wlan0     no wireless extensions.

The output seems strange to me because I have specified wireless options 
in my kernel configuration. See below:

#
# Wireless LAN (non-hamradio)
#
CONFIG_NET_RADIO=y
# CONFIG_STRIP is not set
# CONFIG_WAVELAN is not set
# CONFIG_ARLAN is not set
# CONFIG_AIRONET4500 is not set
# CONFIG_AIRONET4500_NONCS is not set
# CONFIG_AIRONET4500_PROC is not set
# CONFIG_AIRO is not set
# CONFIG_HERMES is not set
# CONFIG_PLX_HERMES is not set
CONFIG_NET_WIRELESS=y

Here are some further information:

# ifconfig
br0       Link encap:Ethernet  HWaddr 00:09:5B:67:5A:4A
           inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:4359785 errors:0 dropped:0 overruns:0 frame:0
           TX packets:6995313 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:229661540 (219.0 MiB)  TX bytes:4115570478 (3.8 GiB)

eth0      Link encap:Ethernet  HWaddr 00:50:BA:5D:FB:E3
           UP BROADCAST RUNNING MULTICAST  MTU:1372  Metric:1
           RX packets:4933122 errors:0 dropped:0 overruns:0 frame:0
           TX packets:8507887 errors:0 dropped:0 overruns:0 carrier:0
           collisions:1329298 txqueuelen:100
           RX bytes:324135073 (309.1 MiB)  TX bytes:1798759380 (1.6 GiB)
           Interrupt:12 Base address:0xa000

eth1      Link encap:Ethernet  HWaddr 00:E0:18:00:0E:47
           inet addr:xx.xx.xx.xx  Bcast:xx.xx.xx.xx Mask:255.255.240.0
           UP BROADCAST RUNNING MULTICAST  MTU:1372  Metric:1
           RX packets:10177500 errors:0 dropped:0 overruns:0 frame:0
           TX packets:4364426 errors:0 dropped:0 overruns:0 carrier:0
           collisions:89919 txqueuelen:100
           RX bytes:28213667 (26.9 MiB)  TX bytes:285979065 (272.7 MiB)
           Interrupt:10 Base address:0x2000

lo        Link encap:Local Loopback
           inet addr:127.0.0.1  Mask:255.0.0.0
           UP LOOPBACK RUNNING  MTU:16436  Metric:1
           RX packets:15310 errors:0 dropped:0 overruns:0 frame:0
           TX packets:15310 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:0
           RX bytes:1155169 (1.1 MiB)  TX bytes:1155169 (1.1 MiB)

wlan0     Link encap:Ethernet  HWaddr 00:09:5B:67:5A:4A
           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
           RX packets:2529821 errors:0 dropped:2399 overruns:0 frame:0
           TX packets:1811876 errors:0 dropped:10 overruns:0 carrier:0
           collisions:0 txqueuelen:100
           RX bytes:2755549177 (2.5 GiB)  TX bytes:878859326 (838.1 MiB)
           Interrupt:9 Memory:c683f000-c6840000

# lsmod
Module                  Size  Used by    Tainted: P
cisco_ipsec           342272   1
ipt_MASQUERADE          1528   1  (autoclean)
ipt_state                984   1  (autoclean)
ip_conntrack_h323       2600   1  (autoclean)
ip_nat_h323             2884   0  (unused)
ip_nat_ftp              3216   0  (unused)
iptable_nat            17048   3  [ipt_MASQUERADE ip_nat_h323 ip_nat_ftp]
ip_conntrack_irc        3312   0  (unused)
ip_conntrack_ftp        4080   1
ip_conntrack           17696   5  [ipt_MASQUERADE ipt_state 
ip_conntrack_h323 ip_nat_h323 ip_nat_ftp iptable_nat ip_conntrack_irc 
ip_conntrack_ftp]
iptable_filter          1704   1  (autoclean)
ip_tables              10488   6  [ipt_MASQUERADE ipt_state iptable_nat 
iptable_filter]
vfat                    9276   1
fat                    29240   0  [vfat]
hostap_pci             42228   1
hostap                 54440   0  [hostap_pci]
eepro100               16632   1
8139too                12808   1
mii                     1088   0  [8139too]

Not sure if I missed sth here...

Best regards,
Min




More information about the HostAP mailing list