おおもとのネタは、http://wireless.kernel.org/ から頂きました。前回のDebian環境 kernel 2.6.36にて試しました。
(1) make oldconfigでの表示
初めは、linux-2.6.36/ツリーにカブせて、make oldconfig しようとしました。「Support for 802.11n」 にて 11nサポートも始まりつつあるようです。しかし引き続きmakeすると、とてもうまくいきそうにないのでこれは断念します。
http://wireless.kernel.org/en/users/Download の目次にしたがってインストール処理します。入手したのは、2011-06-17日付です。
無事にhostapdで "handshake completed (WPA)"が出ており、deannaにWifi接続良好です。hostapd起動後6時間くらいスマホ3台接続して様子をみてますが、問題なくWifiネットワーク動作しています。さらに次は、手持ちの無線LANのUSBアダブタで他にも動作するものがあるか試してみたいです。初めは、linux-2.6.36/ツリーにカブせて、make oldconfig しようとしました。「Support for 802.11n」 にて 11nサポートも始まりつつあるようです。しかし引き続きmakeすると、とてもうまくいきそうにないのでこれは断念します。
* * Wireless LAN * Wireless LAN (WLAN) [Y/n/?] y Marvell 8xxx Libertas WLAN driver support with thin firmware (LIBERTAS_THINFIRM) [M/n/?] m Enable full debugging output in the Libertas thin firmware module. (LIBERTAS_THINFIRM_DEBUG) [N/y/?] n Marvell Libertas 8388 USB 802.11b/g cards with thin firmware (LIBERTAS_THINFIRM_USB) [M/n/?] m Atmel at76c503/at76c505/at76c505a USB cards (AT76C50X_USB) [N/m/?] n USB ZD1201 based Wireless device support (USB_ZD1201) [M/n/y/?] m Wireless RNDIS USB support (USB_NET_RNDIS_WLAN) [M/n/?] m Realtek 8187 and 8187B USB support (RTL8187) [M/n/?] m Simulated radio testing tool for mac80211 (MAC80211_HWSIM) [M/n/?] m * * Atheros Wireless Cards * Atheros Wireless Cards (ATH_COMMON) [N/m/?] n Broadcom 43xx wireless support (mac80211 stack) (B43) [M/n/?] m Support for 802.11n (N-PHY) devices (EXPERIMENTAL) (B43_PHY_N) [N/y/?] (NEW) Support for low-power (LP-PHY) devices (EXPERIMENTAL) (B43_PHY_LP) [Y/n/?] y Broadcom 43xx debugging (B43_DEBUG) [N/y/?] n Broadcom 43xx-legacy wireless support (mac80211 stack) (B43LEGACY) [M/n/?] m Broadcom 43xx-legacy debugging (B43LEGACY_DEBUG) [Y/n/?] y Broadcom 43xx-legacy data transfer mode > 1. DMA + PIO (B43LEGACY_DMA_AND_PIO_MODE) 2. DMA (Direct Memory Access) only (B43LEGACY_DMA_MODE) 3. PIO (Programmed I/O) only (B43LEGACY_PIO_MODE) choice[1-3]: 1 IEEE 802.11 for Host AP (Prism2/2.5/3 and WEP/TKIP/CCMP) (HOSTAP) [M/n/y/?] m Support downloading firmware images with Host AP driver (HOSTAP_FIRMWARE) [Y/n/?] y Support for non-volatile firmware download (HOSTAP_FIRMWARE_NVRAM) [Y/n/?] y Marvell 8xxx Libertas WLAN driver support (LIBERTAS) [M/n/?] m Marvell Libertas 8388 USB 802.11b/g cards (LIBERTAS_USB) [M/n/?] m Enable full debugging output in the Libertas module. (LIBERTAS_DEBUG) [Y/n/?] y Enable mesh support (LIBERTAS_MESH) [Y/n/?] y Softmac Prism54 support (P54_COMMON) [M/n/?] m Prism54 USB support (P54_USB) [M/n/?] m * * Ralink driver support * Ralink driver support (RT2X00) [M/n/?] m Ralink rt2500 (USB) support (RT2500USB) [M/n/?] m Ralink rt2501/rt73 (USB) support (RT73USB) [M/n/?] m Ralink rt27xx/rt28xx/rt30xx (USB) support (RT2800USB) [M/n/?] m rt2800usb - Include support for rt33xx devices (RT2800USB_RT33XX) [Y/n/?] (NEW) rt2800usb - Include support for rt35xx devices (EXPERIMENTAL) (RT2800USB_RT35XX) [Y/n/?] y rt2800usb - Include support for rt53xx devices (EXPERIMENTAL) (RT2800USB_RT53XX) [N/y/?] (NEW) rt2800usb - Include support for unknown (USB) devices (RT2800USB_UNKNOWN) [Y/n/?] y Ralink debug output (RT2X00_DEBUG) [N/y/?] n * * TI wl12xx driver support * TI wl12xx driver support (WL12XX_MENU) [N/m/?] (NEW) ZyDAS ZD1211/ZD1211B USB-wireless support (ZD1211RW) [M/n/?] m ZyDAS ZD1211 debugging (ZD1211RW_DEBUG) [N/y/?] n # # configuration written to .config #(2) Archive of compat-wireless-2.6 tarballs
http://wireless.kernel.org/en/users/Download の目次にしたがってインストール処理します。入手したのは、2011-06-17日付です。
root@squeeze:src# wget http://wireless.kernel.org/download/compat-wireless-2.6/compat-wireless-2011-06-17.tar.bz2 root@squeeze:src# tar jxf compat-wireless-2011-06-17.tar.bz2 root@squeeze:src# cd compat-wireless-2011-06-17 root@squeeze:compat-wireless-2011-06-17# ./scripts/driver-select rt2x00 root@squeeze:compat-wireless-2011-06-17# make root@squeeze:compat-wireless-2011-06-17# make install # find /lib/modules/2.6.36_obs600/ -name '*.ko.gz'|xargs gunzip # ls -l /lib/modules/2.6.36_obs600/updates/drivers/net/wireless/rt2x00 total 228 -rw-r--r-- 1 root root 28300 Jun 18 18:02 rt2500usb.ko -rw-r--r-- 1 root root 51130 Jun 18 18:02 rt2800lib.ko -rw-r--r-- 1 root root 38947 Jun 18 18:02 rt2800usb.ko -rw-r--r-- 1 root root 47986 Jun 18 18:02 rt2x00lib.ko -rw-r--r-- 1 root root 15963 Jun 18 18:02 rt2x00usb.ko -rw-r--r-- 1 root root 37897 Jun 18 18:02 rt73usb.ko モジュールは出来ているようです。(3) GW-US300MiniS をUSBポートに挿す
% lsusb Bus 001 Device 005: ID 2019:ab24 PLANEX GW-US300MiniS usb 1-1.2: new high speed USB device using of:dwc_otg and address 5 usb 1-1.2: New USB device found, idVendor=2019, idProduct=ab24 usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 usb 1-1.2: Product: 802.11 n WLAN usb 1-1.2: Manufacturer: Ralink usb 1-1.2: SerialNumber: 1.0 Compat-wireless backport release: compat-wireless-2011-06-14 Backport based on linux-next.git next-20110617 cfg80211: Calling CRDA to update world regulatory domain usbcore: registered new interface driver rt2800usb udev[1474]: renamed network interface wlan0 to wlan6 # lsmod Module Size Used by arc4 986 2 rt2800usb 13129 0 rt2800lib 42724 1 rt2800usb rt2x00usb 9701 1 rt2800usb rt2x00lib 34399 3 rt2800usb,rt2800lib,rt2x00usb mac80211 225540 3 rt2800lib,rt2x00usb,rt2x00lib cfg80211 163672 2 rt2x00lib,mac80211 compat 5755 2 mac80211,cfg80211 ipv6 295073 10 # iwconfig wlan6 wlan6 IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm Retry long limit:7 RTS thr:off Fragment thr:off Encryption key:off Power Management:on # ifconfig wlan6 wlan6 Link encap:Ethernet HWaddr 00:22:cf:YY:YY:YY BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)(4) RT2870ファームウェア
http://www.ralinktech.com/ の Firmware RT28XX/RT30XX USB series (RT2870/RT2770/RT3572/RT3070) で # ls -l /lib/firmware/rt2870.bin -rw-r--r-- 1 root root 8192 Dec 28 2009 /lib/firmware/rt2870.bin にコピーしました。(5) hostapdの起動
# egrep -v '^#|^$' /etc/hostapd/hostapd.conf6 interface=wlan6 bridge=br0 driver=nl80211 logger_syslog=-1 logger_syslog_level=2 logger_stdout=-1 logger_stdout_level=2 dump_file=/tmp/hostapd.dump ctrl_interface=/var/run/hostapd ctrl_interface_group=0 ssid=deanna hw_mode=g channel=6 beacon_int=100 dtim_period=2 max_num_sta=255 rts_threshold=2347 fragm_threshold=2346 macaddr_acl=0 auth_algs=3 ignore_broadcast_ssid=0 wme_enabled=1 wme_ac_bk_cwmin=4 wme_ac_bk_cwmax=10 wme_ac_bk_aifs=7 wme_ac_bk_txop_limit=0 wme_ac_bk_acm=0 wme_ac_be_aifs=3 wme_ac_be_cwmin=4 wme_ac_be_cwmax=10 wme_ac_be_txop_limit=0 wme_ac_be_acm=0 wme_ac_vi_aifs=2 wme_ac_vi_cwmin=3 wme_ac_vi_cwmax=4 wme_ac_vi_txop_limit=94 wme_ac_vi_acm=0 wme_ac_vo_aifs=2 wme_ac_vo_cwmin=2 wme_ac_vo_cwmax=3 wme_ac_vo_txop_limit=47 wme_ac_vo_acm=0 ieee8021x=0 eapol_key_index_workaround=0 eap_server=0 own_ip_addr=127.0.0.1 wpa=1 wpa_passphrase=aaaaqqqq wpa_key_mgmt=WPA-PSK wpa_pairwise=TKIP # # brctl addbr br0 (ブリッジ設定) # brctl addif br0 eth0 (wlan6はhostapdが追加してくれる) # ./hostapd -v (http://hostap.epitest.fi/releases/hostapd-0.7.3.tar.gz) hostapd v0.7.3 # ./hostapd /etc/hostapd/hostapd.conf6 (hostapdの起動) Configuration file: /etc/hostapd/hostapd.conf6 Using interface wlan6 with hwaddr 00:22:cf:YY:YY:YY and ssid 'deanna' wlan6: STA 5c:59:48:XX:XX:XX IEEE 802.11: authenticated wlan6: STA 5c:59:48:XX:XX:XX IEEE 802.11: associated (aid 1) AP-STA-CONNECTED 5c:59:48:XX:XX:XX wlan6: STA 5c:59:48:XX:XX:XX RADIUS: starting accounting session 4DFC7383-00000000 wlan6: STA 5c:59:48:XX:XX:XX WPA: pairwise key handshake completed (WPA) wlan6: STA 5c:59:48:XX:XX:XX WPA: group key handshake completed (WPA) (DHCPサーバ側の/var/log/syslog DHCP IPアドレス配布OK) Jun 18 22:41:14 oms dhcpd: uid lease 192.168.1.234 for client 5c:59:48:XX:XX:XX is duplicate on 192.168.1/24 Jun 18 22:41:14 oms dhcpd: DHCPDISCOVER from 5c:59:48:XX:XX:XX via br0 Jun 18 22:41:14 oms dhcpd: DHCPOFFER on 192.168.1.46 to 5c:59:48:XX:XX:XX via br0 Jun 18 22:41:15 oms dhcpd: uid lease 192.168.1.234 for client 5c:59:48:XX:XX:XX is duplicate on 192.168.1/24 Jun 18 22:41:15 oms dhcpd: DHCPREQUEST for 192.168.1.46 (192.168.1.28) from 5c:59:48:XX:XX:XX via br0 Jun 18 22:41:15 oms dhcpd: DHCPACK on 192.168.1.46 to 5c:59:48:XX:XX:XX via br0 (hostapd起動後は) # iwconfig wlan6 wlan6 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=20 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:on (Mode:Masterになっています)
--
0 件のコメント:
コメントを投稿