Cliq Wireless questions
Posted
by Nathan Adams
on Super User
See other posts from Super User
or by Nathan Adams
Published on 2010-01-10T05:14:53Z
Indexed on
2010/03/17
22:21 UTC
Read the original article
Hit count: 517
Heres the deal:
I am by no means a Linux expert, even less when it comes to the Android OS but lets see if we can't solve this problem.
The problem I am having is that on the Cliq we have a broadcom chip. In order to use the wireless card you must first insert the module into the kernel. Fine:
# insmod /system/lib/dhd.ko
insmod /system/lib/dhd.ko
# lsmod
lsmod
dhd 164936 0 - Live 0xbf000000
#
BUT netcfg (or ifconfig in busybox) does not recognize that there is a wireless adapter there:
# netcfg
netcfg
lo UP 127.0.0.1 255.0.0.0 0x00000049
dummy0 DOWN 0.0.0.0 0.0.0.0 0x00000082
rmnet0 UP 14.67.164.2 255.255.255.252 0x00001043
rmnet1 DOWN 0.0.0.0 0.0.0.0 0x00001002
rmnet2 DOWN 0.0.0.0 0.0.0.0 0x00001002
usb0 DOWN 0.0.0.0 0.0.0.0 0x00001002
# busybox ifconfig
busybox 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:282 errors:0 dropped:0 overruns:0 frame:0
TX packets:282 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:18754 (18.3 KiB) TX bytes:18754 (18.3 KiB)
rmnet0 Link encap:Ethernet HWaddr EE:83:E8:B4:4A:ED
inet addr:14.x.x.x Bcast:14.67.164.3 Mask:255.255.255.252
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7148 errors:0 dropped:0 overruns:0 frame:0
TX packets:7659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2609236 (2.4 MiB) TX bytes:908575 (887.2 KiB)
#
For giggles if we attempt to launch wpa_supplicant anyways we get this:
# wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
wpa_supplicant -Dwext -ieth0 -c/data/misc/wifi/wpa_supplicant.conf
ioctl[SIOCSIWPMKSA]: No such device
ioctl[SIOCSIWMODE]: No such device
Could not configure driver to use managed mode
ioctl[SIOCGIFFLAGS]: No such device
Could not set interface 'eth0' UP
ioctl[SIOCGIWRANGE]: No such device
ioctl[SIOCGIFINDEX]: No such device
CTRL-EVENT-STATE-CHANGE id=-1 state=0
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWENCODEEXT]: No such device
ioctl[SIOCSIWENCODE]: No such device
ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 7 value 0x0 - Failed to disable WPA in the driver.
ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 5 value 0x0 - ioctl[SIOCSIWAUTH]: No such device
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAP]: No such device
ioctl[SIOCGIFFLAGS]: No such device
#
In dmesg we get:
<4>[18300.494065] dhd_oob_enable_intr : enable
<4>[18305.019976] dhd_net_start failed bus is not ready
<4>[18305.020278] dhdsdio_probe: dhd_net_start failed!
Do I need to specify the firmware with insmod?
Why are we trying to control the interface manually instead of through the Android API? The Android API doesn't support ad-hoc connections as far as I can tell. The card, I am sure, most certainly can.
© Super User or respective owner