1st success w hostap
Jim Cromie
jcromie
Tue Feb 1 13:10:24 PST 2005
Ive got my 1st wireless link up across hostap
so FWIW, heres something of a report.
I *was* having the following problem:
2 ifup processes chewing all cpu, io.
machine got really sluggish - best to have top already running, new
shells take forever
easy to reproduce: ifup hostap.
I 'fixed' it by deleting a conflicting config-file;
ifcfg-dlink, which had HWADDR='same' mac-address,
apparently causing both devices/interfaces to vie for resource.
Anyway. the last step was associating with the nearby AP
these cmds did it for me.
[root at harpo jimc]# iwconfig wifi0 mode managed
[root at harpo jimc]# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 IEEE 802.11g ESSID:"Apple Network ea3fa9"
Nickname:"harpo.jimc.earth"
Mode:Managed Frequency:2.457GHz Access Point: 00:03:93:EA:3F:A9
Bit Rate=54Mb/s Tx-Power=20 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/100 Signal level=-38 dBm Noise level=-82 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:98
sit0 no wireless extensions.
wifi0 IEEE 802.11b ESSID:"Apple Network ea3fa9"
Nickname:"harpo.jimc.earth"
Mode:Managed Frequency:2.457GHz Access Point: 00:03:93:EA:3F:A9
Bit Rate:2Mb/s Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
wlan0 IEEE 802.11b ESSID:"Apple Network ea3fa9"
Nickname:"harpo.jimc.earth"
Mode:Managed Frequency:2.457GHz Access Point: 00:03:93:EA:3F:A9
Bit Rate:2Mb/s Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=35/92 Signal level=-68 dBm Noise level=-99 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:12 Invalid misc:87 Missed beacon:0
# in this command, /sbin/ifup-local is triggered, which upgrades
firmware ram
[root at harpo jimc]# ifup wlan0
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Operation not supported.
Determining IP information for wlan0...SIOCADDRT: File exists
done.
srec summary for r1010504.hex
Included file name: R1010504.HEX
Component: 0x001f 1.5.4 (station firmware)
Verifying update compatibility and combining data:
Exact NICID was not found from the list of supported platforms, but an
alternative that has been reported to work was found.
OK.
Downloading to volatile memory (RAM).
OK.
Components after download:
NICID: 0x8008 v1.0.1
PRIID: 0x0015 v0.3.0
STAID: 0x001f v1.5.4
driver: hostap
version: 0.3.5 - 2005-01-23
firmware-version: 1.5.4
bus-info:
[root at harpo jimc]# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 08:00:46:d9:3e:96 brd ff:ff:ff:ff:ff:ff
inet6 fe80::a00:46ff:fed9:3e96/64 scope link
valid_lft forever preferred_lft forever
3: eth1: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:0e:35:1c:c6:fb brd ff:ff:ff:ff:ff:ff
inet 10.0.1.5/24 brd 255.255.255.255 scope global eth1
inet6 fe80::20e:35ff:fe1c:c6fb/64 scope link
valid_lft forever preferred_lft forever
4: sit0: <NOARP> mtu 1480 qdisc noop
link/sit 0.0.0.0 brd 0.0.0.0
7: wifi0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ieee802.11 00:40:05:de:3a:25 brd ff:ff:ff:ff:ff:ff
8: wlan0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue
link/ether 00:40:05:de:3a:25 brd ff:ff:ff:ff:ff:ff
inet 10.0.1.3/24 brd 255.255.255.255 scope global wlan0
inet6 fe80::240:5ff:fede:3a25/64 scope link
valid_lft forever preferred_lft forever
ie 3,8 both have inet, both dhcpd from same AP
FWIW, heres that script.
jimc]# more /sbin/ifup-local
#!/bin/sh
# update firmware on DLink when card is up'd
iface=$1
foo=`ethtool -i $iface`;
# ethtool has dependency on ioctl, which in turn requires that module is
installed
if [ "$?" = "0" ] ; then
# 0.7.6 is my original firmware version
old=`ethtool -i $iface | awk /0.7.6/`;
if [ "$old" != "" ] ; then
# download new one
/usr/local/bin/prism2_srec -ri $iface /etc/firmware/r1010504.hex
ethtool -i $iface
fi
fi
And heres what a bit more of what Im seeing now:
[root at harpo jimc]# iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
eth1 Scan completed :
Cell 01 - Address: 00:06:25:86:DC:FB
ESSID:"linksys"
Protocol:IEEE 802.11b
Mode:Master
Channel:7
Encryption key:off
Bit Rate:11Mb/s
Extra: Rates (Mb/s): 1 2 5.5 11
Signal level=-28 dBm
Extra: Last beacon: 9ms ago
Cell 02 - Address: 00:11:95:0A:79:18
ESSID:"VVS"
Protocol:IEEE 802.11g
Mode:Master
Channel:3
Encryption key:on
Bit Rate:54Mb/s
Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 24 36 48 54
Signal level=-72 dBm
Extra: Last beacon: 25ms ago
Cell 03 - Address: 00:03:93:EA:3F:A9
ESSID:"Apple Network ea3fa9"
Protocol:IEEE 802.11bg
Mode:Master
Channel:10
Encryption key:off
Bit Rate:54Mb/s
Extra: Rates (Mb/s): 1 2 5.5 6 9 11 12 18 24 36 48 54
Signal level=-40 dBm
Extra: Last beacon: 4ms ago
sit0 Interface doesn't support scanning.
wifi0 Scan completed :
Cell 01 - Address: 00:03:93:EA:3F:A9
ESSID:"Apple Network ea3fa9"
Mode:Master
Frequency:2.457GHz (Channel 10)
Quality:0/70 Signal level:-64 dBm Noise level:-95 dBm
Encryption key:off
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5.5Mb/s
Bit Rate:11Mb/s
Extra:bcn_int=100
Extra:resp_rate=10
Cell 02 - Address: 00:06:25:86:DC:FB
ESSID:"linksys"
Mode:Master
Frequency:2.442GHz (Channel 7)
Quality:0/70 Signal level:-43 dBm Noise level:-97 dBm
Encryption key:off
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5.5Mb/s
Bit Rate:11Mb/s
Extra:bcn_int=100
Extra:resp_rate=20
wlan0 Scan completed :
Cell 01 - Address: 00:03:93:EA:3F:A9
ESSID:"Apple Network ea3fa9"
Mode:Master
Frequency:2.457GHz (Channel 10)
Quality:0/70 Signal level:-64 dBm Noise level:-94 dBm
Encryption key:off
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5.5Mb/s
Bit Rate:11Mb/s
Extra:bcn_int=100
Extra:resp_rate=10
Cell 02 - Address: 00:06:25:86:DC:FB
ESSID:"linksys"
Mode:Master
Frequency:2.442GHz (Channel 7)
Quality:0/70 Signal level:-45 dBm Noise level:-93 dBm
Encryption key:off
Bit Rate:1Mb/s
Bit Rate:2Mb/s
Bit Rate:5.5Mb/s
Bit Rate:11Mb/s
Extra:bcn_int=100
Extra:resp_rate=20
[root at harpo jimc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.1.0 * 255.255.255.0 U 0 0 0 eth1
10.0.1.0 * 255.255.255.0 U 0 0 0
wlan0
169.254.0.0 * 255.255.0.0 U 0 0 0
wlan0
default 10.0.1.1 0.0.0.0 UG 0 0 0 eth1
[root at harpo jimc]
and later ... (more ifup's .. ??)
[root at harpo jimc]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
10.0.1.0 * 255.255.255.0 U 0 0 0
wlan0
10.0.1.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
default 10.0.1.1 0.0.0.0 UG 0 0 0
wlan0
[root at harpo jimc]#
now to send, reboot, and see if theyre repeatable :-)
More information about the Hostap
mailing list