View Single Post
Old 05-05-2011, 05:00 AM   #9
gslash
Junior Member
gslash began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2011
Device: kindle
Quote:
Originally Posted by craxycat View Post
[root@kindle root]# /etc/init.d/wifi stop
system: I wifi:def:WiFi Device mac = 28:EF:01:61:24:15
Platform set to SHASTA_NATIVEMMC-SDIO
Platform Setup Script is: /opt/ar6k/host/support/platformscripts/plat_SHASTA_NATIVEMMC-SDIO.sh
Image path: /sbin
..unloading all
system: I wifi:def:loadAR6000 finished, args=(unloadall)
[root@kindle root]# /etc/init.d/wifi --mode ibss
system: I wifi:def:WiFi Device mac = 28:EF:01:61:24:15
Platform set to SHASTA_NATIVEMMC-SDIO
Platform Setup Script is: /opt/ar6k/host/support/platformscripts/plat_SHASTA_NATIVEMMC-SDIO.sh
Image path: /sbin
No debug record limit set
Load Board Data from /opt/ar6k/target/AR6002/hw2.0/bin/lab126_15dBm_nodiv_WWR_CTL.bin
Updating MAC address
BMI Set App Start (address: 0x913950)
BMI Bit-Wise (OR) modify Register (address: 0x500410, orig:0x0, new: 0x1, mask:0x1)
BMI Write compressed Memory (address: 0x502070, filename: /opt/ar6k/target/AR6002/hw2.0/bin/athwlan.bin.z77)
BMI Write Memory (address: 0x52d6d0, filename: /opt/ar6k/target/AR6002/hw2.0/bin/data.patch.hw2_0.bin)
BMI Write Memory (address: 0x500418, value: 0x52d6d0)
BMI Done
system: I wifi:def:loadAR6000 finished, args=(--mode ibss)
[root@kindle root]# iwconfig wlan0 key s:********
[root@kindle root]# iwconfig wlan0 essid home-wifi
[root@kindle root]# iwconfig
lo no wireless extensions.

usb0 no wireless extensions.

wlan0 AR6000 802.11g ESSID:"home-wifi"
Mode:Ad-Hoc Frequency:2.457 GHz Cell: 86:6C:AF:29:291
Bit Rate=1 Mb/s Tx-Power=16 dBm Sensitivity=0/3
Retryn
Encryption key:****-****-****-****-****-****-** Security modepen
Power Managementff
Link Quality:63/94 Signal level:-32 dBm Noise level:-96 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:4 Invalid misc:0 Missed beacon:0

[root@kindle root]# udhcpc -i wlan0
Sending discover...
Offer from server xxx.xxx.0.1 received
Sending select for xxx.xxx.0.131...
Lease of xxx.xxx.0.131 obtained, lease time 86400
[root@kindle root]# route add default gw 192.168.0.1
[root@kindle root]# echo nameserver 192.168.0.1 >> /etc/resolv.conf
[root@kindle root]# ifconfig
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:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:336 (336.0 B) TX bytes:336 (336.0 B)

usb0 Link encap:Ethernet HWaddr EE:19:00:00:00:00
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:673 errors:0 dropped:0 overruns:0 frame:0
TX packets:545 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:50270 (49.0 KiB) TX bytes:71051 (69.3 KiB)

wlan0 Link encap:Ethernet HWaddr 28:EF:01:61:24:15
inet addr:192.168.0.131 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:47 errors:0 dropped:0 overruns:0 frame:0
TX packets:35 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4321 (4.2 KiB) TX bytes:1762 (1.7 KiB)

[root@kindle root]# ping google.com
PING google.com (74.125.87.99): 56 data bytes
64 bytes from 74.125.87.99: seq=0 ttl=53 time=515.918 ms
64 bytes from 74.125.87.99: seq=1 ttl=53 time=404.803 ms
64 bytes from 74.125.87.99: seq=2 ttl=53 time=476.451 ms
64 bytes from 74.125.87.99: seq=3 ttl=53 time=620.416 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 4 packets received, 20% packet loss
round-trip min/avg/max = 404.803/504.397/620.416 ms

Built-in browser still is not working, but Internet radio works via mplayer.
Mode Ad-Hoc works!
In order to make the browser work, did you try issuing the command:
dbus-send --system /default com.lab126.wifid.cmConnected
gslash is offline   Reply With Quote