| ハードウェア: | IBM ThinkPad X22 |
| 無線LAN: | built-in PCI card (Prism 2.5仕様) |
| OS: | RedHat Linux 7.2 (kernel version 2.4.18-24.7.x) |
% tar zxvf hostap-2002-10-22.tar.gz % cd hostap-2002-10-12 % vi Makefile |
| 変更前 (1-3行目) |
# Edit this path to match with your system (it should point to the root # directory of the Linux kernel source) KERNEL_PATH=/usr/src/linux |
| 変更後 (1-3行目) |
# Edit this path to match with your system (it should point to the root # directory of the Linux kernel source) KERNEL_PATH=/usr/src/linux-2.4 |
% make (試しにやってみた) Select the version to be build: make pccard PC Card (PCMCIA) driver (Prism2 or Prism2.5) make plx PLX-based PCI card with PC Card make pci Prism 2.5 PCI Card make crypt Make hostap_crypt*.o make hostap Make hostap.o % make pci (PCIカード版 AP用ドライバのコンパイル) ...(途中略) Run 'make install_pccard' as a root to install hostap_cs.o Run 'make install_plx' as a root to install hostap_plx.o Run 'make install_pci' as a root to install hostap_pci.o |
% su Password: # make install_pci (PCIカード版 AP用ドライバのインストール) ...(途中略) /sbin/depmod -a # exit % find /lib/modules/2.4.18-24.7.x | grep hostap (確認作業) /lib/modules/2.4.18-24.7.x/net/hostap_crypt.o /lib/modules/2.4.18-24.7.x/net/hostap_crypt_wep.o /lib/modules/2.4.18-24.7.x/net/hostap.o /lib/modules/2.4.18-24.7.x/net/hostap_pci.o |
% su Password: # modprobe hostap_pci Module Size Used by Not tainted hostap_pci 45388 1 hostap 63492 0 [hostap_pci] hostap_crypt 2596 0 [hostap] i810_audio 23136 0 (autoclean) ...(以降省略) |
Feb 19 23:33:03 hostA kernel: hostap_pci: hostap_pci.c 0.0.0 2002-10-12 (SSH Communications Security Corp, Jouni Malinen) Feb 19 23:33:03 hostA kernel: hostap_pci: (c) Jouni Malinen |
% /sbin/ifconfig -a
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:318 errors:0 dropped:0 overruns:0 frame:0
TX packets:318 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:19302 (18.8 Kb) TX bytes:19302 (18.8 Kb)
wlan0 Link encap:Ethernet HWaddr XX:YY:ZZ:AA:BB:CC
BROADCAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:4960 (4.8 Kb)
|
% su
Password:
# iwconfig wlan0 essid Idobata
アクセスポイントのSSIDを決定する
# iwconfig wlan0 channel 7
アクセスポイントの使用するチャンネルを決定する
# iwconfig wlan0 mode Master
無線LAN interfaceをAP(Access Point)とする
# iwconfig wlan0 確認作業 1
Warning : Device wlan0 has been compiled with version 13
of Wireless Extension, while we are using version 11.
Some things may be broken...
wlan0 IEEE 802.11-b ESSID:"Idobata"
Mode:Master Frequency:2.442GHz Access Point: 00:VV:WW:XX:YY:ZZ
Bit Rate:11Mb/s Tx-Power:-6 dBm Sensitivity=1/3
Retry min limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 invalid crypt:0 invalid misc:0
# ifconfig wlan0 10.0.1.1 netmask 255.255.255.0 broadcast 10.0.1.255 up
無線LAN interfaceにIPアドレスを設定する
# ifconfig wlan0 確認作業 2
ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:VV:WW:XX:YY:ZZ
inet addr:10.0.1.1 Bcast:10.0.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 b) TX bytes:4960 (4.8 Kb)
|
なお "iwconfig wlan0" で確認作業をしたときの"Warning"
であるが,これは今回使用したwireless toolsのバージョンが古いために
表示されていると思われる.うまく動作しなければ新しいバージョンの
wireless toolsをdownloadして,installすればこのWarningは表示されなく
なるだろうと思われる(が,未確認).